mirror of
https://github.com/aljazceru/sendstr-web.git
synced 2025-12-17 06:24:24 +01:00
Add icon hover color.
This commit is contained in:
@@ -19,7 +19,7 @@ export function Header() {
|
|||||||
|
|
||||||
if (currentTheme === "dark") {
|
if (currentTheme === "dark") {
|
||||||
return (
|
return (
|
||||||
<button onClick={() => setTheme("light")}>
|
<button onClick={() => setTheme("light")} className="icon-hover">
|
||||||
<svg
|
<svg
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
viewBox="0 0 24 24"
|
viewBox="0 0 24 24"
|
||||||
@@ -37,7 +37,7 @@ export function Header() {
|
|||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
return (
|
return (
|
||||||
<button onClick={() => setTheme("dark")}>
|
<button onClick={() => setTheme("dark")} className="icon-hover">
|
||||||
<svg
|
<svg
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
viewBox="0 0 24 24"
|
viewBox="0 0 24 24"
|
||||||
@@ -65,11 +65,11 @@ export function Header() {
|
|||||||
>FAQ
|
>FAQ
|
||||||
</Link> */}
|
</Link> */}
|
||||||
<a href="https://github.com/vilm3r/sendstr-web">
|
<a href="https://github.com/vilm3r/sendstr-web">
|
||||||
<DiGithubBadge className="inline text-3xl" title="Github" />
|
<DiGithubBadge className="inline text-3xl icon-hover" title="Github" />
|
||||||
</a>
|
</a>
|
||||||
<Link href="/settings">
|
<Link href="/settings">
|
||||||
<div className="cursor-pointer">
|
<div className="cursor-pointer">
|
||||||
<MdSettings className="inline text-2xl" title="Settings" />
|
<MdSettings className="inline text-2xl icon-hover" title="Settings" />
|
||||||
</div>
|
</div>
|
||||||
</Link>
|
</Link>
|
||||||
{renderThemeToggle()}
|
{renderThemeToggle()}
|
||||||
|
|||||||
@@ -33,4 +33,8 @@
|
|||||||
.btn-main {
|
.btn-main {
|
||||||
@apply bg-primary rounded-md px-6 py-3 w-full h-full shadow text-gray-100 dark:text-gray-900 font-semibold
|
@apply bg-primary rounded-md px-6 py-3 w-full h-full shadow text-gray-100 dark:text-gray-900 font-semibold
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.icon-hover {
|
||||||
|
@apply transition duration-300 hover:text-primary
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user