Skip to content

Commit 30a192d

Browse files
committed
feat: add additional footer classes and update footer styles; adjust spacing in index page
1 parent 5c07357 commit 30a192d

File tree

3 files changed

+25
-9
lines changed

3 files changed

+25
-9
lines changed

src/App.vue

Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ const { t } = useI18n();
1919
2020
const showMenuBar = shallowRef(false);
2121
const showFooter = shallowRef(false);
22+
const additionalFooterClasses = shallowRef({
23+
position: '',
24+
pp: '',
25+
kofi: '',
26+
});
2227
const rerenderKey = shallowRef(0);
2328
2429
const savedWindowState = shallowRef(StoreDefaults.savedWindowState);
@@ -56,6 +61,17 @@ onMounted(async () => {
5661
watch(route, () => {
5762
showFooter.value = !footerExcludeList.includes(route.name) && !route.path.startsWith('/settings');
5863
showMenuBar.value = !(route.path.startsWith('/settings') || route.name === '/versioncheck');
64+
additionalFooterClasses.value = route.name === '/changelog'
65+
? {
66+
position: 'sticky bottom-0',
67+
pp: 'bg-[#009bde]',
68+
kofi: 'bg-[#ff6333]',
69+
}
70+
: {
71+
position: '',
72+
pp: '',
73+
kofi: '',
74+
};
5975
});
6076
6177
ipcRenderer.on(IpcEvent.Vanish, () => {
@@ -93,36 +109,36 @@ ipcRenderer.on(IpcEvent.Notification, (_, notification) => {
93109
</script>
94110

95111
<template>
96-
<div :key="rerenderKey" class="min-h-dvh">
112+
<div :key="rerenderKey" class="grid min-h-dvh grid-rows-[auto_1fr_auto]">
97113
<header
98-
v-if="showMenuBar" class="top-0 z-10 flex w-full items-center justify-between"
114+
v-if="showMenuBar" class="flex w-full justify-between align-top"
99115
:class="footerExcludeList.includes(route.name) ? 'absolute' : 'sticky'"
100116
>
101117
<DropDownMenu />
102118
<MenuButtons />
103119
</header>
104-
<main>
120+
<main class="flex flex-col">
105121
<router-view v-slot="{ Component }">
106122
<template v-if="Component">
107123
<Suspense>
108124
<component :is="Component" :key="$route.path" />
109125
<template #fallback>
110-
<Icon icon="fa5-solid:spinner" class="animate-spin text-4xl text-primary" />
126+
<Icon icon="fa6-solid:spinner" class="animate-spin text-4xl text-primary" />
111127
</template>
112128
</Suspense>
113129
</template>
114130
</router-view>
115131
</main>
116-
<footer v-if="showFooter" class="absolute bottom-0 w-full dark:text-background">
132+
<footer v-if="showFooter" class="w-full dark:text-background" :class="additionalFooterClasses.position">
117133
<div v-if="notifications.showToggleUnbound" class="flex items-center justify-center bg-yellow-200 text-yellow-600">
118134
<Icon icon="fa6-solid:triangle-exclamation" class="text-1xl mr-2" />
119135
<small>{{ t('footer.toggle-missing') }}</small>
120136
</div>
121137
<div class="grid grid-cols-2">
122-
<a :href="paypalLink" class="center-elements bg-[#009bde36] py-2">
123-
<Icon icon="fa6-brands:paypal" style="color: #009cde" />
138+
<a :href="paypalLink" class="center-elements bg-[#009bde36] py-2" :class="additionalFooterClasses.pp">
139+
<img src="./assets/brands/paypal.png" alt="PayPal" class="size-5">
124140
</a>
125-
<a :href="kofiLink" class="center-elements bg-[#ff633379] py-2">
141+
<a :href="kofiLink" class="center-elements bg-[#ff633379] py-2" :class="additionalFooterClasses.kofi">
126142
<img src="./assets/brands/kofi_symbol.svg" alt="Ko-fi" class="size-5">
127143
</a>
128144
</div>

src/assets/brands/paypal.png

22.8 KB
Loading

src/pages/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import Twitch from '#components/index/Twitch.vue';
55
</script>
66

77
<template>
8-
<div class="my-24 grid grid-cols-1 items-center justify-center gap-2 px-10 sm:grid-cols-2 sm:px-20">
8+
<div class="my-12 grid grid-cols-1 items-center justify-center gap-2 px-10 sm:grid-cols-2">
99
<Twitch />
1010
<Kick />
1111
<External />

0 commit comments

Comments
 (0)