Skip to content

Commit

Permalink
feat(footer): add PageFooter component with social links
Browse files Browse the repository at this point in the history
  • Loading branch information
Perdolique committed Dec 5, 2024
1 parent 5e7f1dd commit 3967773
Show file tree
Hide file tree
Showing 2 changed files with 70 additions and 0 deletions.
62 changes: 62 additions & 0 deletions app/components/PageFooter.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
<template>
<footer :class="$style.footer">
<a
href="https://github.com/Perdolique/perd"
target="_blank"
rel="noopener"
:class="$style.link"
>
<Icon name="tabler:brand-github" />
</a>

<a
href="https://t.me/perdTV"
target="_blank"
rel="noopener"
:class="$style.link"
>
<Icon name="tabler:brand-telegram" />
</a>

<a
href="https://www.twitch.tv/perdolique"
target="_blank"
rel="noopener"
:class="$style.link"
>
<Icon name="tabler:brand-twitch" />
</a>
</footer>
</template>

<style lang="scss" module>
.footer {
display: flex;
gap: var(--spacing-16);
justify-content: center;
padding: var(--spacing-8);
text-align: center;
border-top: 1px solid var(--background-200);
}
.link {
display: flex;
align-items: center;
justify-content: center;
outline: none;
height: 40px;
width: 40px;
color: var(--text-color-secondary);
transition:
color var(--transition-time-quick),
background-color var(--transition-time-quick);
font-size: var(--font-size-20);
border-radius: var(--border-radius-8);
&:focus-visible,
&:hover {
color: var(--text);
background-color: var(--background-100);
}
}
</style>
8 changes: 8 additions & 0 deletions app/layouts/page.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,16 @@
<div :class="$style.content">
<slot />
</div>

<PageFooter />
</div>
</div>
</template>

<script setup lang="ts">
import PerdSidebar from '~/components/PerdSidebar/PerdSidebar.vue';
import PageHeader from '~/components/PageHeader.vue';
import PageFooter from '~/components/PageFooter.vue';
</script>

<style lang="scss" module>
Expand All @@ -26,11 +29,16 @@
.main {
flex: 1;
overflow: auto;
display: flex;
flex-direction: column;
}
.content {
flex: 1;
padding: var(--spacing-16);
max-width: var(--screen-laptop);
margin: 0 auto;
width: 100%;
box-sizing: border-box;
}
</style>

0 comments on commit 3967773

Please sign in to comment.