WIP testing a css grid layout for the main app

This commit is contained in:
James Ritchie
2022-05-13 09:55:43 +01:00
parent d4c23be1b6
commit e8e08899dd
2 changed files with 22 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
export default function Index() {
return (
<div className="grid overflow-hidden grid-cols-1 grid-rows-app gap-0 h-screen">
<div className="bg-yellow-300 border-yellow-500 border-dashed border h-0">
banner
</div>
<div className="bg-green-300 border-green-500 border-dashed border">
header
</div>
<div className="bg-red-300 border-red-500 border-dashed border">
<div className="flex h-full w-24 bg-slate-500"></div>
</div>
<div className="bg-blue-300 border-blue-500 border-dashed border">
footer
</div>
</div>
);
}
+4
View File
@@ -24,6 +24,10 @@ module.exports = {
inspectorHeight: "calc(100vh - 70px)",
jsonViewerHeight: "calc(100vh - 106px)",
},
gridTemplateRows: {
'app': '40px 40px auto 40px',
'app-banner': '40px auto 40px',
},
fontFamily: {
sans: ["Source Sans Pro", "sans-serif"],
mono: ["MonoLisa", "monospace"],