Skip to content

Commit ea61947

Browse files
committed
style: landing page responsivity
1 parent 3cf16b4 commit ea61947

1 file changed

Lines changed: 12 additions & 20 deletions

File tree

frontend/src/pages/Landing/Landing.tsx

Lines changed: 12 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -36,22 +36,22 @@ const Landing = ({ students, admins, drivers, ssoError }: LandingPropType) => {
3636
</button>
3737
</a>
3838
</div>
39-
<div className="rounded-2xl flex overflow-clip my-32">
40-
<div className="bg-black flex flex-col justify-center items-center p-4 z-10">
39+
<div className="rounded-2xl flex overflow-clip my-32 flex-col lg:flex-row">
40+
<div className="bg-black flex flex-col justify-center items-center p-4 relative">
4141
<img src={logo} alt="Carriage logo" />
4242
<span className="text-5xl font-semibold text-white mt-4">
4343
Carriage
4444
</span>
4545
</div>
46-
<div className="bg-white grow flex flex-col justify-between items-center text-center p-16 relative max-md:rounded-b-2xl max-md:rounded-tr-none">
46+
<div className="bg-white grow flex flex-col justify-between items-center text-center p-16 relative">
4747
<div className="flex flex-col justify-center items-center flex-1 gap-6">
4848
<h1 className="text-3xl font-black">Login</h1>
4949
{ssoError && (
5050
<div className="bg-red-100 text-red-900 p-3 rounded border border-red-400 mb-4 w-full">
5151
{ssoError}
5252
</div>
5353
)}
54-
<div className="flex justify-between items-center max-md:flex-col gap-2">
54+
<div className="flex justify-between items-center flex-col lg:flex-row gap-2">
5555
<div className="mx-2.5">{students}</div>
5656
<div className="mx-2.5">{admins}</div>
5757
<div className="mx-2.5">{drivers}</div>
@@ -79,31 +79,23 @@ const Landing = ({ students, admins, drivers, ssoError }: LandingPropType) => {
7979
</div>
8080
</div>
8181

82-
<div className="relative flex flex-row justify-center items-start max-lg:mt-15 max-md:mt-15">
83-
<div className="py-36 px-32 flex flex-row items-center gap-52 justify-center max-xl:flex-col max-xl:gap-12 max-lg:px-6 max-lg:py-12 max-md:px-6 max-md:py-12">
84-
<p className="text-5xl min-w-[30%] max-xl:max-w-[70%] max-lg:text-2xl">
82+
<div className="relative flex justify-center items-start mt-15">
83+
<div className="py-36 flex lg:flex-row flex-col-reverse items-center gap-24 px-8 lg:px-24">
84+
<p className=" text-xl lg:text-3xl w-full">
8585
Administrators add students and employees and assign rides on Admin
8686
Web.
8787
</p>
8888
<img src={topLaptop} alt="top laptop" className="max-w-full h-auto" />
8989
</div>
9090
</div>
9191

92-
<div className="bg-zinc-900 py-20 px-32 flex flex-row gap-36 items-center justify-center max-xl:flex-col max-xl:gap-12 max-lg:px-6 max-lg:py-12 max-md:px-6 max-md:py-12">
93-
<div className="flex items-center justify-center flex-row gap-16 max-lg:gap-4">
94-
<img
95-
src={bottomLaptop}
96-
alt="bottom laptop"
97-
className="w-167.5 max-w-full h-auto max-md:w-[60%] max-md:max-w-50"
98-
/>
99-
<img
100-
src={phone}
101-
alt="phone"
102-
className="w-55 max-w-full h-auto max-md:w-[30%] max-md:max-w-25"
103-
/>
92+
<div className="bg-zinc-900 py-20 px-8 lg:px-24 flex flex-col lg:flex-row items-center justify-center gap-24">
93+
<div className="flex items-center justify-center flex-row gap-4 w-full h-56">
94+
<img src={bottomLaptop} alt="bottom laptop" className="w-full" />
95+
<img src={phone} alt="phone" className="w-1/2 h-full" />
10496
</div>
10597

106-
<p className="text-white text-5xl min-w-[30%] max-xl:max-w-[70%] max-xl:mt-20 max-lg:text-xl max-lg:max-w-[80%] max-md:text-xl">
98+
<p className="text-white text-xl lg:text-3xl w-full">
10799
Students Schedule, Edit, and Cancel rides on Rider Web and Mobile.
108100
</p>
109101
</div>

0 commit comments

Comments
 (0)