-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from capy-on-caffeine/hero
Hero section created
- Loading branch information
Showing
10 changed files
with
331 additions
and
0 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.
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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
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,51 @@ | ||
import React, {useState} from "react"; | ||
import heroText from "../../../public/images/HeroText.svg"; | ||
import linkArrow from "../../../public/images/LinkArrow.svg"; | ||
import regButton from "../../../public/images/RegisterButton.svg"; | ||
import regButtonHover from "../../../public/images/RegisterButtonHover.svg"; | ||
|
||
function HeroSection() { | ||
const [isHovered, setIsHovered] = useState(false); | ||
|
||
return ( | ||
<div | ||
className="relative w-full h-[1972px] bg-cover overflow-y-auto" | ||
style={{ backgroundImage: "url('/images/HeroSection.svg')" }} | ||
> | ||
<div className="flex flex-col justify-center items-center relative top-[6rem]"> | ||
<div className="flex relative py-8"> | ||
<img | ||
src={heroText.src} | ||
alt="#" | ||
style={{ mixBlendMode: "hard-light" }} | ||
className="w-[22rem] sm:w-[40rem] lg:w-[60rem]" | ||
/> | ||
</div> | ||
<div className="font-Minecraft text-2xl sm:text-4xl lg:text-6xl font-normal flex relative py-8 flex-col justify-center items-center"> | ||
<div className="flex relative">THINK OUTSIDE THE BOX</div> | ||
<div className="flex relative">HACK INSIDE IT</div> | ||
</div> | ||
<div className="flex relative flex-col justify-center items-center"> | ||
<div className="flex relative text-2xl font-bold font-Space-Grotesk"> | ||
Dig deeper | ||
</div> | ||
<div className="flex relative pb-6"> | ||
<img src={linkArrow.src} alt="#" /> | ||
</div> | ||
<div className="flex relative" | ||
onMouseEnter={() => setIsHovered(true)} | ||
onMouseLeave={() => setIsHovered(false)} | ||
> | ||
{isHovered ? ( | ||
<img src={regButtonHover.src} alt="#" /> | ||
) : ( | ||
<img src={regButton.src} alt="#" /> | ||
)} | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
} | ||
|
||
export default HeroSection; |
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
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