Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

UserCard.tsx 723 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
  1. type Props = {
  2. user: {
  3. username: string
  4. description: string
  5. }
  6. href?: string
  7. }
  8. export const UserCard = ({ user, href }: Props) => {
  9. return (
  10. <a
  11. className="Box d-flex height-full color-shadow-medium hover-shadow-large no-underline color-text-primary p-4"
  12. href={href || `https://github.com/${user.username}`}
  13. >
  14. <div className="flex-shrink-0 mr-3">
  15. <img
  16. src={`https://github.com/${user.username}.png`}
  17. alt={user.username}
  18. className="avatar avatar-8 circle"
  19. />
  20. </div>
  21. <div className="flex-auto">
  22. <h4>{user.username}</h4>
  23. <p className="mt-1 color-text-tertiary">{user.description}</p>
  24. </div>
  25. </a>
  26. )
  27. }
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...