Datasets:
Download tasks/c14/repo/src/components/StudioSection.jsx from Roy-DOU/Webdev-Bench: direct link, hf CLI and curl.
- Browser
- Download file 4.01 kB
-
https://huggingface.co/datasets/Roy-DOU/Webdev-Bench/resolve/main/tasks/c14/repo/src/components/StudioSection.jsx
- Command line
-
hf download hf://datasets/Roy-DOU/Webdev-Bench/tasks/c14/repo/src/components/StudioSection.jsx
-
curl -L -o StudioSection.jsx https://huggingface.co/datasets/Roy-DOU/Webdev-Bench/resolve/main/tasks/c14/repo/src/components/StudioSection.jsx
4.01 kB
| import { useState } from 'react' | |
| const SERVICES = [ | |
| { | |
| icon: '/images/icon-private.png', | |
| title: 'Des bureaux fermés privatifs', | |
| body: "Bénéficiez de bureaux privatifs, meublés et décorés avec goût. Mais n'oubliez pas d'y apporter votre touche personnelle !", | |
| }, | |
| { | |
| icon: '/images/icon-open.png', | |
| title: 'Des espaces de travail ouverts', | |
| body: 'Pour les indépendants qui aiment travailler en collectivité, prenez possession de nos bureaux dédiés en open space.', | |
| }, | |
| { | |
| icon: '/images/icon-life.png', | |
| title: 'Des lieux de vie et de partage', | |
| body: 'Profitez de nos salons, cuisines, terrasse et de tous nos espaces communs pour vivre, partager, prendre du temps pour vous.', | |
| }, | |
| ] | |
| const TESTIMONIALS = [ | |
| { | |
| img: '/images/testimonial-xavier.jpg', | |
| alt: 'Xavier Leboulanger souriant devant le néon « le studio »', | |
| quote: | |
| "« Moi quand je viens au Studio, j'ai véritablement l'impression d'être chez moi ! C'est une extension de mon appart, mais avec des gens »", | |
| author: 'Xavier Leboulanger', | |
| role: 'Consultant en communication', | |
| reversed: false, | |
| }, | |
| { | |
| img: '/images/testimonial-julien.jpg', | |
| alt: "Julien Hesry souriant sur la terrasse du Studio", | |
| quote: | |
| "« C'était une question de feeling ! Il y a un effet Whaou quand tu viens ici, le lieu est très agréable et hyper cosy »", | |
| author: 'Julien Hesry', | |
| role: "Ingénieur d'Affaires", | |
| reversed: true, | |
| }, | |
| ] | |
| function VideoCard({ img, alt }) { | |
| const [playing, setPlaying] = useState(false) | |
| return ( | |
| <div className={`video-card${playing ? ' is-playing' : ''}`}> | |
| <img src={img} alt={alt} /> | |
| <button | |
| type="button" | |
| className="play-btn" | |
| aria-pressed={playing} | |
| aria-label={playing ? 'Mettre la vidéo en pause' : 'Lire la vidéo'} | |
| onClick={() => setPlaying((v) => !v)} | |
| > | |
| {playing ? ( | |
| <svg width="22" height="26" viewBox="0 0 22 26" aria-hidden="true"> | |
| <rect x="2" y="2" width="6" height="22" fill="currentColor" rx="1" /> | |
| <rect x="14" y="2" width="6" height="22" fill="currentColor" rx="1" /> | |
| </svg> | |
| ) : ( | |
| <svg width="24" height="28" viewBox="0 0 24 28" aria-hidden="true"> | |
| <path d="M2 1.5v25L23 14 2 1.5Z" fill="currentColor" /> | |
| </svg> | |
| )} | |
| </button> | |
| </div> | |
| ) | |
| } | |
| export default function StudioSection() { | |
| return ( | |
| <section className="studio-section"> | |
| <div className="studio-top"> | |
| <div className="studio-intro"> | |
| <h2 className="display-heading light"> | |
| <span className="display-kicker">Votre</span> | |
| <span className="display-main">Studio</span> | |
| </h2> | |
| <p className="studio-lead"> | |
| Que vous soyez une start-up en développement ou indépendant(e) en freelance, | |
| nous avons le bureau qu'il vous faut ! | |
| </p> | |
| </div> | |
| <div className="service-row"> | |
| {SERVICES.map((s) => ( | |
| <article className="service-card" key={s.title}> | |
| <div className="service-icon"> | |
| <img src={s.icon} alt="" /> | |
| </div> | |
| <h3 className="service-title">{s.title}</h3> | |
| <p className="service-body">{s.body}</p> | |
| <span className="service-divider" /> | |
| </article> | |
| ))} | |
| </div> | |
| </div> | |
| <div className="testimonials"> | |
| {TESTIMONIALS.map((t) => ( | |
| <figure className={`testimonial${t.reversed ? ' reversed' : ''}`} key={t.author}> | |
| <VideoCard img={t.img} alt={t.alt} /> | |
| <figcaption className="testimonial-content"> | |
| <blockquote className="testimonial-quote">{t.quote}</blockquote> | |
| <p className="testimonial-author">{t.author}</p> | |
| <p className="testimonial-role">{t.role}</p> | |
| </figcaption> | |
| </figure> | |
| ))} | |
| </div> | |
| </section> | |
| ) | |
| } | |