feat(ui): homepage shell with tailwind theme, self-hosted fonts, layout and header components
This commit is contained in:
1 parent
dcb178a71a
commit
8d53daa4a6
18 files changed
+1252
-5
No files matched your search
+3
-4
@@ -1,6 +1,5 @@
|
||||
<template>
|
||||
<div>
|
||||
<NuxtRouteAnnouncer />
|
||||
<NuxtWelcome />
|
||||
</div>
|
||||
<NuxtLayout>
|
||||
<NuxtPage />
|
||||
</NuxtLayout>
|
||||
</template>
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
@@ -0,0 +1,3 @@
|
||||
<template>
|
||||
<h1>hello there</h1>
|
||||
</template>
|
||||
+4
-1
@@ -2,5 +2,8 @@
|
||||
export default defineNuxtConfig({
|
||||
compatibilityDate: '2025-07-15',
|
||||
devtools: { enabled: true },
|
||||
modules: ['@nuxt/eslint']
|
||||
modules: ['@nuxt/eslint', '@nuxtjs/tailwindcss'],
|
||||
tailwindcss: {
|
||||
cssPath: '~/assets/css/main.css'
|
||||
}
|
||||
})
|
||||
@@ -14,6 +14,7 @@
|
||||
"typecheck": "nuxt typecheck"
|
||||
},
|
||||
"dependencies": {
|
||||
"@nuxtjs/tailwindcss": "6.14.0",
|
||||
"nuxt": "^4.6.2",
|
||||
"vue": "^3.5.43",
|
||||
"vue-router": "^5.4.0"
|
||||
|
||||
Generated
+993
File diff suppressed because it is too large.
Load diff
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,103 @@
|
||||
/** @type {import('tailwindcss').Config} */
|
||||
export default {
|
||||
darkMode: 'class',
|
||||
theme: {
|
||||
extend: {
|
||||
colors: {
|
||||
'on-tertiary-fixed-variant': '#653e00',
|
||||
'inverse-surface': '#d3e4ff',
|
||||
'tertiary-fixed-dim': '#ffb95f',
|
||||
background: '#031428',
|
||||
'secondary-container': '#00b954',
|
||||
'primary-container': '#1a3d64',
|
||||
'primary-fixed': '#d3e3ff',
|
||||
primary: '#a9c9f7',
|
||||
'surface-container-low': '#0b1c30',
|
||||
'surface-bright': '#2a3a4f',
|
||||
'on-primary': '#0a3158',
|
||||
'on-primary-fixed': '#001c38',
|
||||
'secondary-fixed-dim': '#4ae176',
|
||||
'inverse-on-surface': '#213146',
|
||||
tertiary: '#ffb95f',
|
||||
'inverse-primary': '#406089',
|
||||
'secondary-fixed': '#6bff8f',
|
||||
surface: '#031428',
|
||||
'surface-container-high': '#1b2b3f',
|
||||
'surface-variant': '#26364b',
|
||||
'surface-container-lowest': '#000f22',
|
||||
'on-tertiary-fixed': '#2a1700',
|
||||
'primary-fixed-dim': '#a9c9f7',
|
||||
'on-tertiary-container': '#e79400',
|
||||
'outline-variant': '#43474e',
|
||||
'on-surface': '#d3e4ff',
|
||||
'on-background': '#d3e4ff',
|
||||
'tertiary-fixed': '#ffddb8',
|
||||
'on-secondary': '#003915',
|
||||
'surface-dim': '#031428',
|
||||
'on-secondary-fixed': '#002109',
|
||||
'on-primary-container': '#89a8d5',
|
||||
'on-secondary-fixed-variant': '#005321',
|
||||
outline: '#8d9199',
|
||||
error: '#ffb4ab',
|
||||
'tertiary-container': '#563400',
|
||||
'surface-container-highest': '#26364b',
|
||||
'on-surface-variant': '#c3c6cf',
|
||||
'on-error': '#690005',
|
||||
'on-tertiary': '#472a00',
|
||||
'error-container': '#93000a',
|
||||
'on-error-container': '#ffdad6',
|
||||
'on-primary-fixed-variant': '#274870',
|
||||
'surface-container': '#102034',
|
||||
'on-secondary-container': '#004119',
|
||||
secondary: '#4ae176',
|
||||
'surface-tint': '#a9c9f7',
|
||||
},
|
||||
borderRadius: {
|
||||
DEFAULT: '0.125rem',
|
||||
lg: '0.25rem',
|
||||
xl: '0.5rem',
|
||||
full: '0.75rem',
|
||||
},
|
||||
spacing: {
|
||||
'space-lg': '1.5rem',
|
||||
'gutter-mobile': '1rem',
|
||||
'space-xl': '2.5rem',
|
||||
'margin-mobile': '1.25rem',
|
||||
'space-2xl': '4rem',
|
||||
'space-xs': '0.25rem',
|
||||
'space-sm': '0.5rem',
|
||||
'space-md': '1rem',
|
||||
gutter: '1.5rem',
|
||||
margin: '4rem',
|
||||
},
|
||||
fontFamily: {
|
||||
'status-badge': ['JetBrains Mono'],
|
||||
'mono-code': ['JetBrains Mono'],
|
||||
'body-lg': ['Inter'],
|
||||
'headline-lg': ['Newsreader'],
|
||||
'body-sm': ['Inter'],
|
||||
'display-mobile': ['Newsreader'],
|
||||
'body-md': ['Inter'],
|
||||
'headline-md': ['Newsreader'],
|
||||
'label-mono': ['JetBrains Mono'],
|
||||
'headline-sm': ['Inter'],
|
||||
display: ['Newsreader'],
|
||||
'headline-lg-mobile': ['Newsreader'],
|
||||
},
|
||||
fontSize: {
|
||||
'status-badge': ['0.6875rem', { lineHeight: '0.875rem', letterSpacing: '0.05em', fontWeight: '600' }],
|
||||
'mono-code': ['0.875rem', { lineHeight: '1.375rem', fontWeight: '400' }],
|
||||
'body-lg': ['1.125rem', { lineHeight: '1.75rem', fontWeight: '400' }],
|
||||
'headline-lg': ['2.5rem', { lineHeight: '3rem', letterSpacing: '-0.015em', fontWeight: '400' }],
|
||||
'body-sm': ['0.8125rem', { lineHeight: '1.25rem', fontWeight: '400' }],
|
||||
'display-mobile': ['2.25rem', { lineHeight: '2.75rem', letterSpacing: '-0.015em', fontWeight: '400' }],
|
||||
'body-md': ['0.9375rem', { lineHeight: '1.5rem', fontWeight: '400' }],
|
||||
'headline-md': ['1.75rem', { lineHeight: '2.25rem', letterSpacing: '-0.01em', fontWeight: '400' }],
|
||||
'label-mono': ['0.75rem', { lineHeight: '1rem', letterSpacing: '0.04em', fontWeight: '500' }],
|
||||
'headline-sm': ['1.125rem', { lineHeight: '1.5rem', letterSpacing: '-0.005em', fontWeight: '600' }],
|
||||
display: ['3.5rem', { lineHeight: '4rem', letterSpacing: '-0.02em', fontWeight: '400' }],
|
||||
'headline-lg-mobile': ['1.75rem', { lineHeight: '2.25rem', letterSpacing: '-0.01em', fontWeight: '400' }],
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
Reference in new issue
Block a user