diff --git a/app/layout.tsx b/app/layout.tsx index 7b1677f..d3d01c5 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -1,5 +1,5 @@ import type { Metadata } from "next"; -import { Geist, Geist_Mono } from "next/font/google"; +import { Geist, Geist_Mono, Space_Grotesk } from "next/font/google"; import { Nav } from "@/components/nav"; import { auth } from "@/auth"; import "./globals.css"; @@ -14,6 +14,11 @@ const geistMono = Geist_Mono({ subsets: ["latin"], }); +const spaceGrotesk = Space_Grotesk({ + variable: "--font-space-grotesk", + subsets: ["latin"], +}); + export const metadata: Metadata = { title: "KNUR - Książka Notowań Udźwigów i Rezultatów", description: "Analiza treningów biegowych i siłowych", @@ -29,7 +34,7 @@ export default async function RootLayout({ return (
{session && } diff --git a/components/dashboard-analysis-card.tsx b/components/dashboard-analysis-card.tsx index c0d6925..9bd5d86 100644 --- a/components/dashboard-analysis-card.tsx +++ b/components/dashboard-analysis-card.tsx @@ -14,6 +14,8 @@ import { isSameMonth, isSameDay, isToday, + isAfter, + startOfDay, } from "date-fns"; import { pl } from "date-fns/locale"; import { Activity, ChevronLeft, ChevronRight, Dumbbell, Sparkles } from "lucide-react"; @@ -64,9 +66,16 @@ export function DashboardAnalysisCard({ analyses, runs, workouts }: Props) { const [currentMonth, setCurrentMonth] = useState(() => new Date()); const [selectedDate, setSelectedDate] = useStateTreningi · {format(selectedDate, "d MMM yyyy", { locale: pl })} @@ -250,7 +280,7 @@ export function DashboardAnalysisCard({ analyses, runs, workouts }: Props) {
) : (- Wybierz dzień oznaczony kropką, aby zobaczyć analizę z tego dnia. + Brak analizy AI dla {format(selectedDate, "d MMMM yyyy", { locale: pl })}.
)}