From 583506df0257107e22a52ef9f6ddd38d8340c9ef Mon Sep 17 00:00:00 2001 From: Jack Wines Date: Sat, 10 Jun 2023 21:09:06 -0700 Subject: [PATCH] centered create page & changed create submit button --- public/static/style.css | 7 +++++++ src/Main.hs | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/public/static/style.css b/public/static/style.css index 0dad031..55dc8cf 100644 --- a/public/static/style.css +++ b/public/static/style.css @@ -1,3 +1,10 @@ +body +{ + display: flex; + flex-direction: column; + align-items: center; +} + #inputs, #options-create { display: flex; diff --git a/src/Main.hs b/src/Main.hs index 8805823..66b20a0 100644 --- a/src/Main.hs +++ b/src/Main.hs @@ -108,7 +108,7 @@ createPage = pure $ do optionInput optionInput with button_ [hxGet_ "create/newInput", hxTarget_ "this", hxSwap_ "beforebegin"] "add option" - input_ [type_ "submit", classes_ ["btn-small", "paper-btn", "btn-primary"]] + input_ [type_ "submit", classes_ ["paper-btn", "btn-primary"], value_ "submit"] -- notFoundPage = pure $ ("this is the 404 page")