footer always on bottom
This commit is contained in:
parent
b12c79fa21
commit
c29caf01c8
3 changed files with 37 additions and 18 deletions
37
src/App.vue
37
src/App.vue
|
|
@ -8,29 +8,32 @@ import Footer from '@/components/Footer/Footer.vue'
|
||||||
<n-message-provider>
|
<n-message-provider>
|
||||||
<n-dialog-provider>
|
<n-dialog-provider>
|
||||||
<n-notification-provider>
|
<n-notification-provider>
|
||||||
<NavBar />
|
<div class="app-layout">
|
||||||
|
<NavBar />
|
||||||
|
<div class="main-content">
|
||||||
|
<n-grid
|
||||||
|
responsive="screen"
|
||||||
|
item-responsive
|
||||||
|
cols="24"
|
||||||
|
:x-gap="16"
|
||||||
|
:y-gap="16"
|
||||||
|
class="shift"
|
||||||
|
>
|
||||||
|
<n-gi span="xs:1 s:1 m:2 l:2 xl:3 xxl:3" />
|
||||||
|
|
||||||
<n-grid
|
<n-gi span="xs:22 s:22 m:20 l:20 xl:18 xxl:18">
|
||||||
responsive="screen"
|
<router-view />
|
||||||
item-responsive
|
</n-gi>
|
||||||
cols="24"
|
|
||||||
:x-gap="16"
|
|
||||||
:y-gap="16"
|
|
||||||
class="shift"
|
|
||||||
>
|
|
||||||
<n-gi span="xs:1 s:1 m:2 l:2 xl:3 xxl:3" />
|
|
||||||
|
|
||||||
<n-gi span="xs:22 s:22 m:20 l:20 xl:18 xxl:18">
|
<n-gi span="xs:1 s:1 m:2 l:2 xl:3 xxl:3" />
|
||||||
<router-view />
|
</n-grid>
|
||||||
</n-gi>
|
</div>
|
||||||
|
<Footer />
|
||||||
<n-gi span="xs:1 s:1 m:2 l:2 xl:3 xxl:3" />
|
</div>
|
||||||
</n-grid>
|
|
||||||
</n-notification-provider>
|
</n-notification-provider>
|
||||||
</n-dialog-provider>
|
</n-dialog-provider>
|
||||||
</n-message-provider>
|
</n-message-provider>
|
||||||
</n-config-provider>
|
</n-config-provider>
|
||||||
<Footer />
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
<script setup>
|
<script setup>
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
|
|
||||||
|
|
@ -120,3 +120,20 @@
|
||||||
.link-like-text {
|
.link-like-text {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
html,
|
||||||
|
body,
|
||||||
|
#app {
|
||||||
|
height: 100%;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.app-layout {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
min-height: 100dvh;
|
||||||
|
}
|
||||||
|
|
||||||
|
.main-content {
|
||||||
|
flex: 1;
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue