JSFiddle - React, Tailwind, and code Playground

by Ben Gillbanks

HTML

<h1>Bluesky Comments</h1>
  <p>
    Reply on Bluesky 
    <a id="post-link" href="#" target="_blank" rel="noopener noreferrer">here</a>
    to join the conversation.
  </p>
  <hr />

  <div id="comments-section">
    <p>Loading comments...</p>
  </div>

CSS

body {
      font-family: Arial, sans-serif;
      line-height: 1.6;
      margin: 2em;
      background-color: #f9f9f9;
      color: #333;
    }
    #comments-section {
      margin-top: 2em;
      font-size: 0.9em;
    }
    .comment {
      margin-bottom: 1em;
      border-left: 2px solid #ddd;
      padding-left: 1em;
    }
    .comment-thread {
      margin-left: 2em;
      border-left: 1px dashed #ccc;
      padding-left: 1em;
    }
    .author {
      display: flex;
      align-items: center;
      font-weight: bold;
      margin-bottom: 0.5em;
    }
    .author a {
      display: flex;
      align-items: center;
      text-decoration: none;
      color: inherit;
    }
    .author img {
      width: 24px;
      height: 24px;
      border-radius: 50%;
      margin-right: 0.5em;
    }
    .comment-body a {
      text-decoration: none !important; /* No underline */
      color: inherit !important; /* No blue */
    }
    .comment-body {
      cursor: pointer; /* Pointer cursor to indicate interactivity */
    }
    .comment-body:hover {
      background-color: #f1f1f1; /* Grey hover effect */
    }
    .actions {
      font-size: 0.8em;
      color: #555;
      margin-top: 0.5em;
    }
    hr {
      border: 0;
      height: 1px;
      background: #ccc;
      margin: 1em 0;
    }