forked from gatsbyjs/gatsby
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[www] Adding a simple newsletter page (gatsbyjs#6359)
* simple newsletter page * enabling email subscription. cleaning up
- Loading branch information
1 parent
8410691
commit f26f438
Showing
2 changed files
with
65 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
import React, { Component } from "react" | ||
import Helmet from "react-helmet" | ||
import { rhythm } from "../utils/typography" | ||
import { colors } from "../utils/presets" | ||
|
||
import Layout from "../components/layout" | ||
import Container from "../components/container" | ||
import EmailCaptureForm from "../components/email-capture-form" | ||
|
||
class NewsLetter extends Component { | ||
render() { | ||
const { location, data } = this.props | ||
|
||
return ( | ||
<Layout location={location}> | ||
<Helmet> | ||
<title>Newsletter</title> | ||
</Helmet> | ||
<Container | ||
hasSideBar={false} | ||
css={{ | ||
display: "flex", | ||
flexDirection: "column", | ||
}} | ||
> | ||
<h1 id="introduction" style={{ marginTop: 0 }}> | ||
Newsletter | ||
</h1> | ||
<div> | ||
Sign up for the Gatsby newsletter to keep up with the latest from | ||
the Gatsby community! Hear about new features, tips & tricks, and | ||
what people are building. | ||
</div> | ||
|
||
<EmailCaptureForm | ||
signupMessage="Sign up for the Gatsby Newsletter" | ||
confirmMessage="Success! You have been subscribed to the Gatsby newsletter. Expect to see a newsletter in your inbox each Wednesday (or the equivalent of US Wednesday in your time zone)!" | ||
containerCss={{ | ||
marginTop: rhythm(1), | ||
paddingTop: rhythm(1 / 2), | ||
borderTop: `2px solid ${colors.lilac}`, | ||
}} | ||
/> | ||
</Container> | ||
</Layout> | ||
) | ||
} | ||
} | ||
|
||
export default NewsLetter |