aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilip Figiel <figiel.filip@gmail.com>2024-03-05 00:58:54 +0100
committerLouis Pilfold <louis@lpil.uk>2024-03-05 13:02:13 +0000
commit562ad626dd4f0dd47afe1edca38e44adac9ca759 (patch)
tree8fef181b06886bd6d849a41f9d271e4176fb8c40
parent970c3b6e00c12edd8cf68793673b5da0a2ca4255 (diff)
downloadtour-562ad626dd4f0dd47afe1edca38e44adac9ca759.tar.gz
tour-562ad626dd4f0dd47afe1edca38e44adac9ca759.zip
feat: use the new v1 logo
-rw-r--r--src/tour.gleam14
-rw-r--r--static/style.css12
2 files changed, 24 insertions, 2 deletions
diff --git a/src/tour.gleam b/src/tour.gleam
index 64dc758..17386c9 100644
--- a/src/tour.gleam
+++ b/src/tour.gleam
@@ -539,7 +539,7 @@ fn lesson_html(page: Lesson) -> String {
metaprop("twitter:title", title),
metaprop("twitter:description", description),
metaprop("twitter:image", "https://gleam.run/images/og-image.png"),
- link("shortcut icon", "https://gleam.run/images/lucy-circle.svg"),
+ link("shortcut icon", "https://gleam.run/images/lucy/lucy.svg"),
link("stylesheet", "/style.css"),
h(
"script",
@@ -553,7 +553,17 @@ fn lesson_html(page: Lesson) -> String {
]),
h("body", [], [
h("nav", [#("class", "navbar")], [
- h("a", [#("href", "/")], [text("Gleam Language Tour")]),
+ h("a", [#("href", "/"), #("class", "logo")], [
+ h(
+ "img",
+ [
+ #("src", "https://gleam.run/images/lucy/lucy.svg"),
+ #("alt", "Lucy the star, Gleam's mascot"),
+ ],
+ [],
+ ),
+ text("Gleam Language Tour"),
+ ]),
]),
h("article", [#("id", "playground")], [
h("section", [#("id", "left")], [
diff --git a/static/style.css b/static/style.css
index e69a80a..53c071b 100644
--- a/static/style.css
+++ b/static/style.css
@@ -77,6 +77,18 @@ h6 {
background-color: var(--color-pink);
}
+.navbar .logo {
+ display: flex;
+ align-items: center;
+}
+
+.navbar .logo img {
+ display: inline-block;
+ height: 2em;
+ transform: rotate(-10deg);
+ margin-right: 0.5em;
+}
+
.navbar a:visited,
.navbar a {
text-decoration: none;