import secondselfShot from "@/assets/projects/secondself.webp"; import { BentoGrid, type BentoItem } from "@/components/bento/bento-grid"; import { ArtifactsCard } from "@/components/cards/artifacts"; import { EmojiCard } from "@/components/cards/emoji"; import { FinOpsCard } from "@/components/cards/finops"; import { GlobeCard } from "@/components/cards/globe"; import { HeroCard } from "@/components/cards/hero"; import { MiniCard } from "@/components/cards/mini-card"; import { PackBookCard } from "@/components/cards/packbook"; import { PhotoDeck } from "@/components/cards/photo-deck"; import { ProjectCard } from "@/components/cards/project"; import { SkyCard } from "@/components/cards/sky"; import { TechSphere } from "@/components/cards/tech-sphere"; import { WritingCard } from "@/components/cards/writing"; import { projects } from "@/config/site"; import { getHomeData, getLatestPosts } from "@/lib/data"; // Static, refreshed hourly: Firebase URLs and the latest posts are baked in. export const revalidate = 3600; export default async function Page() { const [home, posts] = await Promise.all([getHomeData(), getLatestPosts()]); // Order matters: cards pack first-fit in this order. Sizes are columns × rows // on phones (2 columns, below the hero's header row), wide phones (2), small // tablets (2), tablets (3), and desktops (4). // On tablets: // [hero ][sky ] // [hero ][globe] // [finops ] // [artifacts ] // [secondself][pack ] // [photos ][pack ] // [photos ][web ] // [chatbot ][web ] // [tech][mini][emoji] // [paper][writing ] // On desktop: // [hero ][finops ] // [hero ][artifacts ] // [sky][globe][secondself] // [pack][photos ][web] // [pack][photos ][web] // [chatbot ][tech][mini] // [emoji][paper][writing ] const items: BentoItem[] = [ { id: "hero", tags: ["about"], label: "About Eric", size: [ [2, 1], [2, 2], [2, 2], [2, 2], [2, 2], ], still: true, // Below 768px a full-width header row as tall as its content (the first // three sizes go unused). header: true, content: , }, { id: "finops", tags: ["work"], label: "AWS FinOps Agent", size: [ [2, 2], [2, 2], [2, 1], [3, 1], [2, 1], ], content: , }, { id: "artifacts", tags: ["work"], label: "Amazon Q artifacts", size: [ [2, 2], [2, 2], [2, 1], [3, 1], [2, 1], ], content: , }, { id: "sky", tags: ["about"], label: "Seattle sky and theme switch", size: [ [1, 1], [1, 1], [1, 1], [1, 1], [1, 1], ], content: , }, { id: "globe", tags: ["about"], label: "Purdue, UCLA, Seattle", size: [ [1, 1], [1, 1], [1, 1], [1, 1], [1, 1], ], content: , }, { id: "secondself", tags: ["work"], label: projects.secondself.name, size: [ [2, 1], [2, 1], [2, 1], [2, 1], [2, 1], ], content: ( ), }, { id: "packbook", tags: ["work"], label: "PackBook", size: [ [2, 2], [2, 2], [1, 2], [1, 2], [1, 2], ], content: , }, { id: "photos", tags: ["about"], label: "Photos", size: [ [2, 2], [2, 2], [2, 2], [2, 2], [2, 2], ], content: , }, { id: "webagent", tags: ["work"], label: projects.webagent.name, size: [ [1, 2], [1, 2], [1, 2], [1, 2], [1, 2], ], content: ( ), }, { id: "chatbot", tags: ["work"], label: projects.chatbot.name, size: [ [2, 1], [2, 1], [2, 1], [2, 1], [2, 1], ], content: ( ), }, { id: "tech", tags: ["about", "work"], label: "Toolbox", size: [ [1, 1], [1, 1], [1, 1], [1, 1], [1, 1], ], content: , }, { id: "mini", tags: ["about"], label: "Mini Cooper", size: [ [1, 1], [1, 1], [1, 1], [1, 1], [1, 1], ], content: , }, { id: "emoji", tags: ["work"], label: "Text to emoji", size: [ [1, 1], [1, 1], [1, 1], [1, 1], [1, 1], ], content: , }, { id: "paper", tags: ["work"], label: projects.paper.name, size: [ [1, 1], [1, 1], [1, 1], [1, 1], [1, 1], ], content: ( ), }, { id: "writing", tags: ["about"], label: "Latest writing", size: [ [2, 2], [2, 2], [2, 1], [2, 1], [2, 1], ], content: , }, ]; return ; }