diff --git a/src/components/Cards/Card.jsx b/src/components/Cards/Card.jsx index 0113f790..0fa667a7 100644 --- a/src/components/Cards/Card.jsx +++ b/src/components/Cards/Card.jsx @@ -24,11 +24,11 @@ const Card = (props) => {
{description}
-WebMasterLog serves as a comprehensive record of various web development endeavors, highlighting the versatility and capabilities of projects built with Front-end and Back-end Web development technologies. From interactive and responsive user interfaces to dynamic web diff --git a/src/components/Sidebar/SideBar.jsx b/src/components/Sidebar/SideBar.jsx index bc669f42..ff7ef634 100644 --- a/src/components/Sidebar/SideBar.jsx +++ b/src/components/Sidebar/SideBar.jsx @@ -43,7 +43,7 @@ const showAnimation = { const SideBar = ({ routes, children }) => { const [isOpen, setIsOpen] = useState(false); const location = useLocation(); - + const [modes,setModes]=useState("Dark") useEffect(() => { const currentCategory = getCurrentCategory(); const scrollbarColor = getScrollbarColor(currentCategory); @@ -94,6 +94,16 @@ const SideBar = ({ routes, children }) => { const toggle = () => setIsOpen(!isOpen); + const modes_control=()=>{ + document.body.classList.toggle('light') + if(document.body.classList.contains('light')){ + setModes("Light") + } + else{ + setModes("Dark") + } + } + console.log(modes) return ( <>
{modes}
:<>>} +