Commit 5bbdae3
Changed files (8)
src
src/all-badges/stars/stars-1000.png
Binary file
src/all-badges/stars/stars-10000.png
Binary file
src/all-badges/stars/stars-2000.png
Binary file
src/all-badges/stars/stars-20000.png
Binary file
src/all-badges/stars/stars-500.png
Binary file
src/all-badges/stars/stars-5000.png
Binary file
src/all-badges/stars/stars.ts
@@ -4,6 +4,12 @@ export default new class implements BadgePresenter {
url = new URL(import.meta.url)
badges = [
'stars-100',
+ 'stars-500',
+ 'stars-1000',
+ 'stars-2000',
+ 'stars-5000',
+ 'stars-10000',
+ 'stars-20000',
] as const
present: Present = (data, grant) => {
let totalStars = 0
@@ -13,5 +19,23 @@ export default new class implements BadgePresenter {
if (totalStars >= 100) {
grant('stars-100', `I collected 100 stars.`)
}
+ if (totalStars >= 500) {
+ grant('stars-500', 'I collected 500 stars.')
+ }
+ if (totalStars >= 1000) {
+ grant('stars-1000', 'I collected 1000 stars.')
+ }
+ if (totalStars >= 2000) {
+ grant('stars-2000', 'I collected 2000 stars.')
+ }
+ if (totalStars >= 5000) {
+ grant('stars-5000', 'I collected 5000 stars.')
+ }
+ if (totalStars >= 10000) {
+ grant('stars-10000', 'I collected 10000 stars.')
+ }
+ if (totalStars >= 20000) {
+ grant('stars-20000', 'I collected 20000 stars.')
+ }
}
}
README.md
@@ -26,7 +26,7 @@ Here is all currently available badges:
<img src="src/all-badges/revert-revert-commit/revert-revert-commit.png" alt="revert-revert-commit" width="60">
</p>
-But we are planning on adding much more. You can even add your own badges too!
+But we are planning on adding much more. **Add your own badges too**!
## Usage