diff --git a/apps/frontend/src/components/AddReviewDialog.tsx b/apps/frontend/src/components/AddReviewDialog.tsx index 38dfe28..50b54c5 100644 --- a/apps/frontend/src/components/AddReviewDialog.tsx +++ b/apps/frontend/src/components/AddReviewDialog.tsx @@ -112,7 +112,7 @@ export default function AddReviewDialog({ {locationError && ( -

- {locationError} -

+

{locationError}

)} {!locationError && !hasLocation && ( -

+

{locating ? 'Finding your location…' : 'Allow location access to see pubs near you.'} @@ -103,13 +101,13 @@ export default function NearbyVenues({ )} {hasLocation && isError && ( -

+

Nearby pubs are unavailable right now.

)} {hasLocation && !isError && isLoading && venues.length === 0 && ( -

+

Loading nearby pubs…

)} @@ -119,7 +117,7 @@ export default function NearbyVenues({ !isLoading && venues.length === 0 && !locationError && ( -

+

No pubs within {maxDistanceKm} km of your location.

)} diff --git a/apps/frontend/src/components/SearchBox.tsx b/apps/frontend/src/components/SearchBox.tsx index 6cb0299..ca1825b 100644 --- a/apps/frontend/src/components/SearchBox.tsx +++ b/apps/frontend/src/components/SearchBox.tsx @@ -87,7 +87,7 @@ function SearchIcon() { stroke="currentColor" strokeWidth="2" strokeLinecap="round" - className="h-4 w-4 shrink-0 text-[var(--sea-ink-soft)]" + className="size-4 shrink-0 text-(--sea-ink-soft)" > @@ -211,17 +211,17 @@ export function SearchBox({ coordinates = null, filters }: SearchBoxProps) { } return ( -
+
@@ -248,7 +248,7 @@ export function SearchBox({ coordinates = null, filters }: SearchBoxProps) { aria-activedescendant={ activeOption >= 0 ? `${listId}-option-${activeOption}` : undefined } - className="w-full bg-transparent text-sm text-[var(--sea-ink)] outline-none placeholder:text-[var(--sea-ink-soft)] [&::-webkit-search-cancel-button]:appearance-none" + className="w-full bg-transparent text-sm text-(--sea-ink) outline-none placeholder:text-(--sea-ink-soft) [&::-webkit-search-cancel-button]:appearance-none" /> {term.length > 0 && ( @@ -270,15 +270,15 @@ export function SearchBox({ coordinates = null, filters }: SearchBoxProps) { {showPanel && ( -
+
{isError && ( -

+

Search is unavailable right now.

)} {!isError && (waitingForDebounce || isFetching) && ( -

+

Searching…

)} @@ -287,7 +287,7 @@ export function SearchBox({ coordinates = null, filters }: SearchBoxProps) { !waitingForDebounce && !isFetching && results.length === 0 && ( -

+

No matches for “{debouncedTerm}”.

)} @@ -306,14 +306,14 @@ export function SearchBox({ coordinates = null, filters }: SearchBoxProps) { onMouseDown={(event) => event.preventDefault()} onClick={() => select(result)} onMouseEnter={() => setActiveIndex(index)} - className={`w-full px-3 py-2 text-left text-sm text-[var(--sea-ink)] hover:bg-[var(--chip-bg)] ${ - index === activeOption ? 'bg-[var(--chip-bg)]' : '' + className={`w-full px-3 py-2 text-left text-sm text-(--sea-ink) hover:bg-(--chip-bg) ${ + index === activeOption ? 'bg-(--chip-bg)' : '' }`} > {result.name} - + {typeLabel(result)} @@ -326,26 +326,26 @@ export function SearchBox({ coordinates = null, filters }: SearchBoxProps) { ? 'review' : 'reviews' }`} - className="inline-flex shrink-0 items-center gap-1 rounded-full bg-[var(--chip-bg)] px-1.5 py-0.5 text-xs font-bold" + className="inline-flex shrink-0 items-center gap-1 rounded-full bg-(--chip-bg) px-1.5 py-0.5 text-xs font-bold" > {result.averageRating.toFixed(1)} - + ({result.reviewCount ?? 0}) )} {result.address && ( - + {result.address} )} {(result.latestPriceSighting || result.distanceKm != null) && ( - + {result.latestPriceSighting && ( {formatPrice(result.latestPriceSighting)} )} @@ -365,7 +365,7 @@ export function SearchBox({ coordinates = null, filters }: SearchBoxProps) { type="button" onMouseDown={(event) => event.preventDefault()} onClick={() => setShowAll(true)} - className="w-full border-t border-[var(--line)] px-3 py-2 text-left text-xs font-semibold text-[var(--sea-ink-soft)] hover:bg-[var(--chip-bg)]" + className="w-full border-t border-(--line) px-3 py-2 text-left text-xs font-semibold text-(--sea-ink-soft) hover:bg-(--chip-bg)" > Show all {results.length} results (or press Enter) diff --git a/apps/frontend/src/components/SearchFilters.tsx b/apps/frontend/src/components/SearchFilters.tsx index ef7a1e6..f94abdd 100644 --- a/apps/frontend/src/components/SearchFilters.tsx +++ b/apps/frontend/src/components/SearchFilters.tsx @@ -20,9 +20,9 @@ const SIZE_OPTIONS: { value: GlassSize; label: string }[] = [ ] const fieldClassName = - 'mt-1 w-full rounded-xl bg-[var(--chip-bg)] px-2.5 py-1.5 text-sm text-[var(--sea-ink)] outline-none focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-(--lagoon-deep)' + 'mt-1 w-full rounded-xl bg-(--chip-bg) px-2.5 py-1.5 text-sm text-(--sea-ink) outline-none focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-(--lagoon-deep)' -const labelClassName = 'block text-xs font-semibold text-[var(--sea-ink-soft)]' +const labelClassName = 'block text-xs font-semibold text-(--sea-ink-soft)' function blockNegativeKey(event: KeyboardEvent) { if (event.key === '-') { @@ -67,11 +67,11 @@ export default function SearchFilters({ } return ( -
+

Filter pubs

-

+

Applies to the map, nearby pubs and search results.

@@ -79,7 +79,7 @@ export default function SearchFilters({ type="button" onClick={() => onChange(EMPTY_SEARCH_FILTERS)} disabled={activeCount === 0} - className="rounded-full bg-[var(--chip-bg)] px-3 py-1.5 text-xs font-semibold text-[var(--sea-ink)] transition hover:-translate-y-0.5 disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:translate-y-0" + className="rounded-full bg-(--chip-bg) px-3 py-1.5 text-xs font-semibold text-(--sea-ink) transition hover:-translate-y-0.5 disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:translate-y-0" > Clear filters {activeCount > 0 && ` (${activeCount})`} @@ -111,7 +111,7 @@ export default function SearchFilters({ ))} {!coordinates && ( -

+

Allow location access to filter by distance.

)} @@ -174,13 +174,13 @@ export default function SearchFilters({ {SIZE_OPTIONS.map((option) => ( diff --git a/apps/frontend/src/components/ThemeToggle.tsx b/apps/frontend/src/components/ThemeToggle.tsx index 7f74bc2..917e927 100644 --- a/apps/frontend/src/components/ThemeToggle.tsx +++ b/apps/frontend/src/components/ThemeToggle.tsx @@ -46,7 +46,7 @@ export default function ThemeToggle() { onClick={toggleMode} aria-label={label} title={label} - className="rounded-full bg-(--cream-dark) px-3 py-1.5 text-sm font-semibold text-(--stout-black) shadow-[0_8px_22px_rgba(0,0,0,0.28)] transition hover:-translate-y-0.5" + className="rounded-full bg-(--cream-dark) px-3 py-1.5 text-sm font-semibold text-(--stout-black) transition hover:-translate-y-0.5" > {mode === 'dark' ? 'Dark' : 'Light'} diff --git a/apps/frontend/src/styles.css b/apps/frontend/src/styles.css index f7e59a1..f7a4c99 100644 --- a/apps/frontend/src/styles.css +++ b/apps/frontend/src/styles.css @@ -490,6 +490,10 @@ a { border-top-color: var(--sand); } +.leaflet-container .leaflet-bottom { + z-index: 900; +} + .rise-in { animation: rise-in 700ms cubic-bezier(0.16, 1, 0.3, 1) both; }