fix: storybook font rendering and shared fonts module #1

Merged
ilia merged 74 commits from feat/portfolio-setup into main 2026-05-18 18:45:22 +00:00
3 changed files with 11 additions and 12 deletions
Showing only changes of commit 4219a7b4e7 - Show all commits
@@ -1,3 +1,4 @@
import { notFound } from 'next/navigation';
import type { PageContentRecord } from '$shared/api'; import type { PageContentRecord } from '$shared/api';
import { getFirstRecord } from '$shared/api'; import { getFirstRecord } from '$shared/api';
@@ -11,7 +12,7 @@ export default async function BioSection() {
}); });
if (!data) { if (!data) {
return <p>Loading bio content...</p>; notFound();
} }
return ( return (
@@ -1,3 +1,4 @@
import { notFound } from 'next/navigation';
import type { PageContentRecord } from '$shared/api'; import type { PageContentRecord } from '$shared/api';
import { getFirstRecord } from '$shared/api'; import { getFirstRecord } from '$shared/api';
@@ -11,7 +12,7 @@ export default async function IntroSection() {
}); });
if (!data) { if (!data) {
return <p>Loading intro content...</p>; notFound();
} }
return ( return (
@@ -1,5 +1,7 @@
import { notFound } from 'next/navigation';
import type { SkillRecord } from '$shared/api'; import type { SkillRecord } from '$shared/api';
import { getCollection } from '$shared/api'; import { getCollection } from '$shared/api';
import { groupByKey } from '$shared/lib';
import { Badge } from '$shared/ui'; import { Badge } from '$shared/ui';
/** /**
@@ -11,16 +13,11 @@ export default async function SkillsSection() {
sort: 'category,order', sort: 'category,order',
}); });
const categories = data.items.reduce( if (!data.items.length) {
(acc, skill) => { notFound();
if (!acc[skill.category]) { }
acc[skill.category] = [];
} const categories = groupByKey(data.items, 'category');
acc[skill.category].push(skill);
return acc;
},
{} as Record<string, SkillRecord[]>,
);
return ( return (
<div className="space-y-12"> <div className="space-y-12">