Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix:#1677 Hover-icon-color-issue-fix #1769

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 19 additions & 14 deletions components/Header/Header.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,27 +21,26 @@ import {
AiFillEdit,
} from "react-icons/ai";


const NAV__LINK = [
{
path: "/",
display: "Home",
openInNewPage:false,
openInNewPage: false,
},
{
path: "/#courses",
display: "Courses",
openInNewPage:false,
openInNewPage: false,
},
{
path: "/gears",
display: "My Gears",
openInNewPage:false,
openInNewPage: false,
},
{
path: "https://blog.piyushgarg.dev",
display: "Blogs",
openInNewPage:true,
openInNewPage: true,
},
];

Expand Down Expand Up @@ -87,7 +86,6 @@ const Header = () => {
<header className={`${classes.header}`} ref={headerRef}>
<Container>
<div className={`${classes.nav__wrapper}`}>
{/* ======== navigation logo ======== */}
<div style={{ cursor: "pointer" }} className={`${classes.logo}`}>
<Link aria-label="Home Page" href="/">
<h1>
Expand All @@ -96,7 +94,6 @@ const Header = () => {
</Link>
</div>

{/* ========= nav menu =========== */}
<div
className={`${classes.navigation}`}
ref={menuRef}
Expand All @@ -113,11 +110,19 @@ const Header = () => {
key={index}
className={`${classes.mobile__menuDiv} cursor-pointer`}
>
<Link aria-label={item.display} href={item.path} target={`${item.openInNewPage?'_blank':'_self'}`}>
<Link
aria-label={item.display}
href={item.path}
target={`${item.openInNewPage ? "_blank" : "_self"}`}
>
<p className={`${classes.mobile__menu}`}>{icons[index]}</p>
</Link>

<Link aria-label={item.display} href={item.path} target={`${item.openInNewPage?'_blank':'_self'}`}>
<Link
aria-label={item.display}
href={item.path}
target={`${item.openInNewPage ? "_blank" : "_self"}`}
>
<span className=" text-[#808dad] hover:text-green-400">
{item.display}
</span>
Expand Down Expand Up @@ -167,7 +172,7 @@ const Header = () => {
target="_blank"
title="Youtube Channel"
id="youtube-channel"
className={`cursor-pointer text-[#ffffff] hover:text-[--site-theme-color] transform ease-in-out hover:-translate-y+1 hover:scale-150`}
className={`cursor-pointer text-[#ffffff] hover:text-red-500 transform ease-in-out hover:-translate-y+1 hover:scale-150`}
rel="noreferrer"
>
<RiYoutubeFill />
Expand All @@ -178,7 +183,7 @@ const Header = () => {
target="_blank"
title="Github Account"
id="github-account"
className={`cursor-pointer text-[#ffffff] hover:text-[--site-theme-color] transform ease-in-out hover:-translate-y+1 hover:scale-150`}
className={`cursor-pointer text-[#ffffff] hover:text-orange-400 transform ease-in-out hover:-translate-y+1 hover:scale-150`}
rel="noreferrer"
>
<RiGithubFill />
Expand All @@ -189,18 +194,18 @@ const Header = () => {
target="_blank"
title="Twitter Account"
id="twitter-account"
className={`cursor-pointer text-[#ffffff] hover:text-[--site-theme-color] transform ease-in-out hover:-translate-y+1 hover:scale-150`}
className={`cursor-pointer text-[#fff] hover:text-[--site-theme-color] transform ease-in-out hover:-translate-y+1 hover:scale-150`}
rel="noreferrer"
>
<NewTwitterLogo/>
<NewTwitterLogo />
</Link>

<Link
href="https://www.linkedin.com/in/piyushgarg195/"
target="_blank"
title="LinkedIn Account"
id="linkedin-account"
className={`cursor-pointer text-[#ffffff] hover:text-[--site-theme-color] transform ease-in-out hover:-translate-y+1 hover:scale-150`}
className={`cursor-pointer text-[#ffffff] hover:text-blue-300 transform ease-in-out hover:-translate-y+1 hover:scale-150 `}
rel="noreferrer"
>
<RiLinkedinFill />
Expand Down
2 changes: 2 additions & 0 deletions components/Header/header.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@
color: #ff0000 !important;
}



/* ========== make it responsive ========= */

@media only screen and (max-width: 992px) {
Expand Down
Loading
Loading