@fortawesome/free-brands-svg-icons#faFacebook JavaScript Examples

The following examples show how to use @fortawesome/free-brands-svg-icons#faFacebook. 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: Social.js    From Next.js-e-commerce-online-store with MIT License 6 votes vote down vote up
export default function Social() {
  return (
    <div>
      <form>          
        <label htmlFor="email">Subscribe to the news!</label>
        <input type="email" size="20" id="email" />
        <input type="submit" value="Submit"></input>
      </form>
      <div>
        <div>Our social media:</div>
        <Link href="/#">
          <a aria-label="Facebook icon link"><FontAwesomeIcon icon={faFacebook} size="2x" /></a>
        </Link>
        <Link href="/#">
          <a aria-label="Twitter icon link"><FontAwesomeIcon icon={faTwitter} size="2x" /></a>
        </Link>
        <Link href="/#">
          <a aria-label="Instagram icon link"><FontAwesomeIcon icon={faInstagram} size="2x" /></a>
        </Link>
        <Link href="/#">
          <a aria-label="YouTube icon link"><FontAwesomeIcon icon={faYoutube} size="2x" /></a>
        </Link>
        <Link href="/#">
          <a aria-label="LinkedIn icon link"><FontAwesomeIcon icon={faLinkedin} size="2x" /></a>
        </Link>
      </div>
      <div>&#169; 1991 - {new Date().getFullYear()} All rights reserved.</div>
    </div>
  )
}
Example #2
Source File: index.js    From official-website-backend with MIT License 6 votes vote down vote up
/**
 * Component which contains social media links for Energia Powered
 * 
 * @component 
 * @returns {JSX} Footer Component
 */
