Skip to content

Commit 252fcde

Browse files
authored
fix: logging in from video page (#1082)
* fix logging in from share page * Update AuthOverlay.tsx * Update OtpForm.tsx * improve bg color * Update OtpForm.tsx
1 parent 3e74068 commit 252fcde

File tree

4 files changed

+384
-161
lines changed

4 files changed

+384
-161
lines changed

apps/web/app/(org)/login/form.tsx

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ export function LoginForm() {
157157
</motion.p>
158158
</motion.div>
159159
<MotionLink layout="position" className="flex mx-auto size-fit" href="/">
160-
<MotionLogoBadge layout="position" className="w-[72px] h-[72px]" />
160+
<MotionLogoBadge layout="position" className="size-12" />
161161
</MotionLink>
162162
<motion.div
163163
layout="position"
@@ -459,18 +459,16 @@ const NormalLogin = ({
459459
className="flex flex-col gap-3 justify-center items-center"
460460
>
461461
{!oauthError && (
462-
<>
463-
<MotionButton
464-
variant="gray"
465-
type="button"
466-
className="flex gap-2 justify-center items-center w-full text-sm"
467-
onClick={handleGoogleSignIn}
468-
disabled={loading}
469-
>
470-
<Image src="/google.svg" alt="Google" width={16} height={16} />
471-
Login with Google
472-
</MotionButton>
473-
</>
462+
<MotionButton
463+
variant="gray"
464+
type="button"
465+
className="flex gap-2 justify-center items-center w-full text-sm"
466+
onClick={handleGoogleSignIn}
467+
disabled={loading}
468+
>
469+
<Image src="/google.svg" alt="Google" width={16} height={16} />
470+
Login with Google
471+
</MotionButton>
474472
)}
475473

476474
{oauthError && (
@@ -481,8 +479,7 @@ const NormalLogin = ({
481479
/>
482480
<p className="text-xs leading-5 text-gray-50">
483481
It looks like you've previously used this email to sign up via
484-
email login. Please enter your email below to receive a sign in
485-
link.
482+
email login. Please enter your email.
486483
</p>
487484
</div>
488485
)}

apps/web/app/(org)/verify-otp/form.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -156,19 +156,19 @@ export function VerifyOTPForm({
156156
</Link>
157157

158158
<Link className="flex mx-auto size-fit" href="/">
159-
<LogoBadge className="w-[72px] h-[72px]" />
159+
<LogoBadge className="size-12" />
160160
</Link>
161161

162162
<div className="flex flex-col justify-center items-center my-7 text-center">
163-
<h1 className="text-2xl font-semibold text-gray-12">
163+
<h1 className="text-xl font-semibold text-gray-12">
164164
Enter verification code
165165
</h1>
166-
<p className="text-[16px] text-gray-10 mt-2">
166+
<p className="text-sm text-gray-10">
167167
We sent a 6-digit code to {email}
168168
</p>
169169
</div>
170170

171-
<div className="flex gap-2 justify-center mb-6">
171+
<div className="flex flex-1 gap-2 justify-between mb-5">
172172
{code.map((digit, index) => (
173173
<input
174174
key={index.toString()}
@@ -191,7 +191,7 @@ export function VerifyOTPForm({
191191
.replace(/\D/g, "");
192192
handleChange(0, pastedData);
193193
}}
194-
className="w-12 h-14 text-xl font-semibold text-center rounded-lg border transition-all bg-gray-1 border-gray-5 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent"
194+
className="flex-1 h-[52px] text-xl font-semibold text-center rounded-lg border transition-all bg-gray-1 border-gray-5 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent"
195195
disabled={handleVerify.isPending || handleVerify.isSuccess}
196196
/>
197197
))}
@@ -221,7 +221,7 @@ export function VerifyOTPForm({
221221
</div>
222222

223223
<p className="mt-6 text-xs text-center text-gray-9">
224-
By verifying your email, you acknowledge that you have both read and
224+
By entering your email, you acknowledge that you have both read and
225225
agree to Cap's{" "}
226226
<Link
227227
href="/terms"

0 commit comments

Comments
 (0)