diff --git a/app/map/page.tsx b/app/map/page.tsx index 3de0f29..eb1b72b 100644 --- a/app/map/page.tsx +++ b/app/map/page.tsx @@ -62,38 +62,22 @@ export default function MapPage() { }, []); return ( -
- {/* Header with controls */} -
-
- {/* Top row: Title and Admin link */} -
-

Location Tracker

-
- - 📥 Export - - - Admin - -
-
+
+ {/* Modern SaaS Header - Compact */} +
+
+ {/* Single row with title and controls */} +
+ {/* Title - left aligned */} +

Location Tracker

- {/* Controls row - responsive grid */} -
{/* Device Filter */} -
- +
+ setTimeFilter(Number(e.target.value))} - className="flex-1 sm:flex-none px-2 sm:px-3 py-1 text-sm border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500" + className="flex-1 lg:w-32 px-2 py-1.5 text-sm bg-white border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent transition-all" > {TIME_FILTERS.map((filter) => (
{/* Pause/Resume Button */} + + {/* Spacer to push buttons to the right */} +
+ + {/* Export and Admin Buttons */} +
- {/* Custom Range (only visible when active) */} + {/* Custom Range - Modern Card Style */} {filterMode === "custom" && ( -
-
- - setStartTime(e.target.value)} - className="flex-1 sm:flex-none px-2 py-1 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500 text-xs" - /> -
-
- - setEndTime(e.target.value)} - className="flex-1 sm:flex-none px-2 py-1 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500 text-xs" - /> +
+
+
+ + setStartTime(e.target.value)} + className="flex-1 px-3 py-2 text-sm bg-white border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent transition-all" + /> +
+
+ + setEndTime(e.target.value)} + className="flex-1 px-3 py-2 text-sm bg-white border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent transition-all" + /> +
)}