increasing sizing

This commit is contained in:
2025-09-17 14:39:56 +01:00
parent 0b7ab3b0de
commit 3811b1f366
10 changed files with 25 additions and 31 deletions

View File

@@ -5,7 +5,6 @@ import AlertItem from "./AlertItem";
const HistoryList = () => { const HistoryList = () => {
const { state } = useAlertHitContext(); const { state } = useAlertHitContext();
console.log(state);
return ( return (
<Card className="h-100"> <Card className="h-100">

View File

@@ -9,16 +9,16 @@ type NumberPlateProps = {
const NumberPlate = ({ motion, vrm }: NumberPlateProps) => { const NumberPlate = ({ motion, vrm }: NumberPlateProps) => {
return ( return (
<div <div
className={`relative w-[8rem] border-4 border-black rounded-lg text-nowrap className={`relative w-[16rem] border-6 border-black rounded-xl text-nowrap
text-black px-3 text-black px-6 py-2
${motion ? "bg-yellow-400" : "bg-white"} ${motion ? "bg-yellow-400" : "bg-white"}
`} `}
> >
<div className=""> <div>
<div className="absolute inset-y-0 left-0 bg-blue-600 w-4 flex flex-col"> <div className="absolute inset-y-0 left-0 bg-blue-600 w-8 flex flex-col">
<GB /> <GB />
</div> </div>
<p className=" pl-2 font-extrabold text-right"> <p className="pl-4 font-extrabold text-3xl text-right">
{vrm && formatNumberPlate(vrm)} {vrm && formatNumberPlate(vrm)}
</p> </p>
</div> </div>

View File

@@ -19,7 +19,7 @@ const SystemFileUpload = ({ name, selectedFile }: SystemFileUploadProps) => {
opts: { opts: {
timeoutMs: 30000, timeoutMs: 30000,
fieldName: "upload", fieldName: "upload",
uploadUrl: "http://192.168.75.11/upload/software-update/2'", uploadUrl: "http://192.168.75.11/upload/software-update/2",
}, },
}; };
uploadSettings(settings); uploadSettings(settings);

View File

@@ -11,7 +11,6 @@ const WiFiCard = () => {
return ( return (
<Card className="mb-4"> <Card className="mb-4">
<CardHeader title={"WiFi"} /> <CardHeader title={"WiFi"} />
<div className="flex flex-col gap-4"> <div className="flex flex-col gap-4">
<FormGroup> <FormGroup>
<label <label

View File

@@ -25,7 +25,7 @@ const SightingModal = ({
</div> </div>
<div className="flex flex-col gap-6 md:flex-row"> <div className="flex flex-col gap-6 md:flex-row">
<div className="flex-1 flex flex-col gap-4"> <div className="flex-1 flex flex-col gap-2">
<div className="flex justify-start md:justify-start"> <div className="flex justify-start md:justify-start">
<NumberPlate vrm={sighting?.vrm} motion={motionAway} /> <NumberPlate vrm={sighting?.vrm} motion={motionAway} />
</div> </div>
@@ -50,15 +50,15 @@ const SightingModal = ({
</div> </div>
</div> </div>
<aside className="md:w-80 lg:w-96 bg-gray-800/70 text-white rounded-xl p-4 border border-gray-700"> <aside className="md:w-80 lg:w-[40%] bg-gray-800/70 text-white rounded-xl p-4 border border-gray-700">
<h3 className="text-base md:text-lg font-semibold pb-2 border-b border-gray-700"> <h3 className="text-base md:text-lg font-semibold pb-2 border-b border-gray-700">
Vehicle Info Vehicle Info
</h3> </h3>
<dl className="mt-3 grid grid-cols-1 sm:grid-cols-2 gap-x-4 gap-y-2 text-sm"> <dl className="mt-3 grid grid-cols-1 sm:grid-cols-1 gap-x-4 gap-y-2 text-sm">
<div> <div>
<dt className="text-gray-300">VRM</dt> <dt className="text-gray-300">VRM</dt>
<dd className="font-medium break-all"> <dd className="font-medium text-2xl break-all">
{sighting?.vrm ?? "-"} {sighting?.vrm ?? "-"}
</dd> </dd>
</div> </div>
@@ -74,12 +74,6 @@ const SightingModal = ({
<dt className="text-gray-300">Time</dt> <dt className="text-gray-300">Time</dt>
<dd className="font-medium">{sighting?.timeStamp ?? "-"}</dd> <dd className="font-medium">{sighting?.timeStamp ?? "-"}</dd>
</div> </div>
<div className="sm:col-span-2">
<dt className="text-gray-300">Location</dt>
<dd className="font-medium truncate">
{sighting?.locationName ?? "-"}
</dd>
</div>
<div> <div>
<dt className="text-gray-300">Make</dt> <dt className="text-gray-300">Make</dt>
<dd className="font-medium">{sighting?.make ?? "-"}</dd> <dd className="font-medium">{sighting?.make ?? "-"}</dd>
@@ -96,16 +90,16 @@ const SightingModal = ({
</aside> </aside>
</div> </div>
<div className="mt-6 flex flex-col-reverse gap-3 md:flex-row md:justify-center"> <div className="mt-3 flex flex-col-reverse gap-3 md:flex-row md:justify-center">
<button <button
className="inline-flex items-center justify-center gap-2 rounded-lg px-5 py-2.5 bg-red-600 text-white hover:bg-red-700 w-full md:w-auto" className="inline-flex items-center justify-center gap-2 rounded-lg px-5 py-3 bg-red-600 text-white hover:bg-red-700 w-full md:w-auto"
onClick={handleClose} onClick={handleClose}
> >
<FontAwesomeIcon icon={faX} /> <FontAwesomeIcon icon={faX} />
Close Close
</button> </button>
<button <button
className="inline-flex items-center justify-center gap-2 rounded-lg px-5 py-2.5 bg-green-600 text-white hover:bg-green-700 w-full md:w-auto" className="inline-flex items-center justify-center gap-2 rounded-lg px-5 py-3 bg-green-600 text-white hover:bg-green-700 w-full md:w-auto"
onClick={handleClose} onClick={handleClose}
> >
<FontAwesomeIcon icon={faCheck} /> <FontAwesomeIcon icon={faCheck} />

View File

@@ -75,17 +75,21 @@ export default function Header() {
</Link> </Link>
</div> </div>
{/* Right: Texts stacked + icons */} {/* Right: Texts stacked + icons */}
<div className="flex items-center space-x-12"> <div className="flex items-center space-x-24">
<div className="flex flex-col leading-tight text-white text-sm tabular-nums"> <div className="flex flex-col leading-tight text-white text-sm tabular-nums">
<h2>Local: {localStr}</h2> <h2>Local: {localStr}</h2>
<h2>UTC: {utcStr}</h2> <h2>UTC: {utcStr}</h2>
</div> </div>
<div className="flex flex-row space-x-2"> <div className="flex flex-row space-x-8">
<Link to={"/session-settings"}> <Link to={"/session-settings"}>
<FontAwesomeIcon className="text-white" icon={faListCheck} /> <FontAwesomeIcon
className="text-white"
icon={faListCheck}
size="2x"
/>
</Link> </Link>
<Link to={"/system-settings"}> <Link to={"/system-settings"}>
<FontAwesomeIcon className="text-white" icon={faGear} /> <FontAwesomeIcon className="text-white" icon={faGear} size="2x" />
</Link> </Link>
</div> </div>
</div> </div>

View File

@@ -16,7 +16,7 @@ const ModalComponent = ({
<Modal <Modal
isOpen={isModalOpen} isOpen={isModalOpen}
onRequestClose={close} onRequestClose={close}
className="bg-[#1e2a38] p-6 rounded-lg shadow-lg max-w-[90%] mx-auto mt-[1%] md:w-[70%] md:h-[90%] z-[100] overflow-y-auto max-h-screen" className="bg-[#1e2a38] p-6 rounded-lg shadow-lg max-w-[90%] mx-auto mt-[1%] md:w-[80%] md:h-[90%] z-[100] overflow-y-auto max-h-screen"
overlayClassName="fixed inset-0 bg-[#1e2a38]/70 flex justify-center items-start z-100" overlayClassName="fixed inset-0 bg-[#1e2a38]/70 flex justify-center items-start z-100"
> >
{children} {children}

View File

@@ -34,7 +34,6 @@ export function reducer(state: AlertState, action: AlertPayload) {
), ),
}; };
} else { } else {
console.log(state);
return { return {
...state, ...state,
alertList: state.allAlerts, alertList: state.allAlerts,

View File

@@ -46,7 +46,6 @@ export const useFetchCameraConfig = (cameraSide: string) => {
onSuccess: () => toast("Settings Successfully saved"), onSuccess: () => toast("Settings Successfully saved"),
}); });
console.log(fetchedConfigQuery.data);
return { return {
data: fetchedConfigQuery.data, data: fetchedConfigQuery.data,
isPending: fetchedConfigQuery.isPending, isPending: fetchedConfigQuery.isPending,

View File

@@ -3,8 +3,8 @@ import { useQuery } from "@tanstack/react-query";
const apiUrl = import.meta.env.VITE_BASEURL; const apiUrl = import.meta.env.VITE_BASEURL;
const folkstoneUrl = import.meta.env.VITE_FOLKESTONE_BASE; const folkstoneUrl = import.meta.env.VITE_FOLKESTONE_BASE;
console.log(folkstoneUrl);
async function fetchSnapshot(cameraSide: string) { async function fetchSnapshot(cameraSide: string) {
console.log(`${folkstoneUrl}/${cameraSide}-preview`);
const response = await fetch( const response = await fetch(
// `${folkstoneUrl}/Colour-preview` // `${folkstoneUrl}/Colour-preview`
`${apiUrl}/${cameraSide}-preview` `${apiUrl}/${cameraSide}-preview`