-
-
Notifications
You must be signed in to change notification settings - Fork 93
Expand file tree
/
Copy pathLandingPage.tsx
More file actions
73 lines (65 loc) · 1.86 KB
/
LandingPage.tsx
File metadata and controls
73 lines (65 loc) · 1.86 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
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
import { Button } from "./Button";
import { EmbeddedVideo } from "./EmbeddedVideo";
import { Title } from "./Title";
import { DESCRIPTION, NAME, TITLE, YOUTUBE_SLUG } from "./constants";
import Logo from "./logo.svg?react";
export function LandingPage() {
return (
<>
<Title>{TITLE}</Title>
<main className="landing-page">
<div className="container">
<div className="row min-vh-100 align-items-center">
<div className="col-12">
<div className="row ">
<div className="col-12">
<Header />
</div>
<div className="col-12">
<Slogan />
</div>
<div className="col-12">
<div className="landing-page-video-frame">
<EmbeddedVideo youtubeSlug={YOUTUBE_SLUG} />
</div>
</div>
<div className="col-12 ">
<Buttons />
</div>
</div>
</div>
</div>
</div>
</main>
</>
);
}
function Header() {
return (
<header className="row align-items-center mb-4">
<div className="col text-uppercase">{NAME}</div>
<div className="col-auto">
<Logo title={`${NAME} logo`} className="landing-page-logo" />
</div>
</header>
);
}
function Slogan() {
return <h1 className="text-center text-uppercase mb-4">{DESCRIPTION}</h1>;
}
function Buttons() {
return (
<div className="row justify-content-center mt-5">
<div className="col-3 text-center">
<Button text="Docs" href="/docs" isExternal={false} />
</div>
<div className="col-3 text-center">
<Button
text="Donate"
href="https://github.com/sponsors/cursorless-dev"
isExternal={true}
/>
</div>
</div>
);
}