mirror of
https://github.com/Lumither/nocturne.git
synced 2026-10-17 10:26:21 +00:00
fix(frontend/blog) fix style
This commit is contained in:
2 files changed
+2
-5
No files matched your search
@@ -16,9 +16,7 @@ function BlogPostCard({ post }: Props) {
|
|||||||
return (
|
return (
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
{/*todo: to be update*/ }
|
<Card as={ Link } href={ `/blog/post/${ post_id }` } className={ `mx-7` }>
|
||||||
{/*<Link href={ `/blog/${ name }` }>*/ }
|
|
||||||
<Card as={ Link } href={ `/blog/post/${ post_id }` }>
|
|
||||||
<CardHeader>
|
<CardHeader>
|
||||||
<p className={ 'font-bold' }>{ title }</p>
|
<p className={ 'font-bold' }>{ title }</p>
|
||||||
</CardHeader>
|
</CardHeader>
|
||||||
@@ -31,7 +29,6 @@ function BlogPostCard({ post }: Props) {
|
|||||||
{ last_update }
|
{ last_update }
|
||||||
</CardBody>
|
</CardBody>
|
||||||
</Card>
|
</Card>
|
||||||
{/*</Link>*/ }
|
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -11,7 +11,7 @@ async function Blog() {
|
|||||||
// blog list
|
// blog list
|
||||||
<ul className={ 'flex flex-col items-center w-full max-w-[1024px]' }>
|
<ul className={ 'flex flex-col items-center w-full max-w-[1024px]' }>
|
||||||
{ posts.map((post: JSON, key: React.Key | null | undefined) => (
|
{ posts.map((post: JSON, key: React.Key | null | undefined) => (
|
||||||
<li key={ key } className={ 'my-3.5 mx-7 w-[80%]' }>
|
<li key={ key } className={ 'my-7 w-full' }>
|
||||||
<BlogPostCard post={ post } />
|
<BlogPostCard post={ post } />
|
||||||
</li>)
|
</li>)
|
||||||
) }
|
) }
|
||||||
|
|||||||
Reference in new issue
Block a user