From 2a8edbcebfc458f15dc6afa992ef5de1c85e8027 Mon Sep 17 00:00:00 2001 From: Pagwin Date: Fri, 22 Aug 2025 13:26:40 -0400 Subject: [PATCH] 4th demo draft done --- static/demos/light-dark-demo-3/index.html | 3 +- static/demos/light-dark-demo-4/index.html | 79 +++++++++++++++++++++++ static/demos/light-dark-demo-4/sw.js | 3 + 3 files changed, 83 insertions(+), 2 deletions(-) create mode 100644 static/demos/light-dark-demo-4/index.html create mode 100644 static/demos/light-dark-demo-4/sw.js diff --git a/static/demos/light-dark-demo-3/index.html b/static/demos/light-dark-demo-3/index.html index c9ef8e8..5cedb71 100644 --- a/static/demos/light-dark-demo-3/index.html +++ b/static/demos/light-dark-demo-3/index.html @@ -47,8 +47,7 @@ max-width: 65ch; } -

This is a basic demo, unlike the other demos it doesn't need javascript to work, Pico CSS was used for some basic - styling but this technique works without it

+

This is a basic demo, unlike the other demos it doesn't need javascript to work

diff --git a/static/demos/light-dark-demo-4/index.html b/static/demos/light-dark-demo-4/index.html new file mode 100644 index 0000000..8cdc520 --- /dev/null +++ b/static/demos/light-dark-demo-4/index.html @@ -0,0 +1,79 @@ + + + + + + + Demo of the simplest implementation of a light/dark theme toggle + + + + + + + +

Here is some example text

+
+ +
+
+ +
+ + + diff --git a/static/demos/light-dark-demo-4/sw.js b/static/demos/light-dark-demo-4/sw.js new file mode 100644 index 0000000..b358a77 --- /dev/null +++ b/static/demos/light-dark-demo-4/sw.js @@ -0,0 +1,3 @@ +self.addEventListener("fetch", event =>{ + event.respondWith("hi"); +})