update icons

This commit is contained in:
EGOIST
2022-05-28 16:44:16 +08:00
parent b083b2b732
commit 2124753096
9 changed files with 47 additions and 143 deletions
+3 -23
View File
@@ -1,6 +1,3 @@
import { Icon } from "@iconify/react"
import discordIcon from "@iconify/icons-mdi/discord"
import githubIcon from "@iconify/icons-mdi/github"
import { logout } from "~/lib/auth.client"
import {
APP_DESCRIPTION,
@@ -48,18 +45,7 @@ export function MainLayout({
className="space-x-2 rounded-full px-4 h-8 inline-flex items-center text-sm text-indigo-500 font-medium hover:bg-indigo-50"
>
<span>Sign Out</span>
<svg
className="w-5 h-5"
fill="currentColor"
viewBox="0 0 20 20"
xmlns="http://www.w3.org/2000/svg"
>
<path
fillRule="evenodd"
d="M3 3a1 1 0 00-1 1v12a1 1 0 102 0V4a1 1 0 00-1-1zm10.293 9.293a1 1 0 001.414 1.414l3-3a1 1 0 000-1.414l-3-3a1 1 0 10-1.414 1.414L14.586 9H7a1 1 0 100 2h7.586l-1.293 1.293z"
clipRule="evenodd"
/>
</svg>
<span className="i-bi:box-arrow-right text-lg"></span>
</UniLink>
) : (
<UniLink
@@ -81,17 +67,11 @@ export function MainLayout({
<span>&copy; {APP_NAME}</span>
<div className="text-zinc-400 mt-2 flex items-center space-x-1">
<UniLink href={discordLink}>
<Icon
icon={discordIcon}
className="w-5 h-5 hover:text-indigo-500"
/>
<span className="inline-block i-mdi-discord text-xl hover:text-indigo-500"></span>
</UniLink>
{GITHUB_LINK && (
<UniLink href={GITHUB_LINK}>
<Icon
icon={githubIcon}
className="w-5 h-5 hover:text-zinc-900"
/>
<span className="inline-block i-mdi-github text-xl hover:text-zinc-900"></span>
</UniLink>
)}
</div>