feat: initial setup, frontend, backend, postgresql

This commit is contained in:
2025-05-30 17:47:50 -04:00
parent 970c83d62b
commit 3ee136d52d
35 changed files with 6612 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
import { useEffect, useState } from "react";
import Markdown from "react-markdown";
import { useParams } from "react-router-dom";
export function BlogViewer() {
const [content, setContent] = useState("");
const { slug } = useParams();
useEffect(() => {
fetch(`/blogs/${slug ?? "home"}.md`)
.then((res) => res.text())
.then(setContent);
}, []);
return <Markdown>{content}</Markdown>;
}