Skip to content

Commit

Permalink
docs(website): format stars count
Browse files Browse the repository at this point in the history
  • Loading branch information
TheEdoRan committed Apr 8, 2024
1 parent 85d2689 commit d53227e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion website/src/components/landing/stars-button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,12 @@ export function StarsButton() {
rel="noopener noreferrer"
className="!no-underline hover:!bg-sky-100 transition !text-zinc-900 cursor-pointer rounded-lg mr-4 bg-zinc-50 px-3 py-2 font-bold inline-flex items-center justify-center space-x-1 text-sm sm:text-lg md:text-xl">
<Star className="w-4 h-4 sm:w-6 sm:h-6" />
<span>{starsCount ? starsCount : ". . ."} GitHub stars</span>
<span>
{starsCount
? Intl.NumberFormat("en", { notation: "compact" }).format(starsCount)
: ". . ."}{" "}
GitHub stars
</span>
</a>
);
}

0 comments on commit d53227e

Please sign in to comment.