Skip to content

Commit a50c5c3

Browse files
committed
fix: Update auth pages - lightning bolt logo, theme toggle, animated background
- Replaced LinkedIn icon with Post Bot lightning bolt logo - Added ThemeToggle component to top-right corner of both pages - Added InteractiveBackground particle animation - Fixed form input text to be white in dark mode - Made right container relative for absolute positioning
1 parent f971e7a commit a50c5c3

File tree

2 files changed

+34
-14
lines changed

2 files changed

+34
-14
lines changed

web/src/pages/sign-in/[[...index]].tsx

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import { SignIn } from "@clerk/nextjs";
22
import Link from "next/link";
3-
import { useRouter } from "next/router";
43
import { useEffect, useState } from "react";
4+
import ThemeToggle from "@/components/ThemeToggle";
5+
import InteractiveBackground from "@/components/ui/InteractiveBackground";
56

67
export default function SignInPage() {
7-
const router = useRouter();
88
const [mounted, setMounted] = useState(false);
99

1010
useEffect(() => {
@@ -17,6 +17,8 @@ export default function SignInPage() {
1717

1818
return (
1919
<div className="min-h-screen flex">
20+
{/* Animated Background */}
21+
<InteractiveBackground />
2022
{/* Left Side - Branding */}
2123
<div className="hidden lg:flex lg:w-1/2 bg-gradient-to-br from-blue-600 via-purple-600 to-indigo-700 relative overflow-hidden">
2224
{/* Background Pattern */}
@@ -29,8 +31,9 @@ export default function SignInPage() {
2931
{/* Logo */}
3032
<div className="flex items-center gap-3 mb-12">
3133
<div className="w-12 h-12 bg-white/20 backdrop-blur-sm rounded-xl flex items-center justify-center">
32-
<svg className="w-7 h-7 text-white" fill="currentColor" viewBox="0 0 24 24">
33-
<path d="M19 0h-14c-2.761 0-5 2.239-5 5v14c0 2.761 2.239 5 5 5h14c2.762 0 5-2.239 5-5v-14c0-2.761-2.238-5-5-5zm-11 19h-3v-11h3v11zm-1.5-12.268c-.966 0-1.75-.79-1.75-1.764s.784-1.764 1.75-1.764 1.75.79 1.75 1.764-.783 1.764-1.75 1.764zm13.5 12.268h-3v-5.604c0-3.368-4-3.113-4 0v5.604h-3v-11h3v1.765c1.396-2.586 7-2.777 7 2.476v6.759z" />
34+
{/* Lightning bolt - Post Bot logo */}
35+
<svg className="w-7 h-7" viewBox="0 0 32 32" fill="none">
36+
<path d="M18 4l-8 12h6l-2 12 10-14h-6l4-10z" fill="white" stroke="white" strokeWidth="0.5" />
3437
</svg>
3538
</div>
3639
<span className="text-2xl font-bold">Post Bot</span>
@@ -95,18 +98,24 @@ export default function SignInPage() {
9598
</div>
9699

97100
{/* Right Side - Sign In Form */}
98-
<div className="w-full lg:w-1/2 flex items-center justify-center p-8 bg-gray-50 dark:bg-gray-900">
101+
<div className="w-full lg:w-1/2 flex items-center justify-center p-8 bg-gray-50 dark:bg-gray-900 relative">
99102
<div className="w-full max-w-md">
100103
{/* Mobile Logo */}
101104
<div className="lg:hidden flex items-center justify-center gap-3 mb-8">
102105
<div className="w-10 h-10 bg-gradient-to-br from-blue-600 to-purple-600 rounded-xl flex items-center justify-center">
103-
<svg className="w-6 h-6 text-white" fill="currentColor" viewBox="0 0 24 24">
104-
<path d="M19 0h-14c-2.761 0-5 2.239-5 5v14c0 2.761 2.239 5 5 5h14c2.762 0 5-2.239 5-5v-14c0-2.761-2.238-5-5-5zm-11 19h-3v-11h3v11zm-1.5-12.268c-.966 0-1.75-.79-1.75-1.764s.784-1.764 1.75-1.764 1.75.79 1.75 1.764-.783 1.764-1.75 1.764zm13.5 12.268h-3v-5.604c0-3.368-4-3.113-4 0v5.604h-3v-11h3v1.765c1.396-2.586 7-2.777 7 2.476v6.759z" />
106+
{/* Lightning bolt - Post Bot logo */}
107+
<svg className="w-6 h-6" viewBox="0 0 32 32" fill="none">
108+
<path d="M18 4l-8 12h6l-2 12 10-14h-6l4-10z" fill="white" stroke="white" strokeWidth="0.5" />
105109
</svg>
106110
</div>
107111
<span className="text-xl font-bold text-gray-900 dark:text-white">Post Bot</span>
108112
</div>
109113

114+
{/* Theme Toggle */}
115+
<div className="absolute top-4 right-4">
116+
<ThemeToggle />
117+
</div>
118+
110119
{/* Header */}
111120
<div className="text-center mb-8">
112121
<h2 className="text-2xl font-bold text-gray-900 dark:text-white mb-2">
@@ -132,7 +141,7 @@ export default function SignInPage() {
132141
socialButtonsBlockButton: "bg-white dark:bg-gray-800 border border-gray-300 dark:border-gray-600 hover:bg-gray-50 dark:hover:bg-gray-700 transition-colors",
133142
formButtonPrimary: "bg-gradient-to-r from-blue-600 to-purple-600 hover:from-blue-700 hover:to-purple-700 transition-all",
134143
footerActionLink: "text-blue-600 hover:text-blue-700",
135-
formFieldInput: "bg-white dark:bg-gray-800 border-gray-300 dark:border-gray-600",
144+
formFieldInput: "bg-white dark:bg-gray-800 border-gray-300 dark:border-gray-600 dark:text-white text-gray-900",
136145
formFieldLabel: "text-gray-700 dark:text-gray-300",
137146
identityPreviewEditButton: "text-blue-600",
138147
formResendCodeLink: "text-blue-600",

web/src/pages/sign-up/[[...index]].tsx

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import { SignUp } from "@clerk/nextjs";
22
import Link from "next/link";
33
import { useEffect, useState } from "react";
4+
import ThemeToggle from "@/components/ThemeToggle";
5+
import InteractiveBackground from "@/components/ui/InteractiveBackground";
46

57
export default function SignUpPage() {
68
const [mounted, setMounted] = useState(false);
@@ -15,6 +17,8 @@ export default function SignUpPage() {
1517

1618
return (
1719
<div className="min-h-screen flex">
20+
{/* Animated Background */}
21+
<InteractiveBackground />
1822
{/* Left Side - Branding */}
1923
<div className="hidden lg:flex lg:w-1/2 bg-gradient-to-br from-purple-600 via-indigo-600 to-blue-700 relative overflow-hidden">
2024
{/* Background Pattern */}
@@ -27,8 +31,9 @@ export default function SignUpPage() {
2731
{/* Logo */}
2832
<div className="flex items-center gap-3 mb-12">
2933
<div className="w-12 h-12 bg-white/20 backdrop-blur-sm rounded-xl flex items-center justify-center">
30-
<svg className="w-7 h-7 text-white" fill="currentColor" viewBox="0 0 24 24">
31-
<path d="M19 0h-14c-2.761 0-5 2.239-5 5v14c0 2.761 2.239 5 5 5h14c2.762 0 5-2.239 5-5v-14c0-2.761-2.238-5-5-5zm-11 19h-3v-11h3v11zm-1.5-12.268c-.966 0-1.75-.79-1.75-1.764s.784-1.764 1.75-1.764 1.75.79 1.75 1.764-.783 1.764-1.75 1.764zm13.5 12.268h-3v-5.604c0-3.368-4-3.113-4 0v5.604h-3v-11h3v1.765c1.396-2.586 7-2.777 7 2.476v6.759z" />
34+
{/* Lightning bolt - Post Bot logo */}
35+
<svg className="w-7 h-7" viewBox="0 0 32 32" fill="none">
36+
<path d="M18 4l-8 12h6l-2 12 10-14h-6l4-10z" fill="white" stroke="white" strokeWidth="0.5" />
3237
</svg>
3338
</div>
3439
<span className="text-2xl font-bold">Post Bot</span>
@@ -98,18 +103,24 @@ export default function SignUpPage() {
98103
</div>
99104

100105
{/* Right Side - Sign Up Form */}
101-
<div className="w-full lg:w-1/2 flex items-center justify-center p-8 bg-gray-50 dark:bg-gray-900">
106+
<div className="w-full lg:w-1/2 flex items-center justify-center p-8 bg-gray-50 dark:bg-gray-900 relative">
102107
<div className="w-full max-w-md">
103108
{/* Mobile Logo */}
104109
<div className="lg:hidden flex items-center justify-center gap-3 mb-8">
105110
<div className="w-10 h-10 bg-gradient-to-br from-purple-600 to-indigo-600 rounded-xl flex items-center justify-center">
106-
<svg className="w-6 h-6 text-white" fill="currentColor" viewBox="0 0 24 24">
107-
<path d="M19 0h-14c-2.761 0-5 2.239-5 5v14c0 2.761 2.239 5 5 5h14c2.762 0 5-2.239 5-5v-14c0-2.761-2.238-5-5-5zm-11 19h-3v-11h3v11zm-1.5-12.268c-.966 0-1.75-.79-1.75-1.764s.784-1.764 1.75-1.764 1.75.79 1.75 1.764-.783 1.764-1.75 1.764zm13.5 12.268h-3v-5.604c0-3.368-4-3.113-4 0v5.604h-3v-11h3v1.765c1.396-2.586 7-2.777 7 2.476v6.759z" />
111+
{/* Lightning bolt - Post Bot logo */}
112+
<svg className="w-6 h-6" viewBox="0 0 32 32" fill="none">
113+
<path d="M18 4l-8 12h6l-2 12 10-14h-6l4-10z" fill="white" stroke="white" strokeWidth="0.5" />
108114
</svg>
109115
</div>
110116
<span className="text-xl font-bold text-gray-900 dark:text-white">Post Bot</span>
111117
</div>
112118

119+
{/* Theme Toggle */}
120+
<div className="absolute top-4 right-4">
121+
<ThemeToggle />
122+
</div>
123+
113124
{/* Header */}
114125
<div className="text-center mb-8">
115126
<h2 className="text-2xl font-bold text-gray-900 dark:text-white mb-2">
@@ -135,7 +146,7 @@ export default function SignUpPage() {
135146
socialButtonsBlockButton: "bg-white dark:bg-gray-800 border border-gray-300 dark:border-gray-600 hover:bg-gray-50 dark:hover:bg-gray-700 transition-colors",
136147
formButtonPrimary: "bg-gradient-to-r from-purple-600 to-indigo-600 hover:from-purple-700 hover:to-indigo-700 transition-all",
137148
footerActionLink: "text-purple-600 hover:text-purple-700",
138-
formFieldInput: "bg-white dark:bg-gray-800 border-gray-300 dark:border-gray-600",
149+
formFieldInput: "bg-white dark:bg-gray-800 border-gray-300 dark:border-gray-600 dark:text-white text-gray-900",
139150
formFieldLabel: "text-gray-700 dark:text-gray-300",
140151
identityPreviewEditButton: "text-purple-600",
141152
formResendCodeLink: "text-purple-600",

0 commit comments

Comments
 (0)