From b2930f6a9eb3af2d9ca5c1388179491f15bfb969 Mon Sep 17 00:00:00 2001 From: Spythere Date: Sat, 19 Apr 2025 14:51:42 +0200 Subject: [PATCH] restruct: added driver view components --- src/components/DriverView/DriverNotFound.vue | 80 ++++++++ .../DriverView/DriverTopActions.vue | 85 +++++++++ src/components/DriverView/DriverTrainCard.vue | 73 +++++++ src/locales/en.json | 1 + src/locales/pl.json | 1 + src/styles/_global.scss | 2 + src/views/DriverView.vue | 180 +----------------- 7 files changed, 249 insertions(+), 173 deletions(-) create mode 100644 src/components/DriverView/DriverNotFound.vue create mode 100644 src/components/DriverView/DriverTopActions.vue create mode 100644 src/components/DriverView/DriverTrainCard.vue diff --git a/src/components/DriverView/DriverNotFound.vue b/src/components/DriverView/DriverNotFound.vue new file mode 100644 index 0000000..9e8f646 --- /dev/null +++ b/src/components/DriverView/DriverNotFound.vue @@ -0,0 +1,80 @@ + + + + + + \ No newline at end of file diff --git a/src/components/DriverView/DriverTopActions.vue b/src/components/DriverView/DriverTopActions.vue new file mode 100644 index 0000000..8814505 --- /dev/null +++ b/src/components/DriverView/DriverTopActions.vue @@ -0,0 +1,85 @@ + + + + + + \ No newline at end of file diff --git a/src/components/DriverView/DriverTrainCard.vue b/src/components/DriverView/DriverTrainCard.vue new file mode 100644 index 0000000..b2ff25a --- /dev/null +++ b/src/components/DriverView/DriverTrainCard.vue @@ -0,0 +1,73 @@ + + + + + \ No newline at end of file diff --git a/src/locales/en.json b/src/locales/en.json index 279a4fa..8915420 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -395,6 +395,7 @@ "driver-not-found-others": "Player {driver} is online as:", "driver-not-found-return": "GO BACK TO THE MAIN SITE", "stock-copy": "COPY THE STOCK", + "number-propositions": "PROPOSE NUMBERS", "stock-clipboard-success": "Successfully copied the railway stock in a text form to your clipboard!", "stock-clipboard-failure": "Oops! Something happened and the railway stock couldn't be copied to your clipboard! :/" }, diff --git a/src/locales/pl.json b/src/locales/pl.json index de80fb0..13034c0 100644 --- a/src/locales/pl.json +++ b/src/locales/pl.json @@ -382,6 +382,7 @@ "driver-not-found-others": "Gracz {driver} jest online jako:", "driver-not-found-return": "WRÓĆ NA STRONĘ GŁÓWNĄ", "stock-copy": "SKOPIUJ SKŁAD", + "number-propositions": "ZAPROPONUJ NUMERY", "stock-clipboard-success": "Pomyślnie skopiowano skład w postaci tekstowej do schowka!", "stock-clipboard-failure": "Ups! Nie udało się skopiować składu do schowka! :/" }, diff --git a/src/styles/_global.scss b/src/styles/_global.scss index d4dadc7..58c9a47 100644 --- a/src/styles/_global.scss +++ b/src/styles/_global.scss @@ -8,6 +8,7 @@ --clr-bg: #4d4d4d; --clr-bg2: #1b1b1b; --clr-bg3: #1d1d1d; + --clr-view-bg: #1a1a1a; --clr-accent: #1085b3; --clr-accent2: #ff3d5d; @@ -22,6 +23,7 @@ --clr-donator: #f7a4ff; + --no-scroll-padding: 17px; --max-container-width: 1700px; diff --git a/src/views/DriverView.vue b/src/views/DriverView.vue index 94daf32..90f68a2 100644 --- a/src/views/DriverView.vue +++ b/src/views/DriverView.vue @@ -2,103 +2,27 @@
-
- - -
- - - {{ $t('trains.driver-srjp-link') }} - - - srjp icon - - - - - {{ $t('trains.driver-journal-link') }} - - - train icon - -
-
- -
- - - - - - -
+ +
-
-

⦻ {{ $t('trains.driver-not-found-header') }}

- -

- {{ $t('trains.driver-not-found-desc-1') }}
- {{ $t('trains.driver-not-found-desc-2') }} - {{ $t('trains.driver-not-found-journal') }} ! -

- -

- - - -

- -
- -
- -
- << {{ $t('trains.driver-not-found-return') }} -
-
+