aboutsummaryrefslogtreecommitdiff
path: root/lume/src/_components
diff options
context:
space:
mode:
authorXe Iaso <me@xeiaso.net>2023-10-11 07:29:21 -0400
committerXe Iaso <me@xeiaso.net>2023-10-11 07:29:21 -0400
commit49a10972906eb47e5add7267dc193e2556d93a36 (patch)
treecd05c30c38a93ff88b5dc2bcbde904249c3f9aba /lume/src/_components
parent842674229bde83bb97384989d09c4abb2936b4ad (diff)
downloadxesite-49a10972906eb47e5add7267dc193e2556d93a36.tar.xz
xesite-49a10972906eb47e5add7267dc193e2556d93a36.zip
lume/blog: import a talk that I am proud of
Signed-off-by: Xe Iaso <me@xeiaso.net>
Diffstat (limited to 'lume/src/_components')
-rw-r--r--lume/src/_components/BlockQuote.jsx7
-rw-r--r--lume/src/_components/Figure.tsx15
2 files changed, 22 insertions, 0 deletions
diff --git a/lume/src/_components/BlockQuote.jsx b/lume/src/_components/BlockQuote.jsx
new file mode 100644
index 0000000..bf15dd5
--- /dev/null
+++ b/lume/src/_components/BlockQuote.jsx
@@ -0,0 +1,7 @@
+export default function BlockQuote({ children }) {
+ return (
+ <div className="mx-auto mt-4 mb-2 rounded-lg bg-bg-2 p-4 dark:bg-bgDark-2 md:max-w-lg xe-dont-newline">
+ &gt; {children}
+ </div>
+ );
+}; \ No newline at end of file
diff --git a/lume/src/_components/Figure.tsx b/lume/src/_components/Figure.tsx
new file mode 100644
index 0000000..99dc4e2
--- /dev/null
+++ b/lume/src/_components/Figure.tsx
@@ -0,0 +1,15 @@
+export interface FigureProps {
+ className?: string;
+ path: string;
+ desc?: string;
+ alt?: string;
+}
+
+export default function Figure({ className, path, alt, desc = alt}: FigureProps) {
+ return (
+ <figure className={`max-w-3xl mx-auto ${className}`}>
+ <img src={`https://cdn.xeiaso.net/file/christine-static/${path}`} alt={desc} />
+ {desc && <figcaption>{desc}</figcaption>}
+ </figure>
+ );
+}