From 1c2efe3efd20af38c6229be36ea1ab5e329df1a2 Mon Sep 17 00:00:00 2001 From: crazywoola Date: Fri, 9 Jun 2023 15:18:12 +0800 Subject: [PATCH] init project --- app/components/page.tsx | 9 +++++++++ app/components/style.module.css | 3 +++ app/globals.css | 22 +--------------------- components/button/index.tsx | 0 components/button/style.css | 0 components/chat-bubble/index.tsx | 0 components/chat-bubble/style.css | 0 components/input/index.tsx | 0 components/input/style.css | 0 components/power-by/index.tsx | 0 components/power-by/style.css | 0 components/select/index.tsx | 0 components/select/style.css | 0 config/index.ts | 0 14 files changed, 13 insertions(+), 21 deletions(-) create mode 100644 app/components/page.tsx create mode 100644 app/components/style.module.css create mode 100644 components/button/index.tsx create mode 100644 components/button/style.css create mode 100644 components/chat-bubble/index.tsx create mode 100644 components/chat-bubble/style.css create mode 100644 components/input/index.tsx create mode 100644 components/input/style.css create mode 100644 components/power-by/index.tsx create mode 100644 components/power-by/style.css create mode 100644 components/select/index.tsx create mode 100644 components/select/style.css create mode 100644 config/index.ts diff --git a/app/components/page.tsx b/app/components/page.tsx new file mode 100644 index 0000000..cb8febd --- /dev/null +++ b/app/components/page.tsx @@ -0,0 +1,9 @@ +import styles from './style.module.css' + +const Home = () => { + return
+

Home

+
+} + +export default Home diff --git a/app/components/style.module.css b/app/components/style.module.css new file mode 100644 index 0000000..7542451 --- /dev/null +++ b/app/components/style.module.css @@ -0,0 +1,3 @@ +.red { + color: red; +} diff --git a/app/globals.css b/app/globals.css index fd81e88..d7490a2 100644 --- a/app/globals.css +++ b/app/globals.css @@ -2,26 +2,6 @@ @tailwind components; @tailwind utilities; -:root { - --foreground-rgb: 0, 0, 0; - --background-start-rgb: 214, 219, 220; - --background-end-rgb: 255, 255, 255; -} - -@media (prefers-color-scheme: dark) { - :root { - --foreground-rgb: 255, 255, 255; - --background-start-rgb: 0, 0, 0; - --background-end-rgb: 0, 0, 0; - } -} - body { - color: rgb(var(--foreground-rgb)); - background: linear-gradient( - to bottom, - transparent, - rgb(var(--background-end-rgb)) - ) - rgb(var(--background-start-rgb)); + @apply bg-gray-100; } diff --git a/components/button/index.tsx b/components/button/index.tsx new file mode 100644 index 0000000..e69de29 diff --git a/components/button/style.css b/components/button/style.css new file mode 100644 index 0000000..e69de29 diff --git a/components/chat-bubble/index.tsx b/components/chat-bubble/index.tsx new file mode 100644 index 0000000..e69de29 diff --git a/components/chat-bubble/style.css b/components/chat-bubble/style.css new file mode 100644 index 0000000..e69de29 diff --git a/components/input/index.tsx b/components/input/index.tsx new file mode 100644 index 0000000..e69de29 diff --git a/components/input/style.css b/components/input/style.css new file mode 100644 index 0000000..e69de29 diff --git a/components/power-by/index.tsx b/components/power-by/index.tsx new file mode 100644 index 0000000..e69de29 diff --git a/components/power-by/style.css b/components/power-by/style.css new file mode 100644 index 0000000..e69de29 diff --git a/components/select/index.tsx b/components/select/index.tsx new file mode 100644 index 0000000..e69de29 diff --git a/components/select/style.css b/components/select/style.css new file mode 100644 index 0000000..e69de29 diff --git a/config/index.ts b/config/index.ts new file mode 100644 index 0000000..e69de29