Skip to content

Commit 80c5631

Browse files
authored
Merge pull request #27 from codeunia-dev/uimod
Refactor SignIn and SignUp forms to include rounded corners
2 parents 0e608f6 + 9be94e4 commit 80c5631

4 files changed

Lines changed: 33 additions & 13 deletions

File tree

app/auth/signin/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ function SignInForm() {
188188
transition={{ duration: 0.5, delay: 0.2 }}
189189
>
190190
<BackgroundGradient>
191-
<Card className="shadow-2xl transition-all duration-300 relative overflow-hidden bg-background">
191+
<Card className="shadow-2xl transition-all duration-300 relative overflow-hidden bg-background rounded-3xl">
192192
<div className="absolute inset-0 bg-gradient-to-br from-primary/5 to-secondary/5 pointer-events-none" />
193193
<CardHeader className="space-y-1 relative">
194194
<CardTitle className="text-2xl text-center font-bold">Sign In</CardTitle>

app/auth/signup/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ function SignUpForm() {
284284
transition={{ duration: 0.5, delay: 0.2 }}
285285
>
286286
<BackgroundGradient>
287-
<Card className="shadow-2xl transition-all duration-300 relative overflow-hidden bg-background">
287+
<Card className="shadow-2xl transition-all duration-300 relative overflow-hidden bg-background rounded-3xl">
288288

289289
<div className="absolute inset-0 bg-gradient-to-br from-primary/5 to-secondary/5 pointer-events-none" />
290290

app/protected/page.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { redirect } from "next/navigation";
22
import { createClient } from "@/lib/supabase/server";
33
import { InfoIcon, Sparkles, Rocket, Shield, User } from "lucide-react";
4-
4+
import Link from "next/link";
55
export default async function ProtectedPage() {
66
const supabase = await createClient();
77

@@ -16,7 +16,11 @@ export default async function ProtectedPage() {
1616

1717
return (
1818
<div className="flex-1 w-full flex flex-col gap-8 p-6 max-w-4xl mx-auto">
19-
19+
<div>
20+
<Link href="/" className="inline-flex items-center gap-2 px-4 py-2 rounded-lg bg-zinc-900 text-white hover:bg-zinc-800 transition-colors shadow">
21+
← Go Back
22+
</Link>
23+
</div>
2024
<div className="relative overflow-hidden">
2125
<div className="absolute inset-0 bg-gradient-to-r from-blue-600/10 via-purple-600/10 to-pink-600/10 rounded-2xl"></div>
2226
<div className="absolute inset-0 bg-gradient-to-br from-transparent via-white/5 to-transparent rounded-2xl"></div>

components/home/LatestContentPreview.tsx

Lines changed: 25 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export function LatestContentPreview() {
1313
const [isLoading, setIsLoading] = useState(true)
1414
const [fetchError, setFetchError] = useState<string | null>(null)
1515

16-
useEffect(() => {
16+
useEffect(() => {
1717
const fetchLatestBlogs = async () => {
1818
setIsLoading(true)
1919
setFetchError(null)
@@ -83,10 +83,18 @@ export function LatestContentPreview() {
8383
animate={{ scale: 1, opacity: 1 }}
8484
transition={{ duration: 0.6, delay: 0.2 }}
8585
>
86-
<Badge variant="outline" className="px-4 py-2 rounded-full hover:scale-105 transition-all duration-300 bg-gradient-to-r from-primary/15 to-purple-500/15 border-primary/30 backdrop-blur-sm shadow-lg">
87-
<Sparkles className="w-3 h-3 mr-2 animate-pulse" />
88-
Latest Articles
89-
</Badge>
86+
<div className="flex flex-col items-start gap-2">
87+
<button className="bg-slate-800 no-underline group relative shadow-2xl shadow-zinc-900 rounded-full p-px text-sm font-semibold leading-6 text-white inline-block">
88+
<span className="absolute inset-0 overflow-hidden rounded-full">
89+
<span className="absolute inset-0 rounded-full bg-[image:radial-gradient(75%_100%_at_50%_0%,rgba(56,189,248,0.6)_0%,rgba(56,189,248,0)_75%)] opacity-0 transition-opacity duration-500 group-hover:opacity-100" />
90+
</span>
91+
<div className="relative flex space-x-2 items-center z-10 rounded-full bg-zinc-950 py-0.5 px-4 ring-1 ring-white/10 cursor-default">
92+
<span>Latest Articles</span>
93+
<Sparkles className="w-3 h-3" />
94+
</div>
95+
<span className="absolute -bottom-0 left-[1.125rem] h-px w-[calc(100%-2.25rem)] bg-gradient-to-r from-emerald-400/0 via-emerald-400/90 to-emerald-400/0 transition-opacity duration-500 group-hover:opacity-40" />
96+
</button>
97+
</div>
9098
</motion.div>
9199
<motion.h3
92100
initial={{ opacity: 0, x: -20 }}
@@ -181,10 +189,18 @@ export function LatestContentPreview() {
181189
animate={{ scale: 1, opacity: 1 }}
182190
transition={{ duration: 0.6, delay: 0.5 }}
183191
>
184-
<Badge variant="outline" className="px-4 py-2 hover:scale-105 rounded-full transition-all duration-300 bg-gradient-to-r from-primary/15 to-purple-500/15 border-primary/30 backdrop-blur-sm shadow-lg">
185-
<Sparkles className="w-3 h-3 mr-2 animate-pulse" />
186-
Upcoming Events
187-
</Badge>
192+
<div className="flex flex-col items-start gap-2">
193+
<button className="bg-slate-800 no-underline group relative shadow-2xl shadow-zinc-900 rounded-full p-px text-sm font-semibold leading-6 text-white inline-block">
194+
<span className="absolute inset-0 overflow-hidden rounded-full">
195+
<span className="absolute inset-0 rounded-full bg-[image:radial-gradient(75%_100%_at_50%_0%,rgba(56,189,248,0.6)_0%,rgba(56,189,248,0)_75%)] opacity-0 transition-opacity duration-500 group-hover:opacity-100" />
196+
</span>
197+
<div className="relative flex space-x-2 items-center z-10 rounded-full bg-zinc-950 py-0.5 px-4 ring-1 ring-white/10 cursor-default">
198+
<span>Upcoming Events</span>
199+
<Sparkles className="w-3 h-3" />
200+
</div>
201+
<span className="absolute -bottom-0 left-[1.125rem] h-px w-[calc(100%-2.25rem)] bg-gradient-to-r from-emerald-400/0 via-emerald-400/90 to-emerald-400/0 transition-opacity duration-500 group-hover:opacity-40" />
202+
</button>
203+
</div>
188204
</motion.div>
189205
<motion.h3
190206
initial={{ opacity: 0, x: -20 }}

0 commit comments

Comments
 (0)