From 2a12c38ab256dcf93af50a4c9fbd247695664aa7 Mon Sep 17 00:00:00 2001 From: Valentin Kaelin Date: Thu, 4 Apr 2019 22:29:37 +0200 Subject: [PATCH] Work on responsive and add loading animation --- client/package-lock.json | 6 + client/package.json | 1 + client/postcss.config.js | 23 +- client/src/App.vue | 4 +- client/src/components/Match.vue | 117 +- client/src/data/summoner.json | 2021 +++++++++++++++++++++++++++++++ client/src/helpers/functions.js | 16 +- client/src/main.js | 2 + client/src/router.js | 30 - client/src/views/Summoner.vue | 58 +- client/tailwind.config.js | 448 ++++++- server/.gitignore | 2 +- server/server.js | 8 +- 13 files changed, 2612 insertions(+), 124 deletions(-) create mode 100644 client/src/data/summoner.json diff --git a/client/package-lock.json b/client/package-lock.json index 665e166..e65b10e 100644 --- a/client/package-lock.json +++ b/client/package-lock.json @@ -11072,6 +11072,12 @@ "resolved": "https://registry.npmjs.org/vue-router/-/vue-router-3.0.2.tgz", "integrity": "sha512-opKtsxjp9eOcFWdp6xLQPLmRGgfM932Tl56U9chYTnoWqKxQ8M20N7AkdEbM5beUh6wICoFGYugAX9vQjyJLFg==" }, + "vue-spinner": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/vue-spinner/-/vue-spinner-1.0.3.tgz", + "integrity": "sha512-Phh6QC/Bh80ZE/0SH9ADw4irbRGwFK6VZsTksPHpPm16xga2OXwNC2nI7SEPnndUZP+Lgu1wu+pbH6i6+5siBQ==", + "dev": true + }, "vue-style-loader": { "version": "4.1.2", "resolved": "https://registry.npmjs.org/vue-style-loader/-/vue-style-loader-4.1.2.tgz", diff --git a/client/package.json b/client/package.json index 526231b..3ecf68e 100644 --- a/client/package.json +++ b/client/package.json @@ -25,6 +25,7 @@ "purgecss": "^1.1.0", "tailwindcss": "^1.0.0-beta.3", "vue-awesome": "^3.5.1", + "vue-spinner": "^1.0.3", "vue-template-compiler": "^2.5.21" } } diff --git a/client/postcss.config.js b/client/postcss.config.js index 4b94996..a383682 100644 --- a/client/postcss.config.js +++ b/client/postcss.config.js @@ -13,17 +13,20 @@ module.exports = { plugins: [ postcssImport, tailwindcss('./tailwind.config.js'), - purgecss({ - content: ['./src/**/*.vue'], - whitelist: ['html', 'body'], - extractors: [ - { - extractor: TailwindExtractor, - extensions: ['html', 'js', 'vue'] - } - ] - }), + // --- !!! purgecss not working !!! --- + + // purgecss({ + // content: ['./src/**/*.vue'], + // whitelist: ['html', 'body'], + // extractors: [ + // { + // extractor: TailwindExtractor, + + // extensions: ['html', 'js', 'vue'] + // } + // ] + // }), autoprefixer ] } diff --git a/client/src/App.vue b/client/src/App.vue index fafabc6..bd71eff 100644 --- a/client/src/App.vue +++ b/client/src/App.vue @@ -4,7 +4,7 @@ Accueil | {{ linkText }} - + @@ -16,6 +16,8 @@ #app { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; + + min-height: 100vh; } diff --git a/client/src/components/Match.vue b/client/src/components/Match.vue index 5341c19..fd8500d 100644 --- a/client/src/components/Match.vue +++ b/client/src/components/Match.vue @@ -1,60 +1,83 @@