Skip to content

Commit 5c89a79

Browse files
committed
Clerk-Service_Updated
1 parent a5dd68e commit 5c89a79

File tree

9 files changed

+187
-103
lines changed

9 files changed

+187
-103
lines changed

app/(auth)/sign-in/[[...sign-in]]/page.jsx

Lines changed: 7 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ const SignInPage = () => {
1919
];
2020

2121
const stats = [
22-
{ value: "10K+", label: "Active Users", delay: 0.2 },
23-
{ value: "100K+", label: "Videos Created", delay: 0.3 },
24-
{ value: "4.9/5", label: "User Rating", delay: 0.4 }
22+
{ value: "X K+", label: "Active Users", delay: 0.2 },
23+
{ value: "Y K+", label: "Videos Created", delay: 0.3 },
24+
{ value: "Z/5", label: "User Rating", delay: 0.4 }
2525
];
2626

2727
return (
@@ -173,9 +173,9 @@ const SignInPage = () => {
173173
</motion.div>
174174
</motion.div>
175175

176-
{/* Main Sign In Card */}
176+
177177
<motion.div
178-
className="bg-white p-8 md:p-12 rounded-2xl shadow-xl relative overflow-hidden"
178+
className="bg-gray-50 p-8 md:p-12 rounded-2xl shadow-xl relative overflow-hidden"
179179
initial={{ opacity: 0, y: 20 }}
180180
animate={{ opacity: 1, y: 0 }}
181181
transition={{ delay: 0.3 }}
@@ -207,12 +207,12 @@ const SignInPage = () => {
207207
</div>
208208

209209
<motion.div
210-
className="py-6"
210+
className="py-10 px-12"
211211
initial={{ opacity: 0 }}
212212
animate={{ opacity: 1 }}
213213
transition={{ delay: 0.6 }}
214214
>
215-
<SignIn />
215+
<SignIn/>
216216
</motion.div>
217217

218218
<motion.div
@@ -221,18 +221,6 @@ const SignInPage = () => {
221221
animate={{ opacity: 1 }}
222222
transition={{ delay: 0.7 }}
223223
>
224-
<p className="text-sm text-gray-600">
225-
New to Video Generator AI?{' '}
226-
<motion.a
227-
href="/sign-up"
228-
className="text-purple-600 hover:text-purple-700 font-medium inline-flex items-center"
229-
whileHover={{ x: 5 }}
230-
whileTap={{ scale: 0.95 }}
231-
>
232-
Sign up now
233-
<ArrowRight className="ml-1 h-4 w-4" />
234-
</motion.a>
235-
</p>
236224
</motion.div>
237225
</motion.div>
238226

app/(auth)/sign-up/[[...sign-up]]/page.jsx

Lines changed: 50 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { Wand2, Zap, Film, Share2, ArrowLeft, Sparkles } from 'lucide-react';
55
import { motion } from 'framer-motion';
66
import { useRouter } from 'next/navigation';
77
import { Button } from '@/components/ui/button';
8+
import Image from 'next/image';
89

910
const SignUpPage = () => {
1011
const router = useRouter();
@@ -15,38 +16,30 @@ const SignUpPage = () => {
1516
icon: Zap,
1617
title: "Lightning Fast Generation",
1718
description: "Create professional videos in under 5 minutes",
18-
image: "/api/placeholder/800/400",
1919
delay: 0.2
2020
},
2121
{
2222
icon: Film,
2323
title: "4K Quality Output",
2424
description: "High-resolution videos ready for any platform",
25-
image: "/api/placeholder/800/400",
25+
2626
delay: 0.3
2727
},
2828
{
2929
icon: Share2,
3030
title: "Easy Sharing",
3131
description: "Direct export to social media platforms",
32-
image: "/api/placeholder/800/400",
3332
delay: 0.4
3433
}
3534
];
3635

3736
const testimonials = [
3837
{
39-
image: "/api/placeholder/150/150",
40-
name: "Sarah Chen",
41-
role: "Content Creator",
42-
quote: "Video Generator AI has revolutionized my content creation process!"
38+
image:"https://avatars.githubusercontent.com/u/75311742?v=4",
39+
name: "Arya Pratap Singh",
40+
role: "Software Engineer",
41+
quote: "Video Generator AI has taken a lot of Efforts out of my work. I can now focus on other important tasks while the AI does the video creation for me."
4342
},
44-
{
45-
image: "/api/placeholder/150/150",
46-
name: "Alex Rivera",
47-
role: "Marketing Director",
48-
quote: "What used to take hours now takes minutes. Simply amazing!"
49-
}
5043
];
5144

5245

@@ -70,6 +63,15 @@ const SignUpPage = () => {
7063
transition={{ duration: 0.6 }}
7164
className="md:w-5/12 p-6 md:p-12 flex flex-col justify-center relative overflow-hidden"
7265
>
66+
<Image
67+
src="https://images.unsplash.com/photo-1529626455594-4ff0802cfb7e?auto=format&fit=crop&w=800&q=80"
68+
alt="Login Background"
69+
layout="fill"
70+
objectFit="cover"
71+
className="select-none object-cover"
72+
priority
73+
/>
74+
7375
<motion.div
7476
className="absolute inset-0 bg-black/30 backdrop-blur-sm z-0"
7577
initial={{ opacity: 0 }}
@@ -79,11 +81,11 @@ const SignUpPage = () => {
7981

8082
{/* Animated background elements */}
8183
<motion.div
82-
className="absolute top-0 right-0 w-64 h-64 bg-purple-500/20 rounded-full blur-3xl"
84+
className="absolute top-0 right-0 w-64 h-64 bg-purple-500/20 rounded-full blur-2xl"
8385
{...floatingAnimation}
8486
/>
8587
<motion.div
86-
className="absolute bottom-0 left-0 w-64 h-64 bg-blue-500/20 rounded-full blur-3xl"
88+
className="absolute bottom-0 left-0 w-64 h-64 bg-blue-500/20 rounded-full blur-2xl"
8789
animate={{
8890
y: [0, 10, 0],
8991
transition: { duration: 7, repeat: Infinity, ease: "easeInOut" }
@@ -181,7 +183,7 @@ const SignUpPage = () => {
181183
>
182184
<div className="flex items-center space-x-4">
183185
<div className="flex -space-x-4">
184-
{[1, 2, 3].map((_, index) => (
186+
{[1, 2, 3,4,5,6].map((_, index) => (
185187
<motion.div
186188
key={index}
187189
initial={{ opacity: 0, x: -20 }}
@@ -193,6 +195,8 @@ const SignUpPage = () => {
193195
className="w-12 h-12 rounded-full border-2 border-purple-500 bg-gradient-to-br from-purple-400 to-pink-400"
194196
/>
195197
</motion.div>
198+
199+
196200
))}
197201
</div>
198202
<motion.p
@@ -201,7 +205,7 @@ const SignUpPage = () => {
201205
animate={{ opacity: 1 }}
202206
transition={{ delay: 1 }}
203207
>
204-
Trusted by 10,000+ content creators
208+
Trusted by XY+ content creators
205209
</motion.p>
206210
</div>
207211
</motion.div>
@@ -219,7 +223,7 @@ const SignUpPage = () => {
219223
<div className="w-full max-w-xl">
220224
{/* Main Sign Up Card */}
221225
<motion.div
222-
className="bg-white p-8 md:p-12 rounded-2xl shadow-xl relative overflow-hidden"
226+
className="bg-gray-50 p-8 md:p-12 rounded-2xl shadow-xl relative overflow-hidden"
223227
initial={{ opacity: 0, y: 20 }}
224228
animate={{ opacity: 1, y: 0 }}
225229
transition={{ delay: 0.3 }}
@@ -244,7 +248,7 @@ const SignUpPage = () => {
244248
</motion.div>
245249

246250
<motion.div
247-
className="py-6"
251+
className="py-6 px-12"
248252
initial={{ opacity: 0 }}
249253
animate={{ opacity: 1 }}
250254
transition={{ delay: 0.5 }}
@@ -256,29 +260,37 @@ const SignUpPage = () => {
256260
{/* Testimonials Carousel */}
257261
<motion.div
258262
className="mt-12"
259-
initial={{ opacity: 0, y: 20 }}
263+
initial={{ opacity: 0, y: 10 }}
260264
animate={{ opacity: 1, y: 0 }}
261265
transition={{ delay: 0.7 }}
262266
>
263267
{testimonials.map((testimonial, index) => (
264-
<motion.div
265-
key={index}
266-
className="bg-gray-50 p-6 rounded-xl mb-4"
267-
whileHover={{ scale: 1.02 }}
268-
initial={{ opacity: 0, x: 20 }}
269-
animate={{ opacity: 1, x: 0 }}
270-
transition={{ delay: 0.8 + index * 0.1 }}
271-
>
272-
<div className="flex items-center space-x-4">
273-
<div className="w-12 h-12 rounded-full bg-gradient-to-br from-purple-400 to-pink-400" />
274-
<div>
275-
<p className="font-medium text-gray-900">{testimonial.name}</p>
276-
<p className="text-sm text-gray-600">{testimonial.role}</p>
277-
</div>
278-
</div>
279-
<p className="mt-4 text-gray-700 italic">{testimonial.quote}</p>
280-
</motion.div>
281-
))}
268+
<motion.div
269+
key={index}
270+
className="bg-gray-50 p-6 rounded-xl mb-4"
271+
whileHover={{ scale: 1.02 }}
272+
initial={{ opacity: 0, x: 20 }}
273+
animate={{ opacity: 1, x: 0 }}
274+
transition={{ delay: 0.8 + index * 0.1 }}
275+
>
276+
<div className="flex items-center space-x-4">
277+
<div className="w-12 h-12">
278+
<Image
279+
src={testimonial.image}
280+
alt={testimonial.name}
281+
width={48}
282+
height={48}
283+
className="rounded-full"
284+
/>
285+
</div>
286+
<div>
287+
<p className="font-medium text-gray-900">{testimonial.name}</p>
288+
<p className="text-sm text-gray-600">{testimonial.role}</p>
289+
</div>
290+
</div>
291+
<p className="mt-4 text-gray-700 italic">{testimonial.quote}</p>
292+
</motion.div>
293+
))}
282294
</motion.div>
283295

284296
{/* Trust Indicators */}

app/dashboard/_components/Header.jsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@ import { UserDetailContext } from '@/app/_context/UserDetailContext';
22
import { Button } from '@/components/ui/button'
33
import { UserButton } from '@clerk/nextjs'
44
import Image from 'next/image'
5+
import { useRouter } from 'next/navigation';
56
import React, { useContext } from 'react'
67

78
function Header() {
9+
const router = useRouter();
810
const {userDetail,setUserDetail}=useContext(UserDetailContext);
911
return (
1012
<div className='p-3 px-5 flex items-center justify-between shadow' >
@@ -20,7 +22,7 @@ function Header() {
2022
{userDetail?.credits}
2123
</h2>
2224
</div>
23-
<Button>
25+
<Button onClick={()=>router.replace('/dashboard')}>
2426
DashBoard
2527
</Button>
2628
<UserButton />

app/layout.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export const metadata = {
1414
const comfort = Comfortaa({subsets: ["latin-ext"],style:"normal",weight: "700"});
1515
export default function RootLayout({ children }) {
1616
return (
17-
<ClerkProvider>
17+
<ClerkProvider dynamic>
1818
<html lang="en">
1919
<body
2020
className={comfort.className}

0 commit comments

Comments
 (0)