feat(ui): homepage shell with tailwind theme, self-hosted fonts, layout and header components

This commit is contained in:
Noel Sabia committed 2026-10-19 20:19:57 +02:00
1 parent dcb178a71a
commit 8d53daa4a6
18 files changed
+1252 -5

No files matched your search

+3 -4
View File
@@ -1,6 +1,5 @@
<template>
<div>
<NuxtRouteAnnouncer />
<NuxtWelcome />
</div>
<NuxtLayout>
<NuxtPage />
</NuxtLayout>
</template>
+69
View File
@@ -0,0 +1,69 @@
/* Self-hosted variable fonts (GDPR: no requests to Google CDNs) */
@font-face {
font-family: 'Newsreader';
font-style: normal;
font-weight: 200 800;
font-display: swap;
src: url('/fonts/newsreader-var.woff2') format('woff2');
}
@font-face {
font-family: 'Newsreader';
font-style: italic;
font-weight: 200 800;
font-display: swap;
src: url('/fonts/newsreader-italic-var.woff2') format('woff2');
}
@font-face {
font-family: 'Inter';
font-style: normal;
font-weight: 100 900;
font-display: swap;
src: url('/fonts/inter-var.woff2') format('woff2');
}
@font-face {
font-family: 'JetBrains Mono';
font-style: normal;
font-weight: 100 800;
font-display: swap;
src: url('/fonts/jetbrains-mono-var.woff2') format('woff2');
}
@font-face {
font-family: 'Material Symbols Outlined';
font-style: normal;
font-weight: 100 700;
font-display: block;
src: url('/fonts/material-symbols-outlined-var.woff2') format('woff2');
}
@tailwind base;
@tailwind components;
@tailwind utilities;
@layer base {
body {
@apply bg-surface font-body-md text-on-surface antialiased overscroll-none selection:bg-primary-container selection:text-primary-fixed;
}
main > :first-child {
margin-top: 0 !important;
}
main > :last-child {
margin-bottom: 0 !important;
}
}
@layer components {
.material-symbols-outlined {
font-family: 'Material Symbols Outlined';
font-weight: normal;
font-style: normal;
line-height: 1;
letter-spacing: normal;
text-transform: none;
white-space: nowrap;
word-wrap: normal;
direction: ltr;
display: inline-block;
font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
-webkit-font-smoothing: antialiased;
}
}
+15
View File
@@ -0,0 +1,15 @@
<template>
<footer class="w-full bg-surface-container-lowest shadow-[0_-1px_12px_rgba(0,0,0,0.3)] py-6">
<div class="max-w-7xl mx-auto px-6 lg:px-12 flex flex-col sm:flex-row items-center justify-between gap-4">
<div class="flex items-center gap-2.5 font-label-mono text-label-mono text-on-surface-variant">
<span class="inline-block w-2 h-2 rounded-full bg-secondary shadow-[0_0_6px_#4ae176]" />
<span>Served from my own server · k8s · Terraform · self-healing on purpose</span>
</div>
<div class="flex items-center gap-3 font-status-badge text-status-badge text-outline">
<span class="uppercase tracking-widest text-on-surface-variant/70">LOC // 49.1404° N, 9.2200° E</span>
<span class="text-outline-variant">•</span>
<span class="font-label-mono text-label-mono text-secondary-fixed-dim">SYS_STABLE</span>
</div>
</div>
</footer>
</template>
+9
View File
@@ -0,0 +1,9 @@
<template>
<header class="fixed top-0 left-0 w-full z-50 bg-surface/85 backdrop-blur-md shadow-[0_1px_8px_rgba(0,0,0,0.25)]">
<div class="h-16 max-w-7xl mx-auto px-6 lg:px-12 flex items-center justify-between gap-6">
<AppLogo />
<AppNav />
<AppQuickLinks />
</div>
</header>
</template>
+11
View File
@@ -0,0 +1,11 @@
<template>
<NuxtLink to="/" class="group flex items-center gap-3">
<span class="flex items-center justify-center w-8 h-8 rounded bg-surface-container-high text-primary group-hover:text-primary-fixed transition-colors">
<span class="material-symbols-outlined text-[1.125rem]">grain</span>
</span>
<div class="flex flex-col">
<span class="font-headline-sm text-headline-sm tracking-tight text-on-surface font-medium">Noel Sabia</span>
<span class="font-label-mono text-label-mono text-on-surface-variant tracking-wider uppercase text-[0.625rem]">resilience / arch</span>
</div>
</NuxtLink>
</template>
+23
View File
@@ -0,0 +1,23 @@
<template>
<nav class="hidden md:flex items-center gap-1.5">
<NuxtLink
to="/"
aria-current="page"
class="px-3 py-1.5 transition-colors bg-primary-container text-on-primary-container font-medium rounded font-body-sm text-body-sm"
>
Overview
</NuxtLink>
<a
href="#"
class="px-3 py-1.5 text-on-surface-variant hover:text-on-surface hover:bg-surface-container-high transition-colors font-body-sm text-body-sm"
>
Life Map
</a>
<a
href="#"
class="px-3 py-1.5 text-on-surface-variant hover:text-on-surface hover:bg-surface-container-high transition-colors font-body-sm text-body-sm"
>
Dev View
</a>
</nav>
</template>
+9
View File
@@ -0,0 +1,9 @@
<template>
<div class="hidden sm:flex items-center gap-4 text-on-surface-variant font-label-mono text-label-mono">
<a href="#" class="hover:text-on-surface transition-colors">PDF CV</a>
<span class="text-outline-variant text-[0.625rem]">/</span>
<a href="#" class="hover:text-on-surface transition-colors">Contact</a>
<span class="text-outline-variant text-[0.625rem]">/</span>
<a href="https://github.com" rel="noopener noreferrer" target="_blank" class="hover:text-on-surface transition-colors">GitHub</a>
</div>
</template>
+9
View File
@@ -0,0 +1,9 @@
<template>
<div class="flex min-h-screen flex-col">
<AppHeader />
<main class="w-full flex-1 pt-16 bg-surface">
<slot />
</main>
<AppFooter />
</div>
</template>
+3
View File
@@ -0,0 +1,3 @@
<template>
<h1>hello there</h1>
</template>