added blog post page, reverted back to flex blog landing, added types
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
import { Post, PostCard } from "./PostCard.tsx";
|
||||
import { PostCard } from "./PostCard.tsx";
|
||||
import { Post } from "../types/index.ts";
|
||||
|
||||
interface PostOpts {
|
||||
posts: Post[];
|
||||
@ -6,9 +7,9 @@ interface PostOpts {
|
||||
|
||||
export const PostCarousel = function PostCarousel({ posts }: PostOpts) {
|
||||
return (
|
||||
<div className="flex w-full bg-[#313244] p-8">
|
||||
<div className="items-center justify-center">
|
||||
<div className="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-4 max-w-7xl w-full">
|
||||
<div className="flex w-full justify-start items-start bg-[#313244] p-8">
|
||||
<div className="max-w-7xl mx-auto">
|
||||
<div className="flex flex-wrap justify-center gap-3">
|
||||
{posts.map((post: Post) => (
|
||||
<PostCard key={post.post_id} post={post} />
|
||||
))}
|
||||
|
Reference in New Issue
Block a user