File size: 4,010 Bytes
148f3c7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
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&nbsp;!
          </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>
  )
}