-
Notifications
You must be signed in to change notification settings - Fork 114
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 #1567 from newrelic/clang/quick-start-layout
Refactor landing and details pages
- Loading branch information
Showing
4 changed files
with
295 additions
and
274 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,33 @@ | ||
import React from 'react'; | ||
import { Layout, GlobalHeader } from '@newrelic/gatsby-theme-newrelic'; | ||
import PropTypes from 'prop-types'; | ||
import { css } from '@emotion/react'; | ||
import '../components/styles.scss'; | ||
|
||
const QuickStartLayout = ({ children }) => { | ||
return ( | ||
<> | ||
<GlobalHeader /> | ||
<Layout | ||
css={css` | ||
--sidebar-width: 0; | ||
`} | ||
> | ||
<Layout.Main | ||
css={css` | ||
min-height: 100vh; | ||
`} | ||
> | ||
{children} | ||
</Layout.Main> | ||
<Layout.Footer /> | ||
</Layout> | ||
</> | ||
); | ||
}; | ||
|
||
QuickStartLayout.propTypes = { | ||
children: PropTypes.node, | ||
}; | ||
|
||
export default QuickStartLayout; |
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.