Skip to content

Commit 2454424

Browse files
committed
mobile responsive
1 parent 1080be7 commit 2454424

16 files changed

Lines changed: 613 additions & 402 deletions

File tree

‎apps/codebility/app/auth/onboarding/_components/Expect/ExpectSection.tsx‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export default function ExpectSection() {
5454
}, []);
5555

5656
return (
57-
<section className="flex min-h-screen w-full items-center justify-center bg-[#10131a] px-6 py-24 text-white">
57+
<section className="flex w-full items-center justify-center bg-[#10131a] px-6 py-24 text-white lg:min-h-screen">
5858
<div className="w-full max-w-5xl">
5959
{/* Heading */}
6060
<motion.h2
@@ -104,7 +104,7 @@ export default function ExpectSection() {
104104

105105
{/* Content wrapper with flex gap */}
106106
<div
107-
className={`z-10 flex flex-col items-center gap-4 md:w-[calc(50%-1.5rem)] md:flex-row ${
107+
className={`z-10 flex w-full flex-col items-center gap-4 md:w-[calc(50%-1.5rem)] md:flex-row ${
108108
isLeft
109109
? "md:order-2 md:ml-0 md:mr-auto"
110110
: "flex-row-reverse md:order-1 md:ml-auto md:mr-0"
@@ -119,7 +119,7 @@ export default function ExpectSection() {
119119

120120
{/* Card */}
121121
<div
122-
className={`mt-4 w-full rounded-xl bg-white/5 p-5 text-left text-sm md:mt-0 ${
122+
className={`mt-4 w-full rounded-xl bg-white/5 p-5 text-center text-sm md:mt-0 lg:text-left ${
123123
isLeft ? "md:text-left" : "md:text-right"
124124
}`}
125125
>

‎apps/codebility/app/auth/onboarding/_components/HeroWithAboutEffect/AboutSlides.tsx‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,16 @@ export default function AboutSlides({ slidesRef }: AboutSlidesProps) {
1919
ref={slidesRef}
2020
className="flex h-auto transform-gpu flex-col will-change-transform lg:h-full lg:w-[400vw] lg:flex-row"
2121
>
22-
<div className="w-full flex-shrink-0 lg:min-h-screen lg:w-screen">
22+
<div className="w-full flex-shrink-0 pb-20 lg:min-h-screen lg:w-screen lg:pb-0">
2323
<AboutUsSlide />
2424
</div>
25-
<div className="w-full flex-shrink-0 lg:min-h-screen lg:w-screen">
25+
<div className="w-full flex-shrink-0 pb-20 lg:min-h-screen lg:w-screen lg:pb-0">
2626
<LaunchpadSlide />
2727
</div>
28-
<div className="w-full flex-shrink-0 lg:min-h-screen lg:w-screen">
28+
<div className="w-full flex-shrink-0 pb-20 lg:min-h-screen lg:w-screen lg:pb-0">
2929
<MissionVisionSlide />
3030
</div>
31-
<div className="w-full flex-shrink-0 lg:min-h-screen lg:w-screen">
31+
<div className="w-full flex-shrink-0 pb-20 lg:min-h-screen lg:w-screen lg:pb-0">
3232
<WhyChooseUsSlide />
3333
</div>
3434
</div>

‎apps/codebility/app/auth/onboarding/_components/HeroWithAboutEffect/Slides/AboutUs.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const Lottie = dynamic(() => import("lottie-react"), { ssr: false });
88

99
export default function AboutUsSlide() {
1010
return (
11-
<div className="slide flex h-screen w-screen flex-col items-center justify-center px-6 md:flex-row md:px-16">
11+
<div className="slide flex lg:h-screen w-screen flex-col items-center justify-center px-6 md:flex-row md:px-16">
1212
{/* LEFT: Lottie Animation */}
1313
<div className="flex w-full items-center justify-center md:w-1/2">
1414
<Lottie

‎apps/codebility/app/auth/onboarding/_components/HeroWithAboutEffect/Slides/Launchpad.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const Lottie = dynamic(() => import("lottie-react"), { ssr: false });
88

99
export default function LaunchpadSlide() {
1010
return (
11-
<div className="slide relative flex h-screen w-screen items-center justify-center">
11+
<div className="slide relative flex lg:h-screen w-screen items-center justify-center">
1212
{/* Background Lottie */}
1313
<div className="pointer-events-none absolute inset-0 opacity-30">
1414
<Lottie

‎apps/codebility/app/auth/onboarding/_components/HeroWithAboutEffect/Slides/MissionVisionSlide.tsx‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@
44

55
export default function MissionVisionSlide() {
66
return (
7-
<div className="slide justify-cente flex h-screen w-screen items-center px-6 py-10 text-stone-900">
7+
<div className="slide justify-cente flex w-screen items-center px-6 text-stone-900 lg:h-screen">
88
<div className="mx-auto flex max-w-7xl flex-col justify-center gap-10 lg:flex-row lg:gap-16">
99
{/* LEFT: Header and Vision */}
1010
<div className="flex flex-col justify-center">
11-
<h2 className="max-w-lg text-3xl font-extrabold leading-tight sm:text-4xl md:text-5xl">
12-
to be the world’s most impactful developer community
11+
<h2 className="w-full text-center text-3xl font-bold leading-tight sm:text-4xl md:text-5xl lg:max-w-lg lg:text-left">
12+
To be the world's most impactful developer community
1313
</h2>
1414

1515
{/* Vision Card */}
16-
<div className="mt-10 max-w-lg rounded-xl bg-gradient-to-br from-purple-100 to-purple-200 p-6 shadow-md">
16+
<div className="mt-10 w-full rounded-xl bg-gradient-to-br from-purple-100 to-purple-200 p-6 shadow-md lg:max-w-lg">
1717
<div className="mb-2 flex items-center gap-3">
1818
<VisionIcon />
1919
<h3 className="text-3xl font-bold">vision</h3>
@@ -30,7 +30,7 @@ export default function MissionVisionSlide() {
3030

3131
{/* RIGHT: Mission */}
3232
<div className="flex flex-col justify-between gap-6">
33-
<div className="max-w-xl rounded-xl bg-gradient-to-br from-slate-100 to-slate-200 p-6 shadow-md">
33+
<div className="w-full rounded-xl bg-gradient-to-br from-slate-100 to-slate-200 p-6 shadow-md lg:max-w-xl">
3434
<div className="mb-2 flex items-center gap-3">
3535
<MissionIcon />
3636
<h3 className="text-3xl font-bold">mission</h3>

‎apps/codebility/app/auth/onboarding/_components/HeroWithAboutEffect/Slides/WhyChooseUsSlide.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export default function WhyChooseUsSlide() {
3030
];
3131

3232
return (
33-
<div className="slide relative flex h-screen w-screen flex-col justify-center text-stone-900">
33+
<div className="slide relative flex w-screen flex-col justify-center text-stone-900 lg:h-screen">
3434
{/* Features Grid */}
3535
<div className="z-0 flex flex-col items-center justify-center px-6 md:px-12 lg:px-24">
3636
<h2 className="mb-16 text-4xl font-bold tracking-tight text-[#130a3d] md:text-5xl">

‎apps/codebility/app/auth/onboarding/_components/HeroWithAboutEffect/index.tsx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
import { useRef, useState } from "react";
66

7-
import { useOnboardingAnimations } from "../../hooks/useOnboardingAnimations";
7+
import useOnboardingAnimations from "../../hooks/useOnboardingAnimations";
88
import AboutSlides from "./AboutSlides";
99
import { BubbleBackground } from "./BubbleBackground";
1010
import { FloatingCodeTags } from "./FloatingCodeTags";
@@ -38,7 +38,7 @@ export default function HeroWithAboutEffect() {
3838

3939
<section
4040
ref={heroRef}
41-
className="relative flex min-h-screen items-center justify-center bg-gradient-to-br from-[#017780] via-[#441e70] to-[#130a3d] px-10 py-10 text-white lg:h-screen"
41+
className="relative flex items-center justify-center bg-gradient-to-br from-[#017780] via-[#441e70] to-[#130a3d] px-10 py-10 text-white lg:h-screen lg:min-h-screen"
4242
>
4343
<div className="relative mx-auto flex w-full flex-col items-center justify-start overflow-hidden rounded-3xl bg-[#130a3d]/80 p-10 lg:h-[calc(100vh-80px)]">
4444
<LottieBackground />

‎apps/codebility/app/auth/onboarding/_components/IsAndIsnt/IsAndIsntSection.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const items = [
2626

2727
export default function IsAndIsntSection() {
2828
return (
29-
<section className="flex min-h-screen w-full items-center justify-center bg-gradient-to-br from-white via-gray-50 to-white px-6 py-24 text-black">
29+
<section className="flex w-full items-center justify-center bg-gradient-to-br from-white via-gray-50 to-white px-6 py-20 text-black lg:min-h-screen">
3030
<div className="w-full max-w-6xl text-center">
3131
<h2 className="mb-16 text-4xl font-bold tracking-tight text-[#130a3d] md:text-5xl">
3232
What <span className="text-indigo-600">Codebility</span> Is and Isn’t?

‎apps/codebility/app/auth/onboarding/_components/IsNot/IsNotSection.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const items = [
3434

3535
export default function IsNotSection() {
3636
return (
37-
<section className="flex min-h-screen w-full items-center justify-center bg-[#10131a] px-6 py-24 text-white">
37+
<section className="flex w-full items-center justify-center bg-[#10131a] px-6 py-20 text-white lg:min-h-screen">
3838
<div className="w-full max-w-6xl text-center">
3939
{/* Heading */}
4040
<motion.h2

‎apps/codebility/app/auth/onboarding/_components/Mindset/MindsetSection.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const cards = [
3535
export default function MindsetSection() {
3636
return (
3737
<LazyMotion features={domAnimation}>
38-
<section className="relative flex min-h-screen w-full items-center justify-center bg-white px-6 py-16 text-black">
38+
<section className="relative flex w-full items-center justify-center bg-white px-6 py-20 text-black lg:min-h-screen">
3939
<div className="mx-auto grid w-full max-w-7xl grid-cols-1 items-center gap-12 md:grid-cols-2">
4040
{/* LEFT: Heading + Lightbulb (Centered) */}
4141
<m.div

0 commit comments

Comments
 (0)