-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.tsx
62 lines (60 loc) · 1.54 KB
/
index.tsx
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
import Layout from "../components/Layout";
import BasicMeta from "../components/meta/BasicMeta";
import OpenGraphMeta from "../components/meta/OpenGraphMeta";
import TwitterCardMeta from "../components/meta/TwitterCardMeta";
import { SocialList } from "../components/SocialList";
export default function Index() {
return (
<Layout>
<BasicMeta url={"/"} />
<OpenGraphMeta url={"/"} />
<TwitterCardMeta url={"/"} />
<div className="container">
<div>
<h1>
Hi, We're Next.js & Netlify<span className="fancy">.</span>
</h1>
<span className="handle">@nextjs-netlify-blog</span>
<h2>A blog template with Next.js and Netlify.</h2>
<SocialList />
</div>
</div>
<style jsx>{`
.container {
display: flex;
align-items: center;
justify-content: center;
flex: 1 1 auto;
padding: 0 1.5rem;
}
h1 {
font-size: 2.5rem;
margin: 0;
font-weight: 500;
}
h2 {
font-size: 1.75rem;
font-weight: 400;
line-height: 1.25;
}
.fancy {
color: #15847d;
}
.handle {
display: inline-block;
margin-top: 0.275em;
color: #9b9b9b;
letter-spacing: 0.05em;
}
@media (min-width: 769px) {
h1 {
font-size: 3rem;
}
h2 {
font-size: 2.25rem;
}
}
`}</style>
</Layout>
);
}