Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(www): refactor, tidy and convert Gatsby homepage to function co…
…mponent (#25540) * move <Diagram/> styles inside <Diagram/> component * convert IndexRoute to function component * add HomepageGetStarted component * moved the wrapper styles to object * semantics :3
- Loading branch information
1 parent
1c3ebf7
commit d048dbd
Showing
3 changed files
with
208 additions
and
206 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,31 @@ | ||
/** @jsx jsx */ | ||
import { jsx } from "theme-ui" | ||
|
||
import { MdArrowForward as ArrowForwardIcon } from "react-icons/md" | ||
|
||
import Container from "../../components/container" | ||
import FuturaParagraph from "../../components/futura-paragraph" | ||
import Button from "../../components/button" | ||
|
||
export default function HomepageGetStarted() { | ||
return ( | ||
<section sx={{ flex: `1 1 100%`, textAlign: `center` }}> | ||
<Container withSidebar={false}> | ||
<h1 sx={{ fontWeight: `heading`, mt: 0 }}>Curious yet?</h1> | ||
<FuturaParagraph> | ||
It only takes a few minutes to get up and running! | ||
</FuturaParagraph> | ||
<Button | ||
secondary | ||
variant="large" | ||
to="/docs/" | ||
tracking="Curious Yet -> Get Started" | ||
overrideCSS={{ mt: 5 }} | ||
icon={<ArrowForwardIcon />} | ||
> | ||
Get Started | ||
</Button> | ||
</Container> | ||
</section> | ||
) | ||
} |
Oops, something went wrong.