diff options
author | Louis Pilfold <louis@lpil.uk> | 2024-04-01 15:09:46 +0100 |
---|---|---|
committer | Louis Pilfold <louis@lpil.uk> | 2024-04-01 15:09:55 +0100 |
commit | e3cb9795f50a25c57344c00ff58c55dc3d0bfeca (patch) | |
tree | a9322f159c02a7621ff304ef4afb7222d03ac1fa | |
parent | 1f271d03d07c7671e3dafe34639f04dbab0e97ab (diff) | |
download | tour-e3cb9795f50a25c57344c00ff58c55dc3d0bfeca.tar.gz tour-e3cb9795f50a25c57344c00ff58c55dc3d0bfeca.zip |
Revert "Put nav at the bottom of the page, so it doesn't move around from lesson to lesson."
This reverts commit 4d346ace41edd8a11fd90aa2928f801eea9b93a2.
-rw-r--r-- | src/tour.gleam | 26 | ||||
-rw-r--r-- | static/css/pages/lesson.css | 6 |
2 files changed, 12 insertions, 20 deletions
diff --git a/src/tour.gleam b/src/tour.gleam index 5de58a7..2a64561 100644 --- a/src/tour.gleam +++ b/src/tour.gleam @@ -617,20 +617,17 @@ fn lesson_page_render(lesson: Lesson) -> String { static_content: [render_navbar()], content: [ h("article", [#("id", "playground")], [ - h("section", [#("id", "left"), #("class", "content-nav")], [ - h("div", [], [ - h("h2", [], [text(lesson.name)]), - htmb.dangerous_unescaped_fragment(string_builder.from_string( - lesson.text, - )), - ]), - h("nav", [#("class", "prev-next")], [ - navlink("Back", lesson.previous), - text(" — "), - h("a", [#("href", path_table_of_contents)], [text("Contents")]), - text(" — "), - navlink("Next", lesson.next), - ]), + h("section", [#("id", "left")], [ + h("h2", [], [text(lesson.name)]), + htmb.dangerous_unescaped_fragment(string_builder.from_string( + lesson.text, + )), + h("nav", [#("class", "prev-next")], [ + navlink("Back", lesson.previous), + text(" — "), + h("a", [#("href", path_table_of_contents)], [text("Contents")]), + text(" — "), + navlink("Next", lesson.next), ]), ]), h("section", [#("id", "right")], [ @@ -639,6 +636,7 @@ fn lesson_page_render(lesson: Lesson) -> String { ]), h("aside", [#("id", "output")], []), ]), + ]), ], scripts: ScriptConfig( body: [ diff --git a/static/css/pages/lesson.css b/static/css/pages/lesson.css index 4468d56..492c1fe 100644 --- a/static/css/pages/lesson.css +++ b/static/css/pages/lesson.css @@ -92,10 +92,4 @@ .mb-0 { margin-bottom: 0; -} - -.content-nav { - display: flex; - flex-direction: column; - justify-content: space-between; }
\ No newline at end of file |