mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2026-08-23 23:02:17 +10:00
v5.1.0 (#2970)
* chore(release): v5.1.0 * feat: implement resume thumbnails * fix: remove unused mcp tools * docs: fix formatting of docs
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
import { t } from "@lingui/core/macro";
|
||||
import { GithubLogoIcon, StarIcon } from "@phosphor-icons/react";
|
||||
import { useQuery } from "@tanstack/react-query";
|
||||
import { Button } from "@reactive-resume/ui/components/button";
|
||||
import { orpc } from "@/libs/orpc/client";
|
||||
import { CountUp } from "../animation/count-up";
|
||||
|
||||
export function GithubStarsButton() {
|
||||
const { data: starCount } = useQuery(orpc.statistics.github.getStarCount.queryOptions());
|
||||
|
||||
const ariaLabel =
|
||||
starCount != null
|
||||
? t`Star us on GitHub, currently ${starCount.toLocaleString()} stars (opens in new tab)`
|
||||
: t`Star us on GitHub (opens in new tab)`;
|
||||
|
||||
return (
|
||||
<Button
|
||||
variant="outline"
|
||||
nativeButton={false}
|
||||
render={
|
||||
<a target="_blank" href="https://github.com/amruthpillai/reactive-resume" aria-label={ariaLabel} rel="noopener">
|
||||
<GithubLogoIcon aria-hidden="true" />
|
||||
{starCount != null ? (
|
||||
<CountUp to={starCount} duration={0.5} separator="," className="font-bold" aria-hidden="true" />
|
||||
) : null}
|
||||
<StarIcon aria-hidden="true" />
|
||||
</a>
|
||||
}
|
||||
/>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user