forked from nextstrain/nextstrain.org
-
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.
Merge pull request nextstrain#313 from nextstrain/generic-page
generic page component;
- Loading branch information
Showing
5 changed files
with
204 additions
and
252 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import React from "react"; | ||
import Helmet from "react-helmet"; | ||
import config from "../../data/SiteConfig"; | ||
import NavBar from "../components/nav-bar"; | ||
import MainLayout from "../components/layout"; | ||
import UserDataWrapper from "../layouts/userDataWrapper"; | ||
import { HugeSpacer } from "../layouts/generalComponents"; | ||
import * as splashStyles from "../components/splash/styles"; | ||
import Footer from "../components/Footer"; | ||
|
||
const GenericPage = ({location, children}) => ( | ||
<MainLayout> | ||
<div className="index-container"> | ||
<Helmet title={config.siteTitle} /> | ||
<main> | ||
<UserDataWrapper> | ||
<NavBar location={location} /> | ||
</UserDataWrapper> | ||
<splashStyles.Container className="container"> | ||
<HugeSpacer /><HugeSpacer /> | ||
{children} | ||
<Footer /> | ||
</splashStyles.Container> | ||
</main> | ||
</div> | ||
</MainLayout> | ||
); | ||
|
||
export default GenericPage; |
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
Oops, something went wrong.