Files
ghglance/internal/web/templates/index.html
T
tiennm99 537c87c458 feat(web): show cards inline for quick viewing and accept the visitor's own token
The web UI is for a quick look at a profile, not for hosting embeddable
images. Cards are inlined into /u/<user> as data: images, the per-card
route is gone, and the page no longer offers copy links or Markdown
snippets. The page itself stays shareable.

Visitors can again paste their own token, with a button that opens
GitHub's new-token page with the needed scopes ticked. A pasted token
takes precedence over sign-in, follows the same ownership, privacy and
cooldown rules, is never stored or logged, and is not revoked. The server
still uses no token of its own.
2026-10-07 19:15:15 +07:00

14 lines
529 B
HTML

{{define "content"}}
<section class="hero">
<h1>Profile cards for any GitHub user</h1>
<p class="lead">
Enter a username and ghglance renders sixteen SVG cards (languages, streaks,
productive hours, contribution heatmaps and more) in every theme, for a
quick look at <code>/u/&lt;username&gt;</code>.
</p>
{{if .Error}}<p class="alert alert-error" role="alert">{{.Error}}</p>{{end}}
{{if .Message}}<p class="alert alert-info" role="status">{{.Message}}</p>{{end}}
{{template "form" .}}
</section>
{{end}}