Skip to content

Commit fd31f93

Browse files
committed
style: landing image
1 parent 18f6e3a commit fd31f93

1 file changed

Lines changed: 12 additions & 9 deletions

File tree

frontend/src/pages/Landing/Landing.tsx

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import topLaptop from './landing-images/laptop1.svg';
55
import bottomLaptop from './landing-images/laptop2.svg';
66
import phone from './landing-images/iPhone.svg';
77
import { WAVE_PATH } from '../../util/constants';
8+
import campus from './campus.jpg';
89

910
const cuLiftTerms = `https://sds.cornell.edu/accommodations-services
1011
/transportation/culift-guidelines`;
@@ -22,27 +23,29 @@ const Landing = ({ students, admins, drivers, ssoError }: LandingPropType) => {
2223
}, []);
2324
return (
2425
<main id="main" className="w-full max-w-full overflow-x-hidden">
25-
<div
26-
className="relative bg-cover min-h-fit w-full flex flex-col justify-center items-center"
27-
style={{ backgroundImage: 'url(./campus.jpg)' }}
28-
>
26+
<div className="relative bg-cover min-h-fit w-full flex flex-col justify-center items-center">
27+
<img
28+
src={campus}
29+
alt="A aerial photo of Cornell"
30+
className="absolute w-full h-full object-cover"
31+
/>
2932
<div className="absolute top-5 right-5">
3033
<a href={cuLiftTerms} target="_blank" rel="noreferrer">
3134
<button className="w-44 h-10 border-0 bg-white text-black rounded hover:bg-gray-200 cursor-pointer text-base">
3235
Terms of Service
3336
</button>
3437
</a>
3538
</div>
36-
<div className="rounded-2xl p-32 flex min-h-fit max-lg:max-w-[95%] max-lg:min-h-auto max-lg:h-auto max-md:flex-col max-md:p-0">
37-
<div className="rounded-l-2xl bg-black grow flex flex-col justify-center items-center p-4 max-md:rounded-t-2xl max-md:rounded-bl-none">
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">
3841
<img src={logo} alt="Carriage logo" />
3942
<span className="text-5xl font-semibold text-white mt-4">
4043
Carriage
4144
</span>
4245
</div>
43-
<div className="rounded-r-2xl 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">
44-
<div className="flex flex-col justify-center items-center flex-1">
45-
<h1 className="text-3xl">Login</h1>
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">
47+
<div className="flex flex-col justify-center items-center flex-1 gap-6">
48+
<h1 className="text-3xl font-black">Login</h1>
4649
{ssoError && (
4750
<div className="bg-red-100 text-red-900 p-3 rounded border border-red-400 mb-4 w-full">
4851
{ssoError}

0 commit comments

Comments
 (0)