feat: error handling for homepage

This commit is contained in:
httpjamesm 2022-12-27 23:42:54 -05:00
parent 2ae093b43d
commit 9071bc23db
3 changed files with 30 additions and 3 deletions

View file

@ -16,9 +16,19 @@
browsing habits and other browser fingerprint data to
StackOverflow.
</p>
{{ if .errorMessage }}
<div class="error">
<p><b>Error</b>: {{ .errorMessage }}</p>
</div>
{{ end }}
<form method="POST">
<div class="view-form">
<input class="view-input" type="text" name="url" placeholder="https://stackoverflow.com/questions/123456/example-url" />
<input
class="view-input"
type="text"
name="url"
placeholder="https://stackoverflow.com/questions/123456/example-url"
/>
<button class="view-button" type="submit">View</button>
</div>
</form>