Skip to content

Commit

Permalink
chore(demo): add mobile layout for mdx pages
Browse files Browse the repository at this point in the history
  • Loading branch information
jerelmiller committed Feb 13, 2021
1 parent 5f6999a commit f3a4d92
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
5 changes: 2 additions & 3 deletions demo/src/layouts/MainLayout.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import {
Logo,
Navigation,
NavItem,
NewRelicLogo,
SearchInput,
SEO,
} from '@newrelic/gatsby-theme-newrelic';
Expand All @@ -32,12 +31,12 @@ const MainLayout = (props) => {
justify-content: space-between;
align-items: center;
@media screen and (max-width: 400px) {
@media screen and (max-width: 760px) {
display: flex;
}
`}
>
<NewRelicLogo />
<Logo />
<HamburgerMenu
onToggle={() => setIsMenuOpen((isOpen) => !isOpen)}
isOpen={isMenuOpen}
Expand Down
8 changes: 8 additions & 0 deletions demo/src/templates/basic.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,14 @@ const BasicTemplate = ({ data, location }) => {
'content page-tools';
grid-template-columns: minmax(0, 1fr) 320px;
grid-column-gap: var(--site-content-padding);
@media screen and (max-width: 760px) {
grid-template-areas:
'page-title'
'content'
'page-tools';
grid-template-columns: minmax(0, 1fr);
}
`}
>
<h1
Expand Down

0 comments on commit f3a4d92

Please sign in to comment.