Skip to content

Navbar updated #346

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
5 changes: 4 additions & 1 deletion src/components/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ interface NavbarProps {

function Navbar({ scrollToFooter }: NavbarProps) {
const [hovered, setHovered] = useState<
null | "home" | "explore" | "help" | "github" | "join"
null | "home" | "explore" | "help" | "github" | "join" | "Learn"
>(null);
const screens = useBreakpoint();
const location = useLocation();
Expand Down Expand Up @@ -270,6 +270,7 @@ function Navbar({ scrollToFooter }: NavbarProps) {
<Link to="/learn/intro" className="learnNow-button">
<animated.button
style={{
...menuItemStyle("Learn",false),
...props,
padding: "10px 22px",
backgroundColor: "#19c6c7",
Expand All @@ -278,6 +279,8 @@ function Navbar({ scrollToFooter }: NavbarProps) {
borderRadius: "5px",
cursor: "pointer",
}}
onMouseEnter={()=>setHovered("Learn")}
onMouseLeave={()=>setHovered(null)}
>
Learn
</animated.button>
Expand Down