diff --git a/src/components/posts/post/Post.tsx b/src/components/posts/post/Post.tsx index a8e4c56..7aee921 100644 --- a/src/components/posts/post/Post.tsx +++ b/src/components/posts/post/Post.tsx @@ -17,6 +17,7 @@ interface PostProps { content: string; slug: string; createdAt: string; + article_level: string; } export function Post() { @@ -42,13 +43,29 @@ export function Post() { return
carregando...
; } + const levelColors: Record = { + Iniciante: "bg-[#B4CB3F]", + Intermediário: "bg-[#408EEB]", + Avançado: "bg-[#7B66D4]", + }; + return ( -
-
-
-

- {formatDateToCustomFormat(post.createdAt)} -

+
+
+
+
+

+ {formatDateToCustomFormat(post.createdAt)} +

+
+ + +

{post.article_level}

+
@@ -59,7 +76,7 @@ export function Post() {
= { + Iniciante: "bg-[#B4CB3F]", + Intermediário: "bg-[#408EEB]", + Avançado: "bg-[#7B66D4]", + }; + const postsByCategory = groupPostsByCategory(posts); return ( @@ -65,7 +72,7 @@ export function PostList() { {posts.map((post) => (
  • @@ -86,7 +93,7 @@ export function PostList() {

    -
    +
    -
    - -

    - {post.estimated_time}min -

    +
    + +

    {post.article_level}

    +
    + +
    + +

    + {post.estimated_time}min +

    +