Refactor client UI with shadcn heatmap layout

This commit is contained in:
Bernard Ngandu
2025-10-10 10:04:04 +02:00
parent 9834438ff1
commit 8f4b954af8
20 changed files with 2133 additions and 739 deletions
+49 -32
View File
@@ -5,15 +5,32 @@
@tailwind utilities;
@layer base {
html,
body,
#root {
height: 100%;
:root {
--background: 0 0% 100%;
--foreground: 222.2 84% 4.9%;
--card: 0 0% 100%;
--card-foreground: 222.2 84% 4.9%;
--popover: 0 0% 100%;
--popover-foreground: 222.2 84% 4.9%;
--primary: 200 98% 39%;
--primary-foreground: 210 40% 98%;
--secondary: 210 40% 96%;
--secondary-foreground: 222.2 47.4% 11.2%;
--muted: 210 40% 96.1%;
--muted-foreground: 215.4 16.3% 46.9%;
--accent: 200 98% 39%;
--accent-foreground: 210 40% 98%;
--destructive: 0 84.2% 60.2%;
--destructive-foreground: 210 40% 98%;
--border: 214.3 31.8% 91.4%;
--input: 214.3 31.8% 91.4%;
--ring: 200 98% 39%;
--radius: 0.9rem;
}
:root {
.dark {
color-scheme: dark;
--background: 222.2 84% 4.9%;
--background: 224 47% 8%;
--foreground: 210 40% 98%;
--card: 222.2 84% 6.5%;
--card-foreground: 210 40% 96%;
@@ -23,52 +40,52 @@
--primary-foreground: 222.2 47.4% 11.2%;
--secondary: 217.2 32.6% 17.5%;
--secondary-foreground: 210 40% 96%;
--muted: 223 50% 12%;
--muted: 223 47% 10%;
--muted-foreground: 215 20.2% 65.1%;
--accent: 199 89% 62%;
--accent-foreground: 222.2 47.4% 11.2%;
--destructive: 0 84.2% 60.2%;
--destructive-foreground: 210 40% 98%;
--border: 221.6 30% 23%;
--input: 221.6 30% 23%;
--border: 217 33% 18%;
--input: 217 33% 18%;
--ring: 199 89% 62%;
--radius: 0.8rem;
font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
* {
*,
*::before,
*::after {
@apply border-border;
}
body {
@apply min-h-screen bg-background bg-radial-signal text-foreground antialiased;
font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
@apply min-h-screen bg-background text-foreground antialiased;
background-image: radial-gradient(circle at top, hsla(var(--primary) / 0.1), transparent 45%),
radial-gradient(circle at bottom, hsla(var(--destructive) / 0.08), transparent 55%);
}
p {
@apply leading-relaxed;
#root {
@apply min-h-screen;
}
}
@layer components {
.leaflet-wrapper,
.leaflet-container {
height: 100%;
width: 100%;
}
.leaflet-container {
font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
z-index: 0;
}
.leaflet-tooltip {
background: rgba(15, 23, 42, 0.9);
border: 1px solid rgba(148, 163, 184, 0.35);
color: #e2e8f0;
border-radius: 0.75rem;
box-shadow: 0 15px 35px rgba(2, 6, 23, 0.45);
padding: 0.65rem 0.75rem;
}
.leaflet-tooltip-top:before,
.leaflet-tooltip-bottom:before,
.leaflet-tooltip-left:before,
.leaflet-tooltip-right:before {
border-top-color: rgba(15, 23, 42, 0.9);
border-bottom-color: rgba(15, 23, 42, 0.9);
border-left-color: rgba(15, 23, 42, 0.9);
border-right-color: rgba(15, 23, 42, 0.9);
.leaflet-pane,
.leaflet-top,
.leaflet-bottom,
.leaflet-control-container {
z-index: 20;
}
}