UPDATE: User Preference SideBar.

Can try access DB and Render what user wants/follows
This commit is contained in:
EvanLin3141
2025-02-06 00:01:09 +00:00
parent bd7a44ed3c
commit b44ca46034
9 changed files with 72 additions and 87 deletions

View File

@@ -8,14 +8,16 @@ interface ThemeProps {
const Theme: React.FC<ThemeProps> = ({ onClick }) => {
return (
<div className='relative top-[0.20em] left-[10em]'>
<button
onClick={onClick}
className="p-2 text-[1.5rem] flex items-center gap-2 text-white hover:text-purple-600 bg-black/30 hover:bg-black/80 rounded-md border border-gray-300 hover:border-purple-500 hover:border-b-4 hover:border-l-4 active:border-b-2 active:border-l-2 transition-all"
>
<SunMoonIcon
<SunMoonIcon size={27}
className={`transition-transform duration-300 ease-in-out`}
/>
</button>
</div>
);
};