Created
November 20, 2020 20:12
-
-
Save hastebrot/40325fe30aa306182820ba71d6280fea to your computer and use it in GitHub Desktop.
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
export const HomePage = () => { | |
return ( | |
<SiteLayout> | |
<div className="flex"> | |
<SitePanel></SitePanel> | |
<SiteContainer></SiteContainer> | |
</div> | |
</SiteLayout> | |
) | |
} | |
const SiteLayout = ({ children }) => { | |
return ( | |
<div className="min-site-layout h-screen font-sans bg-white text-gray-900 antialiased"> | |
{children} | |
</div> | |
) | |
} | |
const SitePanel = () => { | |
return ( | |
<div className="min-site-panel"> | |
<div className="min-site-account">site account</div> | |
<nav className="min-site-navigation">site navigation</nav> | |
</div> | |
) | |
} | |
const SiteContainer = () => { | |
return ( | |
<div className="min-site-container"> | |
<header className="min-site-header">site header</header> | |
<main className="min-site-content"> | |
<header className="min-page-header">page header</header> | |
<section className="min-page-content">page content</section> | |
</main> | |
</div> | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment