From cd946c8d7ccd36e43d20ee05e8404400d7fe1d84 Mon Sep 17 00:00:00 2001 From: Julien Nahum Date: Tue, 29 Nov 2022 11:06:31 +0100 Subject: [PATCH 1/5] Added aspect ratio plugin --- package-lock.json | 17 +++++++++++++++++ package.json | 1 + tailwind.config.js | 5 ++++- 3 files changed, 22 insertions(+), 1 deletion(-) diff --git a/package-lock.json b/package-lock.json index 5dded21..629b425 100644 --- a/package-lock.json +++ b/package-lock.json @@ -42,6 +42,7 @@ "@babel/eslint-parser": "^7.15.0", "@babel/plugin-syntax-dynamic-import": "^7.8.3", "@babel/preset-env": "^7.15.0", + "@tailwindcss/aspect-ratio": "^0.4.2", "autoprefixer": "^10.4.12", "cross-env": "^7.0.3", "eslint": "^7.32.0", @@ -2046,6 +2047,15 @@ "node": ">=4" } }, + "node_modules/@tailwindcss/aspect-ratio": { + "version": "0.4.2", + "resolved": "https://registry.npmjs.org/@tailwindcss/aspect-ratio/-/aspect-ratio-0.4.2.tgz", + "integrity": "sha512-8QPrypskfBa7QIMuKHg2TA7BqES6vhBrDLOv8Unb6FcFyd3TjKbc6lcmb9UPQHxfl24sXoJ41ux/H7qQQvfaSQ==", + "dev": true, + "peerDependencies": { + "tailwindcss": ">=2.0.0 || >=3.0.0 || >=3.0.0-alpha.1" + } + }, "node_modules/@trysound/sax": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/@trysound/sax/-/sax-0.2.0.tgz", @@ -18643,6 +18653,13 @@ "integrity": "sha512-ONhaKPIufzzrlNbqtWFFd+jlnemX6lJAgq9ZeiZtS7I1PIf/la7CW4m83rTXRnVnsMbW2k56pGYu7AUFJD9Pow==", "dev": true }, + "@tailwindcss/aspect-ratio": { + "version": "0.4.2", + "resolved": "https://registry.npmjs.org/@tailwindcss/aspect-ratio/-/aspect-ratio-0.4.2.tgz", + "integrity": "sha512-8QPrypskfBa7QIMuKHg2TA7BqES6vhBrDLOv8Unb6FcFyd3TjKbc6lcmb9UPQHxfl24sXoJ41ux/H7qQQvfaSQ==", + "dev": true, + "requires": {} + }, "@trysound/sax": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/@trysound/sax/-/sax-0.2.0.tgz", diff --git a/package.json b/package.json index ee2cefd..e0c9849 100644 --- a/package.json +++ b/package.json @@ -51,6 +51,7 @@ "autoprefixer": "^10.4.12", "cross-env": "^7.0.3", "eslint": "^7.32.0", + "@tailwindcss/aspect-ratio": "^0.4.2", "eslint-config-standard": "^16.0.3", "eslint-plugin-import": "^2.24.0", "eslint-plugin-node": "^11.1.0", diff --git a/tailwind.config.js b/tailwind.config.js index 71ceaf0..518c067 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -70,5 +70,8 @@ module.exports = { spacing: 'margin, padding' } } - } + }, + plugins: [ + require('@tailwindcss/aspect-ratio'), + ] } From 73cb016473579a0e1a7ee2750ae28255d4b1ecb9 Mon Sep 17 00:00:00 2001 From: Julien Nahum Date: Tue, 29 Nov 2022 15:13:00 +0100 Subject: [PATCH 2/5] Improve template pages --- .../js/pages/auth/components/QuickRegister.vue | 14 +++++--------- resources/js/pages/templates/show.vue | 14 ++++++++++---- 2 files changed, 15 insertions(+), 13 deletions(-) diff --git a/resources/js/pages/auth/components/QuickRegister.vue b/resources/js/pages/auth/components/QuickRegister.vue index dbc3bad..48b751a 100644 --- a/resources/js/pages/auth/components/QuickRegister.vue +++ b/resources/js/pages/auth/components/QuickRegister.vue @@ -3,10 +3,8 @@