Yong Tang 14ddef5c05
feat(gallery): add Style Detail Modal with phone UI controls preview (#155)
Click any StyleCard to open a full-screen modal showing the style applied
to 9 interactive phone UI controls (buttons, inputs, toggles, checkboxes,
radios, cards, badges, slider, nav bar) inside an iPhone mockup frame.

Co-authored-by: yongtang <jlinux@msn.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-08-01 08:29:30 +07:00

17 lines
435 B
TypeScript

import fs from "fs";
import path from "path";
import { parseStylesCSV } from "@/lib/parseStyles";
import { GalleryGrid } from "@/components/GalleryGrid";
export default function Home() {
const csvPath = path.join(process.cwd(), "data", "styles.csv");
const csvContent = fs.readFileSync(csvPath, "utf-8");
const styles = parseStylesCSV(csvContent);
return (
<main>
<GalleryGrid styles={styles} />
</main>
);
}