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 (
|
||||
|
||||
<div>
|
||||
{/*todo: to be update*/ }
|
||||
{/*<Link href={ `/blog/${ name }` }>*/ }
|
||||
<Card as={ Link } href={ `/blog/post/${ post_id }` }>
|
||||
<Card as={ Link } href={ `/blog/post/${ post_id }` } className={ `mx-7` }>
|
||||
<CardHeader>
|
||||
<p className={ 'font-bold' }>{ title }</p>
|
||||
</CardHeader>
|
||||
@@ -31,7 +29,6 @@ function BlogPostCard({ post }: Props) {
|
||||
{ last_update }
|
||||
</CardBody>
|
||||
</Card>
|
||||
{/*</Link>*/ }
|
||||
</div>
|
||||
);
|
||||
|
||||
|
||||
+1
-1
@@ -11,7 +11,7 @@ async function Blog() {
|
||||
// blog list
|
||||
<ul className={ 'flex flex-col items-center w-full max-w-[1024px]' }>
|
||||
{ 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 } />
|
||||
</li>)
|
||||
) }
|
||||
|
||||
Reference in new issue
Block a user