Skip to content

Commit a03c4b8

Browse files
committed
Fix mobile stying
1 parent 0530acd commit a03c4b8

File tree

1 file changed

+14
-11
lines changed
  • apps/dashboard/src/app/onboarding

1 file changed

+14
-11
lines changed

apps/dashboard/src/app/onboarding/page.tsx

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ export default function OnboardingPage({
217217

218218
const Footer: React.FC = () => {
219219
return (
220-
<div className="absolute right-0 bottom-0 left-0 box-border flex w-full items-center justify-between overflow-auto p-12">
220+
<div className="absolute right-0 bottom-0 left-0 box-border flex w-full items-center justify-between overflow-auto p-4 pb-12 sm:p-12">
221221
{/* Stepper */}
222222
<div className="flex space-x-4">
223223
{/* biome-ignore lint/a11y/useKeyWithClickEvents: <explanation> */}
@@ -291,7 +291,7 @@ export default function OnboardingPage({
291291
variant="primary"
292292
onClick={form.handleSubmit(onSubmit)}
293293
>
294-
Finish
294+
{watchInterests.length > 0 ? "Finish" : "Skip"}
295295
</Button>
296296
)}
297297
</div>
@@ -325,7 +325,7 @@ export default function OnboardingPage({
325325
<FormLabel>What's your email?</FormLabel>
326326
<FormControl>
327327
<Input
328-
className="w-1/2 min-w-[250px]"
328+
className="w-full min-w-[250px] sm:w-1/2"
329329
{...field}
330330
id="email"
331331
type="email"
@@ -339,7 +339,7 @@ export default function OnboardingPage({
339339
);
340340

341341
const Step2: React.FC<StepProps> = ({ register }) => (
342-
<div className="flex max-h-[450px] flex-col space-y-8 overflow-y-scroll sm:max-h-full">
342+
<div className="no-scrollbar flex max-h-[450px] flex-col space-y-8 overflow-y-scroll pb-2 pl-2 sm:max-h-full">
343343
{/* User Type */}
344344
<FormField
345345
name="userType"
@@ -392,7 +392,7 @@ export default function OnboardingPage({
392392
<FormLabel>What's the name of your company?</FormLabel>
393393
<FormControl className="flex flex-col space-y-2">
394394
<Input
395-
className="w-1/2 min-w-[250px]"
395+
className="w-full min-w-[250px] sm:w-1/2"
396396
id="name"
397397
type="text"
398398
placeholder="Hooli, Inc."
@@ -418,7 +418,10 @@ export default function OnboardingPage({
418418
form.setValue("role", value);
419419
}}
420420
>
421-
<SelectTrigger id="role" className="w-1/2 min-w-[250px]">
421+
<SelectTrigger
422+
id="role"
423+
className="w-full min-w-[250px] sm:w-1/2"
424+
>
422425
<SelectValue placeholder={"Select Role"} />
423426
</SelectTrigger>
424427
<SelectContent>
@@ -461,7 +464,7 @@ export default function OnboardingPage({
461464
form.setValue("industry", value);
462465
}}
463466
>
464-
<SelectTrigger className="w-1/2 min-w-[250px]">
467+
<SelectTrigger className="w-full min-w-[250px] sm:w-1/2">
465468
<SelectValue placeholder={"Select Industry"} />
466469
</SelectTrigger>
467470
<SelectContent>
@@ -490,7 +493,7 @@ export default function OnboardingPage({
490493
);
491494

492495
const Step3: React.FC<StepProps> = ({ register }) => (
493-
<div className="flex max-h-[700px] flex-col space-y-4 overflow-scroll">
496+
<div className="flex max-h-[450px] flex-col space-y-4 overflow-scroll sm:max-h-[700px]">
494497
<FormField
495498
name="industry"
496499
control={form.control}
@@ -506,7 +509,7 @@ export default function OnboardingPage({
506509
<Card
507510
key={interest.key}
508511
className={cn(
509-
"no-scrollbar flex aspect-[4/3] cursor-pointer flex-col items-start justify-start space-y-1 p-4 transition-colors hover:bg-muted md:aspect-[16/9]",
512+
"no-scrollbar flex aspect-[2.5/1] cursor-pointer flex-col items-start justify-start space-y-1 p-4 transition-colors hover:bg-muted md:aspect-[16/9]",
510513
isChecked && "border-primary bg-muted",
511514
)}
512515
onClick={(event) => {
@@ -558,7 +561,7 @@ export default function OnboardingPage({
558561
<div className="relative flex place-items-center bg-muted/30">
559562
<main className="z-10 flex w-full flex-col-reverse gap-6 md:flex-row">
560563
{/* Left Panel */}
561-
<div className="items-between relative box-border flex h-[75vh] w-full flex-col overflow-hidden p-4 md:h-screen md:w-1/2 md:p-12">
564+
<div className="items-between relative box-border flex h-[80vh] w-full flex-col overflow-hidden p-4 md:h-screen md:w-1/2 md:p-12">
562565
<div className="flex flex-col space-y-2">
563566
<h1 className="font-semibold text-xl tracking-tight">
564567
{step === 3 ? "Tell us what you need." : "Tell us about you."}
@@ -588,7 +591,7 @@ export default function OnboardingPage({
588591
<Footer />
589592
</div>
590593
{/* Right Panel */}
591-
<div className="flex h-[25vh] w-full animate-gradient-x flex-col items-center justify-center bg-gradient-to-r from-[#25369F] via-[#290259] to-[#3E0D45] md:h-screen md:w-1/2">
594+
<div className="flex h-[20vh] w-full animate-gradient-x flex-col items-center justify-center bg-gradient-to-r from-[#25369F] via-[#290259] to-[#3E0D45] md:h-screen md:w-1/2">
592595
<Card className="flex w-[300px] items-center rounded-xl border-muted transition-all ">
593596
<CardContent className="flex items-center space-x-4 p-4">
594597
{form.getValues("userType") ? (

0 commit comments

Comments
 (0)