mirror of
https://github.com/nestriness/nestri.git
synced 2025-12-12 16:55:37 +02:00
✨ 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:
@@ -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">
|
||||
|
||||
@@ -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>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user