-
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.
Adding Hero section and adjust the scrolling (#34)
- Loading branch information
Showing
7 changed files
with
39 additions
and
2 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.
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,28 @@ | ||
import React, { forwardRef } from "react"; | ||
import Image from "next/image"; | ||
import logo from "../../Public/logo-bw.png"; | ||
const Hero = forwardRef<HTMLDivElement>((_, ref) => { | ||
return ( | ||
<section | ||
ref={ref} | ||
className="min-h-[100dvh] snap-start relative back bg-cover bg-center bg-fixed h-screen flex items-center justify-center " | ||
> | ||
<div className="flex flex-col md:flex-row justify-center items-center "> | ||
<Image | ||
src={logo} | ||
alt="Hero Image" | ||
width={200} | ||
height={500} | ||
className="flex justify-center items-center" | ||
/> | ||
<p className="text-white text-base md:text-lg text-center md:text-left lg:text-xl text-pretty leading-relaxed p-4 md:p-6"> | ||
Digital Marketing Agency, SEO Solutions <br /> Innovative Web | ||
Devolpment{" "} | ||
</p> | ||
</div> | ||
</section> | ||
); | ||
}); | ||
Hero.displayName = "Hero"; | ||
|
||
export default Hero; |
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 |
---|---|---|
|
@@ -96,3 +96,6 @@ body { | |
justify-content: center; | ||
align-items: center; | ||
} | ||
.back { | ||
background-image: url("../Public/waves.jpg"); | ||
} |
52db26a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deploy preview for blackwaves ready!
✅ Preview
https://blackwaves-jcjws7ca8-omarkhaled9913gmailcoms-projects.vercel.app
Built with commit 52db26a.
This pull request is being automatically deployed with vercel-action