Authors.tsx 612 B

123456789101112131415161718192021
  1. export default function BlogAuthors({ authors }) {
  2. return (
  3. <>
  4. {authors.map(author => (
  5. <div key={author.twitter} className="row gx-3 items-center">
  6. <div className="col-auto">
  7. <img src={author.avatar} alt="" className="avatar" />
  8. </div>
  9. <div className="col">
  10. <div>{author.name}</div>
  11. <div>
  12. <a href={`https://twitter.com/${author.twitter}`} target="_blank" rel="noopener noreferrer">
  13. @{author.twitter}
  14. </a>
  15. </div>
  16. </div>
  17. </div>
  18. ))}
  19. </>
  20. );
  21. }