Datasets:
Download tasks/c35/repo/src/components/FeaturePanels.jsx from Roy-DOU/Webdev-Bench: direct link, hf CLI and curl.
- Browser
- Download file 1.46 kB
-
https://huggingface.co/datasets/Roy-DOU/Webdev-Bench/resolve/main/tasks/c35/repo/src/components/FeaturePanels.jsx
- Command line
-
hf download hf://datasets/Roy-DOU/Webdev-Bench/tasks/c35/repo/src/components/FeaturePanels.jsx
-
curl -L -o FeaturePanels.jsx https://huggingface.co/datasets/Roy-DOU/Webdev-Bench/resolve/main/tasks/c35/repo/src/components/FeaturePanels.jsx
1.46 kB
| import phoneHero from '../assets/phone-hero.png' | |
| import BankRow from './BankRow.jsx' | |
| const PANELS = [ | |
| { | |
| id: 'pink', | |
| className: 'panel-pink', | |
| title: ['SEND MONEY', 'INSTANTLY', 'VIA IMAGE'], | |
| }, | |
| { | |
| id: 'yellow', | |
| className: 'panel-yellow', | |
| title: ['BUY AIRTIME', 'AND DATA', 'SUPER FAST'], | |
| }, | |
| { | |
| id: 'orange', | |
| className: 'panel-orange', | |
| title: ['PAY', 'TV SUBSCRIPTION', 'BILLS VIA CHAT'], | |
| stitchBefore: true, | |
| }, | |
| { | |
| id: 'maroon', | |
| className: 'panel-maroon', | |
| title: ['SCHEDULE', 'PAYMENTS', 'DAILY TO', 'ANYONE'], | |
| stitchBefore: true, | |
| }, | |
| ] | |
| export default function FeaturePanels() { | |
| return ( | |
| <section className="feature-panels" id="features"> | |
| {PANELS.map((p) => ( | |
| <div key={p.id} className={`feature-block ${p.id}`}> | |
| {p.stitchBefore && <div className="stitch-row" aria-hidden="true" />} | |
| <article className={`panel ${p.className}`}> | |
| <div className="panel-copy"> | |
| <h2 className="panel-title"> | |
| {p.title.map((line) => ( | |
| <span key={line}>{line}</span> | |
| ))} | |
| </h2> | |
| <p className="banks-label">WORKS WITH YOUR FAVOURITE BANKS</p> | |
| <BankRow /> | |
| </div> | |
| </article> | |
| </div> | |
| ))} | |
| <img className="hero-phone" src={phoneHero} alt="WhatsApp chat with Owo extracting bank details from an image" /> | |
| </section> | |
| ) | |
| } | |