diff --git a/package-lock.json b/package-lock.json index 177b8bc..9ddf6a3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8036,6 +8036,14 @@ "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=", "dev": true }, + "json2mq": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/json2mq/-/json2mq-0.2.0.tgz", + "integrity": "sha1-tje9O6nqvhIsg+lyBIOusQ0skEo=", + "requires": { + "string-convert": "^0.2.0" + } + }, "json3": { "version": "3.3.2", "resolved": "https://registry.npmjs.org/json3/-/json3-3.3.2.tgz", @@ -12274,6 +12282,11 @@ "integrity": "sha1-2sMECGkMIfPDYwo/86BYd73L1zY=", "dev": true }, + "string-convert": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/string-convert/-/string-convert-0.2.1.tgz", + "integrity": "sha1-aYLMMEn7tM2F+LJFaLnZvznu/5c=" + }, "string-width": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", @@ -13227,6 +13240,14 @@ "resolved": "https://registry.npmjs.org/vue-material-design-icons/-/vue-material-design-icons-3.0.0.tgz", "integrity": "sha512-Y9dLUDuU0X3BjdeYjaHaWQ1UX4LMKT1kPIGApVhJmIs+HKY6xf57JLuba82YK+8iRlkJ/QYXbSV9oLrugn6M3w==" }, + "vue-mq": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/vue-mq/-/vue-mq-1.0.1.tgz", + "integrity": "sha512-FceZ1tFE0MZ8GroRBKPQWBRy4ZEAa7p5R7cGAzJpGuKPU2AI4ClmE+S6O/yV4jO5271o9tgaUFt7fzUAIf9xOQ==", + "requires": { + "json2mq": "^0.2.0" + } + }, "vue-resource": { "version": "1.5.1", "resolved": "https://registry.npmjs.org/vue-resource/-/vue-resource-1.5.1.tgz", diff --git a/package.json b/package.json index ce28720..d830d61 100644 --- a/package.json +++ b/package.json @@ -13,6 +13,7 @@ "vue": "^2.6.6", "vue-async-computed": "^3.6.1", "vue-material-design-icons": "^3.0.0", + "vue-mq": "^1.0.1", "vue-resource": "^1.5.1" }, "devDependencies": { diff --git a/src/components/HomeDownloadBeta.vue b/src/components/HomeDownloadBeta.vue index 31df69d..a4f9378 100644 --- a/src/components/HomeDownloadBeta.vue +++ b/src/components/HomeDownloadBeta.vue @@ -2,7 +2,7 @@
({ code: release.tag_name, released: release.published_at, github: release.html_url, download: release.assets[0].browser_download_url, + id: release.id, })); // return [ // { @@ -87,6 +87,7 @@ export default { diff --git a/src/components/HomeDownloadDev.vue b/src/components/HomeDownloadDev.vue new file mode 100644 index 0000000..e608e15 --- /dev/null +++ b/src/components/HomeDownloadDev.vue @@ -0,0 +1,101 @@ + + + + + diff --git a/src/components/HomeDownloadDevItem.vue b/src/components/HomeDownloadDevItem.vue new file mode 100644 index 0000000..4ca80b1 --- /dev/null +++ b/src/components/HomeDownloadDevItem.vue @@ -0,0 +1,148 @@ + + + + + diff --git a/src/components/HomeDownloadDevMaster.vue b/src/components/HomeDownloadDevMaster.vue new file mode 100644 index 0000000..a8dc847 --- /dev/null +++ b/src/components/HomeDownloadDevMaster.vue @@ -0,0 +1,111 @@ + + + + + diff --git a/src/components/HomeDownloadSection.vue b/src/components/HomeDownloadSection.vue index 3de65f4..1d22411 100644 --- a/src/components/HomeDownloadSection.vue +++ b/src/components/HomeDownloadSection.vue @@ -1,19 +1,42 @@ @@ -27,6 +50,10 @@ export default { display: grid; grid-template-columns: 1fr 32px 1fr; grid-template-rows: auto auto 1fr 64px; + + @media screen and (max-width: 875px) { + grid-template-columns: 1fr; + } } .title { @@ -37,6 +64,9 @@ export default { font-weight: 400; grid-column: 1/4; grid-row: 1; + @media screen and (max-width: 875px) { + grid-column: 1; + } } .section-name { @@ -61,5 +91,17 @@ export default { grid-row: 3; grid-column: 1; margin-top: 8px; + @media screen and (max-width: 875px) { + grid-column: 1; + } + } + + .download-dev { + grid-row: 3; + grid-column: 3; + margin-top: 8px; + @media screen and (max-width: 875px) { + grid-column: 1; + } } diff --git a/src/components/HomeDownloadVersionSwitcher.vue b/src/components/HomeDownloadVersionSwitcher.vue new file mode 100644 index 0000000..eed3647 --- /dev/null +++ b/src/components/HomeDownloadVersionSwitcher.vue @@ -0,0 +1,78 @@ + + + + + diff --git a/src/main.js b/src/main.js index f7e0e1a..7480ad8 100644 --- a/src/main.js +++ b/src/main.js @@ -2,11 +2,18 @@ import '@mdi/font/css/materialdesignicons.min.css'; import Vue from 'vue'; import AsyncComputed from 'vue-async-computed'; import VueResource from 'vue-resource'; +import VueMq from 'vue-mq'; import App from './App.vue'; Vue.use(AsyncComputed); Vue.use(VueResource); +Vue.use(VueMq, { + breakpoints: { + md: 875, + lg: Infinity, + }, +}); Vue.config.productionTip = false;