aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordomnantas <hello@domnantas.lt>2024-03-11 12:24:37 +0200
committerLouis Pilfold <louis@lpil.uk>2024-03-11 11:09:43 +0000
commit7852c9ab0747bfeef1c7df3439a25667094c76ef (patch)
tree73b1ac0c6d0782a9ea109a2fb661420adf8d8006
parent95181e11cfcee225b68b8d97b06bba3e43c1281b (diff)
downloadtour-7852c9ab0747bfeef1c7df3439a25667094c76ef.tar.gz
tour-7852c9ab0747bfeef1c7df3439a25667094c76ef.zip
Add homepage link
-rw-r--r--src/tour.gleam1
-rw-r--r--static/style.css6
2 files changed, 7 insertions, 0 deletions
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;
}