feat(frontend): add /u/[user]

This commit is contained in:
Sam 2022-08-17 03:04:06 +02:00
parent eec01dc070
commit 36b7d26723
9 changed files with 222 additions and 19 deletions

View file

@ -0,0 +1,28 @@
import React, { ReactNode } from "react";
export type Props = {
children?: ReactNode | undefined;
title: string;
draggable?: boolean;
footer?: ReactNode | undefined;
};
export default function Card({ title, draggable, children, footer }: Props) {
return (
<div className="bg-slate-100 dark:bg-slate-700 rounded-md shadow">
<h1
className={`text-2xl p-2 border-b border-zinc-200 dark:border-slate-800${
draggable && " handle hover:cursor-grab"
}`}
>
{title}
</h1>
<div className="flex flex-col p-2">{children}</div>
{footer && (
<div className="p-2 border-t border-zinc-200 dark:border-slate-800">
{footer}
</div>
)}
</div>
);
}