Skip to content

Commit 9d467ed

Browse files
author
Muchael123
committed
Add fixes to prevoius header mobile issues
1 parent f02897b commit 9d467ed

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/components/ContactUs/ContactUs.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, { useEffect, useState } from 'react';
2-
import DesktopVersion from './DesktopVersion';
2+
// import DesktopVersion from './DesktopVersion';
33
import MobileVersion from './MobileVersion';
44
import Footer from './Footer';
55

@@ -25,7 +25,7 @@ export default function ContactUs() {
2525
<h2 className="font-montserrat text-lg uppercase w-fit mx-auto pt-5 font-semibold">
2626
Contact us
2727
</h2>
28-
<DesktopVersion />
28+
{/* <DesktopVersion /> */}
2929
<Footer/>
3030
</section>
3131
);

src/components/Navbar/Navbar.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,14 @@ export default function Navbar() {
2525
return (
2626
<header className="lg:pl-[49px] fixed top-0 w-full bg-black text-white justify-between bg-opacity-50 z-10">
2727
<nav className="nav py-2 md:py-4 md:pl-5 flex flex-row justify-between md:justify-around px-4 items-center">
28-
<div>
28+
<div className="">
2929
<Link href={HOME}>
3030
<a>
3131
<Logo size={60} />
3232
</a>
3333
</Link>
3434
</div>
35-
{screenWidth > breakpoint ? (
36-
<div className='flex-1 flex flex-row justify-end gap-[20%] items-center max-w-[60%]'>
35+
{screenWidth > breakpoint && (
3736
<div className="">
3837
<ul className="font-montserrat text-base text-white flex flex-row justify-between items-center md:space-x-[30px]">
3938
<a href={ABOUT}>
@@ -47,6 +46,8 @@ export default function Navbar() {
4746
</a>
4847
</ul>
4948
</div>
49+
)}
50+
{screenWidth > breakpoint && (
5051
<div>
5152
<LinkButton
5253
className="flex justify-center items-center bg-[#EC0505] w-[203px] h-[46px] rounded-md text-base text-white font-montserrat font-bold"
@@ -57,9 +58,8 @@ export default function Navbar() {
5758
Join Community
5859
</LinkButton>
5960
</div>
60-
</div>): (
61-
<DropdownMenu/>
6261
)}
62+
{screenWidth <= breakpoint && <DropdownMenu />}
6363
</nav>
6464
</header>
6565
);

0 commit comments

Comments
 (0)