forked from cerebral/overmind
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.tsx
More file actions
39 lines (37 loc) · 1.11 KB
/
index.tsx
File metadata and controls
39 lines (37 loc) · 1.11 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
import * as React from 'react'
import Logo from '../Logo'
import { Wrapper, QuickstartWrapper, Quickstart } from './elements'
import Icon from '../Icon'
import { viewport } from '../../utils'
class FrontPage extends React.Component {
node: HTMLElement
componentDidMount() {
requestAnimationFrame(() => (this.node.style.bottom = '0'))
}
render() {
return (
<Wrapper>
<Logo />
<QuickstartWrapper
innerRef={(node) => {
this.node = node
}}
>
<Quickstart>
<Icon>movie</Icon>
{viewport.isMobile ? null : <span>Video introduction</span>}
</Quickstart>
<Quickstart href="/guides/beginner/01_getstarted">
<Icon>guide</Icon>
{viewport.isMobile ? null : <span>Get started guide</span>}
</Quickstart>
<Quickstart href="https://spectrum.chat/overmindjs" target="_blank">
<Icon>chat</Icon>
{viewport.isMobile ? null : <span>Chat Support</span>}
</Quickstart>
</QuickstartWrapper>
</Wrapper>
)
}
}
export default FrontPage