Skip to content
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