| 1 | {{ define "page" -}} |
| 2 | <section class="hello"> |
| 3 | <div class="hello-logo" aria-hidden="true"> |
| 4 | {{ .LogoSVG }} |
| 5 | </div> |
| 6 | <h1 class="hello-title">shithub</h1> |
| 7 | <p class="hello-tagline">GitHub. Open source. Without Copilot.</p> |
| 8 | |
| 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. */}} |
| 13 | <div class="hello-greeting"> |
| 14 | <p>Signed in as <strong>@{{ .Viewer.Username }}</strong>.</p> |
| 15 | <nav class="hello-quicklinks" aria-label="Account quick links"> |
| 16 | <a href="/{{ .Viewer.Username }}">Your profile</a> |
| 17 | <a href="/new">New repository</a> |
| 18 | <a href="/notifications">Notifications</a> |
| 19 | <a href="/explore">Explore</a> |
| 20 | <a href="/settings/profile">Settings</a> |
| 21 | </nav> |
| 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.sh/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.sh/">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.sh/">docs</a> are honest about |
| 75 | what works and what's still in flight. |
| 76 | </p> |
| 77 | {{ end }} |
| 78 | |
| 79 | <dl class="hello-meta"> |
| 80 | <dt>Version</dt><dd>{{ .Version }}</dd> |
| 81 | <dt>Commit</dt><dd>{{ .Commit }}</dd> |
| 82 | <dt>Built</dt><dd>{{ .BuiltAt }}</dd> |
| 83 | </dl> |
| 84 | </section> |
| 85 | {{- end }} |