Merge remote-tracking branch 'origin/main' into feat/language_support
PR Check / Security scan (Snyk) (pull_request) Skipped
PR Check / Lint + typecheck (pull_request) Successful in 1m8s
PR Check / Secret scan (gitleaks) (pull_request) Successful in 6s
PR Check / Dependency audit (pull_request) Successful in 9s
PR Check / Dockerfile lint (droast) (pull_request) Successful in 5s
PR Check / AI code review (opencode) (pull_request) Successful in 39s
PR Check / Security scan (Snyk) (pull_request) Skipped
PR Check / Lint + typecheck (pull_request) Successful in 1m8s
PR Check / Secret scan (gitleaks) (pull_request) Successful in 6s
PR Check / Dependency audit (pull_request) Successful in 9s
PR Check / Dockerfile lint (droast) (pull_request) Successful in 5s
PR Check / AI code review (opencode) (pull_request) Successful in 39s
Resolved: nuxt.config modules now carry @nuxt/icon and @nuxtjs/seo alongside @nuxtjs/i18n; package.json keeps both dependency sets; pnpm-lock.yaml regenerated. Also set i18n.baseUrl from site.config.mjs so sitemap alternates and future hreflang links are absolute.
This commit is contained in:
commit
078a49d14e
26 files changed
+2007
-146
No files matched your search
@@ -0,0 +1,31 @@
|
||||
<template>
|
||||
<nav
|
||||
aria-label="Mobile"
|
||||
class="fixed bottom-0 left-0 w-full z-50 flex md:hidden bg-surface-container-low/90 backdrop-blur-xl shadow-[0_-1px_12px_rgba(0,0,0,0.3)]"
|
||||
>
|
||||
<div class="w-full h-16 px-space-xs flex items-center justify-around">
|
||||
<NuxtLink
|
||||
to="/"
|
||||
aria-current="page"
|
||||
class="w-16 h-12 flex flex-col items-center justify-center text-primary font-semibold transition-colors"
|
||||
>
|
||||
<Icon name="material-symbols:badge" aria-hidden="true" class="text-[22px]" />
|
||||
<span class="font-label-mono text-label-mono">Overview</span>
|
||||
</NuxtLink>
|
||||
<a
|
||||
href="#"
|
||||
class="w-16 h-12 flex flex-col items-center justify-center text-on-surface-variant hover:text-primary transition-colors"
|
||||
>
|
||||
<Icon name="material-symbols:timeline" aria-hidden="true" class="text-[22px]" />
|
||||
<span class="font-label-mono text-label-mono">Life Map</span>
|
||||
</a>
|
||||
<a
|
||||
href="#"
|
||||
class="w-16 h-12 flex flex-col items-center justify-center text-on-surface-variant hover:text-primary transition-colors"
|
||||
>
|
||||
<Icon name="material-symbols:code" aria-hidden="true" class="text-[22px]" />
|
||||
<span class="font-label-mono text-label-mono">Dev View</span>
|
||||
</a>
|
||||
</div>
|
||||
</nav>
|
||||
</template>
|
||||
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<footer class="w-full bg-surface-container-lowest shadow-[0_-1px_12px_rgba(0,0,0,0.3)] py-6">
|
||||
<footer class="hidden md:block 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]" />
|
||||
|
||||
@@ -1,58 +1,11 @@
|
||||
<script setup lang="ts">
|
||||
// 32x32 sprite: '.' = transparent, letters = palette colors.
|
||||
// Head spans half the width (narrow), hoodie fills the bottom as a bust.
|
||||
// Rows: hair (0-3), hairline/forehead (4-5), glasses (6-8), face (9-12),
|
||||
// neck (13), shoulders/chest (14-31, drawstrings on 18).
|
||||
const PALETTE: Record<string, string> = {
|
||||
H: '#4a2f1d', // hair
|
||||
S: '#f2cfa5', // skin
|
||||
F: '#101418', // glasses frame
|
||||
L: '#cfe3ff', // lens glass
|
||||
P: '#2e3a45', // pupils
|
||||
N: '#e0b58f', // nose shade
|
||||
M: '#c26e57', // smile
|
||||
h: '#12151a', // hoodie
|
||||
w: '#e8e8e8', // drawstrings
|
||||
}
|
||||
import { AVATAR_PALETTE, AVATAR_SPRITE } from '~/utils/avatar'
|
||||
|
||||
const SPRITE = [
|
||||
'..........HHHHHHHHHHHH..........',
|
||||
'.........HHHHHHHHHHHHHH.........',
|
||||
'........HHHHHHHHHHHHHHHH........',
|
||||
'........HHHHHHHHHHHHHHHH........',
|
||||
'........HHSSSSSSSSSSSSHH........',
|
||||
'........HSSSSSSSSSSSSSSH........',
|
||||
'........SFFFFFFFFFFFFFFS........',
|
||||
'........SFLPPLLFFLLPPLFS........',
|
||||
'........SFLLLLLFFLLLLLFS........',
|
||||
'........SSSSSSSSSSSSSSSS........',
|
||||
'........SSSSSSSNNSSSSSSS........',
|
||||
'........SSSSSSMMMMSSSSSS........',
|
||||
'..........SSSSSSSSSSSS..........',
|
||||
'.............SSSSSS.............',
|
||||
'..........hhhhhhhhhhhh..........',
|
||||
'.........hhhhhhhhhhhhhh.........',
|
||||
'........hhhhhhhhhhhhhhhh........',
|
||||
'.......hhhhhhhhhhhhhhhhhh.......',
|
||||
'......hhhhhhhhwhhwhhhhhhhh......',
|
||||
'....hhhhhhhhhhhhhhhhhhhhhhhh....',
|
||||
'...hhhhhhhhhhhhhhhhhhhhhhhhhh...',
|
||||
'..hhhhhhhhhhhhhhhhhhhhhhhhhhhh..',
|
||||
'.hhhhhhhhhhhhhhhhhhhhhhhhhhhhhh.',
|
||||
'hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh',
|
||||
'hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh',
|
||||
'hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh',
|
||||
'hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh',
|
||||
'hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh',
|
||||
'hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh',
|
||||
'hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh',
|
||||
'hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh',
|
||||
'hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh',
|
||||
]
|
||||
const palette: Record<string, string> = AVATAR_PALETTE
|
||||
|
||||
const flat = SPRITE
|
||||
const flat = AVATAR_SPRITE
|
||||
.flatMap((row) => [...row])
|
||||
.map((cell) => PALETTE[cell] ?? 'transparent')
|
||||
.map((cell) => palette[cell] ?? 'transparent')
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
||||
Reference in new issue
Block a user