Compare commits
6
Commits
v0.0.4
...
ui-corrections
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
da00d95786 | ||
|
|
ec9bfce3a7 | ||
|
|
4f1686bdfe | ||
|
|
7548429936 | ||
|
|
cbe0bd6e1d | ||
|
|
43054e98ad |
No files matched your search
+1
-1
@@ -108,7 +108,7 @@ export default function AdminPage() {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="font-sans p-4 sm:p-6 lg:p-8">
|
<div className="font-sans p-4 sm:p-6 lg:p-8">
|
||||||
<div className="max-w-6xl mx-auto space-y-6">
|
<div className="max-w-6xl mx-auto">
|
||||||
|
|
||||||
{/* HEADER */}
|
{/* HEADER */}
|
||||||
|
|
||||||
|
|||||||
+2
-3
@@ -26,6 +26,5 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
section {
|
section {
|
||||||
margin-bottom: 50px;
|
margin-bottom: 25px;
|
||||||
}
|
}
|
||||||
|
|
||||||
+6
-3
@@ -3,18 +3,21 @@ import { ReactNode, ComponentPropsWithoutRef } from "react";
|
|||||||
interface CardProps extends ComponentPropsWithoutRef<"section"> {
|
interface CardProps extends ComponentPropsWithoutRef<"section"> {
|
||||||
title: string;
|
title: string;
|
||||||
children: ReactNode;
|
children: ReactNode;
|
||||||
|
hasLeftBorder?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export default function Card({ title, children, className = "", ...props }: CardProps) {
|
export default function Card({ title, hasLeftBorder = false, children, className = "", ...props }: CardProps) {
|
||||||
return (
|
return (
|
||||||
<section
|
<section
|
||||||
className={`p-5 flex flex-col justify-between ${className}`}
|
className={`p-5 flex flex-col justify-between ${className} bg-slate-400/30 dark:bg-slate-700/30 rounded-xl`}
|
||||||
{...props}
|
{...props}
|
||||||
>
|
>
|
||||||
<h2 className="text-lg font-semibold mb-4 flex items-center gap-2">
|
<h2 className="text-lg font-semibold mb-4 flex items-center gap-2">
|
||||||
{title}
|
{title}
|
||||||
</h2>
|
</h2>
|
||||||
<div className="flex-1 min-h-0 flex flex-col">
|
|
||||||
|
{/* border-l-2 fügt den Strich links ein, pl-4 macht Platz zum Inhalt */}
|
||||||
|
<div className={`flex-1 min-h-0 flex flex-col border-neutral-200 dark:border-neutral-800 ${hasLeftBorder ? "border-l-2 pl-4}" : ""}`}>
|
||||||
{children}
|
{children}
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import NavItem from "./NavItem";
|
|||||||
|
|
||||||
export default function Header() {
|
export default function Header() {
|
||||||
return (
|
return (
|
||||||
<header className="fixed top-0 left-0 w-full z-50 p-4 flex justify-between items-center backdrop-blur-md">
|
<header className="fixed top-0 left-0 w-full z-50 p-4 flex justify-between items-center backdrop-blur-md border-b-2 border-slate-500">
|
||||||
<div className="font-bold text-xl">PsalmTafel</div>
|
<div className="font-bold text-xl">PsalmTafel</div>
|
||||||
<nav className="flex gap-4 border-2 rounded-full">
|
<nav className="flex gap-4 border-2 rounded-full">
|
||||||
<NavItem path="/dashboard">Dashboard</NavItem>
|
<NavItem path="/dashboard">Dashboard</NavItem>
|
||||||
|
|||||||
Reference in new issue
Block a user