Files
blweb/src/components/article/ArticleGrid.jsx
Cho-P4 c5994759fb Initial commit: anime-minimalist personal blog
- React 18 + Vite + React Router v6
- Glass morphism cards with rounded corners
- Dark/light theme toggle
- Article CRUD with localStorage persistence
- Search, admin panel (PIN: 2501), sakura petal canvas animation

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-01 18:10:59 +08:00

17 lines
437 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import ArticleCard from './ArticleCard';
import styles from './ArticleGrid.module.css';
export default function ArticleGrid({ articles }) {
if (!articles.length) {
return <p className={styles.empty}>还没有文章去写第一篇吧 </p>;
}
return (
<div className={styles.grid}>
{articles.map((article, i) => (
<ArticleCard key={article.id} article={article} index={i} />
))}
</div>
);
}