Skip to content

Commit

Permalink
Add transition from dark to light mode
Browse files Browse the repository at this point in the history
  • Loading branch information
ALPHAAAL committed May 25, 2024
1 parent 96f2f5d commit dbe65f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Layout/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ export default function Layout() {

return (
<AppContext.Provider value={value}>
<div onClick={() => isMenuOpen && setIsMenuOpen(false)} className="h-max md:px-[10%] lg:px-[15%] bg-stone-300 dark:bg-slate-800 text-red-300 dark:text-green-300 overflow-hidden font-mono">
<div className={clsx("h-full flex flex-col bg-stone-200 dark:bg-slate-900 px-5", blurClassName)}>
<div onClick={() => isMenuOpen && setIsMenuOpen(false)} className="h-max md:px-[10%] lg:px-[15%] bg-stone-300 dark:bg-slate-800 text-red-300 dark:text-green-300 overflow-hidden font-mono transition-colors duration-[200ms]">
<div className={clsx("h-full flex flex-col bg-stone-200 dark:bg-slate-900 px-5 transition-colors", blurClassName)}>
<div className="flex flex-col min-h-screen py-3">
<div className="flex justify-between mb-5 h-[40px]">
<Link to='/'><MyIcon className='text-black dark:text-white cursor-pointer' width={40} height={40} /></Link>
Expand Down

0 comments on commit dbe65f5

Please sign in to comment.