@fortawesome/free-solid-svg-icons#faCalendarCheck JavaScript Examples

The following examples show how to use @fortawesome/free-solid-svg-icons#faCalendarCheck. 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: index.js    From Official-Website with MIT License 5 votes vote down vote up
render() {
    const { event } = this.props;
    let isDescArabic = isArabic(event.metaDescription);
    return (
      <section className={styles["event-card_content"]}>
        <figure className={styles["events-card_cover"]} key={event}>
          <Link to={"/events/" + event._id}>
            <LazyImage
              alt={`event ${event.title}`}
              src={event.cover}
              key={event._id}
            />
          </Link>
          <figcaption>
            <h3>
              <Link
                to={"/events/" + event._id}
                className={styles["event-card_title"]}
              >
                {event.title}
              </Link>
            </h3>
            <p
              className={`${styles["event-card_description"]} ${
                isDescArabic && "letter-spacing-none"
              }`}
            >
              {event.metaDescription}
            </p>
          </figcaption>
        </figure>
        <section className={styles["event-card_SubDescription"]}>
          <div className={styles["event-card-SubDescription_content"]}>
            <div className={styles["event-card-SubDescription_info"]}>
              <FontAwesomeIcon
                icon={faCalendarCheck}
                className={styles["event-card_icon"]}
              />
              <span> {parseDate(event.startDate)}</span>
            </div>
            <div className={styles["event-card-SubDescription_info"]}>
              {event.location && event.location.length ? (
                <>
                  <FontAwesomeIcon
                    icon={faMapMarkerAlt}
                    className={styles["event-card_icon"]}
                  />
                  <span>{event.location}</span>
                </>
              ) : (
                <>
                  <FontAwesomeIcon
                    icon={faCalendarTimes}
                    className={styles["event-card_icon"]}
                  />
                  <span>{parseDate(event.endDate)}</span>{" "}
                </>
              )}
            </div>
          </div>
        </section>
      </section>
    );
  }