Skip to content

Commit

Permalink
Update URLs to new domain for GitHub views service
Browse files Browse the repository at this point in the history
  • Loading branch information
IgorKowalczyk committed Dec 13, 2024
1 parent fb6ffd9 commit ec0f202
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 22 deletions.
36 changes: 18 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@
> Don't forget to replace example `YOUR-USERNAME` parameter with real value.
## ✨ Basic usage
- Go to https://github-views.deno.dev and enter your Github username or any other text
- Go to https://views.igorkowalczyk.dev and enter your Github username or any other text
- Copy the generated markdown code with the style you like and paste it in your `README.md` file

```markdown
![Github Views](https://github-views.deno.dev/api/badge/YOUR-USERNAME)
![Github Views](https://views.igorkowalczyk.dev/api/badge/YOUR-USERNAME)
```

## 🖼️ Available styles
Expand All @@ -36,8 +36,8 @@
| Style | Example | Usage |
| ----- | ---- | ---- |
| `flat` | ![](https://github-views.deno.dev/api/badge/example?style=flat&display=true) | `style=flat` |
| `classic` | ![](https://github-views.deno.dev/api/badge/example?style=classic&display=true) | `style=classic` |
| `flat` | ![](https://views.igorkowalczyk.dev/api/badge/example?style=flat&display=true) | `style=flat` |
| `classic` | ![](https://views.igorkowalczyk.dev/api/badge/example?style=classic&display=true) | `style=classic` |

> [!NOTE]
> To apply the style, add to the URL `?style=YOUR-STYLE`, if you use other parameters you can use `&style=YOUR-STYLE`
Expand All @@ -49,17 +49,17 @@
| Color | Example | Usage | Label Color | Label usage |
| ----- | ---- | ---- | ---- | ---- |
| `blue` | ![](https://github-views.deno.dev/api/badge/example?style=flat&display=true&color=blue) | `color=blue` | ![](https://github-views.deno.dev/api/badge/example?style=flat&display=true&labelColor=blue) | `labelColor=blue` |
| `cyan` | ![](https://github-views.deno.dev/api/badge/example?style=flat&display=true&color=cyan) | `color=cyan` | ![](https://github-views.deno.dev/api/badge/example?style=flat&display=true&labelColor=cyan) | `labelColor=cyan` |
| `green` | ![](https://github-views.deno.dev/api/badge/example?style=flat&display=true&color=green) | `color=green` | ![](https://github-views.deno.dev/api/badge/example?style=flat&display=true&labelColor=green) | `labelColor=green` |
| `yellow` | ![](https://github-views.deno.dev/api/badge/example?style=flat&display=true&color=yellow) | `color=yellow` | ![](https://github-views.deno.dev/api/badge/example?style=flat&display=true&labelColor=yellow) | `labelColor=yellow` |
| `orange` | ![](https://github-views.deno.dev/api/badge/example?style=flat&display=true&color=orange) | `color=orange` | ![](https://github-views.deno.dev/api/badge/example?style=flat&display=true&labelColor=orange) | `labelColor=orange` |
| `red` | ![](https://github-views.deno.dev/api/badge/example?style=flat&display=true&color=red) | `color=red` | ![](https://github-views.deno.dev/api/badge/example?style=flat&display=true&labelColor=red) | `labelColor=red` |
| `pink` | ![](https://github-views.deno.dev/api/badge/example?style=flat&display=true&color=pink) | `color=pink` | ![](https://github-views.deno.dev/api/badge/example?style=flat&display=true&labelColor=pink) | `labelColor=pink` |
| `purple` | ![](https://github-views.deno.dev/api/badge/example?style=flat&display=true&color=purple) | `color=purple` | ![](https://github-views.deno.dev/api/badge/example?style=flat&display=true&labelColor=purple) | `labelColor=purple` | ![](https://github-views.deno.dev/api/badge/example?style=flat&display=true&labelColor=gray) | `labelColor=gray` |
| `gray` | ![](https://github-views.deno.dev/api/badge/example?style=flat&display=true&color=gray) | `color=gray` | ![](https://github-views.deno.dev/api/badge/example?style=flat&display=true&labelColor=gray) | `labelColor=gray` |
| `black` | ![](https://github-views.deno.dev/api/badge/example?style=flat&display=true&color=black) | `color=black` | ![](https://github-views.deno.dev/api/badge/example?style=flat&display=true&labelColor=black) | `labelColor=black` |
| `ff69b4` | ![](https://github-views.deno.dev/api/badge/example?style=flat&display=true&color=ff69b4) | `color=ff69b4` | ![](https://github-views.deno.dev/api/badge/example?style=flat&display=true&labelColor=ff69b4) | `labelColor=ff69b4` |
| `blue` | ![](https://views.igorkowalczyk.dev/api/badge/example?style=flat&display=true&color=blue) | `color=blue` | ![](https://views.igorkowalczyk.dev/api/badge/example?style=flat&display=true&labelColor=blue) | `labelColor=blue` |
| `cyan` | ![](https://views.igorkowalczyk.dev/api/badge/example?style=flat&display=true&color=cyan) | `color=cyan` | ![](https://views.igorkowalczyk.dev/api/badge/example?style=flat&display=true&labelColor=cyan) | `labelColor=cyan` |
| `green` | ![](https://views.igorkowalczyk.dev/api/badge/example?style=flat&display=true&color=green) | `color=green` | ![](https://views.igorkowalczyk.dev/api/badge/example?style=flat&display=true&labelColor=green) | `labelColor=green` |
| `yellow` | ![](https://views.igorkowalczyk.dev/api/badge/example?style=flat&display=true&color=yellow) | `color=yellow` | ![](https://views.igorkowalczyk.dev/api/badge/example?style=flat&display=true&labelColor=yellow) | `labelColor=yellow` |
| `orange` | ![](https://views.igorkowalczyk.dev/api/badge/example?style=flat&display=true&color=orange) | `color=orange` | ![](https://views.igorkowalczyk.dev/api/badge/example?style=flat&display=true&labelColor=orange) | `labelColor=orange` |
| `red` | ![](https://views.igorkowalczyk.dev/api/badge/example?style=flat&display=true&color=red) | `color=red` | ![](https://views.igorkowalczyk.dev/api/badge/example?style=flat&display=true&labelColor=red) | `labelColor=red` |
| `pink` | ![](https://views.igorkowalczyk.dev/api/badge/example?style=flat&display=true&color=pink) | `color=pink` | ![](https://views.igorkowalczyk.dev/api/badge/example?style=flat&display=true&labelColor=pink) | `labelColor=pink` |
| `purple` | ![](https://views.igorkowalczyk.dev/api/badge/example?style=flat&display=true&color=purple) | `color=purple` | ![](https://views.igorkowalczyk.dev/api/badge/example?style=flat&display=true&labelColor=purple) | `labelColor=purple` | ![](https://views.igorkowalczyk.dev/api/badge/example?style=flat&display=true&labelColor=gray) | `labelColor=gray` |
| `gray` | ![](https://views.igorkowalczyk.dev/api/badge/example?style=flat&display=true&color=gray) | `color=gray` | ![](https://views.igorkowalczyk.dev/api/badge/example?style=flat&display=true&labelColor=gray) | `labelColor=gray` |
| `black` | ![](https://views.igorkowalczyk.dev/api/badge/example?style=flat&display=true&color=black) | `color=black` | ![](https://views.igorkowalczyk.dev/api/badge/example?style=flat&display=true&labelColor=black) | `labelColor=black` |
| `ff69b4` | ![](https://views.igorkowalczyk.dev/api/badge/example?style=flat&display=true&color=ff69b4) | `color=ff69b4` | ![](https://views.igorkowalczyk.dev/api/badge/example?style=flat&display=true&labelColor=ff69b4) | `labelColor=ff69b4` |

> [!NOTE]
> To apply the style, add to the URL `?color=YOUR-COLOR`, if you use other parameters you can use `&color=YOUR-COLOR`
Expand All @@ -71,10 +71,10 @@

You can overwrite default `Views` text with your own label.

![](https://github-views.deno.dev/api/badge/example?label=Your+own+label&display=true&color=blue)
![](https://views.igorkowalczyk.dev/api/badge/example?label=Your+own+label&display=true&color=blue)

```markdown
![Github Views](https://github-views.deno.dev/api/badge/YOUR-USERNAME?label=Your+own+label)
![Github Views](https://views.igorkowalczyk.dev/api/badge/YOUR-USERNAME?label=Your+own+label)
```

> [!NOTE]
Expand All @@ -89,7 +89,7 @@ You can get the number of views in `json` format. It can be useful if you want t
**Request:**
```
https://github-views.deno.dev/api/json/YOUR-USERNAME
https://views.igorkowalczyk.dev/api/json/YOUR-USERNAME
```
> [!NOTE]
> Replace `YOUR-USERNAME` with your real value.
Expand Down
2 changes: 1 addition & 1 deletion astro.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import compress from "astro-compressor";
// https://astro.build/config
export default defineConfig({
output: "server",
site: "https://github-views.deno.dev",
site: "https://views.igorkowalczyk.dev",
redirects: {
"/github": "https://github.com/igorkowalczyk/views",
"/docs": "https://github.com/IgorKowalczyk/github-views?tab=readme-ov-file#-basic-usage",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"bugs": {
"url": "https://github.com/IgorKowalczyk/github-views/issues"
},
"homepage": "https://github-views.deno.dev/",
"homepage": "https://views.igorkowalczyk.dev/",
"dependencies": {
"@astrojs/preact": "4.0.0",
"@astrojs/tailwind": "5.1.3",
Expand Down
4 changes: 2 additions & 2 deletions src/layouts/Layout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ import "@/styles/main.css";
<meta property="og:site_name" content="Profile Views" />
<meta property="og:title" content={title} />
<meta property="og:description" content="Create your own badges for your GitHub profile." />
<meta property="og:url" content="https://github-views.deno.dev" />
<meta property="og:image" content="https://github-views.deno.dev/og-image.png" />
<meta property="og:url" content="https://views.igorkowalczyk.dev" />
<meta property="og:image" content="https://views.igorkowalczyk.dev/og-image.png" />
<meta property="twitter:card" content="summary_large_image" />
<meta property="twitter:creator" content="@igorkowalczyk" />
<meta name="generator" content={Astro.generator} />
Expand Down

0 comments on commit ec0f202

Please sign in to comment.