warehouse page started

This commit is contained in:
Emily Neighbour 2025-04-14 14:27:26 +01:00
parent 3b621a05ce
commit 79705af7fb
2 changed files with 51 additions and 1 deletions

BIN
public/warehouseMap.PNG Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 184 KiB

View File

@ -1,7 +1,57 @@
"use client";
import Sidebar from "@/components/sidebar";
import { useState, useMemo } from "react";
export default function Warehouse() { export default function Warehouse() {
const [selectedEventId, setSelectedEventId] = useState("");
const [hoveredEventId, setHoveredEventId] = useState("");
const events = useMemo(
() => [
{
id: "1234",
title: "Artifact found - Germany Earthquake",
text1: "Mortar and pestle",
text2: "10 minutes ago",
longitude: 10.4515, // Near Berlin, Germany
latitude: 52.52,
},
{
id: "2134",
title: "All artifacts from California earthquake transported",
text1: "India to London",
text2: "15 hours ago",
longitude: -122.4194, // Near San Francisco, California, USA
latitude: 37.7749,
},
{
id: "2341",
title: "7 artifacts destroyed - Spain earthquake",
text1: "edVases and pots from Madrid",
text2: "3 weeks ago",
longitude: -3.7038, // Near Madrid, Spain
latitude: 40.4168,
},
],
[]
);
return ( return (
<div className="w-full h-full"> <div className="w-full h-full">
<p>Warehouse</p> <p>
warehouse image pasted in here
</p>
<Sidebar
logTitle="Artifact Retrieval and Tracking"
logSubtitle="Record new artifacts collected - name, description, time/date found, location found, scientist and collection stage"
recentsTitle="Artifact News"
events={events}
selectedEventId={selectedEventId}
setSelectedEventId={setSelectedEventId}
hoveredEventId={hoveredEventId}
setHoveredEventId={setHoveredEventId}
button1Name="Log New Artifacts"
button2Name="Search Artifacts"
></Sidebar>
</div> </div>
); );
} }