feat: add footer to main app
This commit is contained in:
parent
3e803c1fde
commit
1aefa2d1c3
1 changed files with 53 additions and 2 deletions
55
src/App.vue
55
src/App.vue
|
@ -10,6 +10,19 @@
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<router-view />
|
<router-view />
|
||||||
|
|
||||||
|
<footer class="footer">
|
||||||
|
<div class="footer__copyright">
|
||||||
|
v{{ version }} © {{ new Date().getFullYear() }} Sebin Nyshkim
|
||||||
|
</div>
|
||||||
|
<ul class="footer__linklist">
|
||||||
|
<li class="footer__linkitem" v-for="(link, idx) in links" :key="idx">
|
||||||
|
<a :href="link.href" class="footer__link">
|
||||||
|
{{ link.text }}
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</footer>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
@ -22,6 +35,7 @@ export default {
|
||||||
nsfw: false,
|
nsfw: false,
|
||||||
isConfirmedHorny: false,
|
isConfirmedHorny: false,
|
||||||
isWarn: false,
|
isWarn: false,
|
||||||
|
version: require("../package.json").version,
|
||||||
routes: [
|
routes: [
|
||||||
{ path: "/", name: "Home" },
|
{ path: "/", name: "Home" },
|
||||||
{ path: "/general", name: "General" },
|
{ path: "/general", name: "General" },
|
||||||
|
@ -30,6 +44,14 @@ export default {
|
||||||
{ path: "/abilities", name: "Abilities" },
|
{ path: "/abilities", name: "Abilities" },
|
||||||
{ path: "/overdrive", name: "Overdrive" },
|
{ path: "/overdrive", name: "Overdrive" },
|
||||||
],
|
],
|
||||||
|
links: [
|
||||||
|
{ href: "https://twitter.com/SebinNyshkim", text: "Twitter" },
|
||||||
|
{ href: "https://t.me/SebinNyshkim", text: "Telegram" },
|
||||||
|
{
|
||||||
|
href: "https://www.furaffinity.net/user/sonofdragons",
|
||||||
|
text: "Fur Affinity",
|
||||||
|
},
|
||||||
|
],
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
@ -51,7 +73,7 @@ export default {
|
||||||
@import "~normalize.css";
|
@import "~normalize.css";
|
||||||
|
|
||||||
#app {
|
#app {
|
||||||
margin: 6em 0 2em 0;
|
padding: 3em 0 0 0;
|
||||||
color: $copy-color;
|
color: $copy-color;
|
||||||
font-size: 1.125em;
|
font-size: 1.125em;
|
||||||
-webkit-font-smoothing: antialiased;
|
-webkit-font-smoothing: antialiased;
|
||||||
|
@ -78,7 +100,7 @@ header {
|
||||||
right: 0;
|
right: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
|
|
||||||
z-index: 1;
|
z-index: 2;
|
||||||
|
|
||||||
max-width: 70em;
|
max-width: 70em;
|
||||||
margin: 1em;
|
margin: 1em;
|
||||||
|
@ -101,4 +123,33 @@ header {
|
||||||
border-radius: 100%;
|
border-radius: 100%;
|
||||||
box-shadow: 0.125em 0.125em 0.5em rgba(0, 0, 0, 0.7);
|
box-shadow: 0.125em 0.125em 0.5em rgba(0, 0, 0, 0.7);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.footer {
|
||||||
|
background-color: $bg-color-light;
|
||||||
|
margin: 2em 0 0 0;
|
||||||
|
padding: 0.5em 0;
|
||||||
|
text-align: center;
|
||||||
|
|
||||||
|
&__copyright {
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
&__linklist {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
list-style: none;
|
||||||
|
|
||||||
|
display: flex;
|
||||||
|
flex-flow: row wrap;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
&__linkitem {
|
||||||
|
}
|
||||||
|
|
||||||
|
&__link {
|
||||||
|
color: $copy-color;
|
||||||
|
padding: 0.5em 0.75em;
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue