mirror of
https://github.com/Lumither/nocturne.git
synced 2026-10-17 10:26:21 +00:00
feat(frontend) new tag filter, new landing page
This commit is contained in:
18 files changed
+256
-427
No files matched your search
@@ -7,7 +7,16 @@ import * as motion from 'motion/react-client';
|
||||
import { AnimatePresence } from 'motion/react';
|
||||
import { Post } from '@/src/api/blog/post';
|
||||
|
||||
const PostList = ({ posts }: { posts: Post[] }) => {
|
||||
export interface HighlightSelector {
|
||||
tags?: string[];
|
||||
}
|
||||
|
||||
interface Props {
|
||||
posts: Post[];
|
||||
highlight: HighlightSelector;
|
||||
}
|
||||
|
||||
const PostList = ({ posts, highlight }: Props) => {
|
||||
return (
|
||||
<div className={ 'w-full' }>
|
||||
<ul className={ 'flex flex-col items-center w-full space-y-7' }>
|
||||
@@ -19,7 +28,7 @@ const PostList = ({ posts }: { posts: Post[] }) => {
|
||||
transition={ { ease: 'easeOut', duration: 0.5, delay: key * .1 + .1 } }
|
||||
key={ key }
|
||||
className={ 'w-full' }>
|
||||
<BlogPostCard post={ post } />
|
||||
<BlogPostCard post={ post } highlightSelector={ highlight } />
|
||||
</motion.li>)
|
||||
) }
|
||||
</AnimatePresence>
|
||||
|
||||
Reference in new issue
Block a user