feat(post) add header, fix style

This commit is contained in:
lumither committed 2024-07-18 21:02:37 +08:00
1 parent d982bf0548
commit de27479242
12 files changed
+194 -59

No files matched your search

+4 -3
View File
@@ -1,17 +1,18 @@
import React from 'react';
import Generate from '@/app/blog/post/[id]/generate';
import PostCard from '@/app/blog/post/[id]/PostCard';
import { MotionDiv } from '@/app/public/MotionDiv';
function BlogReader({ params }: { params: { id: string } }) {
return (
<MotionDiv
className={ `max-w-full` }
initial={ { y: 20, opacity: 0 } }
animate={ { y: 0, opacity: 1 } }
transition={ { ease: 'easeInOut', duration: 0.5 } }
>
<div className={ `w-full` }>
<Generate id={ params.id } />
<div className={ `max-w-full` }>
<PostCard id={ params.id } />
</div>
</MotionDiv>
);