Files
hunnu_app_website/src/App.vue
T
2025-11-30 13:27:15 +08:00

55 lines
872 B
Vue

<script setup lang="ts">
import { RouterView } from 'vue-router'
import NavBar from './components/NavBar.vue'
import FooterBar from './components/FooterBar.vue'
</script>
<template>
<div class="app">
<NavBar />
<main class="app__main">
<div class="container">
<RouterView />
</div>
</main>
<FooterBar />
</div>
</template>
<style scoped>
.app {
display: flex;
flex-direction: column;
min-height: 100vh;
background-color: var(--background-color);
}
.app__main {
flex: 1;
min-height: 70vh;
padding: var(--spacing-lg) 0;
}
/* 响应式调整 */
@media (max-width: 992px) {
.app__main {
padding: var(--spacing-md) 0;
}
}
@media (max-width: 768px) {
.app__main {
min-height: 60vh;
padding: var(--spacing-sm) 0;
}
}
@media (max-width: 576px) {
.app__main {
min-height: 50vh;
}
}
</style>