diff options
author | Jean-Nicolas Veigel <art.jnveigel@gmail.com> | 2024-03-14 23:01:59 +0100 |
---|---|---|
committer | Louis Pilfold <louis@lpil.uk> | 2024-03-26 10:31:25 +0000 |
commit | 2efbe4d05210e118c9f295b0a66f3bf7b8f7c9aa (patch) | |
tree | b605e96b91db870c72e50fb1c92c950510396156 /src/tour.gleam | |
parent | 9b24697f8ee519faca86804907cebe8af5ecbf49 (diff) | |
download | tour-2efbe4d05210e118c9f295b0a66f3bf7b8f7c9aa.tar.gz tour-2efbe4d05210e118c9f295b0a66f3bf7b8f7c9aa.zip |
fix: code snipped dimming
Diffstat (limited to 'src/tour.gleam')
-rw-r--r-- | src/tour.gleam | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tour.gleam b/src/tour.gleam index cf5679f..9dabc58 100644 --- a/src/tour.gleam +++ b/src/tour.gleam @@ -531,7 +531,7 @@ fn everything_chapter_lesson_html(lesson: Lesson, index: Int, end_index: Int) { h("article", [#("class", "lesson"), #("id", slugify_path(lesson.path))], [ h("h2", [#("class", "lesson-title")], [text(lesson.name)]), htmb.dangerous_unescaped_fragment(string_builder.from_string(lesson.text)), - h("pre", [#("class", "lesson-snippet dim-bg")], [ + h("pre", [#("class", "lesson-snippet")], [ h("code", [], [text(lesson.code)]), h( "a", @@ -543,7 +543,7 @@ fn everything_chapter_lesson_html(lesson: Lesson, index: Int, end_index: Int) { ], [ h("i", [#("class", "snippet-link-icon")], [text("</>")]), - text("Run"), + text("Run code snippet"), ], ), ]), |