mirror of
https://github.com/tiennm99/ghglance.git
synced 2026-10-11 03:13:20 +00:00
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.
14 lines
529 B
HTML
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/<username></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}}
|