diff options
| author | Ariel Costas Guerrero <ariel@costas.dev> | 2025-12-24 17:53:32 +0100 |
|---|---|---|
| committer | Ariel Costas Guerrero <ariel@costas.dev> | 2025-12-24 17:53:32 +0100 |
| commit | 9ed46bea58dbb81ceada2a957fd1db653fb21e52 (patch) | |
| tree | f1cb09ad15571abbfae1c59105952330ec3a0502 /src/frontend/app/components/map | |
| parent | 4a866f5352a51916ddb9849b2d68213856196c9c (diff) | |
Implement new UI styles
Diffstat (limited to 'src/frontend/app/components/map')
| -rw-r--r-- | src/frontend/app/components/map/StopSummarySheet.css | 46 | ||||
| -rw-r--r-- | src/frontend/app/components/map/StopSummarySheet.tsx | 2 |
2 files changed, 14 insertions, 34 deletions
diff --git a/src/frontend/app/components/map/StopSummarySheet.css b/src/frontend/app/components/map/StopSummarySheet.css index 5869d41..e39ac07 100644 --- a/src/frontend/app/components/map/StopSummarySheet.css +++ b/src/frontend/app/components/map/StopSummarySheet.css @@ -1,3 +1,5 @@ +@import "../../tailwind.css"; + /* Stop Sheet Styles */ .react-modal-sheet-container { background-color: var(--background-color) !important; @@ -29,6 +31,7 @@ } .stop-sheet-title { + font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--text-color); @@ -36,6 +39,7 @@ } .stop-sheet-id { + font-family: var(--font-display); font-size: 1rem; color: var(--subtitle-color); } @@ -85,6 +89,7 @@ } .stop-sheet-subtitle { + font-family: var(--font-display); font-size: 1.1rem; font-weight: 500; color: var(--text-color); @@ -92,6 +97,7 @@ } .stop-sheet-no-estimates { + font-family: var(--font-display); text-align: center; padding: 32px 16px; color: var(--subtitle-color); @@ -183,6 +189,7 @@ } .stop-sheet-timestamp { + font-family: var(--font-ui); font-size: 0.8rem; color: var(--subtitle-color); text-align: center; @@ -194,35 +201,19 @@ } .stop-sheet-reload { - display: inline-flex; - align-items: center; - gap: 0.4rem; - background: transparent; - border: 1px solid var(--border-color); - color: var(--text-color); - padding: 0.5rem 0.75rem; - border-radius: 6px; - font-size: 0.85rem; - cursor: pointer; - transition: all 0.2s ease; - flex: 1; - justify-content: center; + @apply inline-flex items-center justify-center gap-2 px-4 py-2.5 rounded-xl border border-border bg-transparent text-text text-sm font-sans cursor-pointer transition-all flex-1; } .stop-sheet-reload:hover:not(:disabled) { - background: var(--message-background-color); - border-color: var(--button-background-color); + @apply bg-surface border-primary; } .stop-sheet-reload:disabled { - opacity: 0.6; - cursor: not-allowed; + @apply opacity-60 cursor-not-allowed; } .reload-icon { - width: 14px; - height: 14px; - transition: transform 0.5s ease; + @apply w-4 h-4 transition-transform duration-500; } .reload-icon.spinning { @@ -239,22 +230,11 @@ } .stop-sheet-view-all { - display: block; - padding: 0.5rem 0.75rem; - background-color: var(--button-background-color); - color: white; - text-decoration: none; - text-align: center; - border-radius: 6px; - font-weight: 500; - font-size: 0.85rem; - transition: background-color 0.2s ease; - flex: 2; + @apply block px-4 py-2.5 bg-primary text-white no-underline text-center rounded-xl font-semibold text-sm font-sans transition-colors flex-[1.5]; } .stop-sheet-view-all:hover { - background-color: var(--button-hover-background-color); - text-decoration: none; + @apply bg-primary/90 no-underline; } /* Error display adjustments for sheet */ diff --git a/src/frontend/app/components/map/StopSummarySheet.tsx b/src/frontend/app/components/map/StopSummarySheet.tsx index 56e80a4..7024f41 100644 --- a/src/frontend/app/components/map/StopSummarySheet.tsx +++ b/src/frontend/app/components/map/StopSummarySheet.tsx @@ -26,7 +26,7 @@ export interface StopSheetProps { }; } -export const StopSheet: React.FC<StopSheetProps> = ({ +export const StopSummarySheet: React.FC<StopSheetProps> = ({ isOpen, onClose, stop, |
