diff options
| author | Xe Iaso <me@xeiaso.net> | 2025-01-14 18:22:11 -0500 |
|---|---|---|
| committer | Xe Iaso <me@xeiaso.net> | 2025-01-14 18:22:19 -0500 |
| commit | 2fbc950b7da60087930c8ec3cd667ef70c889f2c (patch) | |
| tree | bf69ab8af9214838aed0a689eb16cb5a7a143ccb /cmd/nomadicdemo/main.templ | |
| parent | 432b1128b43d7ad34b89866f6ce8ab93b6c2e7d3 (diff) | |
| download | x-2fbc950b7da60087930c8ec3cd667ef70c889f2c.tar.xz x-2fbc950b7da60087930c8ec3cd667ef70c889f2c.zip | |
uber fix
Signed-off-by: Xe Iaso <me@xeiaso.net>
Diffstat (limited to 'cmd/nomadicdemo/main.templ')
| -rw-r--r-- | cmd/nomadicdemo/main.templ | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/cmd/nomadicdemo/main.templ b/cmd/nomadicdemo/main.templ new file mode 100644 index 0000000..52e6a8b --- /dev/null +++ b/cmd/nomadicdemo/main.templ @@ -0,0 +1,34 @@ +package main + +import "time" + +templ index(prompt, negPrompt, imageURL string, howLong time.Duration) { + <style> + .big-input { + padding: 0.5rem; + width: 100%; + } +</style> + <form> + <input class="big-input" id="prompt" name="prompt" type="text" value={ prompt }/> + <br/> + <input class="big-input" id="negative_prompt" name="negative_prompt" type="text" value={ negPrompt }/> + <br/> + <button>Submit</button> + </form> + if imageURL != "" { + <div id="image"> + <img + width="100%" + src={ imageURL } + /> + <p>Generated in { howLong.String() }</p> + </div> + } +} + +templ ohNoes(why string) { + <big>Oh noes!</big> + <p>{ why }</p> + <p>Audience: please laugh.</p> +} |