function Footer() {
  let socialData = [
    { link: "https://www.facebook.com/Energia.Powered/", label: faFacebook },
    {
      link: "https://www.youtube.com/channel/UCxNgZOJJx9LzqWLhCEu8Djw",
      label: faYoutube
    },
    { link: "https://www.instagram.com/energia.powered/", label: faInstagram },
    { link: "https://twitter.com/Energia_Powered", label: faTwitter },
    {
      link: "https://www.linkedin.com/company/energiapowered/",
      label: faLinkedin
    }
  ];
  const [social] = useState(socialData);
  return (
    <footer id="Footer">
      <ul className="text-center social-links row list-unstyled">
        {social.length > 0 &&
          social.map(item => {
            return (
              <li key={item.link} className="social-links-item col-xs-2">
                {/* noopener & nopreferrer to prevent vulnerbilities */}
                <a target="_blank" rel="noopener noreferrer" href={item.link}>
                  <FontAwesomeIcon icon={item.label} />
                </a>
              </li>
            );
          })}
      </ul>
    </footer>
  );
}
Example #3
Source File: index.js    From Webiu with MIT License 6 votes vote down vote up
Footer = ({mainText, socialLinks = {} }) => {
  const { 
    facebook,
    gitter,
    twitter,
    github,
    linkedin,
    medium
  } = socialLinks

  return (
    <div className="footer-component">
      <Container>
          <Row>
            <Col>
              <div className="social-icons-container">
                {!facebook || <a href={facebook}><FontAwesomeIcon icon={faFacebook} className="icon" /></a>}
                {!gitter || <a href={gitter}><FontAwesomeIcon icon={faGitter} className="icon" /></a>}
                {!medium || <a href={medium}><FontAwesomeIcon icon={faMedium} className="icon" /></a>}
                {!twitter || <a href={twitter}><FontAwesomeIcon icon={faTwitter} className="icon" /></a>}
                {!github || <a href={github}><FontAwesomeIcon icon={faGithub} className="icon" /></a>}
                {!linkedin || <a href={linkedin}><FontAwesomeIcon icon={faLinkedin} className="icon" /></a>}
              </div>
              <p className="main-text">{mainText} {(new Date().getFullYear())}</p>
            </Col>
          </Row>
      </Container>
    </div>
  )
}
Example #4
Source File: FooterSmall.js    From Frontend with Apache License 2.0 5 votes vote down vote up
function FooterSmall() {
  const [showFooter, setShowFooter] = useState(false)
  window.addEventListener('scroll', (e) => {
    myFunction()
  })
  function myFunction() {
    // console.log(window.pageYOffset);
    if (window.pageYOffset < 100) {
      setShowFooter(false)
    } else {
      setShowFooter(true)
    }
  }

  return (
    <div
      id="myfooter"
      className={`footerSmall m-0 ${
        showFooter || window.pageYOffset === 0 ? '' : 'hide'
      }`}
    >
      <div className="container-fluid p-4 m-0">
        <div className="row justify-content-center">
          <div className="col-6 col-sm-6">
            <p
              style={{
                fontSize: '18px',
                padding: '0px',
                margin: '0px',
              }}
            >
              © Copyright Codedigger 2021
            </p>
          </div>

          <div className="col-6 col-sm-6 m-0">
            <div className="float-right m-0">
              <a
                className="social_media"
                target="_blank"
                href="https://www.facebook.com/practicewithcodedigger"
              >
                <FontAwesomeIcon icon={faFacebook} size="2x" />
              </a>
              <a
                className="social_media"
                target="_blank"
                href="https://www.linkedin.com/company/codedigger"
              >
                <FontAwesomeIcon icon={faLinkedin} size="2x" />
              </a>
              <a
                className="social_media"
                target="_blank"
                href="https://github.com/Code-dig-ger"
              >
                <FontAwesomeIcon icon={faGithub} size="2x" />
              </a>
              <a
                className="social_media"
                target="_blank"
                href="https://www.youtube.com/channel/UCY5XRYpEGKT9cpzZmfWvh6A"
              >
                <FontAwesomeIcon icon={faYoutube} size="2x" />
              </a>
            </div>
          </div>
        </div>
      </div>
    </div>
  )
}
Example #5
Source File: index.js    From gatsby-blog-mdx with MIT License 5 votes vote down vote up
Header = ({ siteTitle, showTitle, isPostTemplate }) => {
  return (
    <StyledMainHeader className="main-header">
      {/* Google AdSense */}
      {config.googleAdSenseId && config.googleAdSenseId !== "" && (
        <script
          data-ad-client={config.googleAdSenseId}
          async
          src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"
        ></script>
      )}

      {isPostTemplate && config.useScrollIndicator && <ProgressBar />}

      <StyledMainHeaderInner className="main-header-inner">
        <h1 style={{ fontSize: "1.5rem" }}>
          {showTitle && <Link to="/">{`${siteTitle}`}</Link>}
        </h1>
        <StyledMediaIcons>
          <HeaderIcon
            accountInfo={config.socialMediaLinks.email}
            mediaName={"email"}
            preHref={"mailto:"}
            icon={faEnvelope}
          />

          <HeaderIcon
            accountInfo={config.socialMediaLinks.github}
            mediaName={"github"}
            preHref={"https://github.com/"}
            icon={faGithub}
          />

          <HeaderIcon
            accountInfo={config.socialMediaLinks.facebook}
            mediaName={"facebook"}
            preHref={"https://facebook.com/"}
            icon={faFacebook}
          />

          <HeaderIcon
            accountInfo={config.socialMediaLinks.instagram}
            mediaName={"instagram"}
            preHref={"https://instagram.com/"}
            icon={faInstagram}
          />

          <HeaderIcon
            accountInfo={config.socialMediaLinks.twitter}
            mediaName={"twitter"}
            preHref={"https://twitter.com/"}
            icon={faTwitter}
          />

          <HeaderIcon
            accountInfo={config.socialMediaLinks.linkedIn}
            mediaName={"linkedin"}
            preHref={"https://linkedin.com/"}
            icon={faLinkedin}
          />

          <HeaderIcon
            accountInfo={config.socialMediaLinks.medium}
            mediaName={"medium"}
            preHref={"https://medium.com/@"}
            icon={faMedium}
          />
        </StyledMediaIcons>
      </StyledMainHeaderInner>
    </StyledMainHeader>
  )
}
Example #6
Source File: SocialIcons.js    From bonded-stablecoin-ui with MIT License 5 votes vote down vote up
SocialIcons = ({size = "full", centered = false, gaLabel}) => { // type full or short
  const { t } = useTranslation();
  const { lang } = useSelector((state) => state.settings);

  const links = [
    {
      name: "discord",
      icon: faDiscord,
      link: "https://discord.obyte.org/"
    },
    {
      name: "telegram",
      icon: faTelegram,
      link: "https://t.me/obyteorg",
      link_ru: "https://t.me/obyte_ru"
    },
    {
      name: "weixin",
      icon: faWeixin,
      link: "https://mp.weixin.qq.com/s/JB0_MlK6w--D6pO5zPHAQQ"
    },
    {
      name: "twitter",
      icon: faTwitter,
      link: "https://twitter.com/ObyteOrg"
    },
    {
      name: "youtube",
      icon: faYoutube,
      link: "https://www.youtube.com/channel/UC59w9bmROOeUFakVvhMepPQ/"
    },
    {
      name: "medium",
      icon: faMediumM,
      link: "https://blog.obyte.org"
    },
    {
      name: "reddit",
      icon: faRedditAlien,
      link: "https://www.reddit.com/r/obyte/"
    },
    {
      name: "bitcoin",
      icon: faBitcoin,
      link: "https://bitcointalk.org/index.php?topic=1608859.0"
    },
    {
      name: "facebook",
      icon: faFacebook,
      link: "https://www.facebook.com/obyte.org"
    }
  ];

  const gaTracking = (name) => {
    ReactGA.event({
      category: "Social",
      action: "Click to " + name,
      label: gaLabel
    })
  }

  return (<div style={{ textAlign: "center", fontSize: 14 }}>
    {size === "full" && <div style={{ marginBottom: 10 }}><Text type="secondary">{t("footer.join_community", "Join the community, get help")}:</Text></div>}
    <div style={{ display: "flex", justifyContent: centered ? "center" : "flex-start", flexWrap: "wrap", alignItems: "center", fontSize: 18 }}>
      {(size === "full" ? links : links.slice(0,5)).map((social) => <a style={{ margin: "5px 10px", color: "#0037ff" }} key={"link-" + social.name} target="_blank" rel="noopener" href={(lang && social["link_" + lang]) || social.link} onClick={() => gaTracking(social.name)}><FontAwesomeIcon size="lg" icon={social.icon} /></a>)}
    </div>
  </div>)
}
Example #7
Source File: organization.js    From climatescape.org with MIT License 5 votes vote down vote up
function SocialLinksSection({ org, className }) {
  return (
    <SidebarSectionList title="Links" className={className}>
      {org.homepage && (
        <SidebarSectionList.Item
          text="Homepage"
          href={org.homepage}
          icon={faExternalLinkAlt}
        />
      )}
      {org.crunchbase && (
        <SidebarSectionList.Item
          text="Crunchbase"
          href={org.crunchbase}
          icon={faExternalLinkAlt}
        />
      )}
      {org.linkedIn && (
        <SidebarSectionList.Item
          text="LinkedIn"
          href={org.linkedIn}
          icon={faLinkedin}
        />
      )}
      {org.twitter && (
        <SidebarSectionList.Item
          text={parseTwitterHandle(org.twitter) || "Twitter"}
          href={org.twitter}
          icon={faTwitter}
        />
      )}
      {org.facebook && (
        <SidebarSectionList.Item
          text="Facebook"
          href={org.facebook}
          icon={faFacebook}
        />
      )}
    </SidebarSectionList>
  )
}
Example #8
Source File: organization.js    From goodhere with MIT License 5 votes vote down vote up
function SocialLinksSection({ org, className }) {
  return (
    <SidebarSectionList title="Links" className={className}>
      {org.homepage && (
        <SidebarSectionList.Item
          text="Homepage"
          href={org.homepage}
          icon={faExternalLinkAlt}
        />
      )}
      {org.crunchbase && (
        <SidebarSectionList.Item
          text="Crunchbase"
          href={org.crunchbase}
          icon={faExternalLinkAlt}
        />
      )}
      {org.linkedIn && (
        <SidebarSectionList.Item
          text="LinkedIn"
          href={org.linkedIn}
          icon={faLinkedin}
        />
      )}
      {org.twitter && (
        <SidebarSectionList.Item
          text={parseTwitterHandle(org.twitter) || "Twitter"}
          href={org.twitter}
          icon={faTwitter}
        />
      )}
      {org.facebook && (
        <SidebarSectionList.Item
          text="Facebook"
          href={org.facebook}
          icon={faFacebook}
        />
      )}
    </SidebarSectionList>
  )
}
Example #9
Source File: footer.js    From nashvillefccwebsite with MIT License 5 votes vote down vote up
function footer() {
  return (
    <footer>
      <nav className={componentStyles.footerNav}>
        <Connect className={componentStyles.connectLogo} alt={`Connect Logo`} />
        <div className={componentStyles.socials}>
          <a
            href="https://www.meetup.com/freeCodeCamp-Nashville/"
            aria-label="Meetup"
            rel="noopener noreferrer"
            target="_blank"
          >
            <FontAwesomeIcon icon={faMeetup} size="1x" color="#444444" />
          </a>
          <a
            href="https://discord.gg/cX9BkKrAPV"
            aria-label="Discord"
            rel="noopener noreferrer"
            target="_blank"
          >
            <FontAwesomeIcon icon={faDiscord} size="1x" color="#444444" />
          </a>
          <a
            href="https://nashdev.com/"
            aria-label="Slack"
            rel="noopener noreferrer"
            target="_blank"
          >
            <FontAwesomeIcon icon={faSlack} size="1x" color="#444444" />
          </a>
          <a
            href="https://github.com/nashvillefcc/"
            aria-label="GitHub"
            rel="noopener noreferrer"
            target="_blank"
          >
            <FontAwesomeIcon icon={faGithub} size="1x" color="#444444" />
          </a>
          <a
            href="https://twitter.com/nashvillefcc/"
            aria-label="Twitter"
            rel="noopener noreferrer"
            target="_blank"
          >
            <FontAwesomeIcon icon={faTwitter} size="1x" color="#444444" />
          </a>
          <a
            href="https://www.facebook.com/groups/free.code.camp.nashville/permalink/1479740658703738/"
            aria-label="Facebook"
            rel="noopener noreferrer"
            target="_blank"
          >
            <FontAwesomeIcon icon={faFacebook} size="1x" color="#444444" />
          </a>
        </div>
        <div className={componentStyles.emailAndCopyright}>
          <div>
            <a
              href="mailto:[email protected]"
              className={componentStyles.emailLink}
            >
              <FontAwesomeIcon icon={faEnvelope} size="2x" color="white" />
              <p className={componentStyles.emailName}>[email protected]</p>{' '}
              {/* This will change to something else once we setup a domain */}
            </a>
            <p>© 2021 FreeCodeCamp Nashville</p>
          </div>

          <a href="https://www.netlify.com">
            <img
              src="https://www.netlify.com/img/global/badges/netlify-color-accent.svg"
              alt="Deploys by Netlify"
            />
          </a>
        </div>
      </nav>
    </footer>
  );
}
Example #10
Source File: RegisterFaIcons.jsx    From frontend-app-authn with GNU Affero General Public License v3.0 5 votes vote down vote up
export default function registerIcons() {
  library.add(faApple, faFacebook, faGoogle, faMicrosoft);
}
Example #11
Source File: index.js    From Webiu with MIT License 5 votes vote down vote up
SocialMedia = ({facebookProfile, twitterProfile, header, width, height}) => {
  const facebookEmbedLink = `https://www.facebook.com/plugins/page.php?href=https%3A%2F%2Fwww.facebook.com%2F
                             ${facebookProfile}%2F&tabs=timeline&width=340&height=500&small_header=false&
                             adapt_container_width=true&hide_cover=false&show_facepile=true&appId`;

  const twitterEmbedLink = `https://twitter.com/${twitterProfile}?ref_src=twsrc%5Etfw`;

  return (
    <div className="embed-component">
      { header ? 
        <div className="header-component">
         <h3><FontAwesomeIcon className="icon-h2" icon={faFacebook} /> {header}</h3>
        </div>
       : null }
      <div>
      <div className="embed-div">
        <Row className="embed-row">
          {facebookProfile ? <Col md={6} className="embed-col">
            <div className="embed-facebook">
              <iframe src={facebookEmbedLink} width={width} height={height}
                      style={{border:"none", overflow: "hidden"}} scrolling="no" 
                      frameborder="0" allowfullscreen="true" title="Facebook-Profile"
                      allow="autoplay; clipboard-write; encrypted-media; picture-in-picture; web-share">
              </iframe>
            </div>
          </Col> : null}
          {twitterProfile ? <Col md={6} className="embed-col">
            <div style={{width: width, height: height}} className="embed-twitter">
                <a class="twitter-timeline twitter-feed" width={width} 
                   height={height} href={twitterEmbedLink}>
                   Tweets by {twitterProfile}
                </a>
            </div>
            <Helmet style={{width: width, height: height}}>
                <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
            </Helmet>
          </Col> : null}
        </Row>
      </div>
      </div>
    </div>
  )
}
Example #12
Source File: Footer.js    From Oud with MIT License 4 votes vote down vote up
/**
 * the footer function
 * @function
 * @returns {JSX}
 */
