Skip to content

Commit 93a4d8a

Browse files
committed
working on signinPage
1 parent a7fcbf9 commit 93a4d8a

File tree

20 files changed

+414
-107
lines changed

20 files changed

+414
-107
lines changed

apps/X/app/components/SigninComp.tsx

Lines changed: 0 additions & 3 deletions
This file was deleted.

apps/X/app/components/SigninRightComp.tsx

Lines changed: 0 additions & 8 deletions
This file was deleted.

apps/X/app/components/index.ts

Lines changed: 0 additions & 3 deletions
This file was deleted.

apps/X/app/globals.css

Lines changed: 65 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,29 +2,12 @@
22
@tailwind components;
33
@tailwind utilities;
44

5-
:root {
6-
--background: #ffffff;
7-
--foreground: #171717;
8-
}
9-
10-
@media (prefers-color-scheme: dark) {
11-
:root {
12-
--background: #0a0a0a;
13-
--foreground: #ededed;
14-
}
15-
}
16-
175
html,
186
body {
197
max-width: 100vw;
208
overflow-x: hidden;
219
}
2210

23-
body {
24-
color: var(--foreground);
25-
background: var(--background);
26-
}
27-
2811
* {
2912
box-sizing: border-box;
3013
padding: 0;
@@ -52,3 +35,68 @@ a {
5235
display: unset;
5336
}
5437
}
38+
39+
@layer base {
40+
:root {
41+
--background: 0 0% 100%;
42+
--foreground: 222.2 84% 4.9%;
43+
--card: 0 0% 100%;
44+
--card-foreground: 222.2 84% 4.9%;
45+
--popover: 0 0% 100%;
46+
--popover-foreground: 222.2 84% 4.9%;
47+
--primary: 222.2 47.4% 11.2%;
48+
--primary-foreground: 210 40% 98%;
49+
--secondary: 210 40% 96.1%;
50+
--secondary-foreground: 222.2 47.4% 11.2%;
51+
--muted: 210 40% 96.1%;
52+
--muted-foreground: 215.4 16.3% 46.9%;
53+
--accent: 210 40% 96.1%;
54+
--accent-foreground: 222.2 47.4% 11.2%;
55+
--destructive: 0 84.2% 60.2%;
56+
--destructive-foreground: 210 40% 98%;
57+
--border: 214.3 31.8% 91.4%;
58+
--input: 214.3 31.8% 91.4%;
59+
--ring: 222.2 84% 4.9%;
60+
--chart-1: 12 76% 61%;
61+
--chart-2: 173 58% 39%;
62+
--chart-3: 197 37% 24%;
63+
--chart-4: 43 74% 66%;
64+
--chart-5: 27 87% 67%;
65+
--radius: 0.5rem;
66+
}
67+
.dark {
68+
--background: 222.2 84% 4.9%;
69+
--foreground: 210 40% 98%;
70+
--card: 222.2 84% 4.9%;
71+
--card-foreground: 210 40% 98%;
72+
--popover: 222.2 84% 4.9%;
73+
--popover-foreground: 210 40% 98%;
74+
--primary: 210 40% 98%;
75+
--primary-foreground: 222.2 47.4% 11.2%;
76+
--secondary: 217.2 32.6% 17.5%;
77+
--secondary-foreground: 210 40% 98%;
78+
--muted: 217.2 32.6% 17.5%;
79+
--muted-foreground: 215 20.2% 65.1%;
80+
--accent: 217.2 32.6% 17.5%;
81+
--accent-foreground: 210 40% 98%;
82+
--destructive: 0 62.8% 30.6%;
83+
--destructive-foreground: 210 40% 98%;
84+
--border: 217.2 32.6% 17.5%;
85+
--input: 217.2 32.6% 17.5%;
86+
--ring: 212.7 26.8% 83.9%;
87+
--chart-1: 220 70% 50%;
88+
--chart-2: 160 60% 45%;
89+
--chart-3: 30 80% 55%;
90+
--chart-4: 280 65% 60%;
91+
--chart-5: 340 75% 55%;
92+
}
93+
}
94+
95+
@layer base {
96+
* {
97+
@apply border-border;
98+
}
99+
body {
100+
@apply bg-background text-foreground;
101+
}
102+
}

apps/X/app/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export default function RootLayout({
2222
children: React.ReactNode;
2323
}>) {
2424
return (
25-
<html lang="en">
25+
<html lang="en" className="dark">
2626
<body className={`${geistSans.variable} ${geistMono.variable}`}>
2727
{children}
2828
</body>

apps/X/app/signin/page.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
import { SigninComp } from "../components";
1+
2+
import { SigninComp } from "@/components/ui";
3+
24

35
const SignIn = () => {
46
return (
57
<div>
6-
<div className="bg-red-500">
8+
<div className="">
79
<SigninComp />
810
</div>
911
</div>

apps/X/components.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"$schema": "https://ui.shadcn.com/schema.json",
3+
"style": "new-york",
4+
"rsc": true,
5+
"tsx": true,
6+
"tailwind": {
7+
"config": "tailwind.config.js",
8+
"css": "app/globals.css",
9+
"baseColor": "slate",
10+
"cssVariables": true,
11+
"prefix": ""
12+
},
13+
"aliases": {
14+
"components": "@/components",
15+
"utils": "@/lib/utils",
16+
"ui": "@/components/ui",
17+
"lib": "@/lib",
18+
"hooks": "@/hooks"
19+
},
20+
"iconLibrary": "lucide"
21+
}

apps/X/package.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,19 @@
1111
"check-types": "tsc --noEmit"
1212
},
1313
"dependencies": {
14+
"@radix-ui/react-slot": "^1.1.1",
1415
"@repo/ui": "*",
1516
"bcrypt": "^5.1.1",
17+
"class-variance-authority": "^0.7.1",
18+
"clsx": "^2.1.1",
19+
"lucide-react": "^0.469.0",
1620
"next": "^15.1.0",
1721
"next-auth": "^4.24.11",
1822
"react": "^19.0.0",
1923
"react-dom": "^19.0.0",
24+
"react-icons": "^5.4.0",
25+
"tailwind-merge": "^2.6.0",
26+
"tailwindcss-animate": "^1.0.7",
2027
"zod": "^3.24.1"
2128
},
2229
"devDependencies": {

apps/X/postcss.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
export default {
2+
plugins: {
3+
tailwindcss: {},
4+
autoprefixer: {},
5+
},
6+
}

apps/X/public/logo.svg

Lines changed: 1 addition & 0 deletions
Loading

0 commit comments

Comments
 (0)