small pixel drawing of a pufferfish poop.is

templates/index.html

<!doctype html>
<html>
    <head>
        <style>
            p, pre, form {text-align: center;}
        </style>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>poop.is: a shitty link shortener</title>
        <link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22><text y=%2226%22 font-size=%2226%22>💩<200d>⬛ </text></svg>">
    </head>
    
    <body>
        {{ if . }}
        <p>here's your shortened link, stinky:</p>
        <pre>{{ . }}</pre>
        {{ else }}
        <p text-align: center>welcome to poop.is - a simple, shitty link shortener</p>
        <form method="POST">
            <label>link you want to shorten</label><br />
            <input type="text" name="url" size="60" required maxlength="10000"><br />
            <input type="submit">
        </form>
        {{ end }}
    </body>
</html>