react-icons/go#GoPrimitiveDot JavaScript Examples

The following examples show how to use react-icons/go#GoPrimitiveDot. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: TimelineItem.js    From gitpedia with MIT License 6 votes vote down vote up
TimelineItem = ({ title, description, language, forks, size, stars, url }) => {
    return (
        <>
            <a
                href={url}
                target='_blank'
                rel='noopener noreferrer'>

                <ItemContainer>
                    <h1>
                        <span><GoRepo /></span> {title}
                    </h1>
                    <div>{description}</div>
                    <ItemFooter>
                        <div>
                            <FooterSpan available={language} ><GoPrimitiveDot /> {language}</FooterSpan>
                            <FooterSpan available><GoStar /> {stars}</FooterSpan>
                            <FooterSpan available><GoRepoForked /> {forks}</FooterSpan>
                        </div>
                        <div>{Number(size).toLocaleString()} Kb</div>
                    </ItemFooter>
                </ItemContainer>
            </a>
        </>
    );
}
Example #2
Source File: HNCard.js    From hackertab.dev with Apache License 2.0 5 votes vote down vote up
StoryItem = ({ item, index, analyticsTag }) => {

  const { listingMode } = useContext(PreferencesContext)

  return (
    <CardItemWithActions
      source={'hackernews'}
      index={index}
      item={item}
      key={index}
      cardItem={
        <>
          <p className="rowTitle">
            <CardLink link={item.url} analyticsSource={analyticsTag}>
              {listingMode === 'compact' && (
                <span className="counterWrapper">
                  <VscTriangleUp />
                  <span className="value">{item.score}</span>
                </span>
              )}

              <span className="subTitle">{item.title}</span>
            </CardLink>
          </p>
          {listingMode === 'normal' && (
            <div className="rowDetails">
              <span className="rowItem hnRowItem">
                <GoPrimitiveDot className="rowItemIcon" /> {item.score} points
              </span>
              <span className="rowItem" title={new Date(item.time * 1000).toUTCString()}>
                <MdAccessTime className="rowItemIcon" /> {format(new Date(item.time * 1000))}
              </span>
              <ClickableItem
                link={`https://news.ycombinator.com/item?id=${item.id}`}
                className="rowItem rowItemClickable"
                analyticsSource={analyticsTag}>
                <BiCommentDetail className="rowItemIcon" /> {item.descendants} comments
              </ClickableItem>
            </div>
          )}
        </>
      }
    />
  )
}
Example #3
Source File: LobstersCard.js    From hackertab.dev with Apache License 2.0 5 votes vote down vote up
StoryItem = ({ item, index, analyticsTag }) => {
  const { listingMode } = useContext(PreferencesContext)
  return (
    <CardItemWithActions
      source={'lobsters'}
      index={index}
      item={item}
      key={index}
      cardItem={
        <>
          <p className="rowTitle">
            <CardLink link={item.url} analyticsSource={analyticsTag}>
              {listingMode === 'compact' && (
                <div className="counterWrapper">
                  <VscTriangleUp />
                  <span className="value">{item.score}</span>
                </div>
              )}

              <div className="subTitle">{item.title}</div>
            </CardLink>
          </p>
          {listingMode === 'normal' && (
            <div className="rowDetails">
              <span className="rowItem lobstersRowItem">
                <GoPrimitiveDot className="rowItemIcon" /> {item.score} points
              </span>
              <span className="rowItem" title={new Date(item.created_at).toUTCString()}>
                <MdAccessTime className="rowItemIcon" /> {format(new Date(item.created_at))}
              </span>
              <ClickableItem
                link={item.comments_url}
                className="rowItem rowItemClickable"
                analyticsSource={analyticsTag}>
                <BiCommentDetail className="rowItemIcon" /> {item.comment_count} comments
              </ClickableItem>
            </div>
          )}
        </>
      }
    />
  )
}
Example #4
Source File: RedditCard.js    From hackertab.dev with Apache License 2.0 5 votes vote down vote up
PostItem = ({ item, index, analyticsTag }) => {
    const fullUrl = `https://www.reddit.com${item.permalink}`
    const { listingMode } = useContext(PreferencesContext)

    return (
      <CardItemWithActions
        source={"reddit"}
        index={index}
        key={index}
        item={{ ...item, url: fullUrl }}
        cardItem={
          <>
            <CardLink link={fullUrl} analyticsSource={analyticsTag}>
                { listingMode === "compact" && 
                    <div className="counterWrapper">
                        <VscTriangleUp/>
                        <span className="value">{item.score}</span>
                    </div>
                }
                
                <div className="subTitle">
                    {item.link_flair_text && <PostFlair {...item} />}
                    {item.title}
                </div>
            </CardLink>

            <div className="rowDetails">
              {listingMode === "normal" && (
                <>
                  <span className="rowItem redditRowItem">
                    <GoPrimitiveDot className="rowItemIcon" /> {item.score}{" "}
                    points
                  </span>
                  <span className="rowItem">
                    <MdAccessTime className="rowItemIcon" />{" "}
                    {format(new Date(item.created_utc * 1000))}
                  </span>
                  <span className="rowItem">
                    <BiCommentDetail className="rowItemIcon" />{" "}
                    {item.num_comments} comments
                  </span>
                  <span className="rowItem">
                    <BsArrowReturnRight className="rowItemIcon" />{" "}
                    {`r/${item.subreddit}`}
                  </span>
                </>
              ) }
            </div>
          </>
        }
      />
    );
}