Updated footer layout
This commit is contained in:
parent
fa7ea20135
commit
95d5b430c0
|
@ -13,13 +13,7 @@
|
|||
</main>
|
||||
|
||||
<footer>
|
||||
<ul>
|
||||
<li v-for="item of subMenu">
|
||||
<router-link tag="a" class="btn btn-small btn-txt" :to="item.route">
|
||||
{{ item.label }}
|
||||
</router-link>
|
||||
</li>
|
||||
</ul>
|
||||
<app-footer :menu="subMenu" />
|
||||
</footer>
|
||||
|
||||
<div class="app-background">
|
||||
|
@ -34,14 +28,16 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import Menu from '@/components/menu'
|
||||
import AppMenu from '@/components/app-menu'
|
||||
import AppFooter from '@/components/app-footer'
|
||||
import '@/assets/icons/european-stars'
|
||||
|
||||
export default {
|
||||
name: 'App',
|
||||
|
||||
components: {
|
||||
'app-menu': Menu
|
||||
'app-menu': AppMenu,
|
||||
'app-footer': AppFooter
|
||||
},
|
||||
|
||||
i18n: {
|
||||
|
@ -187,6 +183,7 @@
|
|||
|
||||
a {
|
||||
color: $text-color-base;
|
||||
text-decoration: none;
|
||||
transition: color 150ms $easeInOutQuint;
|
||||
|
||||
&:hover {
|
||||
|
@ -214,13 +211,6 @@
|
|||
footer {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
footer {
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
}
|
||||
|
||||
.app-header {
|
||||
|
@ -244,6 +234,20 @@
|
|||
}
|
||||
}
|
||||
|
||||
footer {
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
padding: 0 $small-gap $small-gap $small-gap;
|
||||
|
||||
@media (max-width: 768px) {
|
||||
position: static;
|
||||
justify-content: center;
|
||||
margin-top: $base-gap;
|
||||
}
|
||||
}
|
||||
|
||||
.app-background {
|
||||
display: none;
|
||||
position: absolute;
|
||||
|
|
39
src/components/app-footer.vue
Normal file
39
src/components/app-footer.vue
Normal file
|
@ -0,0 +1,39 @@
|
|||
<template>
|
||||
<ul class="footer-menu">
|
||||
<li v-for="item of menu">
|
||||
<router-link tag="a" :to="item.route">
|
||||
{{ item.label }}
|
||||
</router-link>
|
||||
</li>
|
||||
</ul>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'AppFooter',
|
||||
|
||||
props: {
|
||||
menu: { type: Array, default: () => [] }
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
@import "~styles/colors";
|
||||
@import "~styles/layout";
|
||||
|
||||
.footer-menu {
|
||||
list-style: none;
|
||||
display: flex;
|
||||
font-size: $font-size-small;
|
||||
|
||||
a {
|
||||
color: $text-color-secondary;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
li:not(:first-child) {
|
||||
margin-left: $base-gap;
|
||||
}
|
||||
}
|
||||
</style>
|
|
@ -22,7 +22,7 @@
|
|||
|
||||
<script>
|
||||
export default {
|
||||
name: 'Menu',
|
||||
name: 'AppMenu',
|
||||
|
||||
props: {
|
||||
main: { type: Array, default: () => [{ label: 'Index', route: { path: '/' } }] },
|
Loading…
Reference in a new issue