Template
1
0
Fork 0
goth.stack/pages/templates/tools.resize.html

36 lines
1 KiB
HTML
Raw Permalink Normal View History

2024-02-22 14:14:11 -07:00
{{define "title"}}
2024-11-03 17:01:48 -06:00
GOTH Stack // Tools // Resizer
2024-02-22 14:14:11 -07:00
{{end}}
2025-01-12 14:51:43 -06:00
{{define "description"}}
A tool to re-size images.
{{end}}
{{define "navcontent"}}
GOTH Stack // Tools // Resizer
2024-02-22 14:14:11 -07:00
{{end}}
{{define "head"}}
2024-05-07 18:03:54 -06:00
<link rel="stylesheet" href="/public/css/styles.css" />
2024-02-22 14:14:11 -07:00
{{end}}
{{define "main"}}
<h2 class="text-2xl font-extrabold tracking-tight text-white sm:text-[2rem]">Image Resizer</h2>
2024-03-27 14:52:28 -06:00
<form action="/api/tools/resize" method="post" enctype="multipart/form-data" class="flex-col flex gap-4">
2024-02-22 14:14:11 -07:00
Select image to resize:
2024-02-23 00:51:49 -07:00
<input type="file" name="image" accept=".png,.jpg,.jpeg"
2024-02-22 14:14:11 -07:00
class="file-input file-input-bordered file-input-secondary w-full max-w-xs" required />
<br>
New width (px):
<input type="number" id="newWidth" name="width" min="1" class="input input-bordered w-full max-w-xs" required>
<br>
New height (px):
<input type="number" id="newHeight" name="height" min="1" class="input input-bordered w-full max-w-xs" required>
<br>
<button type="submit" class="btn btn-secondary">Resize Image</button>
</form>
{{end}}
{{define "foot"}}
2024-11-03 17:01:48 -06:00
{{end}}