diff --git a/src/app.css b/src/app.css index c1bae2b..91088bd 100644 --- a/src/app.css +++ b/src/app.css @@ -19,6 +19,26 @@ @apply rounded-lg border-gray-500 bg-white/90 px-4 shadow-lg dark:bg-black dark:text-white dark:shadow-lg dark:shadow-gray-200/10; } + .tab-container { + @apply flex border-b border-gray-300; + } + + .tab-container__item { + @apply -mb-px px-4 py-2 font-semibold text-gray-500; + } + + .tab-container__item--active { + @apply border-b-2 border-green-500 text-green-500; + } + + .button { + @apply rounded-md bg-white px-3 py-2 text-sm font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50; + } + + .button--primary { + @apply rounded-md bg-green-600 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-green-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-green-600; + } + .rtl { @apply flex-row-reverse text-right; direction: rtl; diff --git a/src/components/StandalonePage.svelte b/src/components/StandalonePage.svelte new file mode 100644 index 0000000..2cd0932 --- /dev/null +++ b/src/components/StandalonePage.svelte @@ -0,0 +1,3 @@ +
+ +
diff --git a/src/components/controls/CompassArrow.svelte b/src/components/controls/CompassArrow.svelte new file mode 100644 index 0000000..b57c39d --- /dev/null +++ b/src/components/controls/CompassArrow.svelte @@ -0,0 +1,41 @@ + + + + + diff --git a/src/components/schedule-for-stop/StopDetailsHeader.svelte b/src/components/schedule-for-stop/StopDetailsHeader.svelte deleted file mode 100644 index f0d82db..0000000 --- a/src/components/schedule-for-stop/StopDetailsHeader.svelte +++ /dev/null @@ -1,35 +0,0 @@ - - -
-

- - {$t('schedule_for_stop.stop_details')} -

-

- - {$t('schedule_for_stop.stop_name')}: - {stopName} | {$t('schedule_for_stop.stop_id')}: - {stopId} -

-

- - {$t('schedule_for_stop.direction')}: - {stopDirection} -

- -
diff --git a/src/components/stops/StopPageHeader.svelte b/src/components/stops/StopPageHeader.svelte new file mode 100644 index 0000000..2c4a4c1 --- /dev/null +++ b/src/components/stops/StopPageHeader.svelte @@ -0,0 +1,39 @@ + + +
+

+ {stopName} +

+
+
+ + {$t('schedule_for_stop.stop_id')}: + {stopId} +
+
+ + {$t('schedule_for_stop.direction')}: + {stopDirection} +
+
+ + {$t('arrivals_and_departures_for_stop.title')} + {$t('schedule_for_stop.route_schedules')} + +
diff --git a/src/components/tabs/TabContainer.svelte b/src/components/tabs/TabContainer.svelte new file mode 100644 index 0000000..cb37e3e --- /dev/null +++ b/src/components/tabs/TabContainer.svelte @@ -0,0 +1,3 @@ +
+ +
diff --git a/src/components/tabs/TabLink.svelte b/src/components/tabs/TabLink.svelte new file mode 100644 index 0000000..572d096 --- /dev/null +++ b/src/components/tabs/TabLink.svelte @@ -0,0 +1,10 @@ + + +
+ + + +
diff --git a/src/components/trip-planner/ItineraryTab.svelte b/src/components/trip-planner/ItineraryTab.svelte index d12eb7c..61f2ff8 100644 --- a/src/components/trip-planner/ItineraryTab.svelte +++ b/src/components/trip-planner/ItineraryTab.svelte @@ -6,9 +6,8 @@ - +
+ +
+ +
+ + +
-
+
{#if emptySchedules}

{$t('schedule_for_stop.no_schedules_available')}

{:else} - + {#each schedules as schedule, index (schedule.tripHeadsign)}
- -{/if} + {/if} + diff --git a/tailwind.config.js b/tailwind.config.js index a4bb789..01af366 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -23,6 +23,10 @@ export default { 800: '#CC4522', 900: '#A5371B' } + }, + rotate: { + 135: '135deg', + 225: '225deg' } } },