Skip to content

ADD: categories according to the tags  #1

@sabesansathananthan

Description

@sabesansathananthan

Add badges from shards-react and implement According to the category. from the JSON value

 <div
                  className="card-post__image"
                  style={{ backgroundImage: `url(${post.backgroundImage})` }}
                >
                  <Badge
                    pill
                    className={`card-post__category bg-${post.categoryTheme}`}
                  >
                    {post.category}
                  </Badge>
                  <div className="card-post__author d-flex">
                    <a
                      href="#"
                      className="card-post__author-avatar card-post__author-avatar--small"
                      style={{
                        backgroundImage: `url('${post.authorAvatar}')`
                      }}
                    >
                      Written by {post.author}
                    </a>
                  </div>
                </div>

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions