底部修复

This commit is contained in:
jhy 2023-09-05 14:43:57 +08:00
parent 9f6eb5b3e7
commit dec25ee760
10 changed files with 42 additions and 155 deletions

View File

@ -8,7 +8,6 @@
"preview": "vite preview"
},
"dependencies": {
"pinia": "^2.1.6",
"tdesign-vue-next": "^1.5.3",
"vue": "^3.3.4",
"vue-router": "^4.2.4"
@ -17,4 +16,4 @@
"@vitejs/plugin-vue": "^4.3.1",
"vite": "^4.4.9"
}
}
}

View File

@ -4,11 +4,19 @@ import pageFooter from './components/pageFooter/pageFooter.vue'
</script>
<template>
<navigation />
<RouterView />
<pageFooter />
<div id="body">
<t-layout>
<t-header>
<navigation />
</t-header>
<t-content>
<RouterView />
</t-content>
<t-footer>
<pageFooter />
</t-footer>
</t-layout>
</div>
</template>
<style>
@ -19,4 +27,15 @@ body {
margin: 0;
padding: 0;
}
.t-layout__footer {
padding: 0;
}
#body {
display: flex;
min-height: 100vh;
flex-direction: column;
justify-content: space-between;
}
</style>

View File

@ -1,73 +0,0 @@
/* color palette from <https://github.com/vuejs/theme> */
:root {
--vt-c-white: #ffffff;
--vt-c-white-soft: #f8f8f8;
--vt-c-white-mute: #f2f2f2;
--vt-c-black: #181818;
--vt-c-black-soft: #222222;
--vt-c-black-mute: #282828;
--vt-c-indigo: #2c3e50;
--vt-c-divider-light-1: rgba(60, 60, 60, 0.29);
--vt-c-divider-light-2: rgba(60, 60, 60, 0.12);
--vt-c-divider-dark-1: rgba(84, 84, 84, 0.65);
--vt-c-divider-dark-2: rgba(84, 84, 84, 0.48);
--vt-c-text-light-1: var(--vt-c-indigo);
--vt-c-text-light-2: rgba(60, 60, 60, 0.66);
--vt-c-text-dark-1: var(--vt-c-white);
--vt-c-text-dark-2: rgba(235, 235, 235, 0.64);
}
/* semantic color variables for this project */
:root {
--color-background: var(--vt-c-white);
--color-background-soft: var(--vt-c-white-soft);
--color-background-mute: var(--vt-c-white-mute);
--color-border: var(--vt-c-divider-light-2);
--color-border-hover: var(--vt-c-divider-light-1);
--color-heading: var(--vt-c-text-light-1);
--color-text: var(--vt-c-text-light-1);
--section-gap: 160px;
}
@media (prefers-color-scheme: dark) {
:root {
--color-background: var(--vt-c-black);
--color-background-soft: var(--vt-c-black-soft);
--color-background-mute: var(--vt-c-black-mute);
--color-border: var(--vt-c-divider-dark-2);
--color-border-hover: var(--vt-c-divider-dark-1);
--color-heading: var(--vt-c-text-dark-1);
--color-text: var(--vt-c-text-dark-2);
}
}
*,
*::before,
*::after {
box-sizing: border-box;
margin: 0;
font-weight: normal;
}
body {
min-height: 100vh;
color: var(--color-text);
background: var(--color-background);
transition: color 0.5s, background-color 0.5s;
line-height: 1.6;
font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu,
Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
font-size: 15px;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

View File

@ -1 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 261.76 226.69"><path d="M161.096.001l-30.225 52.351L100.647.001H-.005l130.877 226.688L261.749.001z" fill="#41b883"/><path d="M161.096.001l-30.225 52.351L100.647.001H52.346l78.526 136.01L209.398.001z" fill="#34495e"/></svg>

Before

Width:  |  Height:  |  Size: 276 B

View File

@ -1,37 +0,0 @@
#app {
max-width: 1280px;
margin: 0 auto;
font-weight: normal;
}
a,
.green {
text-decoration: none;
color: hsla(160, 100%, 37%, 1);
transition: 0.4s;
}
@media (hover: hover) {
a:hover {
background-color: hsla(160, 100%, 37%, 0.2);
}
}
body {
display: flex;
place-items: center;
padding: 0;
margin: 0;
}
#app {
width: 100vw;
height: 100vh;
display: grid;
grid-template-columns: 1fr 1fr;
padding: 0;
margin: 0;
}

View File

@ -16,9 +16,11 @@ const changeHandler = (active) => {
<template #logo>
<div class="text">黑龙江东印科技</div>
</template>
<t-menu-item value="item1" class="menu" to="/" > 首页 </t-menu-item>
<t-menu-item value="item2" class="menu" to="/ServicesProject"> 服务项目 </t-menu-item>
<t-menu-item value="item3" class="menu" to="contact"> 联系我们 </t-menu-item>
<div class="right">
<t-menu-item value="item1" class="menu" to="/"> 首页 </t-menu-item>
<t-menu-item value="item2" class="menu" to="/ServicesProject"> 服务项目 </t-menu-item>
<t-menu-item value="item3" class="menu" to="contact"> 联系我们 </t-menu-item>
</div>
</t-head-menu>
</div>
</div>
@ -28,20 +30,27 @@ const changeHandler = (active) => {
.navigation {
width: 100vw;
box-sizing: border-box;
}
}
.menu_shadow {
box-shadow: 0px -7px 50px 0px orange;
}
.text {
line-height: 80px;
color: #fff;
font-size: 26px;
margin-left: 450px;
margin-right: 600px;
margin-left: 30vw;
margin-right: 20vw;
/* margin-left: 450px;
margin-right: 600px; */
}
.right {
width: 300px;
display: flex;
}
.t-menu__item.t-is-active {

View File

@ -1,5 +1,4 @@
<script setup>
</script>
<template>
<div class="footer">

View File

@ -1,12 +0,0 @@
import { ref, computed } from 'vue'
import { defineStore } from 'pinia'
export const useCounterStore = defineStore('counter', () => {
const count = ref(0)
const doubleCount = computed(() => count.value * 2)
function increment() {
count.value++
}
return { count, doubleCount, increment }
})

View File

@ -52,14 +52,11 @@ const project_list = ref(projectlist)
</div>
</div>
</div>
</template>
<style scoped>
.home {
width: 100vw;
box-sizing: border-box;
/* height: 100vh; */
}
/* 竖排展示 demo 行间距 16px */
@ -105,7 +102,6 @@ const project_list = ref(projectlist)
}
.special_service {
background-color: #f5f5f5;
padding: 60px 0px;
display: flex;
flex-direction: column;
@ -170,5 +166,4 @@ const project_list = ref(projectlist)
font-size: 48px;
text-align: center;
}
</style>

View File

@ -1,28 +1,17 @@
<script>
</script>
<template>
<div class="body">
<div class=" content">
<div class="content">
<div class="content_text"><strong>服务项目</strong></div>
<div class="content_des"></div>
</div>
<div class="empty">
</div>
</div>
</template>
<style scoped>
.body {
width: 100%;
box-sizing: border-box;
height: 730px;
background-color: #f5f5f5;
}
.empty {
height: 420px;
}
.content {