1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-10-28 14:45:52 -04:00

make sticky header optional via prop

This commit is contained in:
2022-02-16 10:30:18 -05:00
parent b6c018875f
commit 17104d765b
14 changed files with 116 additions and 120 deletions

View File

@@ -50,7 +50,7 @@ Y2K.getLayout = (page: ReactElement) => {
const randomTile = `/static/images/y2k/tiles/tile_${Math.floor(20 * Math.random())}.png`;
return (
<Layout noContainer>
<Layout container={false} stickyHeader={false}>
<Wallpaper
image={randomTile}
tile
@@ -63,13 +63,6 @@ Y2K.getLayout = (page: ReactElement) => {
>
{page}
</Wallpaper>
{/* also make the viewport a bit larger by un-sticking the nav bar */}
<style jsx global>{`
header {
position: relative !important;
}
`}</style>
</Layout>
);
};