Skip to content

Commit

Permalink
chore: update layout per design
Browse files Browse the repository at this point in the history
  • Loading branch information
roadlittledawn committed Aug 27, 2021
1 parent 93f7817 commit f5dca12
Show file tree
Hide file tree
Showing 2 changed files with 175 additions and 237 deletions.
7 changes: 2 additions & 5 deletions src/layouts/QuickStartLayout.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,29 +6,26 @@ import {
} from '@newrelic/gatsby-theme-newrelic';
import PropTypes from 'prop-types';
import { css } from '@emotion/react';
import { useLocation } from '@reach/router';
import '../components/styles.scss';

const QuickStartLayout = ({ children }) => {
const location = useLocation();
const isLanding = location.pathname === '/observability-packs/';
return (
<>
<GlobalHeader />
<MobileHeader>New sidebar here</MobileHeader>
<Layout
css={css`
--sidebar-width: ${isLanding ? '300px' : '0'};
--sidebar-width: 0;
`}
>
{isLanding && <Layout.Sidebar>New sidebar here</Layout.Sidebar>}
<Layout.Main
css={css`
min-height: 100vh;
`}
>
{children}
</Layout.Main>
<Layout.Footer />
</Layout>
</>
);
Expand Down
Loading

0 comments on commit f5dca12

Please sign in to comment.