style: redesigned card component

This commit is contained in:
robin committed 2026-07-27 16:58:41 +02:00
1 parent 43054e98ad
commit cbe0bd6e1d
2 files changed
+7 -1

No files matched your search

+6
View File
@@ -238,6 +238,12 @@ export default function AdminPage() {
/> />
<Card title="Lied zu Liederbuch hinzufügen"> <Card title="Lied zu Liederbuch hinzufügen">
<Input.Text disabled></Input.Text> <Input.Text disabled></Input.Text>
<Card title="Lied zu Liederbuch hinzufügen">
<Input.Text disabled></Input.Text>
<Card title="Lied zu Liederbuch hinzufügen">
<Input.Text disabled></Input.Text>
</Card>
</Card>
</Card> </Card>
</div> </div>
</div> </div>
+1 -1
View File
@@ -9,7 +9,7 @@ interface CardProps extends ComponentPropsWithoutRef<"section"> {
export default function Card({ title, hasLeftBorder = false, 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">