function Footer() {
  return (
    <div>
      <footer className="main-footer">
        <div className="footer-middle Ffooter-middle">
          <div className="container">
            <div className="row">
              {/* Column 1 */}
              <div className="col-md-3 col-sm-6">
                <Link to="/welcomeUser">
                  <img
                    data-testid="logoImage"
                    className="img-responsive img-resp "
                    src={logo}
                    alt="Oud logo"
                  />
                </Link>
              </div>
              {/* Column 2 */}
              <div className="col-md-3 col-sm-6">
                <h5
                  data-testid="Company"
                  className="font-weight-bold text-uppercase mt-3 mb-4"
                >
                  Company
                </h5>
                <ul className="list-unstyled ListMain hovergold ">
                  <li className="ListItem">
                    <Link data-testid="About" to="/about">
                      About
                    </Link>
                  </li>
                  <li className="ListItem">
                    <Link data-testid="Features" to="/features">
                      Features
                    </Link>
                  </li>
                  <li className="ListItem">
                    <Link data-testid="Help" to="/help">
                      Help
                    </Link>
                  </li>
                </ul>
              </div>
              {/* Column 3 */}
              <div className="col-md-3 col-sm-6">
                <h5
                  data-testid="Others"
                  className="font-weight-bold text-uppercase mt-3 mb-4"
                >
                  Others
                </h5>

                <ul className="list-unstyled ListMain hovergold">
                  <li className="ListItem">
                    <Link data-testid="Artists" to="/forartists">
                      For Artists
                    </Link>
                  </li>
                  <li className="ListItem">
                    <Link data-testid="contact_us" to="/contactus">
                      contact us
                    </Link>
                  </li>
                </ul>
              </div>
              {/* Column 4 */}
              <div className="col-md-3 col-sm-6">
                <h5
                  data-testid="Links"
                  className="font-weight-bold text-uppercase mt-3 mb-4"
                >
                  Links
                </h5>

                <ul className="list-unstyled ListMain hovergold">
                  <li className="ListItem">
                    <Link data-testid="WePlayer" to="/">
                      Web Player
                    </Link>
                  </li>
                  <li className="ListItem">
                    <Link data-testid="MobileApp" to="/android">
                      Free Mobile App
                    </Link>
                  </li>
                </ul>
              </div>
              {/* Column 5 */}
              <div className="col-md-3 col-sm-6 ml-auto">
                <ul className="list-unstyled ListMain list-inline text-center">
                  <li
                    data-testid="faFacebook"
                    className="list-inline-item fa-2x "
                  >
                    <FontAwesomeIcon icon={faFacebook} />
                  </li>
                  <li
                    data-testid="faTwitter"
                    className="list-inline-item fa-2x"
                  >
                    <FontAwesomeIcon icon={faTwitter} />
                  </li>
                  <li
                    data-testid="faInstagram"
                    className="list-inline-item fa-2x"
                  >
                    <FontAwesomeIcon icon={faInstagram} />
                  </li>
                  <li
                    data-testid="faYoutube"
                    className="list-inline-item fa-2x"
                  >
                    <FontAwesomeIcon icon={faYoutube} />
                  </li>
                </ul>
              </div>
            </div>
            {/* Footer Bottom */}
            <div className="footer-bottom Ffooter-bottom">
              <p className="text-xs-center">
                &copy;{new Date().getFullYear()} Oud - All Rights Reserved
              </p>
            </div>
          </div>
        </div>
      </footer>

      <div></div>
    </div>
  );
}
Example #13
Source File: footer.js    From Frontend with Apache License 2.0 4 votes vote down vote up
//FUCNTIONAL COMPONENT

