Skip to content
Open
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
27 changes: 16 additions & 11 deletions app/components/AppHeader.vue
Original file line number Diff line number Diff line change
@@ -1,13 +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>
</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>
24 changes: 23 additions & 1 deletion worker-configuration.d.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,38 @@
/* eslint-disable */
// Generated by Wrangler by running `wrangler types` (hash: 1224b5b86c5bfbfdc24911a0d4ce5c0f)
// Generated by Wrangler by running `wrangler types` (hash: 933066b3a95ca283951caf6d326d4588)
// Runtime types generated with workerd@1.20260529.1 2026-02-01 no_nodejs_compat_v2,nodejs_compat
interface __BaseEnv_Env {
DB: D1Database;
IMAGES: ImagesBinding;
CF_VERSION_METADATA: WorkerVersionMetadata;
ASSETS: Fetcher;
CLOUDFLARE_ACCOUNT_ID: string;
CLOUDFLARE_DATABASE_ID: string;
CLOUDFLARE_PRODUCTION_DATABASE_ID: string;
CLOUDFLARE_STAGING_DATABASE_ID: string;
CLOUDFLARE_D1_TOKEN: string;
NUXT_SESSION_PASSWORD: string;
}
declare namespace Cloudflare {
interface Env extends __BaseEnv_Env {}
}
interface Env extends __BaseEnv_Env {}
type StringifyValues<EnvType extends Record<string, unknown>> = {
[Binding in keyof EnvType]: EnvType[Binding] extends string ? EnvType[Binding] : string;
};
declare namespace NodeJS {
interface ProcessEnv extends StringifyValues<
Pick<
Cloudflare.Env,
| "CLOUDFLARE_ACCOUNT_ID"
| "CLOUDFLARE_DATABASE_ID"
| "CLOUDFLARE_PRODUCTION_DATABASE_ID"
| "CLOUDFLARE_STAGING_DATABASE_ID"
| "CLOUDFLARE_D1_TOKEN"
| "NUXT_SESSION_PASSWORD"
>
> {}
}

// Begin runtime types
/*! *****************************************************************************
Expand Down