diff options
| author | Pitu <[email protected]> | 2020-12-25 20:17:47 +0900 |
|---|---|---|
| committer | Pitu <[email protected]> | 2020-12-25 20:17:47 +0900 |
| commit | 7190e035b441aef96c8249bb02d12f7cd55a17d9 (patch) | |
| tree | 9af45225da6f6e5d4d8e89cea59e843c533a67c8 /src/site/components/footer | |
| parent | Chore: prevent server from starting if .env config missing (diff) | |
| download | host.fuwn.me-7190e035b441aef96c8249bb02d12f7cd55a17d9.tar.xz host.fuwn.me-7190e035b441aef96c8249bb02d12f7cd55a17d9.zip | |
chore: style changes
Diffstat (limited to 'src/site/components/footer')
| -rw-r--r-- | src/site/components/footer/Footer.vue | 148 |
1 files changed, 53 insertions, 95 deletions
diff --git a/src/site/components/footer/Footer.vue b/src/site/components/footer/Footer.vue index aa54dce..3e7fda3 100644 --- a/src/site/components/footer/Footer.vue +++ b/src/site/components/footer/Footer.vue @@ -1,70 +1,26 @@ <template> - <!-- eslint-disable max-len --> <footer> - <svg - viewBox="0 0 1920 250" - class="waves"> - - <path - d="M1920 250H0V0s126.707 78.536 349.975 80.05c177.852 1.203 362.805-63.874 553.803-63.874 290.517 0 383.458 57.712 603.992 61.408 220.527 3.696 278.059-61.408 412.23-17.239" - class="wave-1" /> - <path - d="M1920 144s-467.917 116.857-1027.243-17.294C369.986 1.322 0 45.578 0 45.578V250h1920V144z" - class="wave-2" /> - <path - d="M0 195.553s208.547-75.581 701.325-20.768c376.707 41.908 520.834-67.962 722.545-67.962 222.926 0 311.553 83.523 496.129 86.394V250H0v-54.447z" - class="wave-3" /> - </svg> - <div> - <div class="container"> - <div class="columns"> - <div class="column is-narrow"> - <h4>lolisafe</h4> - <span>© 2017-2020 - <a - href="https://github.com/pitu" - class="no-block">Pitu</a> - </span><br> - <span>v{{ version }}</span> - </div> - <div class="column"> - <div class="columns is-gapless"> - <div class="column" /> - <div class="column"> - <nuxt-link to="/"> - Home - </nuxt-link> - <nuxt-link to="/faq"> - FAQ - </nuxt-link> - </div> - <div class="column"> - <nuxt-link to="/dashboard"> - Dashboard - </nuxt-link> - <nuxt-link to="/dashboard"> - Files - </nuxt-link> - <nuxt-link to="/dashboard/albums"> - Albums - </nuxt-link> - <nuxt-link to="/dashboard/account"> - Account - </nuxt-link> - </div> - <div class="column"> - <a href="https://github.com/weebdev/lolisafe">GitHub</a> - <a href="https://patreon.com/pitu">Patreon</a> - <a href="https://discord.gg/5g6vgwn">Discord</a> - </div> - <div class="column"> - <a - v-if="loggedIn" - @click="createShareXThing">ShareX Config</a> - <a href="https://chrome.google.com/webstore/detail/lolisafe-uploader/enkkmplljfjppcdaancckgilmgoiofnj">Chrome Extension</a> - </div> - </div> - </div> + <div class="container"> + <div class="columns"> + <div class="column is-narrow"> + <h4>lolisafe</h4> + <span>© 2017-{{ getYear }} + <a + href="https://github.com/pitu" + class="no-block">Pitu</a> + </span><br> + <span>v{{ version }}</span> + </div> + <div class="column is-narrow bottom-up"> + <a href="https://github.com/weebdev/lolisafe">GitHub</a> + <a href="https://patreon.com/pitu">Patreon</a> + <a href="https://discord.gg/5g6vgwn">Discord</a> + </div> + <div class="column is-narrow bottom-up"> + <a + v-if="loggedIn" + @click="createShareXThing">ShareX Config</a> + <a href="https://chrome.google.com/webstore/detail/lolisafe-uploader/enkkmplljfjppcdaancckgilmgoiofnj">Chrome Extension</a> </div> </div> </div> @@ -84,7 +40,10 @@ export default { version: state => state.config.version, serviceName: state => state.config.serviceName, token: state => state.auth.token - }) + }), + getYear() { + return new Date().getFullYear(); + } }, methods: { createShareXThing() { @@ -112,39 +71,38 @@ export default { <style lang="scss" scoped> @import '~/assets/styles/_colors.scss'; footer { - svg.waves { - .wave-1 { - fill: rgb(55, 61, 76); - transition: fill 400ms ease-in-out 0s; - } - - .wave-2 { - fill: rgb(57, 64, 79); - transition: fill 400ms ease-in-out 0s; - } - - .wave-3 { - fill: rgb(59, 66, 82); - transition: fill 400ms ease-in-out 0s; + @media screen and (min-width: 1025px) { + position: fixed; + bottom: 0; + width: 100%; + > div { + padding: 1rem 1rem !important; + max-width: unset !important; } } - > div { - background: rgb(59, 66, 82); - padding: 3em 0; - @media screen and (max-width: 1024px) { - padding: 3em 3em; - } - } + .container { + .column { + margin-right: 2rem; + &.bottom-up { + @media screen and (min-width: 1025px) { + display: flex; + flex-direction: column; + justify-content: flex-end; + margin-right: 0; + } + } - .container .column a { - display: block; - color: $textColor; - &:hover { - color: white - } - &.no-block { - display: inherit; + a { + display: block; + color: $textColor; + &:hover { + color: white + } + &.no-block { + display: inherit; + } + } } } } |