From 8bab2b01f1e26dac4629b2ee1ccb940610d89273 Mon Sep 17 00:00:00 2001 From: 62bfaa38f5bc8d75ce8dc685 <62bfaa38f5bc8d75ce8dc685@devide> Date: Mon, 17 Apr 2023 07:57:58 +0000 Subject: [PATCH] UPDATE --- package.json | 3 + postcss.config.js | 6 ++ src/App.vue | 142 ++++++++++++++++++++++++++++++++++---------- src/assets/base.css | 4 ++ src/assets/main.css | 38 +----------- tailwind.config.js | 9 +++ 6 files changed, 134 insertions(+), 68 deletions(-) create mode 100644 postcss.config.js create mode 100644 tailwind.config.js diff --git a/package.json b/package.json index aa1c7de..ab9ea71 100644 --- a/package.json +++ b/package.json @@ -12,6 +12,9 @@ }, "devDependencies": { "@vitejs/plugin-vue": "^3.0.1", + "autoprefixer": "^10.4.14", + "postcss": "^8.4.22", + "tailwindcss": "^3.3.1", "vite": "^3.0.1" } } diff --git a/postcss.config.js b/postcss.config.js new file mode 100644 index 0000000..33ad091 --- /dev/null +++ b/postcss.config.js @@ -0,0 +1,6 @@ +module.exports = { + plugins: { + tailwindcss: {}, + autoprefixer: {}, + }, +} diff --git a/src/App.vue b/src/App.vue index 633a5df..b1e651e 100644 --- a/src/App.vue +++ b/src/App.vue @@ -4,44 +4,120 @@ import TheWelcome from './components/TheWelcome.vue' diff --git a/src/assets/base.css b/src/assets/base.css index 71dc55a..cf69402 100644 --- a/src/assets/base.css +++ b/src/assets/base.css @@ -1,3 +1,7 @@ +@tailwind base; +@tailwind components; +@tailwind utilities; + /* color palette from */ :root { --vt-c-white: #ffffff; diff --git a/src/assets/main.css b/src/assets/main.css index c133f91..b5c61c9 100644 --- a/src/assets/main.css +++ b/src/assets/main.css @@ -1,35 +1,3 @@ -@import "./base.css"; - -#app { - max-width: 1280px; - margin: 0 auto; - padding: 2rem; - - font-weight: normal; -} - -a, -.green { - text-decoration: none; - color: hsla(160, 100%, 37%, 1); - transition: 0.4s; -} - -@media (hover: hover) { - a:hover { - background-color: hsla(160, 100%, 37%, 0.2); - } -} - -@media (min-width: 1024px) { - body { - display: flex; - place-items: center; - } - - #app { - display: grid; - grid-template-columns: 1fr 1fr; - padding: 0 2rem; - } -} +@tailwind base; +@tailwind components; +@tailwind utilities; diff --git a/tailwind.config.js b/tailwind.config.js new file mode 100644 index 0000000..a1f7cbe --- /dev/null +++ b/tailwind.config.js @@ -0,0 +1,9 @@ +/** @type {import('tailwindcss').Config} */ +module.exports = { + content: [ './src/**/*.{vue,js,ts,jsx,tsx}'], + theme: { + extend: {}, + }, + plugins: [], +} + -- GitLab