Datasets:
Download tasks/c20/repo/src/components/Updates.jsx from Roy-DOU/Webdev-Bench: direct link, hf CLI and curl.
- Browser
- Download file 1.77 kB
-
https://huggingface.co/datasets/Roy-DOU/Webdev-Bench/resolve/main/tasks/c20/repo/src/components/Updates.jsx
- Command line
-
hf download hf://datasets/Roy-DOU/Webdev-Bench/tasks/c20/repo/src/components/Updates.jsx
-
curl -L -o Updates.jsx https://huggingface.co/datasets/Roy-DOU/Webdev-Bench/resolve/main/tasks/c20/repo/src/components/Updates.jsx
1.77 kB
| import upd1 from '../assets/upd1.jpg' | |
| import upd2 from '../assets/upd2.jpg' | |
| import upd3 from '../assets/upd3.jpg' | |
| import upd4 from '../assets/upd4.jpg' | |
| import upd5 from '../assets/upd5.jpg' | |
| import upd6 from '../assets/upd6.jpg' | |
| const UPDATES = [ | |
| { | |
| img: upd1, | |
| title: | |
| "Wij schreven 'solidariteit' op onze buik zodat jij dat nooit meer hoeft te doen!", | |
| date: '2 APRIL 2026', | |
| }, | |
| { | |
| img: upd2, | |
| title: | |
| '“The economy and morality of capitalism are destroying our people” – Letter from the frontline in Indonesia', | |
| date: '2 SEPTEMBER 2025', | |
| }, | |
| { | |
| img: upd3, | |
| title: 'Update · GIEI rapport over de politieke moord van Berta Cáceres', | |
| date: '22 JANUARI 2026', | |
| }, | |
| { | |
| img: upd4, | |
| title: 'Demonstreren is een mensenrecht!', | |
| date: '1 FEBRUARI 2025', | |
| }, | |
| { | |
| img: upd5, | |
| title: 'Denk ook buiten het (stem)hokje!', | |
| date: '17 NOVEMBER 2025', | |
| }, | |
| { | |
| img: upd6, | |
| title: 'Geef een actie cadeau!', | |
| date: '18 DECEMBER 2024', | |
| }, | |
| ] | |
| export default function Updates() { | |
| return ( | |
| <section className="updates" id="updates"> | |
| <span className="ghost-label pink updates-ghost" aria-hidden="true"> | |
| UPDATES | |
| </span> | |
| <h2 className="updates-heading">Updates</h2> | |
| <div className="updates-grid"> | |
| {UPDATES.map((u) => ( | |
| <a className="update-item" href="#updates" key={u.title}> | |
| <img src={u.img} alt="" /> | |
| <span className="update-text"> | |
| <span className="update-title">{u.title}</span> | |
| <span className="update-date">{u.date}</span> | |
| </span> | |
| </a> | |
| ))} | |
| </div> | |
| <a className="more-link" href="#updates"> | |
| Bekijk alle updates | |
| </a> | |
| </section> | |
| ) | |
| } | |