Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/UADS-19-Sponsors-page' into UADS…
Browse files Browse the repository at this point in the history
…-53-CMS
  • Loading branch information
Harsheel12 committed Jun 23, 2024
2 parents dc37529 + 7bb8421 commit 354805e
Show file tree
Hide file tree
Showing 3 changed files with 150 additions and 7 deletions.
31 changes: 31 additions & 0 deletions web/src/assets/dessert-donut-doughnut-svgrepo-com 1.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added web/src/assets/download.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
126 changes: 119 additions & 7 deletions web/src/pages/Sponsor.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,124 @@
import placeholder from "../assets/download.jpg";
import donut from "../assets/dessert-donut-doughnut-svgrepo-com 1.svg";

import Navbar from "../components/Navbar";
import Footer from "../components/Footer";

export default function Sponsor() {
return (
<div>
<Navbar />
<h1> Sponsors Page</h1>
<Footer />
</div>
);
return (
<>
<p className="h-20 w-full">
Placeholder navbar
</p>
<SponsorSection />
<Footer />
</>
)
}

function Footer() {
return (
<div className="bg-brown p-2 mt-10">
<div className="container mx-auto text-center">
<p className="text-light-pink font-raleway">&copy; UADS</p>

</div>
</div>
);
}


function SponsorSection() {
return (
<>
<div className="flex flex-col bg-light-pink content-center">
<div className="mx-20 z-10">
<h1 className="mt-10 mb-5 text-6xl font-bold text-brown font-raleway">
Our Sponsors
</h1>
<SearchBar />
<SponsorGroups />
</div>
<img className="absolute md:top-32 md:right-36 md:w-36 invisible md:visible " src={donut}></img>
</div>

</>
);
}

function SearchBar() {
return (
<>
<div className="pt-2 mx-auto text-gray-600 w-full">
<input className="bg-white h-14 px-5 rounded-xl text-lg focus:outline-none font-raleway font-thin justify-center w-full" type="search" name="search" placeholder="Search Sponsors..."></input>
</div>
</>
)
}

function SponsorGroups() {
return (
<div className="container mx-auto p-10 " >
<div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6">
<SponsorCard
image={placeholder}
sponsorName="Tsujiri"
sponsorDesc="Upsize and toppings for our club events"
/>
<SponsorCard
image={placeholder}
sponsorName="Tsujiri"
sponsorDesc="Upsize and toppings for our club events"
/>
<SponsorCard
image={placeholder}
sponsorName="Tsujiri"
sponsorDesc="Upsize and toppings for our club events"
/>
<SponsorCard
image={placeholder}
sponsorName="Tsujiri"
sponsorDesc="Upsize and toppings for our club events"
/>
<SponsorCard
image={placeholder}
sponsorName="Tsujiri"
sponsorDesc="Upsize and toppings for our club events"
/>
<SponsorCard
image={placeholder}
sponsorName="Tsujiri"
sponsorDesc="Upsize and toppings for our club events"
/>
</div>
</div>
);
}

interface SponsorCardProps {
image: string;
sponsorName: string;
sponsorDesc: string;
}

function SponsorCard({
image,
sponsorName,
sponsorDesc,
}: SponsorCardProps) {
return (
<div className="p-4 ">
<div className="rounded-3xl rounded-t-none bg-pink flex flex-col lg:flex-row items-center p-10 pb-15">
<img
className="rounded-3xl w-1/2 lg:w-full object-cover sm:rounded-2xl"
src={image}
alt={`${sponsorName} logo`}
/>
<div className="lg:ml-4 mt-4 lg:mt-0 text-center lg:text-left">
<h2 className="text-lg text-light-pink font-semibold">{sponsorName}</h2>
<p className="text-sm text-light-pink">{sponsorDesc}</p>
</div>
</div>
</div>
);
}

0 comments on commit 354805e

Please sign in to comment.