Skip to content

Commit

Permalink
ui: add the primary color customization to stoppane and routemodal
Browse files Browse the repository at this point in the history
  • Loading branch information
tarunsinghofficial committed Jan 18, 2025
1 parent 100f22a commit cf89ddc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/components/routes/RouteModal.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@
{#if stops && selectedRoute}
<div class="space-y-4">
<div>
<div class="h-36 rounded-lg bg-[#1C1C1E] bg-opacity-80 p-4">
<h1 class="mb-6 text-center text-2xl font-bold text-white">
<div class="h-36 bg-brand-secondary bg-opacity-80 p-4 rounded-lg">
<h1 class="mb-6 text-2xl font-bold text-center text-white">
Route: {selectedRoute.shortName}
</h1>
<h2 class="mb-6 text-center text-xl text-white">{selectedRoute.description}</h2>
<h2 class="mb-6 text-xl text-center text-white">{selectedRoute.description}</h2>
</div>
</div>

Expand Down
6 changes: 3 additions & 3 deletions src/components/stops/StopPane.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -97,16 +97,16 @@
{#if arrivalsAndDepartures}
<div class="space-y-4">
<div>
<div class="relative flex flex-col gap-y-1 rounded-lg bg-[#1C1C1E] bg-opacity-80 p-4">
<div class="gap-y-1 bg-brand-secondary bg-opacity-80 relative flex flex-col p-4 rounded-lg">
<h1 class="h1 mb-0 text-white">{stop.name}</h1>
<h2 class="h2 mb-0 text-white">{$t('stop')} #{stop.id}</h2>
{#if routeShortNames()}
<h2 class="h2 mb-0 text-white">{$t('routes')}: {routeShortNames().join(', ')}</h2>
{/if}
<div class="mt-auto flex justify-end">
<div class="flex justify-end mt-auto">
<a
href={`/stops/${stop.id}/schedule`}
class="inline-block rounded-lg border border-brand bg-brand px-3 py-1 text-sm font-medium text-white shadow-md transition duration-200 ease-in-out hover:bg-brand-secondary"
class="border-brand bg-brand hover:bg-brand-secondary inline-block px-3 py-1 text-sm font-medium text-white transition duration-200 ease-in-out border rounded-lg shadow-md"
target="_blank"
>
{$t('schedule_for_stop.view_schedule')}
Expand Down

0 comments on commit cf89ddc

Please sign in to comment.