|
| 1 | +"use client"; |
| 2 | + |
| 3 | +import Link from "next/link"; |
| 4 | +import { Users, HeartHandshake, GitPullRequest, Sparkles } from "lucide-react"; |
| 5 | +import Navbar from "@/components/Navbar"; |
| 6 | +import Footer from "@/components/Footer"; |
| 7 | + |
| 8 | +const COMMUNITY_STATS = [ |
| 9 | + { label: "Open source contributors", value: "120+" }, |
| 10 | + { label: "Templates in repo", value: "8" }, |
| 11 | + { label: "Weekly installs", value: "1.2k" }, |
| 12 | + { label: "Issues resolved", value: "300+" }, |
| 13 | +]; |
| 14 | + |
| 15 | +const CONTRIBUTION_PATHS = [ |
| 16 | + { |
| 17 | + title: "Contribute code", |
| 18 | + description: |
| 19 | + "Pick an issue, open a PR, and ship improvements to the extension.", |
| 20 | + icon: GitPullRequest, |
| 21 | + href: "https://github.com/0xVida/stellar-suite/issues", |
| 22 | + }, |
| 23 | + { |
| 24 | + title: "Share templates", |
| 25 | + description: |
| 26 | + "Submit contract templates to help new teams launch faster.", |
| 27 | + icon: Sparkles, |
| 28 | + href: "https://github.com/0xVida/stellar-suite#contributing", |
| 29 | + }, |
| 30 | + { |
| 31 | + title: "Support developers", |
| 32 | + description: |
| 33 | + "Answer questions, write guides, and share workflows with the community.", |
| 34 | + icon: HeartHandshake, |
| 35 | + href: "https://github.com/0xVida/stellar-suite/discussions", |
| 36 | + }, |
| 37 | +]; |
| 38 | + |
| 39 | +const COMMUNITY_VALUES = [ |
| 40 | + "Keep workflows simple and fast.", |
| 41 | + "Favor clarity over cleverness.", |
| 42 | + "Ship small improvements often.", |
| 43 | + "Document what we build.", |
| 44 | +]; |
| 45 | + |
| 46 | +export default function CommunityPage() { |
| 47 | + return ( |
| 48 | + <div className="min-h-screen bg-background"> |
| 49 | + <Navbar /> |
| 50 | + |
| 51 | + <section className="pt-32 pb-16 px-6 border-b border-border"> |
| 52 | + <div className="mx-auto max-w-5xl text-center"> |
| 53 | + <div className="inline-flex h-12 w-12 items-center justify-center rounded-2xl bg-primary/10 mb-5"> |
| 54 | + <Users className="h-6 w-6 text-primary" /> |
| 55 | + </div> |
| 56 | + <h1 className="text-4xl md:text-6xl font-display font-extrabold tracking-tight text-foreground leading-tight"> |
| 57 | + Community & Contributors |
| 58 | + </h1> |
| 59 | + <p className="mt-5 text-lg font-body text-muted-foreground max-w-2xl mx-auto"> |
| 60 | + Stellar Suite is built in the open. Every release is shaped by |
| 61 | + builders who care about better Soroban workflows. |
| 62 | + </p> |
| 63 | + <div className="mt-8 flex flex-wrap justify-center gap-3"> |
| 64 | + <a |
| 65 | + href="https://github.com/0xVida/stellar-suite" |
| 66 | + target="_blank" |
| 67 | + rel="noopener noreferrer" |
| 68 | + className="btn-primary" |
| 69 | + > |
| 70 | + Visit GitHub |
| 71 | + </a> |
| 72 | + <Link href="/use-cases" className="btn-outline"> |
| 73 | + See use cases |
| 74 | + </Link> |
| 75 | + </div> |
| 76 | + </div> |
| 77 | + </section> |
| 78 | + |
| 79 | + <main id="main-content" className="py-16 px-6"> |
| 80 | + <div className="mx-auto max-w-6xl space-y-20"> |
| 81 | + <section className="grid grid-cols-1 md:grid-cols-4 gap-4"> |
| 82 | + {COMMUNITY_STATS.map((stat) => ( |
| 83 | + <div |
| 84 | + key={stat.label} |
| 85 | + className="rounded-2xl border border-border bg-card p-6 text-center" |
| 86 | + > |
| 87 | + <p className="text-2xl font-display font-extrabold text-foreground"> |
| 88 | + {stat.value} |
| 89 | + </p> |
| 90 | + <p className="mt-1 text-sm text-muted-foreground font-body"> |
| 91 | + {stat.label} |
| 92 | + </p> |
| 93 | + </div> |
| 94 | + ))} |
| 95 | + </section> |
| 96 | + |
| 97 | + <section className="grid grid-cols-1 lg:grid-cols-2 gap-10 items-start"> |
| 98 | + <div> |
| 99 | + <h2 className="text-2xl md:text-3xl font-display font-bold text-foreground"> |
| 100 | + How we work together |
| 101 | + </h2> |
| 102 | + <p className="mt-4 text-base text-muted-foreground font-body leading-relaxed"> |
| 103 | + We keep the bar high and the process lightweight. If a change |
| 104 | + improves developer flow, it is worth shipping. |
| 105 | + </p> |
| 106 | + <ul className="mt-6 space-y-3"> |
| 107 | + {COMMUNITY_VALUES.map((value) => ( |
| 108 | + <li key={value} className="flex items-start gap-3"> |
| 109 | + <span className="mt-2 h-2 w-2 rounded-full bg-primary" /> |
| 110 | + <span className="text-sm text-muted-foreground font-body"> |
| 111 | + {value} |
| 112 | + </span> |
| 113 | + </li> |
| 114 | + ))} |
| 115 | + </ul> |
| 116 | + </div> |
| 117 | + <div className="rounded-2xl border border-border bg-card p-6"> |
| 118 | + <h3 className="text-sm font-semibold uppercase tracking-widest text-muted-foreground font-display"> |
| 119 | + Contributor snapshot |
| 120 | + </h3> |
| 121 | + <div className="mt-6 space-y-4"> |
| 122 | + {[ |
| 123 | + { |
| 124 | + title: "Core maintainers", |
| 125 | + detail: "Own the roadmap, review PRs, and ship releases.", |
| 126 | + }, |
| 127 | + { |
| 128 | + title: "Template authors", |
| 129 | + detail: "Provide reusable Soroban contract scaffolds.", |
| 130 | + }, |
| 131 | + { |
| 132 | + title: "QA & feedback", |
| 133 | + detail: "Test builds, file bugs, and validate fixes.", |
| 134 | + }, |
| 135 | + ].map((item) => ( |
| 136 | + <div key={item.title}> |
| 137 | + <p className="text-sm font-semibold text-foreground"> |
| 138 | + {item.title} |
| 139 | + </p> |
| 140 | + <p className="text-sm text-muted-foreground font-body"> |
| 141 | + {item.detail} |
| 142 | + </p> |
| 143 | + </div> |
| 144 | + ))} |
| 145 | + </div> |
| 146 | + </div> |
| 147 | + </section> |
| 148 | + |
| 149 | + <section> |
| 150 | + <h2 className="text-2xl md:text-3xl font-display font-bold text-foreground mb-6"> |
| 151 | + Ways to contribute |
| 152 | + </h2> |
| 153 | + <div className="grid grid-cols-1 md:grid-cols-3 gap-6"> |
| 154 | + {CONTRIBUTION_PATHS.map((path) => ( |
| 155 | + <a |
| 156 | + key={path.title} |
| 157 | + href={path.href} |
| 158 | + target="_blank" |
| 159 | + rel="noopener noreferrer" |
| 160 | + className="rounded-2xl border border-border bg-card p-6 hover:border-primary/50 transition-colors" |
| 161 | + > |
| 162 | + <div className="inline-flex h-10 w-10 items-center justify-center rounded-xl bg-primary/10 mb-4"> |
| 163 | + <path.icon className="h-5 w-5 text-primary" /> |
| 164 | + </div> |
| 165 | + <h3 className="text-lg font-display font-bold text-foreground mb-2"> |
| 166 | + {path.title} |
| 167 | + </h3> |
| 168 | + <p className="text-sm text-muted-foreground font-body leading-relaxed"> |
| 169 | + {path.description} |
| 170 | + </p> |
| 171 | + </a> |
| 172 | + ))} |
| 173 | + </div> |
| 174 | + </section> |
| 175 | + |
| 176 | + <section className="rounded-2xl border border-border bg-card p-8 text-center"> |
| 177 | + <h2 className="text-xl font-display font-bold text-foreground"> |
| 178 | + Ready to build with us? |
| 179 | + </h2> |
| 180 | + <p className="mt-3 text-sm text-muted-foreground font-body"> |
| 181 | + Browse issues, share feedback, or open a PR. Every contribution |
| 182 | + moves the ecosystem forward. |
| 183 | + </p> |
| 184 | + <div className="mt-6 flex flex-wrap justify-center gap-3"> |
| 185 | + <a |
| 186 | + href="https://github.com/0xVida/stellar-suite/issues" |
| 187 | + target="_blank" |
| 188 | + rel="noopener noreferrer" |
| 189 | + className="btn-primary" |
| 190 | + > |
| 191 | + Explore issues |
| 192 | + </a> |
| 193 | + <a |
| 194 | + href="https://github.com/0xVida/stellar-suite#contributing" |
| 195 | + target="_blank" |
| 196 | + rel="noopener noreferrer" |
| 197 | + className="btn-outline" |
| 198 | + > |
| 199 | + Contributing guide |
| 200 | + </a> |
| 201 | + </div> |
| 202 | + </section> |
| 203 | + </div> |
| 204 | + </main> |
| 205 | + |
| 206 | + <Footer /> |
| 207 | + </div> |
| 208 | + ); |
| 209 | +} |
0 commit comments