refactor: 重写filter页面 更新为search

This commit is contained in:
2026-08-14 21:08:45 +08:00
parent 37d720ebc3
commit b3038603e8
10 changed files with 350 additions and 624 deletions

View File

@@ -0,0 +1,31 @@
---
import type {Post} from "@/types/post";
import PostItem from '@/components/Post/Item.astro'
interface Props {
posts: Post[]
}
const {posts} = Astro.props
---
<section class="section">
<div class="post-list">
{posts.map(post => (
<PostItem post={post}/>
))}
</div>
</section>
<style>
.section {
flex: 1;
height: 100%;
}
.post-list {
display: flex;
flex-direction: column;
gap: 20px;
}
</style>