Skip to content

armgit / dbx

Public Imported from GitHub
0

25 MB lightweight cross-platform database client for 100+ databases, including MySQL, PostgreSQL, SQLite, Redis, MongoDB, DuckDB, SQL Server, and Dameng. Built-in AI, MCP Server, CLI, desktop and Docker. | 轻量级跨平台数据库管理工具,支持 MySQL、PostgreSQL、SQLite、Redis、MongoDB、达梦等 100+ 数据库,提供桌面端、Docker、CLI、内置 AI 助手和 MCP。

feat(docs): add contributors wall to landing page

t8y227aef6059df6
diff --git a/docs/app/[lang]/page.tsx b/docs/app/[lang]/page.tsx
index 0ef0628a77..42e5a07761 100644
--- a/docs/app/[lang]/page.tsx
+++ b/docs/app/[lang]/page.tsx
@@ -8,6 +8,8 @@ import { LandingNav } from "@/components/landing/LandingNav";
import { InstallTabs } from "@/components/landing/InstallTabs";
import { LandingLatestUpdates } from "@/components/landing/LandingLatestUpdates";
import { RevealSection } from "@/components/landing/RevealSection";
+import { ContributorsWallContent } from "@/components/landing/ContributorsWall";
+import { fetchContributors } from "@/lib/contributors";
import { getAppVersion } from "@/lib/appVersion";
import { fetchChangelog } from "@/lib/changelog";
import { fetchLatestReleaseInfo } from "@/lib/latestRelease";
@@ -325,6 +327,8 @@ const i18nText = {
testimonialsTitle: "What DBX is good at",
testimonialsDesc: "A closer look at the everyday database workflows DBX is built to make smoother.",
capabilitiesTitle: "Built for real database work",
+ contributorsTitle: "Built by the community",
+ contributorsDesc: "DBX is fully open-source. Every feature, fix, and driver starts with a contributor.",
footerTitle: "Ready to try DBX?",
footerDesc: "Use the desktop app for local work, or deploy the Docker version for browser-based access.",
release: "Latest release",
@@ -345,6 +349,8 @@ const i18nText = {
testimonialsTitle: "DBX 适合什么样的工作",
testimonialsDesc: "从连接管理、数据浏览到 AI 辅助,DBX 围绕高频数据库工作流打磨体验。",
capabilitiesTitle: "面向真实数据库工作的能力",
+ contributorsTitle: "社区共建",
+ contributorsDesc: "DBX 因每一位贡献者而生长",
footerTitle: "准备试试 DBX?",
footerDesc: "本地工作使用桌面版,需要浏览器访问时部署 Docker 版。",
release: "最新版本",
@@ -389,6 +395,7 @@ export default async function LandingPage({ params }: { params: Promise<{ lang:
const metricItems = metrics(starLabel)[l];
const appVersion = getAppVersion();
const [initialChangelog, initialLatestRelease] = await Promise.all([fetchChangelog(l), fetchLatestReleaseInfo()]);
+ const contributors = await fetchContributors();
const initialDownloadVersion = initialLatestRelease?.version ?? appVersion;
const testimonialItems = testimonials[l];
@@ -506,6 +513,11 @@ export default async function LandingPage({ params }: { params: Promise<{ lang:
</div>
</RevealSection>
+ {/* Contributors */}
+ <RevealSection className="max-w-[1180px] mx-auto px-7 pt-[70px] pb-1 max-[760px]:px-[18px]">
+ <ContributorsWallContent contributors={contributors} title={t.contributorsTitle} desc={t.contributorsDesc} />
+ </RevealSection>
+
{/* Updates */}
<LandingLatestUpdates lang={l} fallbackVersion={appVersion} initialRelease={initialChangelog.releases[0]} initialLatestRelease={initialLatestRelease} />
diff --git a/docs/app/global.css b/docs/app/global.css
index b5203e517d..25640bee8f 100644
--- a/docs/app/global.css
+++ b/docs/app/global.css
@@ -861,6 +861,87 @@ a {
0 0 0 1px rgba(255, 255, 255, 0.025) inset;
}
+/* Contributors wall */
+
+.landing-contributor-grid {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 10px;
+ justify-content: center;
+ margin-top: 3px;
+}
+
+.landing-contributor-avatar {
+ display: block;
+ position: relative;
+ width: 58px;
+ height: 58px;
+ border-radius: 50%;
+ border: 1.5px solid rgba(155, 176, 205, 0.16);
+ background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)), rgba(12, 15, 22, 0.78);
+ box-shadow:
+ 0 8px 24px rgba(0, 0, 0, 0.18),
+ 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
+ transition:
+ border-color 0.2s ease,
+ transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
+ box-shadow 0.2s ease;
+}
+
+.landing-contributor-avatar:hover {
+ border-color: rgba(110, 168, 255, 0.42);
+ transform: translateY(-3px) scale(1.08);
+ box-shadow:
+ 0 14px 36px rgba(110, 168, 255, 0.22),
+ 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
+ z-index: 2;
+ overflow: visible;
+}
+
+.landing-contributor-avatar img {
+ border-radius: 50%;
+}
+
+.landing-contributor-tooltip {
+ position: absolute;
+ bottom: calc(100% + 8px);
+ left: 50%;
+ transform: translateX(-50%) translateY(4px);
+ pointer-events: none;
+ white-space: nowrap;
+ padding: 6px 12px;
+ border-radius: 6px;
+ background: rgba(18, 22, 32, 0.96);
+ border: 1px solid rgba(155, 176, 205, 0.22);
+ box-shadow:
+ 0 8px 24px rgba(0, 0, 0, 0.32),
+ 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ gap: 2px;
+ opacity: 0;
+ transition:
+ opacity 0.18s ease,
+ transform 0.18s ease;
+}
+
+.landing-contributor-tooltip.is-visible {
+ opacity: 1;
+ transform: translateX(-50%) translateY(0);
+}
+
+.landing-contributor-tooltip-name {
+ font-size: 13px;
+ font-weight: 650;
+ color: var(--color-landing-ink);
+}
+
+.landing-contributor-tooltip-count {
+ font-size: 11px;
+ color: var(--color-landing-muted);
+}
+
/* Capability card */
.landing-capability {
@@ -956,6 +1037,15 @@ a {
.landing-testimonial-wall::after {
width: 46px;
}
+
+ .landing-contributor-grid {
+ gap: 8px;
+ }
+
+ .landing-contributor-avatar {
+ width: 46px;
+ height: 46px;
+ }
}
/* Keyframes */
diff --git a/docs/components/landing/ContributorsWall.tsx b/docs/components/landing/ContributorsWall.tsx
new file mode 100644
index 0000000000..525df6d88d
--- /dev/null
+++ b/docs/components/landing/ContributorsWall.tsx
@@ -0,0 +1,57 @@
+"use client";
+
+import { useState } from "react";
+import Link from "next/link";
+import type { Contributor } from "@/lib/contributors";
+
+function ContributorAvatar({ c }: { c: Contributor }) {
+ const [hovered, setHovered] = useState(false);
+
+ return (
+ <a
+ href={c.html_url}
+ target="_blank"
+ rel="noopener noreferrer"
+ className="landing-contributor-avatar"
+ data-stagger
+ onMouseEnter={() => setHovered(true)}
+ onMouseLeave={() => setHovered(false)}
+ >
+ <img
+ src={c.avatar_url}
+ alt={c.login}
+ width={64}
+ height={64}
+ loading="lazy"
+ className="block w-full h-full object-cover"
+ />
+ <span className={`landing-contributor-tooltip${hovered ? " is-visible" : ""}`}>
+ <span className="landing-contributor-tooltip-name">{c.login}</span>
+ <span className="landing-contributor-tooltip-count">{c.contributions} contributions</span>
+ </span>
+ </a>
+ );
+}
+
+export function ContributorsWallContent({ contributors, title, desc }: { contributors: Contributor[]; title: string; desc: string }) {
+ if (contributors.length === 0) return null;
+
+ return (
+ <>
+ <div className="grid grid-cols-[minmax(220px,0.42fr)_minmax(0,0.58fr)] gap-9 items-end mb-[22px] max-[760px]:block">
+ <h2 className="m-0 text-[25px] font-[720] text-landing-ink">{title}</h2>
+ <p className="mt-2 max-w-[650px] text-landing-muted text-sm leading-[1.65] justify-self-end text-right max-[760px]:max-w-none max-[760px]:text-left">
+ {desc}{" "}
+ <Link href="https://github.com/t8y2/dbx/graphs/contributors" target="_blank" className="landing-inline-link inline-flex items-center gap-[5px]">
+ {contributors.length}+ contributors on GitHub
+ </Link>
+ </p>
+ </div>
+ <div className="landing-contributor-grid">
+ {contributors.map((c) => (
+ <ContributorAvatar key={c.login} c={c} />
+ ))}
+ </div>
+ </>
+ );
+}
diff --git a/docs/lib/contributors.ts b/docs/lib/contributors.ts
new file mode 100644
index 0000000000..539012f8cb
--- /dev/null
+++ b/docs/lib/contributors.ts
@@ -0,0 +1,31 @@
+export type Contributor = {
+ login: string;
+ avatar_url: string;
+ html_url: string;
+ contributions: number;
+ type?: string;
+};
+
+const GITHUB_CONTRIBUTORS_URL = "https://api.github.com/repos/t8y2/dbx/contributors?per_page=48";
+
+function fallbackContributors(): Contributor[] {
+ return [];
+}
+
+export async function fetchContributors(): Promise<Contributor[]> {
+ try {
+ const response = await fetch(GITHUB_CONTRIBUTORS_URL, {
+ headers: { Accept: "application/vnd.github+json" },
+ next: { revalidate: 60 * 60 * 6 },
+ });
+
+ if (!response.ok) return fallbackContributors();
+
+ const data = (await response.json()) as Contributor[];
+ if (!Array.isArray(data)) return fallbackContributors();
+
+ return data.filter((c) => c.login && c.avatar_url && c.type !== "Bot");
+ } catch {
+ return fallbackContributors();
+ }
+}