Skip to content

Commit

Permalink
Add homepage link
Browse files Browse the repository at this point in the history
  • Loading branch information
domnantas authored and lpil committed Mar 11, 2024
1 parent 95181e1 commit 7852c9a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/tour.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
6 changes: 6 additions & 0 deletions static/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 7852c9a

Please sign in to comment.