-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHero.jsx
More file actions
25 lines (25 loc) · 1.06 KB
/
Copy pathHero.jsx
File metadata and controls
25 lines (25 loc) · 1.06 KB
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
function Hero({ lang, onSchedule }) {
const t = T[lang];
const [hl, italic] = t.heroHeadline;
return (
<section id="top" className="hero">
<MetaStrip left={t.heroMetaLeft} right={[
{ value: <span><span style={{display:"inline-block",width:6,height:6,borderRadius:"50%",background:"#2C7A4B",marginRight:6,verticalAlign:"middle"}}></span><b>{t.heroMetaRight[0].label} </b>{t.heroMetaRight[0].value}</span> },
{ value: t.heroMetaRight[1].value },
]} />
<div>
<h1 className="hero-headline fade-up">
{hl}<em>{italic}</em>
</h1>
<p className="hero-sub fade-up fade-up-1">{t.heroSub}</p>
<div className="hero-cta-row fade-up fade-up-2">
<button className="btn btn-primary" onClick={onSchedule}>
{t.heroCta} <span className="btn-arrow">→</span>
</button>
<a className="btn btn-ghost" href="mailto:hello@sandstre.am">{t.heroEmail}</a>
</div>
</div>
<MetaStrip left={t.heroMetaBottomLeft} right={t.heroMetaBottomRight} />
</section>
);
}