From bcc452f502ed3e0a82b68b700053d0d49d74881d Mon Sep 17 00:00:00 2001 From: Ahmed Elsakaan Date: Fri, 7 Jun 2024 18:49:36 +0100 Subject: [PATCH] feat: blog post --- README.md | 7 ++-- cspell.config.yaml | 1 + src/app/(site)/_components/custom-mdx.tsx | 6 ++- src/app/(site)/blog/[slug]/page.tsx | 39 +++++++++++++++++- src/content/blog/noodle-resurgence.md | 50 +++++++++++++++++++++-- src/lib/utils.ts | 12 ++++++ 6 files changed, 105 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 59320908..db53d2c6 100644 --- a/README.md +++ b/README.md @@ -8,11 +8,12 @@ - [x] Early access page. - [x] Terms and conditions page. - [x] Privacy policy page. -- [ ] Blog page. -- [ ] Write a blog post about Noodle's resurrection. -- [ ] Responsiveness. +- [x] Blog page. +- [x] Write a blog post about Noodle's resurrection. +- [x] Responsiveness. - [ ] README.md. - [ ] CONTRIBUTING.md. - [ ] Posthog. - [ ] Sentry. - [ ] Update GitHub repo about & tags. +- [ ] Update privacy, terms and blog post dates. diff --git a/cspell.config.yaml b/cspell.config.yaml index ecfabf45..f4c1aa4e 100644 --- a/cspell.config.yaml +++ b/cspell.config.yaml @@ -44,6 +44,7 @@ words: - superjson - tailwindcss - tanstack + - Todos - trpc - tsbuildinfo - tseslint diff --git a/src/app/(site)/_components/custom-mdx.tsx b/src/app/(site)/_components/custom-mdx.tsx index d88cae2e..7a99588f 100644 --- a/src/app/(site)/_components/custom-mdx.tsx +++ b/src/app/(site)/_components/custom-mdx.tsx @@ -35,6 +35,10 @@ export const MDXComponents = { 2, 'text-xl md:text-2xl mb-3 md:mb-4 mt-3 md:mt-4 inline-block', ), + h3: createHeading( + 3, + 'text-lg md:text-xl mb-2 md:mb-3 mt-2 md:mt-3 inline-block font-normal', + ), ul: ({ children, className, ...props }) => (