Skip to content

Commit

Permalink
fixing background in hero section (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
omarghandour authored Nov 7, 2024
2 parents c25a427 + 3e988f6 commit d56aba1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/components/Hero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const Hero = forwardRef<HTMLDivElement>((_, ref) => {
return (
<section
ref={localRef}
className="overflow-y-hidden min-h-[100dvh] snap-start relative back bg-cover bg-center bg-fixed h-screen flex items-center justify-center "
className="overflow-y-hidden min-h-[100dvh] snap-start relative back bg-cover bg-center bg-fixed h-[100dvh] center "
>
<div className="flex flex-col md:flex-row justify-center items-center ">
<Image
Expand All @@ -45,7 +45,7 @@ const Hero = forwardRef<HTMLDivElement>((_, ref) => {
className={`center ${
isInView
? "motion-scale-in-[0.5] motion-translate-x-in-[-88%] motion-translate-y-in-[-9%] motion-opacity-in-[0%] motion-rotate-in-[-10deg] motion-blur-in-[5px] motion-duration-[0.00s] motion-duration-[0.61s]/translate motion-ease-spring-bouncy"
: "hidden"
: ""
}`}
/>
<p
Expand Down
2 changes: 1 addition & 1 deletion app/components/ScrollBySection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const ScrollBySection: React.FC = () => {

return (
<div
className={`h-screen w-full ${
className={`h-[100dvh] w-full ${
isDesktop ? "overflow-hidden" : "overflow-auto"
}`} // Overflow hidden only for desktop
>
Expand Down
3 changes: 3 additions & 0 deletions app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ html,
body {
scroll-behavior: smooth !important;
}
* {
overflow-y: hidden !important;
}
body {
font-family: Arial, Helvetica, sans-serif;
}
Expand Down

1 comment on commit d56aba1

@github-actions
Copy link

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-j70ya43zw-omarkhaled9913gmailcoms-projects.vercel.app

Built with commit d56aba1.
This pull request is being automatically deployed with vercel-action

Please sign in to comment.