From 5dcfac8fada3df79947d4b7f1e9e0fcf0e5cf995 Mon Sep 17 00:00:00 2001 From: Cian Hughes Date: Tue, 21 Jan 2025 14:17:38 +0000 Subject: [PATCH] Created temporary repo placeholder page --- caddy/Caddyfile | 5 +++++ docker-compose.yaml | 1 + repo/placeholder.html | 6 ++++++ src/lib/components/NavigationFooter.svelte | 2 +- src/lib/components/NavigationHeader.svelte | 2 +- src/lib/navigation.js | 1 + 6 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 repo/placeholder.html diff --git a/caddy/Caddyfile b/caddy/Caddyfile index a772713..199f276 100644 --- a/caddy/Caddyfile +++ b/caddy/Caddyfile @@ -9,6 +9,11 @@ health_timeout 10s health_status 200 } + + route /repo { + root * /repo/placeholder.html + file_server + } } :80 { diff --git a/docker-compose.yaml b/docker-compose.yaml index ad61707..337a371 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -28,6 +28,7 @@ services: volumes: - caddy_data:/data - ./caddy:/etc/caddy + - ./repo:/repo restart: unless-stopped labels: - "io.containers.autoupdate=registry" diff --git a/repo/placeholder.html b/repo/placeholder.html new file mode 100644 index 0000000..f731cb0 --- /dev/null +++ b/repo/placeholder.html @@ -0,0 +1,6 @@ +

This is a placeholder page

+

Please wait patiently while I set up the data repository

+

+ The data repository will be deployed as soon as possible, we just + need to figure out some details first before deployment happens. +

diff --git a/src/lib/components/NavigationFooter.svelte b/src/lib/components/NavigationFooter.svelte index f69a4da..889d259 100644 --- a/src/lib/components/NavigationFooter.svelte +++ b/src/lib/components/NavigationFooter.svelte @@ -58,7 +58,7 @@ class="navigation-footer-link" text="Data Repository" hotkey="d" - redirectFunc={navigation.to404} + redirectFunc={navigation.toRepository} /> goto("/"), toAbout: () => goto("/about"), toContact: () => goto("/contact"), + toRepository: () => goto("/repo"), to404: () => { throw error(404, 'Page not found'); }