Community drop down

This commit is contained in:
rockyeverlast
2024-05-13 16:20:41 +05:30
parent 2b6187dd0e
commit 20753031f9

View File

@@ -38,7 +38,7 @@ const NavBar = () => {
const [isHoveredLearn, setIsHoveredLearn] = useState(false);
const [isHoveredBuild, setIsHoveredBuild] = useState(false);
const [isHoveredCases, setIsHoveredCases] = useState(false);
// const [isHoveredCommunity, setIsHoveredCommunity] = useState(false);
const [isHoveredCommunity, setIsHoveredCommunity] = useState(false);
const [windowWidth, setWindowWidth] = useState(window.innerWidth);
const location = useLocation();
@@ -643,7 +643,7 @@ const NavBar = () => {
</PopoverContent>
</Popover>
<Link
{/* <Link
to="/community"
className="link"
style={
@@ -671,8 +671,8 @@ const NavBar = () => {
}
/>
</Button>
</Link>
{/* <Popover
</Link> */}
<Popover
isOpen={isHoveredCommunity}
onClose={() => setIsHoveredCommunity(false)}
>
@@ -737,10 +737,10 @@ const NavBar = () => {
<PopoverBody>
<Link
to="/Articles"
to="/news"
className="link"
style={
location.pathname === "/Articles" ? highlight : normal
location.pathname === "/news" ? highlight : normal
}
>
<Box
@@ -757,13 +757,13 @@ const NavBar = () => {
<PopoverBody>
<Link
to="/"
to="/resources-page"
className="link"
// style={
// location.pathname === "/LearnPage"
// ? highlight
// : normal
// }
style={
location.pathname === "/resources-page"
? highlight
: normal
}
>
<Box
display={"flex"}
@@ -772,7 +772,7 @@ const NavBar = () => {
marginBottom={"1rem"}
>
<Image src={quorumIcon} width={`${iconwidth}`} />
MarTech
Resources
</Box>
</Link>
</PopoverBody>
@@ -799,7 +799,7 @@ const NavBar = () => {
</Link>
</PopoverBody>
</PopoverContent>
</Popover> */}
</Popover>
{/* <Link to="/" className="link" style={{ position: "relative" }}>
<Button