Files
CV_Site_Nuxt/app/components/AppLogo.vue
T
Noel Sabia 1c3503fed0
PR Check / Security scan (Snyk) (pull_request) Skipped
PR Check / Lint + typecheck (pull_request) Successful in 1m6s
PR Check / Secret scan (gitleaks) (pull_request) Successful in 7s
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 1m11s
feat: pixel favicon and complete SEO metadata
- generate favicon.ico and favicon.svg from the header avatar; the sprite
  moves to app/utils/avatar.js so component and generators share one source
- register @nuxtjs/seo with site and Person schema.org data from
  site.config.mjs; canonical, robots, sitemap and llms.txt follow the routes
- title "Noel Sabia — <role>", summary_large_image, and no duplicate
  "| Noel Sabia" suffix from SEO Utils
- add a committed 1200x630 OG card generated by pnpm og-image; the dynamic
  OG renderer and skew protection stay off for the static deployment
- pin the Node version @nuxtjs/seo 6 requires and document the setup in the
  OKF bundle
2026-10-23 20:37:32 +02:00

65 lines
1.5 KiB
Vue

<script setup lang="ts">
import { AVATAR_PALETTE, AVATAR_SPRITE } from '~/utils/avatar'
const palette: Record<string, string> = AVATAR_PALETTE
const flat = AVATAR_SPRITE
.flatMap((row) => [...row])
.map((cell) => palette[cell] ?? 'transparent')
</script>
<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 transition-colors">
<span class="pixel-avatar" aria-hidden="true">
<span
v-for="(color, i) in flat"
:key="i"
class="pixel"
:style="{ backgroundColor: color }"
/>
</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]">Im using Arch btw</span>
</div>
</NuxtLink>
</template>
<style scoped>
.pixel-avatar {
display: grid;
grid-template-columns: repeat(32, 1px);
width: 32px;
height: 32px;
transform-origin: bottom center;
}
/* Breathing only while the logo link is hovered. */
.group:hover .pixel-avatar {
animation: breathe 3s ease-in-out infinite;
}
.pixel {
width: 1px;
height: 1px;
}
@keyframes breathe {
0%,
100% {
transform: scale(1);
}
50% {
transform: scale(1.06);
}
}
@media (prefers-reduced-motion: reduce) {
.group:hover .pixel-avatar {
animation: none;
}
}
</style>