diff --git a/index.html b/index.html index d7cf592..dc68894 100644 --- a/index.html +++ b/index.html @@ -1,5 +1,5 @@ - + @@ -7,7 +7,6 @@ Pojazdownik - diff --git a/package.json b/package.json index a8d3e64..462c517 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pojazdownik", - "version": "1.2.3", + "version": "1.3.0", "private": true, "scripts": { "dev": "vite", diff --git a/public/images/car-cargo-unknown.png b/public/images/car-cargo-unknown.png new file mode 100644 index 0000000..3a270b5 Binary files /dev/null and b/public/images/car-cargo-unknown.png differ diff --git a/public/images/car-passenger-unknown.png b/public/images/car-passenger-unknown.png new file mode 100644 index 0000000..0a930b9 Binary files /dev/null and b/public/images/car-passenger-unknown.png differ diff --git a/public/images/loco-e-unknown.png b/public/images/loco-e-unknown.png new file mode 100644 index 0000000..c95616f Binary files /dev/null and b/public/images/loco-e-unknown.png differ diff --git a/public/images/loco-ezt-unknown.png b/public/images/loco-ezt-unknown.png new file mode 100644 index 0000000..357177d Binary files /dev/null and b/public/images/loco-ezt-unknown.png differ diff --git a/public/images/loco-s-unknown.png b/public/images/loco-s-unknown.png new file mode 100644 index 0000000..6ed3948 Binary files /dev/null and b/public/images/loco-s-unknown.png differ diff --git a/public/images/unknown.png b/public/images/unknown.png new file mode 100644 index 0000000..0aeae08 Binary files /dev/null and b/public/images/unknown.png differ diff --git a/src/App.vue b/src/App.vue index f37cefd..1340ac4 100644 --- a/src/App.vue +++ b/src/App.vue @@ -34,6 +34,7 @@ regulaminem symulatora Train Driver 2! +
Strona jest kompletna dla wersji 2022.2.2 symulatora TD2
© Spythere {{ new Date().getUTCFullYear() }} | v{{ VERSION }} @@ -46,13 +47,13 @@ import packageInfo from '.././package.json'; import { defineComponent } from 'vue'; -import InputsSection from './components/InputsSection.vue'; +import InputsSection from './components/sections/InputsSection.vue'; import { useStore } from './store'; -import TrainImageSection from './components/TrainImageSection.vue'; -import LogoSection from './components/LogoSection.vue'; +import TrainImageSection from './components/sections/TrainImageSection.vue'; +import LogoSection from './components/sections/LogoSection.vue'; import RealStockCard from './components/cards/RealStockCard.vue'; -import StockSection from './components/StockSection.vue'; +import StockSection from './components/sections/StockSection.vue'; export default defineComponent({ components: { @@ -70,7 +71,7 @@ export default defineComponent({ async created() { const stockData = await ( - await fetch(`https://spythere.github.io/api/td2/data/stockData.json?t=${Math.floor(Date.now() / 60000)}`) + await fetch(`https://spythere.github.io/api/td2/data/stockInfo.json?t=${Math.floor(Date.now() / 60000)}`) ).json(); this.store.stockData = stockData; @@ -86,7 +87,7 @@ export default defineComponent({ display: flex; flex-direction: column; - padding: 1em; + align-items: center; } /* APP */ @@ -95,9 +96,7 @@ export default defineComponent({ color: $textColor; font-size: 1em; - - display: flex; - justify-content: center; + padding: 1em 0.5em; } /* HEADER SECTION */ @@ -145,14 +144,14 @@ main { display: grid; gap: 1em 3em; - width: 100vw; + width: 100%; max-width: 1300px; min-height: 75vh; grid-template-columns: 1fr 2fr; grid-template-rows: auto 360px minmax(400px, 1fr); - padding: 0 1em; + // padding: 0 1em; margin-bottom: 2em; } @@ -167,6 +166,10 @@ footer { /* MOBILE VIEWS */ @media screen and (max-width: $breakpointMd) { + #app { + font-size: calc(0.7rem + 0.75vw); + } + main { display: flex; flex-direction: column; @@ -174,11 +177,5 @@ footer { grid-template-rows: 1fr; } } - -// @media screen and (max-width: $breakpointSm) { -// header { -// font-size: 0.75em; -// } -// } diff --git a/src/components/StockSection.vue b/src/components/StockSection.vue deleted file mode 100644 index b130373..0000000 --- a/src/components/StockSection.vue +++ /dev/null @@ -1,76 +0,0 @@ - - - - - - diff --git a/src/components/cards/RealStockCard.vue b/src/components/cards/RealStockCard.vue index f77520a..cf8ff49 100644 --- a/src/components/cards/RealStockCard.vue +++ b/src/components/cards/RealStockCard.vue @@ -41,18 +41,18 @@ + diff --git a/src/components/TrainImageSection.vue b/src/components/sections/TrainImageSection.vue similarity index 95% rename from src/components/TrainImageSection.vue rename to src/components/sections/TrainImageSection.vue index b905b1a..9b3b118 100644 --- a/src/components/TrainImageSection.vue +++ b/src/components/sections/TrainImageSection.vue @@ -54,9 +54,9 @@ + diff --git a/src/components/StockGeneratorTab.vue b/src/components/tabs/StockGeneratorTab.vue similarity index 68% rename from src/components/StockGeneratorTab.vue rename to src/components/tabs/StockGeneratorTab.vue index 5221874..b09fbc6 100644 --- a/src/components/StockGeneratorTab.vue +++ b/src/components/tabs/StockGeneratorTab.vue @@ -1,58 +1,67 @@