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"); +})