Skip to content

Commit

Permalink
cmd/nomadicdemo: it works enough that I don't have to care
Browse files Browse the repository at this point in the history
Signed-off-by: Xe Iaso <[email protected]>
  • Loading branch information
Xe committed Jan 20, 2025
1 parent e33fe7e commit 469568a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
7 changes: 5 additions & 2 deletions cmd/nomadicdemo/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func main() {
if err != nil {
slog.Error("can't make image", "err", err)
templ.Handler(
xess.Simple("Scale to 0 demo", ohNoes(err.Error())),
xess.Simple("It broke!", ohNoes(err.Error())),
templ.WithStatus(http.StatusInternalServerError),
).ServeHTTP(w, r)
return
Expand All @@ -68,7 +68,10 @@ func main() {
}

templ.Handler(
xess.Simple("Scale to 0 demo", index(prompt, negPrompt, imageURL, howLong)),
xess.Simple(
"Nomadic Infra Demo",
index(prompt, negPrompt, imageURL, howLong),
),
).ServeHTTP(w, r)
})

Expand Down
2 changes: 2 additions & 0 deletions cmd/nomadicdemo/main.templ
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import "time"
templ index(prompt, negPrompt, imageURL string, howLong time.Duration) {
<style>
.big-input {
margin-top: 0.5rem;
margin-bottom: 0.5rem;
padding: 0.5rem;
width: 100%;
}
Expand Down
12 changes: 6 additions & 6 deletions cmd/nomadicdemo/main_templ.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 469568a

Please sign in to comment.