function Footer() {
  return (
    <div className="footer">
      <div className="container">
        <div className="row justify-content-center">
          <div className="col-6 col-sm-3">
            <h5>Links</h5>
            <br />
            <ul className="list-unstyled">
              <li>
                <Link to="/">Home</Link>
              </li>
              <li>
                <Link to="/aboutus">About</Link>
              </li>

              <li>
                <Link to="/privacy">Privacy Policy</Link>
              </li>
              <li>
                <Link to="/terms">Terms of Service</Link>
              </li>
            </ul>
          </div>
          <div className="col-12 col-sm-3 contactUs">
            <h5>Contact Us</h5>
            <br />
            <div>
              <FontAwesomeIcon icon={faEnvelope} size="md" /> :{' '}
              <a href="mailto:[email protected]">
                [email protected]
              </a>
            </div>
            <a href="https://forms.gle/cL9ECdGDf6njYhV66" target="_blank">
              Feedback
            </a>
          </div>

          <div className="col-12 col-sm-3">
            <div>
              <h5>Follow Us</h5>
              <br />
              <a
                target="_blank"
                className="social_media"
                href="https://www.facebook.com/practicewithcodedigger"
              >
                <FontAwesomeIcon icon={faFacebook} size="2x" />
              </a>
              <a
                target="_blank"
                className="social_media"
                href="https://www.linkedin.com/company/codedigger"
              >
                <FontAwesomeIcon icon={faLinkedin} size="2x" />
              </a>
              <a
                target="_blank"
                className="social_media"
                href="https://github.com/Code-dig-ger"
              >
                <FontAwesomeIcon icon={faGithub} size="2x" />
              </a>
              <a
                target="_blank"
                className="social_media"
                href="https://www.youtube.com/channel/UCY5XRYpEGKT9cpzZmfWvh6A"
              >
                <FontAwesomeIcon icon={faYoutube} size="2x" />
              </a>
            </div>
          </div>
        </div>
        <div className="row justify-content-center">
          <div className="col-auto">
            <p>© Copyright Codedigger 2021</p>
          </div>
        </div>
      </div>
    </div>
  )
}
Example #14
Source File: footer.js    From Girscript-Community-Website with MIT License 4 votes vote down vote up
Footer = () => {
  return (
    <React.Fragment>
      <footer className={style["footer"]}>
        <div className={style["footer-addr"]}>
        <img src={images} alt="img" height="60px" width="260px" />
          <address>
            <div style={{color:"#da6d28"}}><b>MAILING ADDRESS </b></div>
            <i className="fas fa-map-marker-alt"></i> 123 Anywhere St., Any City, State, Country 12345
            <br />
          </address>
          <div style={{color:"#da6d28"}}><b>EMAIL ADDRESS </b></div>
            [email protected]
            
        </div>
        <ul className={style["footer-nav"]}>
          <li className={style["nav-item"]}>
            <h2 className={style["nav-title"]}>NAVIGATION</h2>

            <ul className={style["nav-ul"]}>
              <li>
                <Link to="/">About Us</Link>
              </li>

              <li>
                <Link to="/">Contact</Link>
              </li>

              <li>
                <Link to="/">Event</Link>
              </li>

              <li>
                <Link to="/faqs">FAQs</Link>
              </li>
            </ul>
          </li>

          <li className={style["nav-item"]}>
            <h2 className={style["nav-title"]}>OTHER</h2>

            <ul className={style["nav-ul"]}>
              <li>
                <Link to="/">Privacy Policy</Link>
              </li>

              <li>
                <Link to="/">Terms of Use</Link>
              </li>

              <li>
                <Link to="/">Code of Conduct</Link>
              </li>
            </ul>
          </li>
          <li className={style["nav-item"]}>
            <h2 className={style["nav-title"]}>SOCIAL</h2>
            <ul className={style["nav-ul"]}>
              <li>Be sure to give us a follow on the below social links</li>
            </ul>
            <div className={`col ${style["col"]}`}>
              <ul className={style["social"]}>
                <li>
                  <a
                    href="https://www.facebook.com/Girlscript"
                    target="_blank"
                    rel="noopener noreferrer"
                  ><FontAwesomeIcon icon={faFacebook} size="lg" style={{ color: "#fff" }}/>
                  </a>
                </li>
                <li>
                  <a
                    href="https://twitter.com/girlscript1"
                    target="_blank"
                    rel="noopener noreferrer"
                  ><FontAwesomeIcon icon={faTwitter} size="lg" style={{ color: "#fff" }}/>
                  </a>
                </li>
                <li>
                  <a
                    href="mailto:[email protected]"
                    target="_blank"
                    rel="noopener noreferrer"
                  ><FontAwesomeIcon icon={faEnvelope} size="lg" style={{ color: "#fff" }}/>
                  </a>
                </li>
              </ul>
            </div>
          </li>
        </ul>
        <div className={style["footer-dash"]}>
          <div className={style["footer-text"]}> 
            <p>
              <b>Made with <FontAwesomeIcon icon={faHeart} style={{ color: "#DB3328" }}/> by
              GirlScript Community</b>
            </p>
          </div>
        </div>
      </footer>
    </React.Fragment>
  );
}
Example #15
Source File: Campaign.jsx    From journey.io with MIT License 4 votes vote down vote up
render() {
    console.log('state', this.state);
    const getId = url => {
      const regExp = /^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/;
      const match = url.match(regExp);
      return match && match[2].length === 11 ? match[2] : null;
    };
    const videoUrl = this.state.campaignLinks.video || '';
    const videoId = getId(videoUrl);
    const campaignDisplay =
      Object.keys(this.state.campaignLinks).length > 0 ? (
        <div>
          <iframe
            width="290"
            height="200"
            src={`http://www.youtube.com/embed/${videoId}`}
            frameBorder="0"
          />
          <br />
          <br />
          <div className="d-flex flex-row">
            <a
              className="socialMediaLink"
              href={this.state.campaignLinks.spotify}
            >
              <FontAwesomeIcon
                style={{ width: '2vw', height: '2vw' }}
                icon={faSpotify}
              />
            </a>
            <br />
            <a
              className="socialMediaLink"
              href={this.state.campaignLinks.instagram}
            >
              <FontAwesomeIcon
                style={{ width: '2vw', height: '2vw' }}
                icon={faInstagram}
              />
            </a>
            <br />
            <a
              className="socialMediaLink"
              href={this.state.campaignLinks.facebook}
            >
              <FontAwesomeIcon
                style={{ width: '2vw', height: '2vw' }}
                icon={faFacebook}
              />
            </a>
            <br />
            <a
              className="socialMediaLink"
              href={this.state.campaignLinks.soundcloud}
            >
              <FontAwesomeIcon
                style={{ width: '2vw', height: '2vw' }}
                icon={faSoundcloud}
              />
            </a>
            <br />
            <a
              className="socialMediaLink"
              href={this.state.campaignLinks.twitter}
            >
              <FontAwesomeIcon
                style={{ width: '2vw', height: '2vw' }}
                icon={faTwitter}
              />
            </a>
            <br />
            <a
              className="socialMediaLink"
              href={this.state.campaignLinks.youtube}
            >
              <FontAwesomeIcon
                style={{ width: '2vw', height: '2vw' }}
                icon={faYoutube}
              />
            </a>
            <br />
            <br />
          </div>
          {this.state.campaignLinks.bio}
          <br />
          <br />
        </div>
      ) : (
        <div></div>
      );
    return (
      <div className="d-flex mx-auto">
        <Card
          style={{ width: '60em' }}
          className="mx-auto justify-content-center shadow p-3 mb-5 bg-white rounded row justify-content-center align-self-center"
        >
          <Card.Title>
            <h2>
              Let {this.props.artistName} know that you want to see them in your
              city!
            </h2>
          </Card.Title>
          <br />
          <div className="row">
            <div className="col-8">
              <Map campaignId={this.props.campaignId} />
            </div>
            <div className="col-4">
              {campaignDisplay}
              <LocationSearchInput
                handleChange={this.handleChange}
                handleSelect={this.handleSelect}
                submitInterest={this.submitInterest}
                address={this.state.address}
              />
            </div>
          </div>
        </Card>
      </div>
    );
  }