diff options
| author | Xe Iaso <me@xeiaso.net> | 2024-06-02 20:19:37 -0400 |
|---|---|---|
| committer | Xe Iaso <me@xeiaso.net> | 2024-06-02 20:19:37 -0400 |
| commit | e92fea88dd9c0f95846ec947e10336489ee8e42c (patch) | |
| tree | 4b2b99063e98287272d368b799e8601e2a097d60 /cmd/within.website/html.templ | |
| parent | 66f4ff94a91df8b2e87e7320710bf7e1b819f710 (diff) | |
| download | x-e92fea88dd9c0f95846ec947e10336489ee8e42c.tar.xz x-e92fea88dd9c0f95846ec947e10336489ee8e42c.zip | |
tree-wide: use templ
Signed-off-by: Xe Iaso <me@xeiaso.net>
Diffstat (limited to 'cmd/within.website/html.templ')
| -rw-r--r-- | cmd/within.website/html.templ | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/cmd/within.website/html.templ b/cmd/within.website/html.templ new file mode 100644 index 0000000..b82af65 --- /dev/null +++ b/cmd/within.website/html.templ @@ -0,0 +1,34 @@ +package main + +templ BotInfo() { + <p>Hello, if you are reading this, you have found this URL in your access logs.</p> + <p>If one of these programs is doing something you don't want them to do, please <a href="https://xeiaso.net/contact">contact me</a> or open an issue <a href="https://github.com/Xe/x">here</a>.</p> +} + +templ NotFound() { + <p>The URL you requested could not be found. Please check your URL and hang up to try your call again.</p> +} + +func anchor(name string) string { + return "#" + name +} + +templ Index(repos []Repo) { + <img src="https://pride-badges.pony.workers.dev/static/v1?label=enbyware&labelColor=%23555&stripeWidth=8&stripeColors=FCF434%2CFFFFFF%2C9C59D1%2C2C2C2C"/> + <p>This vanity domain houses a lot of <a href="https://xeiaso.net">Xe Iaso's</a> custom Go packages. Here is a list of all of the packages currently tracked:</p> + <ul> + for _, repo := range repos { + <li><a href={ templ.SafeURL(anchor(repo.Repo)) }>{ repo.Repo }</a></li> + } + </ul> + for _, repo := range repos { + <h2 id={ repo.Repo }>{ repo.Repo }</h2> + <p><a href={ templ.SafeURL(repo.GodocURL()) }><img src={ repo.GodocBadge() } alt="GoDoc"/></a> <a href={ templ.SafeURL(repo.URL()) }><img alt="Source code link" src="https://img.shields.io/badge/source-link-green"/></a></p> + <p>{ repo.Description }</p> + <code><pre>go get within.website/{ repo.Repo }</pre></code> + } +} + +templ footer() { + <p>Need help with these packages? Inquire <a href="https://github.com/Xe">Within</a>.</p> +} |
