From f360b8e3a91a99076690f75aecf1299be9df7e49 Mon Sep 17 00:00:00 2001 From: Brandon Date: Thu, 11 Apr 2024 15:00:12 -0700 Subject: [PATCH] Record page --- .../app/(app)/[campusid]/[recordid]/page.tsx | 65 +++++++++++++++++-- 1 file changed, 59 insertions(+), 6 deletions(-) diff --git a/apps/web/app/(app)/[campusid]/[recordid]/page.tsx b/apps/web/app/(app)/[campusid]/[recordid]/page.tsx index cebd2e4..9eb8019 100644 --- a/apps/web/app/(app)/[campusid]/[recordid]/page.tsx +++ b/apps/web/app/(app)/[campusid]/[recordid]/page.tsx @@ -1,4 +1,6 @@ import { SinglePointMap } from "@/components/maps/single-point"; +import { Badge } from "@/components/ui/badge"; +import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card"; import { getRecord, getCoordinate } from "@/lib/record"; export default async function Campus({ @@ -15,13 +17,64 @@ export default async function Campus({ return ( <> -
- +
+
+
+ + + + Record DetailsUC San Diego + + + + + + + +
+

Date/Time Occured

+

+ {record.date_occurred} {record.time_occurred} +

+
+ + +
+
+
+ {location?.longitude && location?.latitude ? ( + + + + ) : ( + +

+ No coordinate data available. +

+
+ )} +
); } + +const RecordLine = ({ + label, + value, +}: { + label: string; + value: string | null; +}) => ( +
+

{label}

+

{value}

+
+);