Skip to content

Commit 7ac510d

Browse files
use UMain component and UFooter
1 parent 7935bc4 commit 7ac510d

File tree

1 file changed

+19
-20
lines changed

1 file changed

+19
-20
lines changed

app/app.vue

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,35 @@
11
<template>
22
<UApp>
33
<Navbar />
4-
<main class="min-h-screen px-6">
5-
<NuxtLoadingIndicator color="pink" error-color="red" />
4+
<NuxtLoadingIndicator color="pink" error-color="red" />
5+
<UMain class="px-6">
66
<NuxtLayout>
77
<NuxtPage />
88
</NuxtLayout>
9-
</main>
10-
<footer class="mt-auto p-6 bg-[var(--primary-100)]" style="background-color: var(--primary-100)">
11-
<div class="container mx-auto flex justify-between items-center">
12-
<div class="flex items-center space-x-4">
13-
<NuxtPicture src="images/blog-thumbnails/probablyjassin.webp" alt="Footer logo" class="h-10 w-10 rounded-full" />
14-
<p class="text-[var(--text-900)]">© {{ new Date().getFullYear() }} <span class="whitespace-nowrap">Jässin</span></p>
15-
</div>
16-
<div class="flex space-x-6">
17-
<a title="github" href="https://github.com/probablyjassin" class="text-[var(--text-900)] hover:text-[var(--secondary-400)] transition-colors">
18-
<Icon name="line-md:github" class="w-6 h-6" />
19-
</a>
20-
<a title="email" href="mailto:[email protected]" class="text-(--text-900) hover:text-(--secondary-400) transition-colors">
21-
<Icon name="line-md:email" class="w-6 h-6" />
22-
</a>
23-
</div>
24-
</div>
25-
</footer>
9+
</UMain>
10+
<UFooter class="bg-[var(--primary-100)]">
11+
<template #left>
12+
<NuxtPicture src="images/blog-thumbnails/probablyjassin.webp" alt="Footer logo" class="h-12 w-12 rounded-full" />
13+
<p class="text-[var(--text-900)]">© {{ new Date().getFullYear() }} <span class="whitespace-nowrap">Jässin</span></p>
14+
</template>
15+
16+
<template #right>
17+
<a title="github" href="https://github.com/probablyjassin" class="text-[var(--text-900)] hover:text-[var(--secondary-400)] transition-colors">
18+
<Icon name="line-md:github" class="w-6 h-6" />
19+
</a>
20+
<a title="email" href="mailto:[email protected]" class="text-(--text-900) hover:text-(--secondary-400) transition-colors">
21+
<Icon name="line-md:email" class="w-6 h-6" />
22+
</a>
23+
</template>
24+
</UFooter>
2625
</UApp>
2726
</template>
2827

2928
<style>
3029
/* Page Transitions */
3130
.page-enter-active,
3231
.page-leave-active {
33-
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
32+
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
3433
}
3534
.page-enter-from,
3635
.page-leave-to {

0 commit comments

Comments
 (0)