diff --git a/frontend/src/Pages/Herosection.css b/frontend/src/Pages/Herosection.css index 59cf529..fdbb1ce 100644 --- a/frontend/src/Pages/Herosection.css +++ b/frontend/src/Pages/Herosection.css @@ -2,14 +2,14 @@ @tailwind components; @tailwind utilities; -body{ +body { padding: 0; margin: 0; - - background-image: url('../assets/mixbg.png'); + background-image: url('../assets/mixbg.png'); background-size: cover; background-position: center; height: 100vh; - width: 100%; + width: 100vw; + overflow-x : hidden; + position: relative; } - diff --git a/frontend/src/Pages/Herosection.jsx b/frontend/src/Pages/Herosection.jsx index f5830ea..0509f55 100644 --- a/frontend/src/Pages/Herosection.jsx +++ b/frontend/src/Pages/Herosection.jsx @@ -27,9 +27,10 @@ const Herosection = () => {
-
+
+
-

Namaste !! Yatree

+

Namaste !! Yatree

diff --git a/frontend/src/Pages/hamburger.jsx b/frontend/src/Pages/hamburger.jsx index 0385e39..b719bb8 100644 --- a/frontend/src/Pages/hamburger.jsx +++ b/frontend/src/Pages/hamburger.jsx @@ -24,8 +24,8 @@ const fadeOut = keyframes` const MenuIcon = styled.div` width: 30px; height: 3px; - background-color: #333; - margin: 6px 0; + background-color: white; + margin: 6px 20px; transition: transform 0.4s, opacity 0.4s; `; @@ -39,19 +39,21 @@ const Menu = styled.div` display: ${({ open }) => (open ? 'block' : 'none')}; background-color: white; position: absolute; - - height: 90vh; - width: 80vw; + height: 100vh; + width: 30vw; box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); animation: ${({ open }) => (open ? fadeIn : fadeOut)} 0.4s; + @media (max-width: 768px) { + width: 100vw; + } `; const MenuItem = styled.a` color: rgb(59 130 246); - padding: 12px 16px; + padding: 22px 16px; text-decoration: none; display: block; - + text-align: center; &:hover { background-color: rgb(59 130 246); color:white; @@ -68,9 +70,9 @@ const Hamburger = () => { return (
- + - + Home