Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
663 changes: 658 additions & 5 deletions bun.lock

Large diffs are not rendered by default.

17 changes: 16 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,25 @@
},
"dependencies": {
"@fontsource-variable/jetbrains-mono": "^5.2.8",
"@mdx-js/react": "^3.1.1",
"browserslist": "^4.28.2",
"daleui": "^1.0.0",
"mermaid": "^11.15.0",
"pretendard": "^1.3.9",
"react": "^19.2.6",
"react-dom": "^19.2.6"
"react-dom": "^19.2.6",
"zod": "^4.4.3"
},
"devDependencies": {
"@cloudflare/vite-plugin": "^1.36.4",
"@codecov/vite-plugin": "^1.9.1",
"@eslint/js": "^10.0.1",
"@pandacss/dev": "^1.11.1",
"@mdx-js/rollup": "^3.1.1",
"@testing-library/jest-dom": "^6.9.1",
"@testing-library/react": "^16.3.2",
"@testing-library/user-event": "^14.6.1",
"@types/mdx": "^2.0.13",
"@types/react": "^19.2.14",
"@types/react-dom": "^19.2.3",
"@vitejs/plugin-react": "^5.2.0",
Expand All @@ -42,7 +48,16 @@
"eslint-plugin-react-refresh": "^0.5.2",
"globals": "^17.6.0",
"happy-dom": "^20.9.0",
"playwright": "^1.60.0",
"prettier": "^3.8.3",
"rehype-autolink-headings": "^7.1.0",
"rehype-expressive-code": "^0.42.0",
"rehype-external-links": "^3.0.0",
"rehype-mermaid": "^3.0.0",
"rehype-slug": "^6.0.0",
"remark-frontmatter": "^5.0.0",
"remark-gfm": "^4.0.1",
"remark-mdx-frontmatter": "^5.2.0",
"typescript": "^5.9.3",
"typescript-eslint": "^8.59.3",
"vite": "^7.3.3",
Expand Down
3 changes: 2 additions & 1 deletion panda.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { defineConfig } from "@pandacss/dev";
import { globalCss } from "./src/styles/globalCss";
import { proseCss } from "./src/styles/proseCss";
import { borderWidths, borders } from "./src/tokens/borders";
import { colors, semanticColors } from "./src/tokens/colors";
import { radii } from "./src/tokens/radii";
Expand All @@ -23,7 +24,7 @@ export default defineConfig({
// Files to exclude
exclude: [],

globalCss,
globalCss: { ...globalCss, ...proseCss },

globalVars: {
"--font-pretendard": "Pretendard Variable",
Expand Down
17 changes: 17 additions & 0 deletions src/Router.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,24 @@
import { findBlog } from "./content/blog/loader";
import { SiteLayout } from "./layouts/SiteLayout";
import { BlogPage } from "./pages/BlogPage";
import { MarketingPage } from "./pages/MarketingPage";

export function Router() {
const { pathname } = window.location;
const blogPrefix = "/blog/";

if (pathname.startsWith(blogPrefix)) {
const slug = pathname.slice(blogPrefix.length).replace(/\/$/, "");
const post = findBlog(slug);
if (post) {
return (
<SiteLayout>
<BlogPage post={post} />
</SiteLayout>
);
}
}

return (
<SiteLayout>
<MarketingPage />
Expand Down
Loading