Skip to content

🐸 Rybbit - open-source and privacy-friendly alternative to Google Analytics that is 10x more intuitive.

Remove sponsors.yml workflow and update sponsors page to include sponsorship tiers and amounts

Bill Yang1bbb680181e6
diff --git a/.github/workflows/sponsors.yml b/.github/workflows/sponsors.yml
deleted file mode 100644
index 0e29b1817..000000000
--- a/.github/workflows/sponsors.yml
+++ /dev/null
@@ -1,26 +0,0 @@
-name: Generate Sponsors README
-on:
- workflow_dispatch:
- schedule:
- - cron: "0 0 * * *" # Runs daily at midnight
-permissions:
- contents: write
-jobs:
- deploy:
- runs-on: ubuntu-latest
- steps:
- - name: Checkout
- uses: actions/checkout@v4
-
- - name: Generate Sponsors
- uses: JamesIves/github-sponsors-readme-action@v1
- with:
- token: ${{ secrets.PAT }}
- file: "README.md"
- fallback: "No sponsors yet. Be the first to support this project!"
-
- - name: Commit Changes
- uses: stefanzweifel/git-auto-commit-action@v5
- with:
- commit_message: "docs: update sponsors"
- file_pattern: "README.md"
diff --git a/client/src/components/Sessions/SessionDetails.tsx b/client/src/components/Sessions/SessionDetails.tsx
index 1d45bdd86..f9f44c4f4 100644
--- a/client/src/components/Sessions/SessionDetails.tsx
+++ b/client/src/components/Sessions/SessionDetails.tsx
@@ -101,6 +101,7 @@ function PageviewItem({
maxWidth: "calc(min(100vw, 1150px) - 250px)",
}}
>
+ {item.hostname}
{item.pathname}
{item.querystring ? `${item.querystring}` : ""}
</div>
diff --git a/docs/public/sponsors/cosmoflare.png b/docs/public/sponsors/cosmoflare.png
new file mode 100644
index 000000000..c0444e533
Binary files /dev/null and b/docs/public/sponsors/cosmoflare.png differ
diff --git a/docs/src/app/(home)/sponsors/page.tsx b/docs/src/app/(home)/sponsors/page.tsx
index 602376705..e4040efaf 100644
--- a/docs/src/app/(home)/sponsors/page.tsx
+++ b/docs/src/app/(home)/sponsors/page.tsx
@@ -29,18 +29,43 @@ interface Sponsor {
logo: string;
url: string;
description?: string;
+ amount: number;
+}
+
+function getTier(amount: number): { name: string; colorClass: string } | null {
+ if (amount >= 1000) {
+ return { name: "Diamond", colorClass: "text-cyan-400" };
+ }
+ if (amount >= 500) {
+ return { name: "Gold", colorClass: "text-yellow-500" };
+ }
+ if (amount >= 100) {
+ return { name: "Silver", colorClass: "text-gray-400" };
+ }
+ if (amount >= 50) {
+ return { name: "Bronze", colorClass: "text-amber-600" };
+ }
+ return null;
}
const sponsors: Sponsor[] = [
+ {
+ name: "Onyx",
+ logo: "/sponsors/onyx.jpeg",
+ url: "https://onyx.com",
+ amount: 500,
+ },
{
name: "23M",
logo: "/sponsors/23m.png",
url: "https://23m.com",
+ amount: 100,
},
{
- name: "Onyx",
- logo: "/sponsors/onyx.jpeg",
- url: "https://onyx.com",
+ name: "Cosmoflare",
+ logo: "/sponsors/cosmoflare.png",
+ url: "https://cosmoflare.com",
+ amount: 10,
},
];
@@ -90,25 +115,29 @@ export default function SponsorsPage() {
<div className="bg-neutral-200/40 dark:bg-neutral-900/40 p-2 rounded-3xl border border-neutral-300 dark:border-neutral-800">
<div className="bg-neutral-50 dark:bg-neutral-900 backdrop-blur-sm rounded-2xl border border-neutral-300 dark:border-neutral-800 p-8">
<div className="flex gap-6">
- {sponsors.map(sponsor => (
- <a
- key={sponsor.name}
- href={sponsor.url}
- target="_blank"
- rel="noopener noreferrer"
- className="flex items-center gap-4 hover:opacity-80 transition-opacity duration-200"
- >
- <div className="relative w-16 h-16 flex-shrink-0">
- <Image src={sponsor.logo} alt={sponsor.name} fill className="object-contain rounded-lg" />
- </div>
- <div className="flex flex-col">
- <span className="text-lg font-medium text-neutral-900 dark:text-white">{sponsor.name}</span>
- {sponsor.description && (
- <p className="text-sm text-neutral-600 dark:text-neutral-400">{sponsor.description}</p>
- )}
- </div>
- </a>
- ))}
+ {sponsors.map(sponsor => {
+ const tier = getTier(sponsor.amount);
+ return (
+ <a
+ key={sponsor.name}
+ href={sponsor.url}
+ target="_blank"
+ rel="noopener noreferrer"
+ className="flex items-center gap-4 hover:opacity-80 transition-opacity duration-200"
+ >
+ <div className="relative w-16 h-16 flex-shrink-0">
+ <Image src={sponsor.logo} alt={sponsor.name} fill className="object-contain rounded-lg" />
+ </div>
+ <div className="flex flex-col">
+ <span className="text-lg font-medium text-neutral-900 dark:text-white">{sponsor.name}</span>
+ {sponsor.description && (
+ <p className="text-sm text-neutral-600 dark:text-neutral-400">{sponsor.description}</p>
+ )}
+ {tier && <span className={cn("text-sm font-medium", tier.colorClass)}>{tier.name}</span>}
+ </div>
+ </a>
+ );
+ })}
</div>
</div>
</div>