aboutsummaryrefslogtreecommitdiff
path: root/src/frontend/app/components/StopItem.tsx
diff options
context:
space:
mode:
authorAriel Costas Guerrero <ariel@costas.dev>2025-11-30 23:27:33 +0100
committerAriel Costas Guerrero <ariel@costas.dev>2025-11-30 23:29:45 +0100
commita477dda9dc4291ab25fffe2525acf44177154c86 (patch)
tree8fc73d9b288b0a5d6597a9e79bfb6d1a9eb45d73 /src/frontend/app/components/StopItem.tsx
parent688a4359d345c32c05d5d43c484b487de344ac97 (diff)
Remake home and settings pages using Tailwind styles
Diffstat (limited to 'src/frontend/app/components/StopItem.tsx')
-rw-r--r--src/frontend/app/components/StopItem.tsx17
1 files changed, 10 insertions, 7 deletions
diff --git a/src/frontend/app/components/StopItem.tsx b/src/frontend/app/components/StopItem.tsx
index 7875b59..9679b05 100644
--- a/src/frontend/app/components/StopItem.tsx
+++ b/src/frontend/app/components/StopItem.tsx
@@ -9,18 +9,21 @@ interface StopItemProps {
const StopItem: React.FC<StopItemProps> = ({ stop }) => {
return (
- <li className="list-item">
- <Link className="list-item-link" to={`/stops/${stop.stopId}`}>
- <div style={{ display: "flex", justifyContent: "space-between", alignItems: "baseline" }}>
- <span style={{ fontWeight: 600 }}>
- {stop.favourite && <span className="favourite-icon">★</span>}
+ <li className="pb-3 border-b border-gray-200 dark:border-gray-700 md:border md:border-gray-300 dark:md:border-gray-700 md:rounded-lg md:p-3 md:pb-3">
+ <Link
+ className="block text-gray-900 dark:text-gray-100 no-underline hover:text-blue-600 dark:hover:text-blue-400 transition-colors duration-200"
+ to={`/stops/${stop.stopId}`}
+ >
+ <div className="flex justify-between items-baseline">
+ <span className="font-semibold">
+ {stop.favourite && <span className="text-yellow-500 mr-1">★</span>}
{StopDataProvider.getDisplayName(stop)}
</span>
- <span style={{ fontSize: "0.85em", color: "var(--subtitle-color)", marginLeft: "0.5rem" }}>
+ <span className="text-sm text-gray-600 dark:text-gray-400 ml-2">
({stop.stopId})
</span>
</div>
- <div className="line-icons" style={{ marginTop: "0.25rem" }}>
+ <div className="flex flex-wrap gap-1 mt-1">
{stop.lines?.map((line) => (
<LineIcon key={line} line={line} />
))}