diff --git a/showcase/app/page.tsx b/showcase/app/page.tsx index 9757a932..cbfa5258 100644 --- a/showcase/app/page.tsx +++ b/showcase/app/page.tsx @@ -1,6 +1,6 @@ import Link from "next/link"; import { groupedTutorials, tutorials } from "@/content/tutorials"; -import { LANGUAGE_LABEL } from "@/lib/types"; +import { languageTags } from "@/lib/types"; import { repoUrl } from "@/lib/repo"; import HeroHandshake from "@/components/HeroHandshake"; import { ArrowRight, GitHub, Spark } from "@/components/icons"; @@ -85,7 +85,11 @@ export default function HomePage() {
{t.tagline}
- {LANGUAGE_LABEL[t.language]} + {languageTags(t.language).map((tag) => ( + + {tag} + + ))} {t.tier} @@ -46,7 +48,11 @@ export default async function TutorialPage({ params }: { params: Promise<{ slug:
{PROTOCOL_LABEL[t.protocol]} - {LANGUAGE_LABEL[t.language]} + {languageTags(t.language).map((tag) => ( + + {tag} + + ))} {t.tier === "recap" ? "recap · watch it run" @@ -168,6 +174,34 @@ export default async function TutorialPage({ params }: { params: Promise<{ slug: )} + + {/* 5 — Catalog video (discover tutorials only) */} + {discoverVideo ? ( +
+
+ 5 Catalog video +
+
+ +
+ {discoverVideo.caption} · {discoverVideo.duration} +
+
+
+ ) : null}
); diff --git a/showcase/components/AppShell.tsx b/showcase/components/AppShell.tsx index 4a996e17..5257aafa 100644 --- a/showcase/components/AppShell.tsx +++ b/showcase/components/AppShell.tsx @@ -4,6 +4,7 @@ import { useEffect, useState } from "react"; import Link from "next/link"; import { usePathname } from "next/navigation"; import type { Language, Tier, Protocol } from "@/lib/types"; +import { languageTags } from "@/lib/types"; import { Menu, Chevron, @@ -107,7 +108,7 @@ export default function AppShell({