Use footer pictures

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2020-10-16 16:36:16 +02:00
parent 717bc010c3
commit 0b299497c5
No known key found for this signature in database
GPG Key ID: A061B9DDE0CA0773
6 changed files with 24 additions and 16 deletions

View File

Before

Width:  |  Height:  |  Size: 379 KiB

After

Width:  |  Height:  |  Size: 379 KiB

View File

Before

Width:  |  Height:  |  Size: 359 KiB

After

Width:  |  Height:  |  Size: 359 KiB

View File

Before

Width:  |  Height:  |  Size: 376 KiB

After

Width:  |  Height:  |  Size: 376 KiB

View File

Before

Width:  |  Height:  |  Size: 358 KiB

After

Width:  |  Height:  |  Size: 358 KiB

View File

Before

Width:  |  Height:  |  Size: 518 KiB

After

Width:  |  Height:  |  Size: 518 KiB

View File

@ -1,7 +1,6 @@
<template> <template>
<footer class="footer" ref="footer"> <footer class="footer" ref="footer">
<mobilizon-logo :invert="true" class="logo" /> <img :src="`/img/pics/footer_${random}.jpg`" alt="" />
<!-- <img src="../assets/footer.png" :alt="$t('World map')" /> -->
<ul> <ul>
<li> <li>
<router-link :to="{ name: RouteName.ABOUT }">{{ $t("About") }}</router-link> <router-link :to="{ name: RouteName.ABOUT }">{{ $t("About") }}</router-link>
@ -32,41 +31,50 @@
<script lang="ts"> <script lang="ts">
import { Component, Vue } from "vue-property-decorator"; import { Component, Vue } from "vue-property-decorator";
import RouteName from "../router/name"; import RouteName from "../router/name";
import Logo from "./Logo.vue";
@Component({ @Component
components: {
"mobilizon-logo": Logo,
},
})
export default class Footer extends Vue { export default class Footer extends Vue {
RouteName = RouteName; RouteName = RouteName;
// eslint-disable-next-line class-methods-use-this
get random(): number {
return Math.floor(Math.random() * 4) + 1;
}
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
@import "~bulma/sass/utilities/mixins.sass";
footer.footer { footer.footer {
color: $secondary; color: $secondary;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
font-size: 14px; font-size: 14px;
padding: 1rem 1.5rem;
.logo { img {
fill: $secondary;
flex: 1; flex: 1;
max-width: 300px; max-width: 40rem;
margin-bottom: 2rem; @include mobile {
max-width: 400px;
}
} }
div.content { div.content {
flex: 1; flex: 1;
} }
ul li { ul {
display: inline-flex; display: inline-flex;
margin: auto 5px; flex-wrap: wrap;
a { justify-content: space-around;
font-size: 1.1rem;
li {
display: inline-flex;
margin: auto 5px;
a {
font-size: 1.1rem;
}
} }
} }