refactor: migrate Footer component
This commit is contained in:
parent
81941a9e45
commit
32c63efeaa
2 changed files with 26 additions and 22 deletions
|
@ -1,22 +0,0 @@
|
||||||
<template>
|
|
||||||
<footer class="footer">
|
|
||||||
<slot></slot>
|
|
||||||
</footer>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script></script>
|
|
||||||
|
|
||||||
<style lang="scss">
|
|
||||||
@import "@/scss/_variables.scss";
|
|
||||||
@import "@/scss/_mixins.scss";
|
|
||||||
|
|
||||||
.footer {
|
|
||||||
background: url("/subtle-prism.svg") $bg-color-dark;
|
|
||||||
background-blend-mode: multiply;
|
|
||||||
|
|
||||||
padding: max(1em, env(safe-area-inset-top)) 0
|
|
||||||
max(1em, env(safe-area-inset-bottom)) 0;
|
|
||||||
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
</style>
|
|
26
src/components/SiteFooter.vue
Normal file
26
src/components/SiteFooter.vue
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
<script setup lang="ts"></script>
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<footer class="footer">
|
||||||
|
<slot></slot>
|
||||||
|
</footer>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<style lang="scss">
|
||||||
|
.footer {
|
||||||
|
background: url(@/assets/subtle-prism.svg) var(--color-background-footer);
|
||||||
|
background-blend-mode: multiply;
|
||||||
|
|
||||||
|
padding: var(--footer-padding);
|
||||||
|
|
||||||
|
text-align: center;
|
||||||
|
|
||||||
|
p {
|
||||||
|
margin: 0;
|
||||||
|
|
||||||
|
+ p {
|
||||||
|
margin: 0.5em auto 0 auto;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
Loading…
Add table
Add a link
Reference in a new issue