UNPKG

@newrelic/gatsby-theme-newrelic

Version:

[![Community Project header](https://github.com/newrelic/opensource-website/raw/master/src/images/categories/Community_Project.png)](https://opensource.newrelic.com/oss-category/#community-project)

32 lines (27 loc) 611 B
import React from 'react'; import PropTypes from 'prop-types'; import { css } from '@emotion/react'; const Main = ({ className, children }) => { return ( <main className={className} css={css` grid-area: main; padding: var(--site-content-padding); max-width: var(--site-max-width); margin: 0 auto; width: 100%; @media screen and (max-width: 1000px) { padding: 1.5rem; } `} > {children} </main> ); }; Main.propTypes = { className: PropTypes.string, children: PropTypes.node, }; export default Main;