From 666ba07307ccea75d70e472604732b37cf160df4 Mon Sep 17 00:00:00 2001 From: Spythere Date: Tue, 4 Feb 2025 18:14:58 +0100 Subject: [PATCH] chore: added SRJP external link --- public/images/icon-srjp.svg | 5 +++ src/components/Global/DonationCard.vue | 2 +- src/locales/en.json | 1 + src/locales/pl.json | 1 + src/views/DriverView.vue | 59 +++++++++++++++++--------- 5 files changed, 48 insertions(+), 20 deletions(-) create mode 100644 public/images/icon-srjp.svg diff --git a/public/images/icon-srjp.svg b/public/images/icon-srjp.svg new file mode 100644 index 0000000..93a1f0a --- /dev/null +++ b/public/images/icon-srjp.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/src/components/Global/DonationCard.vue b/src/components/Global/DonationCard.vue index a1d0fc4..ebc43c7 100644 --- a/src/components/Global/DonationCard.vue +++ b/src/components/Global/DonationCard.vue @@ -187,7 +187,7 @@ a.discord { text-decoration: underline; } -.actions { +.actions-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 0.5em; diff --git a/src/locales/en.json b/src/locales/en.json index 96b4659..f669954 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -376,6 +376,7 @@ "scenery-offline": "Offline ride", "timeout": "An error occured while trying to refresh SWDR timetable data!", "driver-journal-link": "DRIVER JOURNAL", + "driver-srjp-link": "SRJP", "driver-return-link": "GO BACK", "driver-not-found-header": "Train not found! :/", "driver-not-found-desc-1": "This train has already been terminated, changed its number or is offline.", diff --git a/src/locales/pl.json b/src/locales/pl.json index 589525f..e7a1b15 100644 --- a/src/locales/pl.json +++ b/src/locales/pl.json @@ -363,6 +363,7 @@ "scenery-offline": "Przejazd offline", "timeout": "Wystąpił problem z aktualizacją rozkładów jazdy z SWDR", "driver-journal-link": "DZIENNIK MASZYNISTY", + "driver-srjp-link": "SRJP", "driver-return-link": "POWRÓT", "driver-not-found-header": "Nie znaleziono pociągu! :/", "driver-not-found-desc-1": "Ten pociąg prawdopodobnie zakończył już swój bieg, zmienił numer lub jest offline.", diff --git a/src/views/DriverView.vue b/src/views/DriverView.vue index 7181947..100abbc 100644 --- a/src/views/DriverView.vue +++ b/src/views/DriverView.vue @@ -2,24 +2,40 @@
-
- - train icon - - {{ $t('trains.driver-return-link') }} - - +
+ - - - {{ $t('trains.driver-journal-link') }} - +
+ + + {{ $t('trains.driver-srjp-link') }} + - train icon - + srjp icon + + + + + {{ $t('trains.driver-journal-link') }} + + + train icon + +
@@ -142,14 +158,19 @@ $viewBgCol: #1a1a1a; min-height: calc(100vh - 7em); } -.actions { +.actions-container { display: flex; align-items: flex-end; justify-content: space-between; gap: 0.5em; } -.actions > a { +.actions { + display: flex; + gap: 0.5em; +} + +.actions-container > .actions > a { background-color: $viewBgCol; padding: 0.5em; border-radius: 0.5em 0.5em 0 0; @@ -189,7 +210,7 @@ $viewBgCol: #1a1a1a; } @include smallScreen { - .actions > a > span.hidable { + span.hidable { display: none; } }