diff options
| author | Ariel Costas Guerrero <ariel@costas.dev> | 2025-11-19 22:34:07 +0100 |
|---|---|---|
| committer | Ariel Costas Guerrero <ariel@costas.dev> | 2025-11-19 22:34:20 +0100 |
| commit | 747c579b15c54dc5dbc50482d3361761853e007a (patch) | |
| tree | 13587e5825bd5353fe75f4129c0746f28bba4cea /src/frontend/app/routes/home.tsx | |
| parent | d51169f6411b68a226d76d2d39826904de484929 (diff) | |
feat: Refactor layout and styles for StopList and related components; add ThemeColorManager for dynamic theme support
Diffstat (limited to 'src/frontend/app/routes/home.tsx')
| -rw-r--r-- | src/frontend/app/routes/home.tsx | 35 |
1 files changed, 13 insertions, 22 deletions
diff --git a/src/frontend/app/routes/home.tsx b/src/frontend/app/routes/home.tsx index 8a1e3b3..ca6a20b 100644 --- a/src/frontend/app/routes/home.tsx +++ b/src/frontend/app/routes/home.tsx @@ -2,10 +2,8 @@ import Fuse from "fuse.js"; import { useCallback, useEffect, useMemo, useRef, useState } from "react"; import { useTranslation } from "react-i18next"; -import { REGIONS } from "~/config/RegionConfig"; import { usePageTitle } from "~/contexts/PageTitleContext"; import { useApp } from "../AppContext"; -import ServiceAlerts from "../components/ServiceAlerts"; import StopGallery from "../components/StopGallery"; import StopItem from "../components/StopItem"; import StopItemSkeleton from "../components/StopItemSkeleton"; @@ -249,26 +247,19 @@ export default function StopList() { }; return ( - <div className="page-container stoplist-page"> - <h1 className="page-title">BusUrbano - {REGIONS[region].name}</h1> - - <form className="search-form"> - <div className="form-group"> - <label className="form-label" htmlFor="stopName"> - {t("stoplist.search_label", "Buscar paradas")} - </label> - <input - className="form-input" - type="text" - placeholder={randomPlaceholder} - id="stopName" - onChange={handleStopSearch} - /> - </div> - </form> + <div className="stoplist-page"> + <div className="stoplist-section search-container"> + <h3 className="page-subtitle">{t("stoplist.search_label", "Buscar paradas")}</h3> + <input + type="search" + placeholder={randomPlaceholder} + onChange={handleStopSearch} + className="search-bar" + /> + </div> {searchResults && searchResults.length > 0 && ( - <div className="list-container"> + <div className="stoplist-section list-container"> <h2 className="page-subtitle"> {t("stoplist.search_results", "Resultados de la búsqueda")} </h2> @@ -295,9 +286,9 @@ export default function StopList() { /> )} - <ServiceAlerts /> + {/*<ServiceAlerts />*/} - <div className="list-container"> + <div className="stoplist-section list-container"> <h2 className="page-subtitle"> {userLocation ? t("stoplist.nearby_stops", "Nearby stops") |
