From 4fba4f2b27e81c1abf44966d1c0afda62959d4c1 Mon Sep 17 00:00:00 2001 From: icechen Date: Fri, 11 Mar 2022 05:17:18 +0800 Subject: [PATCH] update --- package.json | 1 + pnpm-lock.yaml | 16 ++++++++++++++ prettier.config.js | 5 ++++- src/pages/home/index.tsx | 46 +++++++++++++++++++++++++++++----------- 4 files changed, 55 insertions(+), 13 deletions(-) diff --git a/package.json b/package.json index 80023d7..20af124 100644 --- a/package.json +++ b/package.json @@ -24,6 +24,7 @@ }, "devDependencies": { "@redux-devtools/core": "^3.11.0", + "@tailwindcss/forms": "^0.5.0", "@types/react": "^17.0.40", "@types/react-dom": "^17.0.13", "@vitejs/plugin-react": "^1.2.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 2e51601..9674dc7 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -3,6 +3,7 @@ lockfileVersion: 5.3 specifiers: '@redux-devtools/core': ^3.11.0 '@reduxjs/toolkit': ^1.8.0 + '@tailwindcss/forms': ^0.5.0 '@types/react': ^17.0.40 '@types/react-dom': ^17.0.13 '@vitejs/plugin-react': ^1.2.0 @@ -39,6 +40,7 @@ dependencies: devDependencies: '@redux-devtools/core': 3.11.0_34362ad81a919891909cf289bf01b934 + '@tailwindcss/forms': 0.5.0_tailwindcss@3.0.23 '@types/react': 17.0.40 '@types/react-dom': 17.0.13 '@vitejs/plugin-react': 1.2.0 @@ -410,6 +412,15 @@ packages: picomatch: 2.3.1 dev: true + /@tailwindcss/forms/0.5.0_tailwindcss@3.0.23: + resolution: {integrity: sha512-KzWugryEBFkmoaYcBE18rs6gthWCFHHO7cAZm2/hv3hwD67AzwP7udSCa22E7R1+CEJL/FfhYsJWrc0b1aeSzw==} + peerDependencies: + tailwindcss: '>=3.0.0 || >= 3.0.0-alpha.1' + dependencies: + mini-svg-data-uri: 1.4.4 + tailwindcss: 3.0.23_autoprefixer@10.4.2 + dev: true + /@types/hoist-non-react-statics/3.3.1: resolution: {integrity: sha512-iMIqiko6ooLrTh1joXodJK5X9xeEALT1kM5G3ZLhD3hszxBdIEd5C75U834D9mLcINgD4OyZf5uQXjkuYydWvA==} dependencies: @@ -1180,6 +1191,11 @@ packages: picomatch: 2.3.1 dev: false + /mini-svg-data-uri/1.4.4: + resolution: {integrity: sha512-r9deDe9p5FJUPZAk3A59wGH7Ii9YrjjWw0jmw/liSbHl2CHiyXj6FcDXDu2K3TjVAXqiJdaw3xxwlZZr9E6nHg==} + hasBin: true + dev: true + /minimist/1.2.5: resolution: {integrity: sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==} diff --git a/prettier.config.js b/prettier.config.js index f01cc7a..984b059 100644 --- a/prettier.config.js +++ b/prettier.config.js @@ -1,3 +1,6 @@ module.exports = { - plugins: [require("prettier-plugin-tailwindcss")], + printWidth: 80, + plugins: [ + require("prettier-plugin-tailwindcss"), + ], }; diff --git a/src/pages/home/index.tsx b/src/pages/home/index.tsx index 4ad3058..6bb5767 100644 --- a/src/pages/home/index.tsx +++ b/src/pages/home/index.tsx @@ -1,24 +1,46 @@ export default function Home() { return ( -
-
- LOGO -
+
+ - + +
+ ); +} + +function Logo() { + return ( +
+ LOGO
); } function Menu() { return ( -
-
定价
-
注册/登录
+
+
定价
+
注册/登录
+ +
); }