Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/components/AppFooter.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<footer class="footer footer-center bg-base-200 p-4 text-base-content">
<footer class="mt-12 p-4 text-base-content/60 text-sm text-center items-center">
<aside>
<p>&copy; {{ new Date().getFullYear() }} TEC. Built with Nuxt 4 + DaisyUI.</p>
</aside>
Expand Down
34 changes: 16 additions & 18 deletions app/components/AppHeader.vue
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
<script setup lang="ts"></script>

<template>
<header class="navbar bg-base-200">
<div class="flex-1">
<NuxtLink to="/" class="btn btn-ghost text-xl">Affirm</NuxtLink>
</div>
<nav class="flex-none">
<ul class="menu menu-horizontal px-1">
<li>
<NuxtLink to="/">Home</NuxtLink>
</li>
<li>
<NuxtLink to="/about">About</NuxtLink>
</li>
<li>
<NuxtLink to="/list">List</NuxtLink>
</li>
</ul>
</nav>
</header>
<nav>
<h1 class="mb-8 text-xl font-bold ml-4">Affirm</h1>
<ul class="menu menu-lg w-full p-0">
<li>
<NuxtLink to="/" class="link link-hover" active-class="menu-active">Home</NuxtLink>
</li>
<li>
<NuxtLink to="/about" class="link link-hover" active-class="menu-active">About</NuxtLink>
</li>
<li>
<NuxtLink to="/list" class="link link-hover" active-class="menu-active">List</NuxtLink>
</li>
</ul>
</nav>
</template>
14 changes: 8 additions & 6 deletions app/layouts/default.vue
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
<template>
<div class="flex min-h-screen flex-col">
<AppHeader />
<main class="flex-1 container mx-auto p-6">
<slot />
</main>
<AppFooter />
<div class="flex min-h-screen flex-row justify-center">
<div class="flex min-h-screen flex-column gap-6 max-w-240 w-full">
<AppHeader class="flex-0 min-w-40 sticky top-0 h-fit py-12" />
<main class="flex-1 py-12">
<slot />
<AppFooter />
</main>
</div>
</div>
</template>
Loading