about summary refs log tree commit diff
path: root/users/wpcarro/website/fragments/addendum.html
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2021-12-27T15·52-0400
committerclbot <clbot@tvl.fyi>2021-12-27T16·02+0000
commit1d4f88cbde37bceab2bfecd7e22c9e5918930386 (patch)
tree9b281848e8ec085c3d78c094e26e6b86e96785bf /users/wpcarro/website/fragments/addendum.html
parent7ce9277a8e9e91b477c072a457d84cabd0054850 (diff)
feat(wpcarro/blog): Add a blog index page r/3476
TL;DR:
- Create an index page to list blog posts
- Drop blog.wpcarro.dev -> wpcarro.dev/blog
- Create fragments directory to host reusable static website components
- Consume fragments in wpcarro.dev and wpcarro.dev/blog for brand consistency

Change-Id: Ib8440300c008c3c0c5e5a6f207e4ea207dd41b47
Reviewed-on: https://cl.tvl.fyi/c/depot/+/4717
Tested-by: BuildkiteCI
Reviewed-by: wpcarro <wpcarro@gmail.com>
Autosubmit: wpcarro <wpcarro@gmail.com>
Diffstat (limited to 'users/wpcarro/website/fragments/addendum.html')
-rw-r--r--users/wpcarro/website/fragments/addendum.html13
1 files changed, 13 insertions, 0 deletions
diff --git a/users/wpcarro/website/fragments/addendum.html b/users/wpcarro/website/fragments/addendum.html
new file mode 100644
index 000000000000..9623db9bf91e
--- /dev/null
+++ b/users/wpcarro/website/fragments/addendum.html
@@ -0,0 +1,13 @@
+    </div>
+    <script>
+      const $header = document.querySelector("header");
+      const dropShadow = "drop-shadow-md";
+      const update = () => window.scrollY !== 0 ?
+        $header.classList.add(dropShadow) :
+        $header.classList.remove(dropShadow);
+
+      update();
+      document.addEventListener("scroll", update);
+    </script>
+  </body>
+</html>