Merge pull request #385 from IBCornelsen/main

getMain
This commit is contained in:
UMBENOMENA
2025-02-22 21:11:44 +01:00
committed by GitHub
2 changed files with 11 additions and 8 deletions

View File

@@ -1,9 +1,8 @@
---
import "svelte-ripple-action/ripple.css";
import "../style/global.css";
import "../../svelte-dialogs.config"
import "svelte-ripple-action/ripple.css"
import DashboardSidebar from "../components/Dashboard/DashboardSidebar.svelte"
import "../../svelte-dialogs.config";
import DashboardSidebar from "../components/Dashboard/DashboardSidebar.svelte";
import { validateAccessTokenServer } from "#server/lib/validateAccessToken";
import { BenutzerClient } from "#components/Ausweis/types";
@@ -97,9 +96,13 @@ let lightTheme = Astro.cookies.get("theme")?.value === "light";
</head>
<body class="min-h-screen grid md:grid-cols-[300px_1fr]">
<DashboardSidebar lightTheme={lightTheme} benutzer={user} client:load></DashboardSidebar>
<DashboardSidebar lightTheme={lightTheme} benutzer={user} client:load>
</DashboardSidebar>
<main class="overflow-auto h-screen bg-base-100 pt-24 px-6 w-full">
<slot />
<article class="box rounded-tl-none
xl:px-10 py-8">
<slot />
</article>
</main>
</body>
</html>

View File

@@ -44,7 +44,7 @@ body{
}
main{
@apply bg-[url('/images/pattern.png')] bg-repeat bg-fixed max-w-[1920px] mx-auto border-gray-200 border-[1px] min-w-[320px]
@apply bg-[url('/images/pattern.png')] bg-repeat bg-fixed max-w-[1920px] mx-auto border-gray-200 border-[1px] min-w-[320px];
}
.button {
@@ -82,7 +82,7 @@ article {
h1 {@apply pl-2 sm:pl-0 text-4xl font-normal mb-2;}
h2{@apply pl-2 sm:pl-0 text-2xl font-normal mb-2;}
h3 {@apply pl-2 sm:pl-0 text-xl font-normal ml-1;}
h3 {@apply pl-2 sm:pl-0 text-xl font-normal ml-1 mb-1;}
a {@apply text-blue-700 font-medium inline;}