generated from UoaWDCC/react-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/UADS-19-Sponsors-page' into UADS…
…-53-CMS
- Loading branch information
Showing
3 changed files
with
150 additions
and
7 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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">© 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> | ||
); | ||
} |