diff --git a/README.md b/README.md index 1c6f4a0a..79c78dec 100644 --- a/README.md +++ b/README.md @@ -5,10 +5,10 @@
-[![stargazers](https://img.shields.io/github/stars/ryo-ma/github-profile-trophy)](https://github.com/ryo-ma/github-profile-trophy/stargazers) -[![forks](https://img.shields.io/github/forks/ryo-ma/github-profile-trophy)](https://github.com/ryo-ma/github-profile-trophy/network/members) -[![issues](https://img.shields.io/github/issues/ryo-ma/github-profile-trophy)](https://github.com/ryo-ma/github-profile-trophy/issues) -[![license](https://img.shields.io/github/license/ryo-ma/github-profile-trophy)](https://github.com/ryo-ma/github-profile-trophy/blob/master/LICENSE) +[![stargazers](https://img.shields.io/github/stars/ryo-ma/github-profile-trophy)](https://github.com/xploitoverload/github-profile-trophy/stargazers) +[![forks](https://img.shields.io/github/forks/ryo-ma/github-profile-trophy)](https://github.com/xploitoverload/github-profile-trophy/network/members) +[![issues](https://img.shields.io/github/issues/ryo-ma/github-profile-trophy)](https://github.com/xploitoverload/github-profile-trophy/issues) +[![license](https://img.shields.io/github/license/ryo-ma/github-profile-trophy)](https://github.com/xploitoverload/github-profile-trophy/blob/master/LICENSE) [![share](https://img.shields.io/twitter/url?style=social&url=https%3A%2F%2Fgithub.com%2Fryo-ma%2Fgithub-profile-trophy)](https://twitter.com/intent/tweet?text=Add%20dynamically%20generated%20GitHub%20Trophy%20on%20your%20readme%0D%0A&url=https%3A%2F%2Fgithub.com%2Fryo-ma%2Fgithub-profile-trophy)
@@ -45,6 +45,8 @@ These are endpoints provided by volunteers. Please use these in moderation. +- [https://trophy.cx330.in](https://trophy.cx330.in) by [CX330](https://cx330.in) +- [https://trophygithubreadmelang.cybee.dpdns.org/](https://trophygithubreadmelang.cybee.dpdns.org/) by [Cyberbee-pro](https://github.com/Cyberbee-pro) - [https://trophygithubreadmelang.cybee.dpdns.org/](https://trophygithubreadmelang.cybee.dpdns.org/) by [Cyberbee-pro](https://github.com/Cyberbee-pro) - [https://github-profile-trophy-liard-delta.vercel.app](https://github-profile-trophy-liard-delta.vercel.app/) @@ -84,11 +86,11 @@ Add the following code to your readme. When pasting the code into your profile's readme, change the `?username=` value to your GitHub's username. ``` -[![trophy](https://github-profile-trophy.vercel.app/?username=ryo-ma)](https://github.com/ryo-ma/github-profile-trophy) +[![trophy](https://trophy.cx330.in/?username=ryo-ma)](https://github.com/xploitoverload/github-profile-trophy) ```

- +

## Use theme @@ -96,7 +98,7 @@ readme, change the `?username=` value to your GitHub's username. Add optional parameter of the theme. ``` -[![trophy](https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=onedark)](https://github.com/ryo-ma/github-profile-trophy) +[![trophy](https://trophy.cx330.in/?username=ryo-ma&theme=onedark)](https://github.com/xploitoverload/github-profile-trophy) ```

@@ -159,7 +161,7 @@ conditions, I will consider adding a trophy. I am waiting for contributions. You can filter the display by specifying the titles of trophy. ``` -https://github-profile-trophy.vercel.app/?username=ryo-ma&title=Followers +https://trophy.cx330.in/?username=ryo-ma&title=Followers ```

@@ -169,7 +171,7 @@ https://github-profile-trophy.vercel.app/?username=ryo-ma&title=Followers If you want to specify multiple titles. ``` -https://github-profile-trophy.vercel.app/?username=ryo-ma&title=Stars,Followers +https://trophy.cx330.in/?username=ryo-ma&title=Stars,Followers ```

@@ -179,7 +181,7 @@ https://github-profile-trophy.vercel.app/?username=ryo-ma&title=Stars,Followers You can also exclude the trophies you don't want to display. ``` -https://github-profile-trophy.vercel.app/?username=ryo-ma&title=-Stars,-Followers +https://trophy.cx330.in/?username=ryo-ma&title=-Stars,-Followers ``` ## Filter by ranks @@ -188,7 +190,7 @@ You can filter the display by specifying the ranks.\ `Available values: SECRET SSS SS S AAA AA A B C` ``` -https://github-profile-trophy.vercel.app/?username=ryo-ma&rank=S +https://trophy.cx330.in/?username=ryo-ma&rank=S ```

@@ -198,7 +200,7 @@ https://github-profile-trophy.vercel.app/?username=ryo-ma&rank=S If you want to specify multiple ranks. ``` -https://github-profile-trophy.vercel.app/?username=ryo-ma&rank=S,AAA +https://trophy.cx330.in/?username=ryo-ma&rank=S,AAA ```

@@ -208,7 +210,7 @@ https://github-profile-trophy.vercel.app/?username=ryo-ma&rank=S,AAA You can also exclude ranks. ``` -https://github-profile-trophy.vercel.app/?username=ryo-ma&rank=-C,-B +https://trophy.cx330.in/?username=ryo-ma&rank=-C,-B ``` **NOTE: Since `UNKNOWN` is denoted by `?`, in order to include or exclude it you @@ -225,19 +227,19 @@ Trophy will be hidden if it exceeds the range of both row and column. Restrict only row ``` -https://github-profile-trophy.vercel.app/?username=ryo-ma&row=2 +https://trophy.cx330.in/?username=ryo-ma&row=2 ``` Restrict only column ``` -https://github-profile-trophy.vercel.app/?username=ryo-ma&column=2 +https://trophy.cx330.in/?username=ryo-ma&column=2 ``` Restrict row & column ``` -https://github-profile-trophy.vercel.app/?username=ryo-ma&row=2&column=3 +https://trophy.cx330.in/?username=ryo-ma&row=2&column=3 ```

@@ -247,7 +249,7 @@ https://github-profile-trophy.vercel.app/?username=ryo-ma&row=2&column=3 Adaptive column ``` -https://github-profile-trophy.vercel.app/?username=ryo-ma&column=-1 +https://trophy.cx330.in/?username=ryo-ma&column=-1 ``` You can set `column` to `-1` to adapt the width to the number of trophies, the @@ -283,11 +285,14 @@ Available themes. | [dark_lover](#dark_lover) | | [kimbie_dark](#kimbie_dark) | | [aura](#aura) | +| [matrixhack](#matrixhack) | +| [wired](#wired) | + ### flat ``` -https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=flat +https://trophy.cx330.in/?username=ryo-ma&theme=flat ```

@@ -297,7 +302,7 @@ https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=flat ### onedark ``` -https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=onedark +https://trophy.cx330.in/?username=ryo-ma&theme=onedark ```

@@ -307,7 +312,7 @@ https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=onedark ### gruvbox ``` -https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=gruvbox +https://trophy.cx330.in/?username=ryo-ma&theme=gruvbox ```

@@ -317,17 +322,29 @@ https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=gruvbox ### dracula ``` -https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=dracula +https://trophy.cx330.in/?username=ryo-ma&theme=dracula ```

+ +### matrixhack + +``` +https://trophy.cx330.in/?username=ryo-ma&theme=matrixhack +``` + +

+ +

+ + ### monokai ``` -https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=monokai +https://trophy.cx330.in/?username=ryo-ma&theme=monokai ```

@@ -337,7 +354,7 @@ https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=monokai ### chalk ``` -https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=chalk +https://trophy.cx330.in/?username=ryo-ma&theme=chalk ```

@@ -347,7 +364,7 @@ https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=chalk ### nord ``` -https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=nord +https://trophy.cx330.in/?username=ryo-ma&theme=nord ```

@@ -357,7 +374,7 @@ https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=nord ### alduin ``` -https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=alduin +https://trophy.cx330.in/?username=ryo-ma&theme=alduin ```

@@ -367,7 +384,7 @@ https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=alduin ### darkhub ``` -https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=darkhub +https://trophy.cx330.in/?username=ryo-ma&theme=darkhub ```

@@ -377,7 +394,7 @@ https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=darkhub ### juicyfresh ``` -https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=juicyfresh +https://trophy.cx330.in/?username=ryo-ma&theme=juicyfresh ```

@@ -387,7 +404,7 @@ https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=juicyfresh ### buddhism ``` -https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=buddhism +https://trophy.cx330.in/?username=ryo-ma&theme=buddhism ```

@@ -397,7 +414,7 @@ https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=buddhism ### oldie ``` -https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=oldie +https://trophy.cx330.in/?username=ryo-ma&theme=oldie ```

@@ -407,7 +424,7 @@ https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=oldie ### radical ``` -https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=radical +https://trophy.cx330.in/?username=ryo-ma&theme=radical ```

@@ -417,7 +434,7 @@ https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=radical ### onestar ``` -https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=onestar +https://trophy.cx330.in/?username=ryo-ma&theme=onestar ```

@@ -427,7 +444,7 @@ https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=onestar ### discord ``` -https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=discord +https://trophy.cx330.in/?username=ryo-ma&theme=discord ```

@@ -437,7 +454,7 @@ https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=discord ### algolia ``` -https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=algolia +https://trophy.cx330.in/?username=ryo-ma&theme=algolia ```

@@ -447,7 +464,7 @@ https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=algolia ### gitdimmed ``` -https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=gitdimmed +https://trophy.cx330.in/?username=ryo-ma&theme=gitdimmed ```

@@ -457,7 +474,7 @@ https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=gitdimmed ### tokyonight ``` -https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=tokyonight +https://trophy.cx330.in/?username=ryo-ma&theme=tokyonight ```

@@ -467,7 +484,7 @@ https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=tokyonight ### matrix ``` -https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=matrix +https://trophy.cx330.in/?username=ryo-ma&theme=matrix ```

@@ -477,7 +494,7 @@ https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=matrix ### apprentice ``` -https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=apprentice +https://trophy.cx330.in/?username=ryo-ma&theme=apprentice ```

@@ -487,7 +504,7 @@ https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=apprentice ### dark_dimmed ``` -https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=dark_dimmed +https://trophy.cx330.in/?username=ryo-ma&theme=dark_dimmed ```

@@ -497,7 +514,7 @@ https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=dark_dimmed ### dark_lover ``` -https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=dark_lover +https://trophy.cx330.in/?username=ryo-ma&theme=dark_lover ```

@@ -507,7 +524,7 @@ https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=dark_lover ### kimbie_dark ``` -https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=kimbie_dark +https://trophy.cx330.in/?username=ryo-ma&theme=kimbie_dark ```

@@ -517,7 +534,7 @@ https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=kimbie_dark ### aura ``` -https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=aura +https://trophy.cx330.in/?username=ryo-ma&theme=aura ```

@@ -531,7 +548,7 @@ You can put a margin in the width between trophies.\ `Default: margin-w=0` ``` -https://github-profile-trophy.vercel.app/?username=ryo-ma&margin-w=15 +https://trophy.cx330.in/?username=ryo-ma&margin-w=15 ```

@@ -545,7 +562,7 @@ You can put a margin in the height between trophies.\ `Default: margin-h=0` ``` -https://github-profile-trophy.vercel.app/?username=ryo-ma&margin-h=15 +https://trophy.cx330.in/?username=ryo-ma&margin-h=15 ```

@@ -555,7 +572,7 @@ https://github-profile-trophy.vercel.app/?username=ryo-ma&margin-h=15 ## Example layout ``` -https://github-profile-trophy.vercel.app/?username=ryo-ma&column=3&margin-w=15&margin-h=15 +https://trophy.cx330.in/?username=ryo-ma&column=3&margin-w=15&margin-h=15 ```

@@ -569,7 +586,7 @@ You can turn the background transparent.\ `Default: no-bg=false` ``` -https://github-profile-trophy.vercel.app/?username=ryo-ma&no-bg=true +https://trophy.cx330.in/?username=ryo-ma&no-bg=true ```

@@ -583,7 +600,7 @@ You can hide the frames around the trophies.\ `Default: no-frame=false` ``` -https://github-profile-trophy.vercel.app/?username=ryo-ma&no-frame=true +https://trophy.cx330.in/?username=ryo-ma&no-frame=true ```

@@ -659,7 +676,7 @@ Check [CONTRIBUTING.md](./CONTRIBUTING.md) for more details. # License This product is licensed under the -[MIT License](https://github.com/ryo-ma/github-profile-trophy/blob/master/LICENSE). +[MIT License](https://github.com/xploitoverload/github-profile-trophy/blob/master/LICENSE). # 🙏 Sponsors diff --git a/api/index.ts b/api/index.ts index 8ad6aa0b..9525c833 100644 --- a/api/index.ts +++ b/api/index.ts @@ -66,7 +66,7 @@ async function app(req: Request): Promise { See all the available themes - here + here
diff --git a/src/theme.ts b/src/theme.ts index 287280b0..53f31196 100644 --- a/src/theme.ts +++ b/src/theme.ts @@ -47,6 +47,54 @@ export const COLORS: { [name: string]: Theme } = { DEFAULT_RANK_SHADOW: "#6272a4", DEFAULT_RANK_TEXT: "#6272a4", }, + matrixhack: { + BACKGROUND: "#000000", + TITLE: "#00ff41", + ICON_CIRCLE: "#0d1f0d", + TEXT: "#33ff66", + LAUREL: "#00ff41", + SECRET_RANK_1: "#ff0055", + SECRET_RANK_2: "#00fff9", + SECRET_RANK_3: "#39ff14", + SECRET_RANK_TEXT: "#00ff41", + NEXT_RANK_BAR: "#39ff14", + S_RANK_BASE: "#00ff41", + S_RANK_SHADOW: "#003b00", + S_RANK_TEXT: "#000000", + A_RANK_BASE: "#39ff14", + A_RANK_SHADOW: "#004d00", + A_RANK_TEXT: "#000000", + B_RANK_BASE: "#2ecc40", + B_RANK_SHADOW: "#0f3d0f", + B_RANK_TEXT: "#000000", + DEFAULT_RANK_BASE: "#1a4d1a", + DEFAULT_RANK_SHADOW: "#0a1f0a", + DEFAULT_RANK_TEXT: "#00ff41", + }, + wired: { + BACKGROUND: "#0a0e14", + TITLE: "#4dd9e8", + ICON_CIRCLE: "#0f1a24", + TEXT: "#7fb3bf", + LAUREL: "#2b8fa3", + SECRET_RANK_1: "#ff2d55", + SECRET_RANK_2: "#4dd9e8", + SECRET_RANK_3: "#8a2be2", + SECRET_RANK_TEXT: "#4dd9e8", + NEXT_RANK_BAR: "#2b8fa3", + S_RANK_BASE: "#ff2d55", + S_RANK_SHADOW: "#6b001f", + S_RANK_TEXT: "#ffffff", + A_RANK_BASE: "#2b8fa3", + A_RANK_SHADOW: "#0a2a30", + A_RANK_TEXT: "#0a0e14", + B_RANK_BASE: "#5a5a7a", + B_RANK_SHADOW: "#1a1a2e", + B_RANK_TEXT: "#0a0e14", + DEFAULT_RANK_BASE: "#2a2a3a", + DEFAULT_RANK_SHADOW: "#14141f", + DEFAULT_RANK_TEXT: "#4dd9e8", + }, flat: { BACKGROUND: "#FFF", TITLE: "#000",