Skip to content

Commit

Permalink
upd header svg
Browse files Browse the repository at this point in the history
  • Loading branch information
oiov committed Apr 18, 2024
1 parent 071f518 commit 4c221c4
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 13 deletions.
15 changes: 2 additions & 13 deletions apps/remix/app/components/Header.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Link } from "@remix-run/react";
import { VmailLogo } from "./icons/vmail";
import { useTranslation } from "react-i18next";
import GithubPlat from "./icons/GitHubPlat";

export default function Header() {
const { t } = useTranslation();
Expand Down Expand Up @@ -32,19 +33,7 @@ export default function Header() {
target="_blank"
to="https://github.com/oiov/vmail">
<button className="whitespace-nowrap transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 bg-background hover:bg-accent hover:text-accent-foreground text-md flex h-[32px] w-[85px] cursor-pointer items-center justify-center rounded-md border-2 p-2 font-semibold hover:opacity-50">
<svg
xmlns="https://www.w3.org/2000/svg"
width="16"
height="16"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
strokeWidth="2"
strokeLinecap="round"
strokeLinejoin="round"
className="mb-[1px]">
<path d="M9 19c-4.3 1.4 -4.3 -2.5 -6 -3m12 5v-3.5c0 -1 .1 -1.4 -.5 -2c2.8 -.3 5.5 -1.4 5.5 -6a4.6 4.6 0 0 0 -1.3 -3.2a4.2 4.2 0 0 0 -.1 -3.2s-1.1 -.3 -3.5 1.3a12.3 12.3 0 0 0 -6.2 0c-2.4 -1.6 -3.5 -1.3 -3.5 -1.3a4.2 4.2 0 0 0 -.1 3.2a4.6 4.6 0 0 0 -1.3 3.2c0 4.6 2.7 5.7 5.5 6c-.6 .6 -.6 1.2 -.5 2v3.5"></path>
</svg>
<GithubPlat />
<div className="ml-1.5 text-sm">Star</div>
</button>
</Link>
Expand Down
17 changes: 17 additions & 0 deletions apps/remix/app/components/icons/GitHubPlat.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
export default function GithubPlat({ className }: { className?: string }) {
return (
<svg
xmlns="https://www.w3.org/2000/svg"
width="16"
height="16"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
strokeWidth="2"
strokeLinecap="round"
strokeLinejoin="round"
className="mb-[1px]">
<path d="M9 19c-4.3 1.4 -4.3 -2.5 -6 -3m12 5v-3.5c0 -1 .1 -1.4 -.5 -2c2.8 -.3 5.5 -1.4 5.5 -6a4.6 4.6 0 0 0 -1.3 -3.2a4.2 4.2 0 0 0 -.1 -3.2s-1.1 -.3 -3.5 1.3a12.3 12.3 0 0 0 -6.2 0c-2.4 -1.6 -3.5 -1.3 -3.5 -1.3a4.2 4.2 0 0 0 -.1 3.2a4.6 4.6 0 0 0 -1.3 3.2c0 4.6 2.7 5.7 5.5 6c-.6 .6 -.6 1.2 -.5 2v3.5"></path>
</svg>
);
}

0 comments on commit 4c221c4

Please sign in to comment.