DaisyUI Integriert

This commit is contained in:
Moritz Utcke
2024-01-17 12:33:05 +07:00
parent f684ce0060
commit 79581cdcf2
18 changed files with 245 additions and 91 deletions

View File

@@ -1,5 +1,13 @@
---
import UserSidebarLeft from "../components/UserSidebarLeft.astro";
import i18next from "i18next";
import "../style/global.scss";
import "../../svelte-dialogs.config"
import Footer from "../components/Footer.astro";
import Header from "../components/Header.astro";
import SidebarLeft from "../components/SidebarLeft.astro";
import SidebarRight from "../components/SidebarRight.astro";
import { NotificationWrapper } from "@ibcornelsen/ui";
export interface Props {
title: string;
@@ -34,7 +42,7 @@ const schema = JSON.stringify({
---
<!DOCTYPE html>
<html lang="en">
<html lang={i18next.language}>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width" />
@@ -81,12 +89,47 @@ const schema = JSON.stringify({
</title>
</head>
<body>
<main class="grid grid-cols-[80px,1fr] h-[100vh]">
<UserSidebarLeft />
<article>
<slot />
</article>
<body class="flex flex-col min-h-screen">
<Header />
<main
class="p-6 w-full"
>
<slot />
</main>
<Footer />
<NotificationWrapper client:load />
</body>
</html>
</html>
<style is:global>
article {
@apply rounded-lg w-full shadow-md border;
}
body {
min-height: 100vh;
}
.button {
@apply px-8 py-2 bg-secondary rounded-lg text-white font-medium hover:shadow-lg transition-all hover:underline active:bg-blue-900 text-center cursor-pointer;
color: #fff !important;
}
h3 {
@apply text-xl font-medium mt-6 mb-4;
}
input {
@apply py-1.5 px-4 w-full rounded-lg outline-none text-lg text-slate-700 border bg-gray-50 transition-colors;
}
input:hover,
input:focus {
@apply bg-gray-100;
}
label {
@apply text-base font-semibold;
}
</style>