From 44f902e9a8ac399dbf1cc674fac4b40b4eb3a989 Mon Sep 17 00:00:00 2001 From: Jake Walker Date: Sat, 25 Jan 2025 16:11:07 +0000 Subject: [PATCH 1/2] add live map --- _includes/livemap.html | 84 ++++++++++++++++++++++++++++++++++++++++++ _sass/_style.scss | 8 ++++ pages/index.html | 7 ++++ 3 files changed, 99 insertions(+) create mode 100644 _includes/livemap.html diff --git a/_includes/livemap.html b/_includes/livemap.html new file mode 100644 index 0000000..5c006ac --- /dev/null +++ b/_includes/livemap.html @@ -0,0 +1,84 @@ +

+ Loading... +

+
+
+ + diff --git a/_sass/_style.scss b/_sass/_style.scss index 216c471..2142a36 100644 --- a/_sass/_style.scss +++ b/_sass/_style.scss @@ -353,3 +353,11 @@ ol { } } } + +.tooltip { + position: absolute; + background: var(--background-light); + color: var(--foreground); + padding: 5px; + display: none; +} diff --git a/pages/index.html b/pages/index.html index a96ac9d..f5bbb9a 100644 --- a/pages/index.html +++ b/pages/index.html @@ -11,6 +11,13 @@ An online event where you can meet friends and work on something new

+
+
+

Live Map

+ {% include livemap.html %} +
+
+

Next event

From 95e3d79c6f8a273b7ee1af22e55ed003d1ef331a Mon Sep 17 00:00:00 2001 From: Jake Walker Date: Tue, 4 Feb 2025 19:41:40 +0000 Subject: [PATCH 2/2] add live map api to config --- _config.yml | 5 ++--- _includes/livemap.html | 3 ++- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/_config.yml b/_config.yml index a00db2a..fb685f7 100644 --- a/_config.yml +++ b/_config.yml @@ -6,14 +6,13 @@ description: >- # this means to ignore newlines until "baseurl:" baseurl: "/" # the subpath of your site, e.g. /blog url: "https://remotehack.space" # the base hostname & protocol for your site, e.g. http://example.com discord_invite_url: https://discord.gg/wNq8uVvQT3 - - +live_map_api: https://remotehack-livemap-api.jakew.workers.dev # Build settings plugins: - jekyll-redirect-from - jekyll-sitemap - + timezone: Europe/London # To ensure that events in the future generate their html pages diff --git a/_includes/livemap.html b/_includes/livemap.html index 5c006ac..ad137ec 100644 --- a/_includes/livemap.html +++ b/_includes/livemap.html @@ -3,6 +3,7 @@

+

Join the Discord to add yourself to the map