import { Box, Grid, Heading, HStack, Image, Stack, Text } from "@chakra-ui/react"; import { MapPin } from "lucide-react"; import type { CaseStudy } from "../../db/schema"; import { Section } from "./Section"; import { SectionHeading } from "./SectionHeading"; export function Cases({ items }: { items: CaseStudy[] }) { if (items.length === 0) return null; const [featured, ...rest] = items; return (
{/* 首案例 featured:雜誌式大圖排版 */} {featured.title} {featured.completedAt} {featured.location && ( {featured.location} )} {featured.title} {featured.description && ( {featured.description} )} {rest.length > 0 && ( {rest.map((item) => ( {item.title} {item.completedAt} {item.location && ( {item.location} )} {item.title} {item.description && ( {item.description} )} ))} )}
); }