forked from fahrPool/fahrPool
feat: restyle dashboard page
This commit is contained in:
parent
133308adf8
commit
1c1699c5f7
|
|
@ -1,4 +1,5 @@
|
||||||
import { loadProfile } from "@/lib/auth/profile";
|
import { loadProfile } from "@/lib/auth/profile";
|
||||||
|
import { Card } from "@/components/ui/Card";
|
||||||
|
|
||||||
export default async function DashboardPage() {
|
export default async function DashboardPage() {
|
||||||
const result = await loadProfile();
|
const result = await loadProfile();
|
||||||
|
|
@ -8,11 +9,13 @@ export default async function DashboardPage() {
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div className="mx-auto max-w-2xl p-4 md:p-8">
|
||||||
<h1>Dashboard</h1>
|
<Card>
|
||||||
<p>
|
<h1 className="text-xl font-semibold text-asphalt-grey">Dashboard</h1>
|
||||||
|
<p className="mt-2 text-asphalt-grey">
|
||||||
Eingeloggt als {result.profile.name} ({result.profile.role})
|
Eingeloggt als {result.profile.name} ({result.profile.role})
|
||||||
</p>
|
</p>
|
||||||
|
</Card>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue