add search component

This commit is contained in:
Timothy Lin
2023-07-30 17:20:28 +08:00
parent 3dcb7e56f9
commit d94c31ddea
6 changed files with 65 additions and 40 deletions

View File

@@ -17,14 +17,13 @@ const ThemeSwitch = () => {
return (
<button
aria-label="Toggle Dark Mode"
className="ml-1 mr-1 h-8 w-8 rounded p-1 sm:ml-4"
onClick={() => setTheme(theme === 'dark' ? 'light' : 'dark')}
>
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 20 20"
fill="currentColor"
className="text-gray-900 dark:text-gray-100"
className="text-gray-900 dark:text-gray-100 h-6 w-6"
>
{mounted && theme === 'dark' ? (
<path