-
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 pull request #18 from Saulul/saul-footer
homepage harmony and responsiveness update
- Loading branch information
Showing
21 changed files
with
184 additions
and
153 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
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.
Binary file not shown.
Binary file not shown.
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 |
---|---|---|
@@ -1,16 +1,34 @@ | ||
import React from "react"; | ||
import React, {useState, useEffect} from "react"; | ||
|
||
const Banner = () => ( | ||
<div className="flex overflow-hidden relative flex-col px-9 py-12 mt-8 w-full min-h-[596px] max-md:px-5 max-md:max-w-full"> | ||
<img | ||
loading="lazy" | ||
srcSet="/assets/home-banner.png" | ||
className="object-cover absolute inset-0 size-full" | ||
/> | ||
<div className="relative self-center mt-16 ml-14 text-6xl font-bold text-center text-white uppercase max-md:mt-10 max-md:max-w-full max-md:text-4xl"> | ||
Made for those <br /> | ||
who do | ||
const Banner = () => { | ||
const [image, setImage] = useState("/assets/home-banner.png"); | ||
const [text, setText] = useState("Made for those who do"); | ||
|
||
useEffect(() => { | ||
const images = ["/assets/home-banner-1.png", "/assets/home-banner-2.png", "/assets/home-banner-3.png"]; | ||
const texts = ["Made for those who do", "Made for the proud", "Made for the first timers"]; | ||
const randomIndex = Math.floor(Math.random() * images.length); | ||
setImage(images[randomIndex]); | ||
setText(texts[randomIndex]); | ||
}, []); | ||
|
||
return ( | ||
<div | ||
className="flex overflow-hidden relative flex-col px-9 py-12 mt-8 w-full min-h-[596px] max-md:px-5 max-md:max-w-full"> | ||
<img | ||
loading="lazy" | ||
srcSet={image} | ||
className="object-cover absolute inset-0 size-full" | ||
alt={"banner"}/> | ||
<div | ||
className="relative self-center mt-16 ml-14 text-6xl font-bold text-center text-white uppercase max-md:mt-10 max-md:max-w-full max-md:text-4xl" | ||
style={{ | ||
textShadow: '2px 2px 4px rgba(0, 0, 0, 0.5)' | ||
}}> | ||
{text} | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
); | ||
}; | ||
|
||
export default Banner; |
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
Oops, something went wrong.