All files / apps/portfolio/app/pages about.vue

100% Statements 7/7
100% Branches 0/0
100% Functions 0/0
100% Lines 7/7

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71    1x                     1x                           1x           1x 1x 1x                               3x                                      
<template>
    <PageHero :title="$t('about.title')" :mark="$t('about.titleMark')" :lead="$t('about.lead')">
        <p class="max-w-xl text-base text-muted">
            {{ $t("about.intro.start") }}
            <ULink :to="portal" class="underline underline-offset-4">
                {{ $t("about.developerView") }}
            </ULink>
            {{ $t("about.intro.middle") }}
            <ULink :to="SPOTIFY_POST" target="_blank" class="underline underline-offset-4">
                {{ $t("about.post") }}
            </ULink>
            {{ $t("about.intro.end") }}
        </p>
        <div class="flex flex-wrap gap-6">
            <ULink
                v-for="link in links"
                :key="link.to"
                :to="link.to"
                target="_blank"
                class="text-base text-highlighted underline decoration-primary underline-offset-4"
            >
                {{ link.label }} ↗
            </ULink>
        </div>
    </PageHero>
 
    <UContainer as="section" class="pb-16">
        <h2 class="pb-6 font-mono text-xs text-muted uppercase">{{ $t("about.story.label") }}</h2>
        <TermList :items="story" ordered wide />
    </UContainer>
</template>
 
<script setup lang="ts">
const LINKEDIN = "https://www.linkedin.com/in/xifre/";
const GITHUB = "https://github.com/xfontr";
const SPOTIFY_POST =
    "https://portal.spotify.com/blog/portal-by-spotify-cut-my-claude-code-token-usage-by-90";
const STORY = ["playground", "tooling", "workflows", "apps"] as const;
const STORY_LINKS = {
    playground: { "Nx boundaries": portalUrl("/graph") },
    tooling: {
        "decision records (ADRs)": portalUrl("/decisions"),
        "reports its own usage": portalUrl("/telemetry"),
    },
    workflows: { "workflow templates": "/agentic-workflows" },
    apps: { "Huella Legal": "/work/huella-legal" },
} as const satisfies Record<(typeof STORY)[number], Record<string, string>>;
 
const portal = portalUrl("/");
 
const { t } = useI18n();
useSeoMeta({ title: t("about.head"), description: t("about.lead") });
 
const {
    public: { repoUrl },
} = useRuntimeConfig();
 
const links = [
    { to: LINKEDIN, label: t("about.linkedin") },
    { to: GITHUB, label: t("about.github") },
    ...(repoUrl ? [{ to: repoUrl, label: t("about.repo") }] : []),
];
 
const story = STORY.map((id) => ({
    id,
    term: t(`about.story.items.${id}.term`),
    detail: t(`about.story.items.${id}.detail`),
    links: STORY_LINKS[id],
}));
</script>