Skip to content

Commit f2e5a5b

Browse files
fix: optimize signup page layout and styling (#2483)
Co-authored-by: JivusAyrus <suvijsurya76@gmail.com>
1 parent 2c44697 commit f2e5a5b

File tree

3 files changed

+19
-12
lines changed

3 files changed

+19
-12
lines changed

studio/src/components/auth/auth-components.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ export const TrustedCompanies = () => {
132132
export const MarketingHeader = () => {
133133
return (
134134
<div className="text-center">
135-
<h1 className="bg-[linear-gradient(180deg,#FFFFFF_50%,#999999_100%)] bg-clip-text text-2xl font-normal leading-[130%] text-transparent sm:text-[32px]">
135+
<h1 className="bg-[linear-gradient(180deg,#FFFFFF_50%,#999999_100%)] bg-clip-text text-2xl font-bold leading-[130%] text-transparent sm:text-[32px]">
136136
Cosmo: Open-Source
137137
<br />
138138
GraphQL Federation Solution
@@ -222,7 +222,7 @@ export const ProductCosmoStack = ({ variant = "login" }: { variant?: "login" | "
222222
const features = variant === "login" ? loginFeatures : signupFeatures;
223223

224224
return (
225-
<div className="flex w-full flex-col px-2 sm:max-w-xl sm:px-8">
225+
<div className="flex w-full flex-col px-2 sm:max-w-[43.2rem] sm:px-8">
226226
<MarketingHeader />
227227
<div className="mt-10 flex flex-col gap-6">
228228
{features.map((feature, index) => (

studio/src/pages/login.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ const LoginPage: NextPageWithLayout = () => {
157157
</div>
158158

159159
{/* Right section - Marketing */}
160-
<div className="flex min-h-screen w-full flex-col items-center justify-center px-4 py-16 lg:min-h-0 lg:w-1/2 lg:items-start lg:px-14 lg:pb-28 lg:pt-12">
160+
<div className="flex min-h-screen w-full flex-col items-center justify-center px-4 py-16 lg:min-h-0 lg:w-1/2 lg:items-start lg:px-14 lg:pb-40 lg:pt-8">
161161
<ProductCosmoStack variant="login" />
162162
</div>
163163
</div>

studio/src/pages/signup.tsx

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -47,16 +47,28 @@ const SignupPage: NextPageWithLayout = () => {
4747
{/* Main content area */}
4848
<div className="flex flex-1 items-center justify-center px-4 py-8 lg:px-0 lg:py-0">
4949
<div className="flex w-full max-w-screen-2xl flex-col lg:flex-row">
50-
{/* Left section - Form */}
51-
<div className="flex min-h-screen w-full flex-col items-center justify-center lg:min-h-0 lg:w-1/2 lg:p-12">
50+
{/* Left section - Marketing */}
51+
<div className="flex w-full flex-col items-center justify-center px-4 py-10 lg:min-h-screen lg:w-1/2 lg:items-start lg:px-14 lg:pb-40 lg:pt-2">
52+
<div className="lg:mt-8">
53+
<ProductCosmoStack variant="signup" />
54+
</div>
55+
</div>
56+
57+
{/* Right section - Form */}
58+
<div className="mt-8 flex w-full flex-col items-center justify-center pb-10 lg:mt-0 lg:min-h-screen lg:w-1/2 lg:p-12">
5259
<div className="w-full max-w-md lg:max-w-lg">
5360
<AuthCard className="w-full rounded-xl px-6 py-8 lg:px-10 lg:py-12">
54-
<AuthLogoHeader />
61+
<div className="hidden lg:block">
62+
<AuthLogoHeader />
63+
</div>
5564

5665
<div className="mt-8 lg:mt-12">
57-
<h2 className="text-2xl font-normal leading-[120%] text-white lg:text-[32px]">
66+
<h2 className="text-center text-2xl font-normal leading-[120%] text-white lg:text-[32px]">
5867
Sign up for free
5968
</h2>
69+
<p className="mt-2 text-center text-sm text-white/85 lg:text-base">
70+
Try Cosmo as Managed Service. No card required.
71+
</p>
6072

6173
<div className="mt-6 space-y-3 lg:mt-8 lg:space-y-4">
6274
<Button
@@ -125,11 +137,6 @@ const SignupPage: NextPageWithLayout = () => {
125137
</div>
126138
</div>
127139
</div>
128-
129-
{/* Right section - Marketing */}
130-
<div className="flex min-h-screen w-full flex-col items-center justify-center px-4 py-16 lg:min-h-0 lg:w-1/2 lg:items-start lg:px-14 lg:pb-28 lg:pt-12">
131-
<ProductCosmoStack variant="signup" />
132-
</div>
133140
</div>
134141
</div>
135142

0 commit comments

Comments
 (0)