diff --git a/package.json b/package.json index 0642cd1..8a17cc3 100644 --- a/package.json +++ b/package.json @@ -1,22 +1,22 @@ -{ - "name": "pojazdownik", - "version": "1.4.0", - "private": true, - "scripts": { - "dev": "vite", - "build": "vue-tsc --noEmit && vite build", - "preview": "yarn build && vite preview --port 4174" - }, - "dependencies": { - "pinia": "^2.0.17", - "vue": "^3.2.37" - }, - "devDependencies": { - "@vitejs/plugin-vue": "^4.1.0", - "sass": "^1.59.3", - "typescript": "^5.0.2", - "vite": "^4.2.1", - "vite-plugin-pwa": "^0.14.6", - "vue-tsc": "^1.2.0" - } -} +{ + "name": "pojazdownik", + "version": "1.4.0", + "private": true, + "scripts": { + "dev": "vite", + "build": "vue-tsc --noEmit && vite build", + "preview": "yarn build && vite preview --port 4174" + }, + "dependencies": { + "pinia": "^2.0.17", + "vue": "^3.2.37" + }, + "devDependencies": { + "@vitejs/plugin-vue": "^4.1.0", + "sass": "^1.59.3", + "typescript": "^5.0.2", + "vite": "^4.2.1", + "vite-plugin-pwa": "^0.14.6", + "vue-tsc": "^1.2.0" + } +} diff --git a/src/App.vue b/src/App.vue index 81a5715..b42774d 100644 --- a/src/App.vue +++ b/src/App.vue @@ -77,6 +77,18 @@ export default defineComponent({ ).json(); this.store.stockData = stockData; + + // routing + switch (window.location.pathname) { + case '/numgnr': + this.store.stockSectionMode = 'number-generator'; + break; + case '/stockgnr': + this.store.stockSectionMode = 'stock-generator'; + break; + default: + break; + } }, }); diff --git a/src/components/sections/LogoSection.vue b/src/components/sections/LogoSection.vue index b3c308b..a78766d 100644 --- a/src/components/sections/LogoSection.vue +++ b/src/components/sections/LogoSection.vue @@ -1,5 +1,5 @@ @@ -9,6 +9,12 @@ export default { setup() { return {}; }, + + methods: { + navigate() { + window.location.pathname = ''; + }, + }, }; @@ -21,11 +27,13 @@ export default { display: flex; justify-content: center; align-items: center; + + cursor: pointer; } img { max-width: 25em; - width: 100%; + width: 100%; }