Skip to content

Commit d5f3232

Browse files
committed
Frontend Work for MyMagic Fit
1 parent a86169a commit d5f3232

File tree

9 files changed

+328
-3
lines changed

9 files changed

+328
-3
lines changed

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,5 @@ dist-ssr
2323
*.sln
2424
*.sw?
2525

26-
.env*.local
26+
.env*.local
27+
.env

index.html

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>Vite + React</title>
8+
</head>
9+
<body>
10+
<div id="root"></div>
11+
<script type="module" src="/src/main.jsx"></script>
12+
</body>
13+
</html>

package-lock.json

+125-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+3
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
"@radix-ui/react-dialog": "^1.1.1",
1515
"@radix-ui/react-slot": "^1.1.0",
1616
"@reduxjs/toolkit": "^2.2.6",
17+
"@stripe/react-stripe-js": "^2.7.3",
18+
"@stripe/stripe-js": "^4.1.0",
19+
"axios": "^1.7.2",
1720
"class-variance-authority": "^0.7.0",
1821
"clsx": "^2.1.1",
1922
"lucide-react": "^0.408.0",

src/App.jsx

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
2+
import Header from "./components/custom/header/Header";
3+
import { Outlet } from "react-router-dom";
4+
5+
function App() {
6+
return (
7+
<div>
8+
<Header />
9+
<Outlet/>
10+
</div>
11+
);
12+
}
13+
14+
export default App;

src/assets/react.svg

+1
Loading

src/auth/sign-in/SignIn.jsx

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { SignIn } from "@clerk/clerk-react";
2+
3+
const SignInPage = () => {
4+
return (
5+
<div className="flex justify-center items-center my-40">
6+
<SignIn />
7+
</div>
8+
);
9+
};
10+
11+
export default SignInPage;

src/index.css

+91
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
@tailwind base;
2+
@tailwind components;
3+
@tailwind utilities;
4+
5+
@layer base {
6+
:root {
7+
--background: 0 0% 100%;
8+
--foreground: 0 0% 3.9%;
9+
--card: 0 0% 100%;
10+
--card-foreground: 0 0% 3.9%;
11+
--popover: 0 0% 100%;
12+
--popover-foreground: 0 0% 3.9%;
13+
--primary: 0 0% 9%;
14+
--primary-foreground: 0 0% 98%;
15+
--secondary: 0 0% 96.1%;
16+
--secondary-foreground: 0 0% 9%;
17+
--muted: 0 0% 96.1%;
18+
--muted-foreground: 0 0% 45.1%;
19+
--accent: 0 0% 96.1%;
20+
--accent-foreground: 0 0% 9%;
21+
--destructive: 0 84.2% 60.2%;
22+
--destructive-foreground: 0 0% 98%;
23+
--border: 0 0% 89.8%;
24+
--input: 0 0% 89.8%;
25+
--ring: 0 0% 3.9%;
26+
--radius: 0.5rem;
27+
--chart-1: 12 76% 61%;
28+
--chart-2: 173 58% 39%;
29+
--chart-3: 197 37% 24%;
30+
--chart-4: 43 74% 66%;
31+
--chart-5: 27 87% 67%;
32+
}
33+
34+
.dark {
35+
--background: 0 0% 3.9%;
36+
--foreground: 0 0% 98%;
37+
--card: 0 0% 3.9%;
38+
--card-foreground: 0 0% 98%;
39+
--popover: 0 0% 3.9%;
40+
--popover-foreground: 0 0% 98%;
41+
--primary: 0 0% 98%;
42+
--primary-foreground: 0 0% 9%;
43+
--secondary: 0 0% 14.9%;
44+
--secondary-foreground: 0 0% 98%;
45+
--muted: 0 0% 14.9%;
46+
--muted-foreground: 0 0% 63.9%;
47+
--accent: 0 0% 14.9%;
48+
--accent-foreground: 0 0% 98%;
49+
--destructive: 0 62.8% 30.6%;
50+
--destructive-foreground: 0 0% 98%;
51+
--border: 0 0% 14.9%;
52+
--input: 0 0% 14.9%;
53+
--ring: 0 0% 83.1%;
54+
--chart-1: 220 70% 50%;
55+
--chart-2: 160 60% 45%;
56+
--chart-3: 30 80% 55%;
57+
--chart-4: 280 65% 60%;
58+
--chart-5: 340 75% 55%;
59+
}
60+
}
61+
62+
@layer base {
63+
* {
64+
@apply border-border;
65+
}
66+
body {
67+
@apply bg-background text-foreground;
68+
}
69+
}
70+
71+
72+
73+
@keyframes scan {
74+
0% {
75+
top: -50%;
76+
}
77+
100% {
78+
top: 100%;
79+
}
80+
}
81+
82+
.scanning::after {
83+
content: "";
84+
position: absolute;
85+
left: 0;
86+
width: 100%;
87+
height: 5px;
88+
background: linear-gradient(to right, transparent, #00ff00, transparent);
89+
filter: blur(4px);
90+
animation: scan 2s linear infinite;
91+
}

0 commit comments

Comments
 (0)