Webdev-Bench / tasks /c35 /repo /src /components /FeaturePanels.jsx
Roy-DOU's picture
Add files using upload-large-folder tool
d77bae9 verified
Raw History Blame Contribute Delete
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>
)
}