diff options
author | Louis Pilfold <louis@lpil.uk> | 2023-12-20 19:50:04 +0000 |
---|---|---|
committer | Louis Pilfold <louis@lpil.uk> | 2023-12-20 19:50:04 +0000 |
commit | ee4820f0dfcd03ce915fbd08564eec0abad428db (patch) | |
tree | 18a35deb44a8b3b15f57e3e488a9ab63d25366e7 /src | |
parent | b3a992440c672afd7bc96b336f5c2ece6231166f (diff) | |
download | tour-ee4820f0dfcd03ce915fbd08564eec0abad428db.tar.gz tour-ee4820f0dfcd03ce915fbd08564eec0abad428db.zip |
Rework CSS
Diffstat (limited to 'src')
-rw-r--r-- | src/try_gleam.gleam | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/try_gleam.gleam b/src/try_gleam.gleam index 05c07a9..8c030e9 100644 --- a/src/try_gleam.gleam +++ b/src/try_gleam.gleam @@ -379,8 +379,8 @@ fn page_html(page: Page) -> String { h("nav", [#("class", "navbar")], [ h("a", [#("href", "/")], [text("Try Gleam")]), ]), - h("article", [#("class", "playground")], [ - h("section", [#("id", "text")], [ + h("article", [#("id", "playground")], [ + h("section", [#("id", "left")], [ htmb.dangerous_unescaped_fragment(string_builder.from_string(page.text, )), h("nav", [#("class", "prev-next")], [ @@ -391,10 +391,12 @@ fn page_html(page: Page) -> String { navlink("Next", page.next), ]), ]), - h("section", [#("id", "editor")], [ - h("div", [#("id", "editor-target")], []), + h("section", [#("id", "right")], [ + h("section", [#("id", "editor")], [ + h("div", [#("id", "editor-target")], []), + ]), + h("aside", [#("id", "output")], []), ]), - h("aside", [#("id", "output")], []), ]), h("script", [#("type", "gleam"), #("id", "code")], [ htmb.dangerous_unescaped_fragment(string_builder.from_string(page.code)), |