import { useState } from 'react' const noop = (event) => event.preventDefault() function ViewGlyph({ kind }) { if (kind === 'two') { return ( ) } if (kind === 'four') { return ( ) } return ( ) } const VIEWS = [ { cols: 2, kind: 'two', label: '2 columns' }, { cols: 3, kind: 'four', label: '3 columns' }, { cols: 4, kind: 'nine', label: '4 columns' }, ] function Cell({ cell, projectName, index }) { const style = { aspectRatio: `928.5 / ${cell.h}` } if (cell.off) style.marginTop = `${cell.off / 2}px` return ( {cell.type === 'img' ? ( {`${projectName} ) : ( ) } export default function ProjectSection({ project }) { const [cols, setCols] = useState(4) const [pressedCols, setPressedCols] = useState(4) const cells = project.rows.flat() return (

{project.name} , {project.tags.join(', ')}, {project.year}

{VIEWS.map((view) => ( ))}
{cells.map((cell, i) => ( ))}
) }