Datasets:
Download tasks/c12/repo/src/data/projects.js from Roy-DOU/Webdev-Bench: direct link, hf CLI and curl.
- Browser
- Download file 3.72 kB
-
https://huggingface.co/datasets/Roy-DOU/Webdev-Bench/resolve/main/tasks/c12/repo/src/data/projects.js
- Command line
-
hf download hf://datasets/Roy-DOU/Webdev-Bench/tasks/c12/repo/src/data/projects.js
-
curl -L -o projects.js https://huggingface.co/datasets/Roy-DOU/Webdev-Bench/resolve/main/tasks/c12/repo/src/data/projects.js
3.72 kB
| // Mock portfolio data extracted from the reference layout. | |
| // Cell metrics are in source-design pixels (column width 928.5) — | |
| // `h` drives the aspect ratio, `off` is an optional vertical stagger offset. | |
| // type: 'img' renders a cropped artwork, 'hatch' renders the striped placeholder. | |
| const img = (src, h, off = 0) => ({ type: 'img', src: `/images/${src}`, h, off }) | |
| const hatch = (h, off = 0) => ({ type: 'hatch', h, off }) | |
| export const CELL_W = 928.5 | |
| export const projects = [ | |
| { | |
| id: 'polestar', | |
| name: 'polestar', | |
| tags: ['concept'], | |
| year: '2024', | |
| rows: [ | |
| [hatch(700), img('s1-r1-c2.jpg', 1160), hatch(700), img('s1-r1-c4.jpg', 1160)], | |
| [img('s1-r2-c1.jpg', 932), img('s1-r2-c2.jpg', 932), hatch(704), hatch(932)], | |
| ], | |
| }, | |
| { | |
| id: 'veer', | |
| name: 'VEER', | |
| tags: ['ecommerce'], | |
| year: '2024', | |
| rows: [ | |
| [img('s2-r1-c1.jpg', 1160), hatch(700), hatch(700), hatch(1160)], | |
| [hatch(704), img('s2-r2-c2.jpg', 1164), img('s2-r2-c3.jpg', 704), img('s2-r2-c4.jpg', 932)], | |
| ], | |
| }, | |
| { | |
| id: 'natasha-denona', | |
| name: 'Natasha Denona', | |
| tags: ['Website'], | |
| year: '2024', | |
| rows: [ | |
| [img('s3-r1-c1.jpg', 700), hatch(700), hatch(1160), hatch(700)], | |
| [hatch(1164), img('s3-r2-c2.jpg', 1048, 112), hatch(1164), img('s3-r2-c4.jpg', 704)], | |
| ], | |
| }, | |
| { | |
| id: 'audo', | |
| name: 'Audo', | |
| tags: ['ecommerce'], | |
| year: '2024', | |
| rows: [ | |
| [img('s4-r1-c1.jpg', 1156), hatch(696), img('s4-r1-c3.jpg', 1156), hatch(696)], | |
| [hatch(704), hatch(932), img('s4-r2-c3.jpg', 704), hatch(704)], | |
| ], | |
| }, | |
| { | |
| id: 'omega', | |
| name: 'Omega', | |
| tags: ['interactive', 'cgi'], | |
| year: '2024', | |
| rows: [ | |
| [img('s5-r1-c1.jpg', 1156), hatch(924), img('s5-r1-c3.jpg', 1156), img('s5-r1-c4.jpg', 696)], | |
| [hatch(1164), img('s5-r2-c2.jpg', 704), hatch(1164), hatch(704)], | |
| ], | |
| }, | |
| { | |
| id: 'magic-leap-2', | |
| name: 'Magic Leap 2', | |
| tags: ['interactive'], | |
| year: '2024', | |
| rows: [ | |
| [img('s6-r1-c1.jpg', 696), hatch(1156), img('s6-r1-c3.jpg', 696), hatch(696)], | |
| [img('s6-r2-c1.jpg', 704), img('s6-r2-c2.jpg', 1164), hatch(704), img('s6-r2-c4.jpg', 704)], | |
| ], | |
| }, | |
| { | |
| id: 'bentley-motors', | |
| name: 'Bentley Motors', | |
| tags: ['interactive', 'cgi'], | |
| year: '2024', | |
| rows: [ | |
| [img('s7-r1-c1.jpg', 700), img('s7-r1-c2.jpg', 1152), img('s7-r1-c3.jpg', 700), hatch(700)], | |
| [img('s7-r2-c1.jpg', 704), img('s7-r2-c2.jpg', 1164), hatch(704), img('s7-r2-c4.jpg', 704)], | |
| ], | |
| }, | |
| { | |
| id: 'david-beckham-eyewear', | |
| name: 'David Beckham Eyewear', | |
| tags: ['digital', 'content'], | |
| year: '2024', | |
| rows: [ | |
| [hatch(1160), img('s8-r1-c2.jpg', 700), img('s8-r1-c3.jpg', 928), img('s8-r1-c4.jpg', 1156)], | |
| [img('s8-r2-c1.jpg', 928), hatch(1164), img('s8-r2-c3.jpg', 1160), img('s8-r2-c4.jpg', 704)], | |
| ], | |
| }, | |
| { | |
| id: 'lucid', | |
| name: 'Lucid', | |
| tags: ['interactive', 'motion'], | |
| year: '2024', | |
| rows: [ | |
| [img('s9-r1-c1.jpg', 700), hatch(700), img('s9-r1-c3.jpg', 1160), hatch(700)], | |
| [hatch(704), img('s9-r2-c2.jpg', 1164), hatch(704), img('s9-r2-c4.jpg', 1164)], | |
| ], | |
| }, | |
| ] | |
| export const navLinks = [ | |
| { label: 'Recent projects', href: '#work' }, | |
| { label: 'Work archive', href: '#work' }, | |
| { label: 'Photography', href: '#work' }, | |
| { label: 'About', href: '#contact' }, | |
| { label: 'Contact', href: '#contact' }, | |
| ] | |
| export const socialLinks = [ | |
| { label: 'Instagram', href: 'https://www.instagram.com', external: true }, | |
| { label: 'Threads', href: 'https://www.threads.net', external: true }, | |
| { label: 'LinkedIn', href: 'https://www.linkedin.com', external: true }, | |
| { label: 'E-mail', href: 'mailto:hello@andrewaden.com' }, | |
| ] | |