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