]> git.otsuka.systems Git - cotsuka.github.io/commitdiff
add spoiler component, only use mdx when needed, update deps
authorCameron Otsuka <cameron@otsuka.haus>
Mon, 4 Aug 2025 21:13:00 +0000 (14:13 -0700)
committerCameron Otsuka <cameron@otsuka.haus>
Mon, 4 Aug 2025 21:13:00 +0000 (14:13 -0700)
17 files changed:
bun.lock
content/links/build-weekly-roundup-2025-week-4.md [moved from content/links/build-weekly-roundup-2025-week-4.mdx with 100% similarity]
content/links/build-weekly-roundup-2025-week-5.md [moved from content/links/build-weekly-roundup-2025-week-5.mdx with 100% similarity]
content/reviews/burning.md [moved from content/reviews/burning.mdx with 100% similarity]
content/reviews/challengers.md [moved from content/reviews/challengers.mdx with 100% similarity]
content/reviews/conclave.md [moved from content/reviews/conclave.mdx with 100% similarity]
content/reviews/fallen-angels/index.mdx
content/reviews/hunchback-of-notre-dame.md [moved from content/reviews/hunchback-of-notre-dame.mdx with 100% similarity]
content/reviews/its-whats-inside.md [moved from content/reviews/its-whats-inside.mdx with 100% similarity]
content/reviews/perfect-days.md [moved from content/reviews/perfect-days.mdx with 100% similarity]
content/reviews/sinners.md [moved from content/reviews/sinners.mdx with 100% similarity]
content/reviews/subservience.md [moved from content/reviews/subservience.mdx with 100% similarity]
content/reviews/the-boy-and-the-heron.md [moved from content/reviews/the-boy-and-the-heron.mdx with 100% similarity]
content/reviews/warfare.md [moved from content/reviews/warfare.mdx with 100% similarity]
content/reviews/wicked.md [moved from content/reviews/wicked.mdx with 100% similarity]
src/components/ui/spoiler.astro [new file with mode: 0644]
src/styles/style.css

index f6965644ae9411963844900e0da6425d30a5c1c0..bf6d68b18011cb53513892f5398c578c0a97ffe2 100644 (file)
--- a/bun.lock
+++ b/bun.lock
@@ -4,22 +4,22 @@
     "": {
       "name": "cotsuka.github.io",
       "dependencies": {
-        "@astrojs/mdx": "^4.3.0",
+        "@astrojs/mdx": "^4.3.3",
         "@astrojs/react": "^4.3.0",
         "@astrojs/rss": "^4.0.12",
-        "@astrojs/sitemap": "^3.4.1",
+        "@astrojs/sitemap": "^3.4.2",
         "@fontsource-variable/public-sans": "^5.2.6",
         "@fontsource-variable/source-code-pro": "^5.2.6",
-        "@types/react": "^19.1.8",
-        "@types/react-dom": "^19.1.6",
+        "@types/react": "^19.1.9",
+        "@types/react-dom": "^19.1.7",
         "@vercel/og": "^0.6.8",
         "astro": "5.11.0",
-        "react": "^19.1.0",
-        "react-dom": "^19.1.0",
+        "react": "^19.1.1",
+        "react-dom": "^19.1.1",
         "recharts": "^3.1.0",
       },
       "devDependencies": {
-        "@types/bun": "^1.2.18",
+        "@types/bun": "^1.2.19",
       },
     },
   },
index 682b609c613323bfe031a9eca60ed7a91e0ee4fe..58dfe8d8a386a68ca919d6e548755330d3bf5f0c 100644 (file)
@@ -8,6 +8,8 @@ tags:
 posse:
   Letterboxd: https://letterboxd.com/cotsuka/film/fallen-angels/
 ---
+import Spoiler from '@components/ui/spoiler.astro';
+
 ![He Zhiwu and Agent on motorcycle](./fallen-angels-0.png)
 
 - the wide-angle field of view, close-up shots, blurred/slowed/sped up scenes, and trip-hop soundtrack all create a dizzying effect.
@@ -16,9 +18,8 @@ posse:
 - scenes are beautifully constructed. for example, the final restaurant scene between the hitman and his partner.
 - surprisingly funny (e.g., ice cream truck with family)
 
-<details class="spoiler">
-  <summary>Spoiler</summary>
+<Spoiler>
   - did the hitman know his partner put a hit out on him? seems like he knows a lot about her (and she knows a lot about him). so in a way, he knew the only way for her to move on was killing him, and she knew he wanted to die. their final hit as partners.
-</details>
+</Spoiler>
 
 ![Wong Chi-Ming and Agent in restaurant](./fallen-angels-1.jpg)
\ No newline at end of file
diff --git a/src/components/ui/spoiler.astro b/src/components/ui/spoiler.astro
new file mode 100644 (file)
index 0000000..9598ac6
--- /dev/null
@@ -0,0 +1,18 @@
+<details class="spoiler">
+  <summary>Spoiler</summary>
+  <slot />
+</details>
+
+<style>
+    details.spoiler {
+        color: #ffffff;
+        background-color: #000000;
+        margin-bottom: 1rem;
+        padding: 0.5rem;
+    }
+    details.spoiler[open] {
+        color: unset;
+        background-color: unset;
+        border: 0.1rem solid;
+    }
+</style>
\ No newline at end of file
index 90ed208b1d2b328e7765cb10de76844b4216e7fe..9b792fb5e1905a399195239184776f2ab2fd39ad 100644 (file)
@@ -74,15 +74,4 @@ code {
   font-family: "Source Code Pro Variable", monospace;
   margin-bottom: 1rem;
   padding: 0.1rem;
-}
-details.spoiler {
-  color: #ffffff;
-  background-color: #000000;
-  margin-bottom: 1rem;
-  padding: 0.5rem;
-}
-details.spoiler[open] {
-  color: unset;
-  background-color: unset;
-  border: 0.1rem solid;
 }
\ No newline at end of file