mirror of
https://github.com/WDI-Ideas/rubix.git
synced 2026-04-27 20:45:49 +00:00
Community drop down
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user