diff options
| author | Fuwn <[email protected]> | 2021-05-12 23:48:04 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2021-05-12 23:48:04 -0700 |
| commit | c7a282bd3f96c0e3cc0807aabd5b7104df6effc9 (patch) | |
| tree | 64818c0add5762ba1ae83c8d9e7aa7bdb605f6f2 /templates | |
| download | lime-main.tar.xz lime-main.zip | |
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/index.html | 29 | ||||
| -rw-r--r-- | templates/text.html | 17 |
2 files changed, 46 insertions, 0 deletions
diff --git a/templates/index.html b/templates/index.html new file mode 100644 index 0000000..c6a3e47 --- /dev/null +++ b/templates/index.html @@ -0,0 +1,29 @@ +<!DOCTYPE html> +<html lang="en"> + <head> + <meta charset="UTF-8"> + <title>lime</title> + <link rel="icon" + href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>🧶</text></svg>"> + <meta name="viewport" content="width=device-width,initial-scale=1"> + <link rel="stylesheet" href="https://unpkg.com/sakura.css/css/sakura.css" type="text/css"> + </head> + + <body style="text-align: center;"> + <h1>🧶 lime (<a href="/api/v1/">api</a>)</h1> + + <form action="/api/v1/create" method="post" target="/"> + <label> + long: + <input name="long" placeholder="https://example.com" minlength="10" type="url" required> + </label> + + <label> + short: + <input name="short" minlength="1" maxlength="50" required> + </label> + + <button type="submit">create</button> + </form> + </body> +</html> diff --git a/templates/text.html b/templates/text.html new file mode 100644 index 0000000..99340ba --- /dev/null +++ b/templates/text.html @@ -0,0 +1,17 @@ +<!DOCTYPE html> +<html lang="en"> + <head> + <meta charset="UTF-8"> + <title>lime</title> + <link rel="icon" + href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>🧶</text></svg>"> + <meta name="viewport" content="width=device-width,initial-scale=1"> + <link rel="stylesheet" href="https://unpkg.com/sakura.css/css/sakura.css" type="text/css"> + </head> + + <body style="text-align: center;"> + <h1>🧶 lime (<a href="/api/v1/">api</a>)</h1> + + <p>{{ text }}</p> + </body> +</html> |