initial commit

This commit is contained in:
2025-08-13 14:23:48 +01:00
commit 92e3617335
44 changed files with 2936 additions and 0 deletions

16
src/pages/Dashboard.tsx Normal file
View File

@@ -0,0 +1,16 @@
import FrontCameraOverviewCard from "../components/FrontCameraOverview/FrontCameraOverviewCard";
import Sightings from "../components/PlateStack/Sightings";
import RearCameraOverviewCard from "../components/RearCameraOverview/RearCameraOverviewCard";
const Dashboard = () => {
return (
<div className="mx-auto grid grid-cols-1 sm:grid-cols-1 lg:grid-cols-2 gap-2 px-2 sm:px-4 lg:px-0 w-full">
<FrontCameraOverviewCard />
<RearCameraOverviewCard />
<Sightings title="Front Camera Sightings" />
<Sightings title="Rear Camera Sightings" />
</div>
);
};
export default Dashboard;

24
src/pages/FrontCamera.tsx Normal file
View File

@@ -0,0 +1,24 @@
import CameraSettings from "../components/CameraSettings/CameraSettings";
import OverviewVideoContainer from "../components/FrontCameraSettings/OverviewVideoContainer";
import { useNavigate } from "react-router";
import { useSwipeable } from "react-swipeable";
const FrontCamera = () => {
const navigate = useNavigate();
const handlers = useSwipeable({
onSwipedLeft: () => navigate("/"),
trackMouse: true,
});
return (
<div
className="mx-auto grid grid-cols-1 sm:grid-cols-1 lg:grid-cols-2 gap-4 px-2 sm:px-4 lg:px-0 w-full"
{...handlers}
>
<OverviewVideoContainer title={"Front Camera"} side="Front" />
<CameraSettings title="Front Camera Settings" />
</div>
);
};
export default FrontCamera;

24
src/pages/RearCamera.tsx Normal file
View File

@@ -0,0 +1,24 @@
import { useNavigate } from "react-router";
import { useSwipeable } from "react-swipeable";
import OverviewVideoContainer from "../components/FrontCameraSettings/OverviewVideoContainer";
import CameraSettings from "../components/CameraSettings/CameraSettings";
const RearCamera = () => {
const navigate = useNavigate();
const handlers = useSwipeable({
onSwipedRight: () => navigate("/"),
trackMouse: true,
});
return (
<div
className="mx-auto grid grid-cols-1 sm:grid-cols-1 lg:grid-cols-2 gap-4 px-2 sm:px-4 lg:px-0 w-full order-first"
{...handlers}
>
<CameraSettings title="Rear Camera Settings" />
<OverviewVideoContainer title={"Rear Camera"} side={"Rear"} />
</div>
);
};
export default RearCamera;