Skip to content

Commit

Permalink
responsive design for option compoent
Browse files Browse the repository at this point in the history
  • Loading branch information
Ph1so committed Aug 15, 2024
1 parent 00c9b68 commit 0bd75a4
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 174 deletions.
3 changes: 1 addition & 2 deletions src/components/Navbar.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React, { useState } from "react";
import { Link } from "react-router-dom";
import "./Navbar.css";
import { IoMenu } from "react-icons/io5";

const Navbar = () => {
const [isOpen, setIsOpen] = useState(false);
Expand All @@ -20,7 +19,7 @@ const Navbar = () => {
Endure AI
</Link>
<button className="menu-toggle" onClick={toggleMenu}>
<IoMenu />
</button>
<div className={`icon-container ${isOpen ? "open" : ""}`}>
<Link to="/workout" className="navbar-links" onClick={closeMenu}>
Expand Down
Loading

0 comments on commit 0bd75a4

Please sign in to comment.