Refactored sidebar layout to have better control on design; made sidebar sticky
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
---
|
||||
import BaseHead from "./BaseHead.astro"
|
||||
import Sidebar from "@components/sidebar"
|
||||
import Footer from "@components/footer"
|
||||
---
|
||||
|
||||
<html>
|
||||
@@ -9,8 +11,18 @@ import BaseHead from "./BaseHead.astro"
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<main id="main" class="flex-1">
|
||||
<slot />
|
||||
<main id="main" class="flex flex-row">
|
||||
<div class="w-[32%] sticky top-0 py-14 h-screen text-center flex flex-col">
|
||||
<Sidebar>
|
||||
<slot name="sidebar" />
|
||||
</Sidebar>
|
||||
|
||||
<Footer/>
|
||||
</div>
|
||||
|
||||
<div class="content-panel">
|
||||
<slot name="content"/>
|
||||
</div>
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user