saving connection log in DB, added Dispo stats

This commit is contained in:
PxlLoewe
2025-05-03 11:00:15 -07:00
parent 98bbb04095
commit 1d5aa24ebd
14 changed files with 313 additions and 207 deletions

View File

@@ -1,8 +1,8 @@
import Logbook from "./_components/Logbook";
import { ArrowRight, NotebookText, Award, RocketIcon } from "lucide-react";
import { ArrowRight, NotebookText } from "lucide-react";
import Link from "next/link";
import Events from "./_components/Events";
import StatsClientWrapper from "./_components/StatsClientWrapper";
import { Stats } from "./_components/Stats";
import { Badges } from "./_components/Badges";
/*
@@ -15,10 +15,16 @@ Badges
Aktive Events / Mandatory Events
*/
export default function Home() {
export default async function Home({
searchParams,
}: {
searchParams: { stats?: "pilot" | "dispo" };
}) {
const { stats } = await searchParams;
const view = stats || "pilot";
return (
<div>
<StatsClientWrapper />
<Stats stats={view} />
<div className="grid grid-cols-6 gap-4">
<div className="card bg-base-200 shadow-xl mb-4 col-span-6 xl:col-span-3">