|
1 | 1 | import React from 'react'
|
2 | 2 | import Link from 'gatsby-link'
|
3 | 3 | import Testimonial from '../components/testimonial'
|
4 |
| -import { Button } from 'reactstrap' |
| 4 | +import { Button, Container, Form, FormGroup, Input, Row, Col } from 'reactstrap' |
5 | 5 |
|
6 | 6 | const IndexPage = ({ Testimonial }) => (
|
7 |
| - <div> |
8 |
| - <div> |
9 |
| - <h1>Get our best links every weekday</h1> |
10 |
| - <div> |
11 |
| - <p> |
| 7 | + <Container fluid> |
| 8 | + <Row className="hero"> |
| 9 | + <Col sm="12" md={{ size: 9, offset: 1 }}> |
| 10 | + <h1 className="hero__title">Get our best links every weekday</h1> |
| 11 | + <p className="hero__subtitle"> |
12 | 12 | We handpick new content on product development, user experience,
|
13 | 13 | analytics, and more sent right to your inbox.
|
14 | 14 | </p>
|
15 |
| - <div className="input"> |
16 |
| - <input |
17 |
| - type="email" |
18 |
| - className="form-control" |
19 |
| - aria-describedby="emailHelp" |
20 |
| - placeholder="Your email adress" |
21 |
| - /> |
22 |
| - </div> |
23 |
| - <div className="subscribe-button"> |
24 |
| - <button type="button" className="btn btn-primary"> |
| 15 | + </Col> |
| 16 | + </Row> |
| 17 | + <Row className="subscription"> |
| 18 | + <Col sm="12" md={{ size: 8, offset: 2 }}> |
| 19 | + <Form> |
| 20 | + <FormGroup className="subscription__email"> |
| 21 | + <Input |
| 22 | + className="subscription__email__input" |
| 23 | + type="email" |
| 24 | + placeholder="Your email address" |
| 25 | + /> |
| 26 | + </FormGroup> |
| 27 | + <Button className="subscription__button" color="primary" block> |
25 | 28 | Subscribe
|
26 |
| - </button> |
27 |
| - </div> |
28 |
| - <div>{Testimonial}</div> |
29 |
| - </div> |
30 |
| - </div> |
31 |
| - </div> |
| 29 | + </Button> |
| 30 | + </Form> |
| 31 | + </Col> |
| 32 | + </Row> |
| 33 | + <div>{Testimonial}</div> |
| 34 | + </Container> |
32 | 35 | )
|
33 | 36 |
|
34 | 37 | export default IndexPage
|
0 commit comments