commit 71ad925c091da5b5fb0e73d8fdcfa63b81b4f1b7 Author: Wiwi Kuan Date: Fri Mar 27 01:20:40 2026 +0000 上傳檔案到「/」 diff --git a/PhotoGrid.jsx b/PhotoGrid.jsx new file mode 100644 index 0000000..b370f7f --- /dev/null +++ b/PhotoGrid.jsx @@ -0,0 +1,78 @@ +import React from "react"; + +/** + * PhotoGrid — Instagram-style masonry grid for Docusaurus. + * + * Usage in any .mdx page: + * + * import PhotoGrid from "@site/src/components/PhotoGrid"; + * + * + * + * Props: + * photos — string[] — paths relative to /static (required) + * columns — number — desktop columns, default 3 + * gap — string — grid gap, default "12px" + */ +export default function PhotoGrid({ photos = [], columns = 3, gap = "12px" }) { + if (!photos.length) return null; + + return ( + <> + + +
+ {photos.map((src, i) => ( + + + + ))} +
+ + ); +} diff --git a/crepe.mdx b/crepe.mdx new file mode 100644 index 0000000..5548a0f --- /dev/null +++ b/crepe.mdx @@ -0,0 +1,18 @@ +--- +title: ᓚᘏᗢ +description: 貓貓貓 +hide_table_of_contents: true +--- + +import PhotoGrid from "@site/src/components/PhotoGrid"; + +# ᓚᘏᗢ `/crepe` + +