feat: Add markdown support plus /blog (#107)

Adds `/blog` page with support for `.md` and `.mdx` files.

What we learnt in setting this up will be packages in a package `@nestri/mdx` and used to set up the `/docs` and the `/terms` and `/privacy` routes
This commit is contained in:
Wanjohi
2024-09-08 20:16:56 +03:00
committed by GitHub
parent 8cc5a8b9e6
commit 5b4ea64b94
24 changed files with 515 additions and 131 deletions

View File

@@ -10,7 +10,7 @@ export const GithubBanner = component$(() => {
viewport={{ once: true }}
transition={transition}
client:load
class="flex items-center justify-center w-full py-10"
class="flex items-center justify-center w-full px-4 py-10"
as="div"
>
<section class="w-full flex flex-col items-center justify-center">

View File

@@ -1,7 +1,7 @@
/** @jsxImportSource react */
import { qwikify$ } from '@builder.io/qwik-react';
import { motion, type MotionProps } from 'framer-motion';
import { type ReactNode } from 'react';
import React, { type ReactNode } from 'react';
interface MotionComponentProps extends MotionProps {
as?: keyof JSX.IntrinsicElements;
@@ -27,9 +27,7 @@ export const ReactMotionComponent = ({
const MotionTag = motion[as as keyof typeof motion] as React.ComponentType<any>;
return (
<MotionTag
className={className}
{...(motionProps as any)}>
<MotionTag className={className} {...(motionProps as any)}>
{children}
</MotionTag>
);