Skip to content

Commit

Permalink
feat(ui): add GitHub button component
Browse files Browse the repository at this point in the history
  • Loading branch information
R1shabh-Gupta committed Aug 20, 2024
1 parent c68f323 commit 3631ae0
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions frontend/components/ui/github-button.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import { Button } from "./button";

const GithubButton = () => {
return (
<Button variant="outline" size="icon">
<a href="https://github.com/R1shabh-Gupta/Rubik" target="_blank">
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
strokeWidth="2"
strokeLinecap="round"
strokeLinejoin="round"
className="lucide lucide-github"
>
<path d="M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4" />
<path d="M9 18c-4.51 2-5-2-7-2" />
</svg>
</a>
</Button>
);
};

export default GithubButton;

0 comments on commit 3631ae0

Please sign in to comment.