Screenshot of code: // Application layout. import Footer from './Footer.component.js' export default ({ layout, SLOT }) => html` <div id='application'> ${SLOT} </div> <${Footer} /> <style> … #application { max-width: 920px; margin-left: auto; margin-right: auto; } <if ${layout==='settings'}> #application { display: grid; grid-template-areas: 'navigation main ' 'footer footer'; grid-template-rows: 1fr fit-content(100%); grid-template-columns: fit-content(100%) 1fr; } /* On narrower screens, use one-column layout. */ @media screen and (max-width: 660px) { #application { grid-template-areas: 'navigation' 'main' 'footer'; } } </if> </style> `
https://s3-eu-central-1.amazonaws.com/mastodon-aral/media_attachments/files/110/118/716/844/178/478/original/7ed2211e5341d6a3.png