Build log

Layoutcomponents/Projects.tsx

Order at a glance

Equal tiles say nothing about which work matters. Asymmetry sets the reading order.

Click any card

Remitly
UoP
MSCI
MS

Each card shares a layoutId with its expanded view: framer-motion morphs between states.

components/Projects.tsx
<ul className="grid grid-cols-12 gap-4"> {projects.map((project, i) => { const colClass = [ "col-span-12 sm:col-span-7", "col-span-12 sm:col-span-5", "col-span-12 sm:col-span-5", "col-span-12 sm:col-span-7", ][i] return ( <motion.li key={project.id} className={colClass} initial={{ opacity: 0, y: 32 }} whileInView={{ opacity: 1, y: 0 }} viewport={{ once: true }} > <motion.div layoutId={project.id} onClick={() => setSelectedId(project.id)} className="relative rounded-3xl overflow-hidden cursor-pointer border" whileHover={{ scale: 1.025 }} whileTap={{ scale: 0.975 }} /> </motion.li> ) })}</ul> <AnimatePresence> {selected && ( <motion.div layoutId={selected.id} className="fixed inset-0 z-50 flex items-center justify-center p-4"> {/* expanded project detail */} </motion.div> )}</AnimatePresence>
Asked
Build the projects section with a bento feel: different card sizes, and a click that expands a card into a full overlay with the project details.
Came back
Equal tiles were the obvious first answer and the wrong one, because four identical cards say nothing about which work matters. I asked for a real 12-column grid with alternating 7/5 splits so the composition itself carries a reading order. For the expand, the card and its overlay share one layout identity, so the element morphs between states instead of a modal appearing over a card. Backdrop blurs on open; Escape and click-outside both close.
Kept
An asymmetric grid that states hierarchy before the copy does, and an expand that is one element in two states rather than two elements pretending.