Skip to content

Commit 6b65c86

Browse files
authored
Merge pull request #129 from refactor-group/improve_login_page_for_mobile
Add the Refactor Logo to the sign in form heading.
2 parents 5690ec6 + 1e167c7 commit 6b65c86

File tree

2 files changed

+61
-31
lines changed

2 files changed

+61
-31
lines changed

src/app/page.tsx

Lines changed: 45 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ export default function LoginPage() {
1616
return (
1717
<main>
1818
<div className="container relative h-[800px] flex-col items-center justify-center md:grid lg:max-w-none lg:grid-cols-2 lg:px-0">
19+
{/* Intentionally hidden for now */}
1920
<Link
2021
href="#"
2122
className={cn(
@@ -25,11 +26,13 @@ export default function LoginPage() {
2526
>
2627
Sign Up
2728
</Link>
29+
30+
{/* Column 1 */}
2831
<div className="relative hidden h-full flex-col bg-muted p-10 text-white lg:flex dark:border-r">
2932
<div className="absolute inset-0 bg-zinc-900" />
3033
<div className="relative z-20 flex items-center text-lg font-medium">
3134
<Link
32-
href="https://www.refactorcoach.com"
35+
href="https://www.refactorgroup.com"
3336
className="mr-2 flex items-center space-x-2"
3437
>
3538
<div
@@ -52,35 +55,53 @@ export default function LoginPage() {
5255
</blockquote>
5356
</div>
5457
</div>
55-
<div className="lg:p-8 sm:mt-8">
56-
<div className="mx-auto flex w-full flex-col justify-center space-y-6 sm:w-[350px]">
57-
<div className="flex flex-col space-y-2 text-center">
58+
59+
{/* Column 2 */}
60+
<div className="mx-auto flex flex-col justify-center mt-16 space-y-8 sm:w-96 lg:mt-0">
61+
<div className="flex flex-col space-y-2 text-center">
62+
<div className="flex items-center justify-center space-x-2">
63+
<Link
64+
href="https://www.refactorgroup.com"
65+
className="flex items-center lg:hidden"
66+
>
67+
<div
68+
className={cn(
69+
buttonVariants({
70+
variant: "ghost",
71+
}),
72+
"w-10 px-0"
73+
)}
74+
>
75+
<Icons.refactor_logo className="h-7 w-7" />
76+
<span className="sr-only">Refactor</span>
77+
</div>
78+
</Link>
5879
<h1 className="text-2xl font-semibold tracking-tight">
5980
Sign in to Refactor
6081
</h1>
61-
<p className="text-sm text-muted-foreground">
62-
Enter your email & password below to sign in
63-
</p>
6482
</div>
65-
<UserAuthForm />
66-
<p className="px-8 text-center text-sm text-muted-foreground">
67-
By clicking continue, you agree to our{" "}
68-
<Link
69-
href="/terms"
70-
className="underline underline-offset-4 hover:text-primary"
71-
>
72-
Terms of Service
73-
</Link>{" "}
74-
and{" "}
75-
<Link
76-
href="/privacy"
77-
className="underline underline-offset-4 hover:text-primary"
78-
>
79-
Privacy Policy
80-
</Link>
81-
.
83+
<p className="text-sm text-muted-foreground">
84+
Enter your email & password below to sign in
8285
</p>
8386
</div>
87+
<UserAuthForm />
88+
<p className="px-8 text-center text-sm text-muted-foreground">
89+
By clicking continue, you agree to our{" "}
90+
<Link
91+
href="/terms"
92+
className="underline underline-offset-4 hover:text-primary"
93+
>
94+
Terms of Service
95+
</Link>{" "}
96+
and{" "}
97+
<Link
98+
href="/privacy"
99+
className="underline underline-offset-4 hover:text-primary"
100+
>
101+
Privacy Policy
102+
</Link>
103+
.
104+
</p>
84105
</div>
85106
</div>
86107
</main>

src/components/ui/icons.tsx

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
type IconProps = React.HTMLAttributes<SVGElement>
1+
type IconProps = React.HTMLAttributes<SVGElement>;
22

33
export const Icons = {
44
logo: (props: IconProps) => (
@@ -29,11 +29,20 @@ export const Icons = {
2929
</svg>
3030
),
3131
refactor_logo: (props: IconProps) => (
32-
<svg version="1.0" xmlns="http://www.w3.org/2000/svg"
33-
width="20" height="28" viewBox="0 0 243 256"
34-
preserveAspectRatio="xMidYMid meet" {...props}>
35-
<g transform="translate(0.000000,256.000000) scale(0.100000,-0.100000)"
36-
fill="black" stroke="none">
32+
<svg
33+
version="1.0"
34+
xmlns="http://www.w3.org/2000/svg"
35+
width="20"
36+
height="28"
37+
viewBox="0 0 243 256"
38+
preserveAspectRatio="xMidYMid meet"
39+
{...props}
40+
>
41+
<g
42+
transform="translate(0.000000,256.000000) scale(0.100000,-0.100000)"
43+
fill="black"
44+
stroke="none"
45+
>
3746
<path
3847
fill="currentColor"
3948
d="M0 1330 l0 -1230 253 0 252 0 0 977 0 978 456 3 456 2 112 -106 111
@@ -171,4 +180,4 @@ export const Icons = {
171180
<path d="M21 12a9 9 0 1 1-6.219-8.56" />
172181
</svg>
173182
),
174-
}
183+
};

0 commit comments

Comments
 (0)