@@ -7,14 +7,73 @@ |
| 7 | 7 | <p class="hello-tagline">GitHub. Open source. Without Copilot.</p> |
| 8 | 8 | |
| 9 | 9 | {{ if .Viewer.ID }} |
| 10 | + {{/* Authed dashboard surface — concise, points at the things you |
| 11 | + most likely want when you sign in. The full activity feed is a |
| 12 | + post-MVP feature; until then the quicklinks ARE the dashboard. */}} |
| 10 | 13 | <div class="hello-greeting"> |
| 11 | 14 | <p>Signed in as <strong>@{{ .Viewer.Username }}</strong>.</p> |
| 12 | 15 | <nav class="hello-quicklinks" aria-label="Account quick links"> |
| 13 | 16 | <a href="/{{ .Viewer.Username }}">Your profile</a> |
| 14 | 17 | <a href="/new">New repository</a> |
| 18 | + <a href="/notifications">Notifications</a> |
| 19 | + <a href="/explore">Explore</a> |
| 15 | 20 | <a href="/settings/profile">Settings</a> |
| 16 | 21 | </nav> |
| 17 | 22 | </div> |
| 23 | + {{ else }} |
| 24 | + {{/* Anonymous landing — marketing copy for the v1 launch. Honest |
| 25 | + and concise; the heavy "what works / what doesn't" lives in |
| 26 | + the README and docs site, not on the homepage. */}} |
| 27 | + <section class="shithub-landing-pitch"> |
| 28 | + <p> |
| 29 | + A self-hostable git forge that aims to look and feel like GitHub. |
| 30 | + AGPL-licensed, written in Go, no AI training on your code, no |
| 31 | + Copilot. <a href="/signup">Sign up</a> to host code here, or |
| 32 | + <a href="https://docs.shithub.example/self-host/deploy.html">run |
| 33 | + your own instance</a> from the source. |
| 34 | + </p> |
| 35 | + </section> |
| 36 | + |
| 37 | + <ul class="shithub-landing-features" aria-label="What works today"> |
| 38 | + <li> |
| 39 | + <strong>Repos, issues, pull requests</strong> |
| 40 | + <span>Branch protection, reviews, status checks, three merge methods.</span> |
| 41 | + </li> |
| 42 | + <li> |
| 43 | + <strong>Code browsing</strong> |
| 44 | + <span>Tree, blob with syntax highlighting, blame, commit history, diffs.</span> |
| 45 | + </li> |
| 46 | + <li> |
| 47 | + <strong>Search</strong> |
| 48 | + <span>Code, repos, users, issues — with the operators you'd expect.</span> |
| 49 | + </li> |
| 50 | + <li> |
| 51 | + <strong>Webhooks & notifications</strong> |
| 52 | + <span>HMAC-signed deliveries with auto-retry, in-app inbox, email fan-out.</span> |
| 53 | + </li> |
| 54 | + <li> |
| 55 | + <strong>Orgs, teams, scoped tokens</strong> |
| 56 | + <span>Role-based access; PATs with revocable scopes.</span> |
| 57 | + </li> |
| 58 | + <li> |
| 59 | + <strong>Self-host first</strong> |
| 60 | + <span>One binary, Postgres, S3-compatible storage, Caddy at the edge.</span> |
| 61 | + </li> |
| 62 | + </ul> |
| 63 | + |
| 64 | + <nav class="shithub-landing-cta" aria-label="Primary actions"> |
| 65 | + <a class="shithub-landing-cta-primary" href="/signup">Create an account</a> |
| 66 | + <a class="shithub-landing-cta-secondary" href="/login">Sign in</a> |
| 67 | + <a class="shithub-landing-cta-secondary" href="https://docs.shithub.example/">Read the docs</a> |
| 68 | + <a class="shithub-landing-cta-secondary" href="/shithub/shithub">Read the source</a> |
| 69 | + </nav> |
| 70 | + |
| 71 | + <p class="shithub-landing-honest"> |
| 72 | + Newly launched. Some surfaces (SSH transport, Actions/CI, GraphQL, |
| 73 | + packages, releases) are planned but not shipped yet. The |
| 74 | + <a href="https://docs.shithub.example/">docs</a> are honest about |
| 75 | + what works and what's still in flight. |
| 76 | + </p> |
| 18 | 77 | {{ end }} |
| 19 | 78 | |
| 20 | 79 | <dl class="hello-meta"> |
@@ -22,16 +81,5 @@ |
| 22 | 81 | <dt>Commit</dt><dd>{{ .Commit }}</dd> |
| 23 | 82 | <dt>Built</dt><dd>{{ .BuiltAt }}</dd> |
| 24 | 83 | </dl> |
| 25 | | - |
| 26 | | - <p class="hello-status"> |
| 27 | | - Pre-launch. Sprint 02 — the web shell — is shipping. The chi router, |
| 28 | | - middleware stack, error pages, and Primer-themed chrome are now in. |
| 29 | | - </p> |
| 30 | | - |
| 31 | | - <nav class="hello-links" aria-label="Health endpoints"> |
| 32 | | - <a href="/healthz">/healthz</a> |
| 33 | | - <a href="/readyz">/readyz</a> |
| 34 | | - <a href="/internal/panic">/internal/panic</a> |
| 35 | | - </nav> |
| 36 | 84 | </section> |
| 37 | 85 | {{- end }} |