mirror of
https://github.com/wahyd4/golink.git
synced 2026-08-09 05:05:56 +10:00
Add a new /.help URL which contains a first pass at user docs, covering naming rules for short links, using go templates, and basic API access. Also add client side validation for short name and a link to help page. Change-Id: I4b66793248eba17e567c4f422ee197617f74ee24
39 lines
1.7 KiB
HTML
39 lines
1.7 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<title>go/</title>
|
|
<link rel="stylesheet" href="/.static/base.css">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
</head>
|
|
<body class="flex flex-col min-h-screen">
|
|
<div class="bg-gray-100 border-b border-gray-200 pt-4 pb-2 mb-6">
|
|
<header class="container mx-auto px-4">
|
|
<h1 class="text-2xl font-bold pb-1"><a href="/">go/</a></h1>
|
|
A private shortlink service for your tailnet
|
|
</header>
|
|
</div>
|
|
|
|
<main class="container mx-auto px-4 flex-1">
|
|
{{ block "main" .}}{{ end }}
|
|
</main>
|
|
<footer class="bg-gray-100 border-t border-gray-200 pt-2 pb-2 mt-6">
|
|
<div class="container mx-auto px-4 leading-6 text-right">
|
|
From the nerds at
|
|
<a href="https://tailscale.com/" class="inline-block align-text-top">
|
|
<svg width="18" height="18" viewBox="0 0 22 22" fill="none" role="img" aria-labelledby="tsTitle" xmlns="http://www.w3.org/2000/svg">
|
|
<title id="tsTitle">Tailscale</title>
|
|
<circle opacity="0.2" cx="3.4" cy="3.25" r="2.7" fill="currentColor" />
|
|
<circle cx="3.4" cy="11.3" r="2.7" fill="currentColor" />
|
|
<circle opacity="0.2" cx="3.4" cy="19.5" r="2.7" fill="currentColor" />
|
|
<circle cx="11.5" cy="11.3" r="2.7" fill="currentColor" />
|
|
<circle cx="11.5" cy="19.5" r="2.7" fill="currentColor" />
|
|
<circle opacity="0.2" cx="11.5" cy="3.25" r="2.7" fill="currentColor" />
|
|
<circle opacity="0.2" cx="19.5" cy="3.25" r="2.7" fill="currentColor" />
|
|
<circle cx="19.5" cy="11.3" r="2.7" fill="currentColor" />
|
|
<circle opacity="0.2" cx="19.5" cy="19.5" r="2.7" fill="currentColor" />
|
|
</svg>
|
|
</a>
|
|
</div>
|
|
</footer>
|
|
</html>
|