-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
94 additions
and
8 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
'use client'; | ||
import { DownArrowIcon } from '@src/icons/Icons'; | ||
|
||
const ExploreButton = () => { | ||
return ( | ||
<button | ||
className="absolute bottom-4 left-1/2 z-20 flex -translate-x-1/2 flex-col items-center" | ||
type="button" | ||
onClick={(e) => { | ||
e.preventDefault(); | ||
document | ||
.getElementById('content') | ||
?.scrollIntoView({ behavior: 'smooth' }); | ||
}} | ||
> | ||
<p className="text-center text-lg text-white">Explore Clubs</p> | ||
<DownArrowIcon /> | ||
</button> | ||
); | ||
}; | ||
export default ExploreButton; |
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 |
---|---|---|
@@ -0,0 +1,48 @@ | ||
import Image from 'next/image'; | ||
import gradientBG from 'public/images/landingGradient.png'; | ||
import Sidebar from '../nav/Sidebar'; | ||
import { ClubSearchBar } from '../searchBar/ClubSearchBar'; | ||
import ExploreButton from './ExploreButton'; | ||
// screen sized bb | ||
const LandingPage = () => { | ||
return ( | ||
<section className="relative h-screen w-screen"> | ||
<div className="absolute inset-0 h-full w-full"> | ||
<Image | ||
src={gradientBG} | ||
fill | ||
sizes="100vw" | ||
alt="Gradient Background for landing page" | ||
className="object-cover" | ||
/> | ||
</div> | ||
<div className="absolute inset-0 z-10 h-full w-full bg-black/10"></div> | ||
<div | ||
title="landing page content" | ||
className="absolute inset-0 z-10 w-full" | ||
> | ||
<div className="z-20 flex h-20 w-full flex-row items-center"> | ||
<Sidebar /> | ||
<div> | ||
<Image | ||
src="/nebula-logo.png" | ||
alt="" | ||
width={60} | ||
height={60} | ||
className="mr-1.5" | ||
/> | ||
</div> | ||
</div> | ||
</div> | ||
<div className="pointer-events-none absolute inset-0 z-20 flex h-full w-full flex-col items-center justify-center gap-y-5"> | ||
<h1 className="pointer-events-auto max-w-3xl text-center font-sans text-6xl font-semibold text-white"> | ||
Discover the Best Clubs and Organizations at UTD | ||
</h1> | ||
<ClubSearchBar /> | ||
</div> | ||
<ExploreButton /> | ||
</section> | ||
); | ||
}; | ||
|
||
export default LandingPage; |
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
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