nav structure corrected
This commit is contained in:
parent
7dd99527be
commit
3b31bf4b66
@ -21,7 +21,7 @@ export const metadata = {
|
||||
export default function Home1() {
|
||||
return (
|
||||
<>
|
||||
<HeaderTop1 />
|
||||
{/* <HeaderTop1 /> */}
|
||||
<Header1 />
|
||||
<Hero />
|
||||
<About />
|
||||
|
||||
119
components/headers/Header1 copy.jsx
Normal file
119
components/headers/Header1 copy.jsx
Normal file
@ -0,0 +1,119 @@
|
||||
"use client";
|
||||
import Nav from "./Nav";
|
||||
import Link from "next/link";
|
||||
import Offcanvas from "./Offcanvas";
|
||||
import { openMobilemenu } from "@/utlis/toggleMobilemenu";
|
||||
import Image from "next/image";
|
||||
export default function Header1() {
|
||||
return (
|
||||
<>
|
||||
<header className="header-section">
|
||||
<div className="container-fluid">
|
||||
<div className="main-header-wrapper">
|
||||
<div className="logo-image">
|
||||
<Link href={`/`}>
|
||||
<Image
|
||||
src="/assets/img/logo/black-logo.svg"
|
||||
width={149}
|
||||
height={64}
|
||||
alt="img"
|
||||
/>
|
||||
</Link>
|
||||
</div>
|
||||
<div className="main-header-items">
|
||||
<div className="header-contact-info-area">
|
||||
<div className="contact-info-items">
|
||||
<div className="icon">
|
||||
<i className="fa-sharp fa-solid fa-location-dot"></i>
|
||||
</div>
|
||||
<div className="content">
|
||||
<p>Office location</p>
|
||||
<h3>4648 Rocky, New York</h3>
|
||||
</div>
|
||||
</div>
|
||||
<div className="contact-info-items">
|
||||
<div className="icon">
|
||||
<i className="fa-solid fa-envelope"></i>
|
||||
</div>
|
||||
<div className="content">
|
||||
<p>send email</p>
|
||||
<h3>
|
||||
<a href="mailto:example@gmail.com">example@gmail.com</a>
|
||||
</h3>
|
||||
</div>
|
||||
</div>
|
||||
<div className="contact-info-items style-2">
|
||||
<div className="icon">
|
||||
<i className="fa-solid fa-phone-volume"></i>
|
||||
</div>
|
||||
<div className="content">
|
||||
<p>call emergency</p>
|
||||
<h3>
|
||||
<a href="tel:+88012365499">+88 0123 654 99</a>
|
||||
</h3>
|
||||
</div>
|
||||
</div>
|
||||
<div className="header-button">
|
||||
<Link href={`/contact`} className="theme-btn">
|
||||
GAT A QUOTE <i className="fa-regular fa-arrow-right"></i>
|
||||
</Link>
|
||||
</div>
|
||||
</div>
|
||||
<div id="header-sticky" className="header-1">
|
||||
<div className="mega-menu-wrapper">
|
||||
<div className="header-main">
|
||||
<div className="logo">
|
||||
<Link href={`/`} className="header-logo">
|
||||
<Image
|
||||
src="/assets/img/logo/black-logo.svg"
|
||||
alt="logo-img"
|
||||
width={149}
|
||||
height={64}
|
||||
/>
|
||||
</Link>
|
||||
</div>
|
||||
<div className="header-left">
|
||||
<div className="mean__menu-wrapper">
|
||||
<div className="main-menu">
|
||||
<nav id="mobile-menu">
|
||||
<ul>
|
||||
<Nav />
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div className="header-right d-flex justify-content-end align-items-center">
|
||||
<a
|
||||
href="#0"
|
||||
onClick={() =>
|
||||
document
|
||||
.getElementById("searchWrap")
|
||||
.classList.add("active")
|
||||
}
|
||||
className="search-trigger search-icon"
|
||||
>
|
||||
<i className="fal fa-search"></i>
|
||||
</a>
|
||||
<div className="header__hamburger d-xl-block my-auto">
|
||||
<div
|
||||
onClick={() => openMobilemenu()}
|
||||
className="sidebar__toggle"
|
||||
>
|
||||
<i className="fas fa-bars"></i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
<Offcanvas>
|
||||
<Nav />
|
||||
</Offcanvas>
|
||||
</>
|
||||
);
|
||||
}
|
||||
@ -4,6 +4,7 @@ import Link from "next/link";
|
||||
import Offcanvas from "./Offcanvas";
|
||||
import { openMobilemenu } from "@/utlis/toggleMobilemenu";
|
||||
import Image from "next/image";
|
||||
|
||||
export default function Header1() {
|
||||
return (
|
||||
<>
|
||||
@ -13,52 +14,14 @@ export default function Header1() {
|
||||
<div className="logo-image">
|
||||
<Link href={`/`}>
|
||||
<Image
|
||||
src="/assets/img/logo/black-logo.svg"
|
||||
width={149}
|
||||
height={64}
|
||||
src="/assets/img/logo/logo.png"
|
||||
width={300}
|
||||
height={150}
|
||||
alt="img"
|
||||
/>
|
||||
</Link>
|
||||
</div>
|
||||
<div className="main-header-items">
|
||||
<div className="header-contact-info-area">
|
||||
<div className="contact-info-items">
|
||||
<div className="icon">
|
||||
<i className="fa-sharp fa-solid fa-location-dot"></i>
|
||||
</div>
|
||||
<div className="content">
|
||||
<p>Office location</p>
|
||||
<h3>4648 Rocky, New York</h3>
|
||||
</div>
|
||||
</div>
|
||||
<div className="contact-info-items">
|
||||
<div className="icon">
|
||||
<i className="fa-solid fa-envelope"></i>
|
||||
</div>
|
||||
<div className="content">
|
||||
<p>send email</p>
|
||||
<h3>
|
||||
<a href="mailto:example@gmail.com">example@gmail.com</a>
|
||||
</h3>
|
||||
</div>
|
||||
</div>
|
||||
<div className="contact-info-items style-2">
|
||||
<div className="icon">
|
||||
<i className="fa-solid fa-phone-volume"></i>
|
||||
</div>
|
||||
<div className="content">
|
||||
<p>call emergency</p>
|
||||
<h3>
|
||||
<a href="tel:+88012365499">+88 0123 654 99</a>
|
||||
</h3>
|
||||
</div>
|
||||
</div>
|
||||
<div className="header-button">
|
||||
<Link href={`/contact`} className="theme-btn">
|
||||
GAT A QUOTE <i className="fa-regular fa-arrow-right"></i>
|
||||
</Link>
|
||||
</div>
|
||||
</div>
|
||||
<div id="header-sticky" className="header-1">
|
||||
<div className="mega-menu-wrapper">
|
||||
<div className="header-main">
|
||||
@ -84,18 +47,12 @@ export default function Header1() {
|
||||
</div>
|
||||
</div>
|
||||
<div className="header-right d-flex justify-content-end align-items-center">
|
||||
<a
|
||||
href="#0"
|
||||
onClick={() =>
|
||||
document
|
||||
.getElementById("searchWrap")
|
||||
.classList.add("active")
|
||||
}
|
||||
className="search-trigger search-icon"
|
||||
>
|
||||
<i className="fal fa-search"></i>
|
||||
</a>
|
||||
<div className="header__hamburger d-xl-block my-auto">
|
||||
<div className="header-button">
|
||||
<Link href={`/contact`} className="theme-btn">
|
||||
GET A QUOTE <i className="fa-regular fa-arrow-right"></i>
|
||||
</Link>
|
||||
</div>
|
||||
<div className="header__hamburger my-auto">
|
||||
<div
|
||||
onClick={() => openMobilemenu()}
|
||||
className="sidebar__toggle"
|
||||
|
||||
@ -4,6 +4,7 @@
|
||||
|
||||
span {
|
||||
color: rgba(255, 255, 255, .8);
|
||||
|
||||
i {
|
||||
color: $white;
|
||||
margin-right: 5px;
|
||||
@ -402,7 +403,9 @@
|
||||
background-color: $header-color;
|
||||
|
||||
&:hover {
|
||||
&::before,&::after {
|
||||
|
||||
&::before,
|
||||
&::after {
|
||||
background-color: $theme-color;
|
||||
}
|
||||
}
|
||||
@ -457,6 +460,7 @@
|
||||
.main-menu {
|
||||
ul {
|
||||
margin-bottom: 0;
|
||||
|
||||
li {
|
||||
position: relative;
|
||||
list-style: none;
|
||||
@ -487,6 +491,7 @@
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
.submenu {
|
||||
position: absolute;
|
||||
top: 100%;
|
||||
@ -526,17 +531,20 @@
|
||||
color: $white !important;
|
||||
}
|
||||
}
|
||||
|
||||
&:last-child {
|
||||
a {
|
||||
border: none;
|
||||
}
|
||||
}
|
||||
|
||||
.submenu {
|
||||
inset-inline-start: 100%;
|
||||
top: 0;
|
||||
visibility: hidden;
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
>a {
|
||||
background: $theme-color;
|
||||
@ -546,6 +554,7 @@
|
||||
color: $theme-color;
|
||||
}
|
||||
}
|
||||
|
||||
>.submenu {
|
||||
-webkit-transform: translateY(1);
|
||||
-moz-transform: translateY(1);
|
||||
@ -557,6 +566,7 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
li.has-dropdown {
|
||||
>a {
|
||||
&::after {
|
||||
@ -593,6 +603,7 @@
|
||||
|
||||
.homemenu {
|
||||
position: relative;
|
||||
|
||||
.homemenu-thumb {
|
||||
position: relative;
|
||||
|
||||
@ -647,6 +658,7 @@
|
||||
transition: all 0.3s ease-in-out;
|
||||
content: "";
|
||||
}
|
||||
|
||||
&:hover {
|
||||
|
||||
&::before {
|
||||
@ -659,6 +671,7 @@
|
||||
visibility: visible;
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
& .homemenu-btn {
|
||||
opacity: 1;
|
||||
visibility: visible;
|
||||
@ -666,6 +679,7 @@
|
||||
transform: translateY(50%);
|
||||
}
|
||||
}
|
||||
|
||||
img {
|
||||
width: 100%;
|
||||
}
|
||||
@ -684,10 +698,12 @@
|
||||
&:hover {
|
||||
>a {
|
||||
color: $theme-color;
|
||||
|
||||
&::after {
|
||||
color: $theme-color;
|
||||
}
|
||||
}
|
||||
|
||||
>.submenu {
|
||||
visibility: visible;
|
||||
opacity: 1;
|
||||
@ -699,22 +715,28 @@
|
||||
}
|
||||
|
||||
.header-right {
|
||||
gap: 30px;
|
||||
gap: 50px !important;
|
||||
|
||||
@include breakpoint(max-xxl) {
|
||||
gap: 20px;
|
||||
gap: 30px !important;
|
||||
}
|
||||
|
||||
.search-icon {
|
||||
color: $header-color;
|
||||
font-size: 18px;
|
||||
.header-button {
|
||||
margin-right: 57px;
|
||||
display: block;
|
||||
|
||||
@include breakpoint(max-xl) {
|
||||
display: none !important;
|
||||
}
|
||||
}
|
||||
|
||||
.sidebar__toggle {
|
||||
cursor: pointer;
|
||||
font-size: 20px;
|
||||
color: $header-color;
|
||||
.header__hamburger {
|
||||
display: none !important;
|
||||
|
||||
@media (max-width: 1024px) {
|
||||
display: block !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -764,6 +786,7 @@
|
||||
overflow-y: scroll;
|
||||
overscroll-behavior-y: contain;
|
||||
scrollbar-width: none;
|
||||
|
||||
&::-webkit-scrollbar {
|
||||
display: none;
|
||||
}
|
||||
@ -981,7 +1004,8 @@
|
||||
font-size: 18px;
|
||||
|
||||
a {
|
||||
color: $white; ;
|
||||
color: $white;
|
||||
;
|
||||
@include transition;
|
||||
|
||||
&:hover {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user