Skip to content

Commit 547b274

Browse files
committed
delete header
1 parent 01c46ca commit 547b274

File tree

5 files changed

+33
-40
lines changed

5 files changed

+33
-40
lines changed

src/components/header.js

-33
This file was deleted.

src/layouts/index.js

-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import React from 'react'
22
import PropTypes from 'prop-types'
33
import Helmet from 'react-helmet'
4-
import Header from '../components/header'
54
import 'bootstrap/dist/css/bootstrap.css'
65
import '../styles/index.scss'
76

@@ -14,7 +13,6 @@ const Layout = ({ children, data }) => (
1413
{ name: 'keywords', content: 'sample, something' },
1514
]}
1615
/>
17-
<Header siteTitle={data.site.siteMetadata.title} />
1816
<div
1917
style={{
2018
margin: '0 auto',

src/pages/index.js

+10-5
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,18 @@ const IndexPage = ({ Testimonial }) => (
1212
We handpick new content on product development, user experience,
1313
analytics, and more sent right to your inbox.
1414
</p>
15-
<div>
16-
<input type="form" placeholder="Your email address" />
15+
<div className="input">
16+
<input
17+
type="email"
18+
className="form-control"
19+
aria-describedby="emailHelp"
20+
placeholder="Your email adress"
21+
/>
1722
</div>
18-
<div>
19-
<Button color="primary" size="large ">
23+
<div className="subscribe-button">
24+
<button type="button" className="btn btn-primary">
2025
Subscribe
21-
</Button>{' '}
26+
</button>
2227
</div>
2328
<div>{Testimonial}</div>
2429
</div>

src/styles/components/_testimonial.scss

Whitespace-only changes.

src/styles/pages/_index.scss

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
h1 {
2+
text-align: center;
3+
}
4+
5+
.input {
6+
margin-bottom: 5px;
7+
text-align: center;
8+
}
9+
10+
.form-control {
11+
width: 45%;
12+
}
13+
14+
.subscribe-button {
15+
text-align: center;
16+
display: block;
17+
}
18+
19+
.btn-primary {
20+
background-color: #3f51b5;
21+
border-color: #ccc;
22+
width: 45%;
23+
}

0 commit comments

Comments
 (0)