Added Discord link to footer.

This commit is contained in:
DebaucheryLibrarian
2021-04-15 16:11:16 +02:00
parent 52e215d3bc
commit 1116e09af5
3 changed files with 58 additions and 1 deletions

View File

@@ -6,20 +6,32 @@
:to="{ name: 'stats' }"
class="segment footer-link nolink"
>stats</router-link>
<a
v-if="config.discord"
:href="config.discord"
target="_blank"
rel="noopener noreferrer"
class="segment footer-link nolink discord"
><Icon icon="discord" /></a>
</footer>
</template>
<style lang="scss" scoped>
.footer {
display: flex;
justify-content: center;
align-items: center;
background: var(--background-dim);
color: var(--shadow);
font-size: .8rem;
font-weight: bold;
text-align: center;
box-shadow: inset -3px 0 3px var(--shadow-hint);
}
.segment {
display: inline-flex;
align-items: center;
padding: .5rem;
&:not(:last-child) {
@@ -32,6 +44,17 @@
&:hover {
color: var(--primary);
.icon {
fill: var(--primary);
}
}
}
.discord {
.icon {
fill: var(--shadow);
width: 4rem;
}
}
</style>