From 7852c9ab0747bfeef1c7df3439a25667094c76ef Mon Sep 17 00:00:00 2001 From: domnantas Date: Mon, 11 Mar 2024 12:24:37 +0200 Subject: [PATCH] Add homepage link --- src/tour.gleam | 1 + static/style.css | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/src/tour.gleam b/src/tour.gleam index fe163ae..de94520 100644 --- a/src/tour.gleam +++ b/src/tour.gleam @@ -572,6 +572,7 @@ fn lesson_html(page: Lesson) -> String { text("Gleam Language Tour"), ]), h("div", [#("class", "nav-right")], [ + h("a", [#("href", "https://gleam.run")], [text("Homepage")]), h("div", [#("class", "theme-picker")], [ h( "button", diff --git a/static/style.css b/static/style.css index 1881ea5..260bae8 100644 --- a/static/style.css +++ b/static/style.css @@ -130,6 +130,12 @@ a code { color: var(--color-navbar-link); } +.navbar .nav-right { + display: flex; + align-items: center; + gap: 1em; +} + html.theme-dark .theme-button.-dark { display: none; }