@fortawesome/free-brands-svg-icons#faTelegramPlane TypeScript Examples

The following examples show how to use @fortawesome/free-brands-svg-icons#faTelegramPlane. 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: app.component.ts    From gnosis.1inch.exchange with MIT License 5 votes vote down vote up
telegramIcon = faTelegramPlane;
Example #2
Source File: Footer.tsx    From devex with GNU General Public License v3.0 4 votes vote down vote up
Footer: React.FC = () => {

  const themeContext = useContext(ThemeContext)
  const { theme, toggle } = themeContext!

  return <div className='custom-footer'>
    <Container>
      <Row className='justify-content-between'>
        <Col sm md lg={2}>
          <Row>
            <span className='social-header'>Social</span>
          </Row>
          <Row>
            <a target='_blank' rel='noopener noreferrer' href='https://www.twitter.com/zilliqa'>
              <FontAwesomeIcon size='lg' icon={faTwitter} cursor='pointer' />
            </a>
            <a target='_blank' rel='noopener noreferrer' href='https://www.facebook.com/zilliqa/'>
              <FontAwesomeIcon size='lg' icon={faFacebookF} cursor='pointer' />
            </a>
            <a target='_blank' rel='noopener noreferrer' href='https://www.reddit.com/r/zilliqa'>
              <FontAwesomeIcon size='lg' icon={faRedditAlien} cursor='pointer' />
            </a>
          </Row>
          <Row>
            <a target='_blank' rel='noopener noreferrer' href='https://blog.zilliqa.com'>
              <FontAwesomeIcon size='lg' icon={faMediumM} cursor='pointer' />
            </a>
            <a target='_blank' rel='noopener noreferrer' href='https://www.youtube.com/channel/UCvinnFbf0u71cajoxKcfZIQ'>
              <FontAwesomeIcon size='lg' icon={faYoutube} cursor='pointer' />
            </a>
            <a target='_blank' rel='noopener noreferrer' href='https://t.me/zilliqachat'>
              <FontAwesomeIcon size='lg' icon={faTelegramPlane} cursor='pointer' />
            </a>
          </Row>
        </Col>
        <Col>
          <span className='related-links-header'>Related Links</span>
          <div>
            <a target='_blank' rel='noopener noreferrer' href='https://github.com/Zilliqa/dev-explorer'>Project Repo</a>
          </div>
          <div>
            <a target='_blank' rel='noopener noreferrer' href='https://ide.zilliqa.com/#/'>Neo Savant IDE</a>
          </div>
          <div>
            <a target='_blank' rel='noopener noreferrer' href='https://github.com/Zilliqa/Zilliqa-JavaScript-Library'>Javascript SDK</a>
          </div>
          <div>
            <a target='_blank' rel='noopener noreferrer' href='https://viewblock.io/zilliqa'>ViewBlock</a>
          </div>
        </Col>
        <Col className='align-self-center'>
          <Row className='justify-content-end'>
            Powered by <a href='http://www.zilliqa.com'>
              <span><u>Zilliqa</u></span></a>
          </Row>
          <Row className='justify-content-end'>
            <span><small>© 2020 Zilliqa</small></span>
          </Row>
          <Row className='justify-content-end pt-1'>
            <OverlayTrigger placement='top'
              overlay={<Tooltip id={'theme-tt'}>Toggle Light/Dark</Tooltip>}>
              <Switch
                className='theme-switch'
                loadingIcon={null}
                onChange={() => {
                  toggle()
                }}
                disabled={false}
                defaultChecked={theme === 'light'}
                checkedChildren={
                  <div className='theme-icon-div'>
                    <FontAwesomeIcon className='theme-icon' icon={faMoon} size='xs' color='white' />
                  </div>}
                unCheckedChildren={
                  <div className='theme-icon-div'>
                    <FontAwesomeIcon className='theme-icon' icon={faSun} size='xs' color='white' />
                  </div>}
              />
            </OverlayTrigger>
          </Row>
        </Col>
      </Row>
    </Container>
  </div >
}
Example #3
Source File: SharePopup.tsx    From argo-react with MIT License 4 votes vote down vote up
SharePopup: React.FC<IPopupProps> = ({
  isOpen,
  link,
  protocol,
  paymentStatus,
}) => {
  const defaultOptions = {
    loop: true,
    autoplay: true,
    animationData: animationData,
    rendererSettings: {
      preserveAspectRatio: "xMidYMid",
    },
  };

  const showProtocolText = (protocol: string, platform: string) => {
    switch (protocol) {
      case "arweave":
        switch (platform) {
          case "twitter":
            return "@ArweaveTeam";
          case "telegram":
            return "@arweavers";
          case "mail":
            return "Arweave";
          case "fb":
            return "Arweave";
          default:
            return "";
        }
      case "skynet":
        switch (platform) {
          case "twitter":
            return "@SkynetLabs";
          case "telegram":
            return "Skynet";
          case "mail":
            return "Skynet";
          case "fb":
            return "Skynet";
          default:
            return "";
        }
      case "neofs":
        switch (platform) {
          case "twitter":
            return "@Neo_Blockchain";
          case "telegram":
            return "@NEO_EN";
          case "mail":
            return "NeoFs";
          case "fb":
            return "NeoFs";
          default:
            return "";
        }
      default:
        return "";
    }
  };

  const shareAchievement = (platform: string) => {
    switch (platform) {
      case "twitter":
        return `I decentralized my web app using @SpheronHQ.%0a%0aCheck it out at ${link} deployed on ${showProtocolText(
          protocol,
          platform,
        )}. ?%0a%0a%23PoweredBySpheron`;
      case "fb":
        return `I decentralized my web app using Spheron Protocol.%0a%0aCheck it out at ${link} deployed on ${showProtocolText(
          protocol,
          platform,
        )}. ?%0a%0a%23PoweredBySpheron`;
      case "telegram":
        return `I decentralized my web app using @argoofficial.%0a%0aCheck it out at ${link} deployed on ${showProtocolText(
          protocol,
          platform,
        )}. ?%0a%0a%23PoweredBySpheron`;
      case "mail":
        return `I decentralized my web app using Spheron Protocol.%0a%0aCheck it out at ${link} deployed on ${showProtocolText(
          protocol,
          platform,
        )}. ?%0a%0a%23PoweredBySpheron`;
      default:
        return "";
    }
  };

  return (
    <Popup
      trigger={
        <button className="share-button" disabled={paymentStatus !== "success"}>
          Share
        </button>
      }
      position="center center"
      open={isOpen}
      className="popup-container"
      modal
    >
      <div className="modal-container">
        <div className="content">
          <div className="share-form">
            <label className="share-form-title">
              <Lottie options={defaultOptions} height={150} />
            </label>
            <label className="share-form-subtitle">
              You have successfully deployed your app!
              <br /> Let your friends know by sharing this achievement.
            </label>
          </div>
          <div className="share-container">
            <a
              href={`https://twitter.com/share?text=${shareAchievement(
                "twitter",
              )}&hashtag=PoweredByArGoApp`}
              target="_blank"
              rel="noopener noreferrer"
            >
              <button className="share-button">
                <FontAwesomeIcon icon={faTwitter} className="share-button-icon" />
              </button>
            </a>
            <a
              href={`https://t.me/share/url?url=${shareAchievement("telegram")}`}
              target="_blank"
              rel="noopener noreferrer"
            >
              <button className="share-button">
                <FontAwesomeIcon
                  icon={faTelegramPlane}
                  className="share-button-icon"
                />
              </button>
            </a>
            {/* <a
              href={`https://www.facebook.com/sharer/sharer.php?quote=${shareAchievement(
                "fb",
              )}`}
              target="_blank"
              rel="noopener noreferrer"
            >
              <button className="share-button">
                <FontAwesomeIcon icon={faFacebookF} className="share-button-icon" />
              </button>
            </a> */}
            <a
              href={`mailto:?subject=Check out my latest App &body=${shareAchievement(
                "mail",
              )}`}
              target="_blank"
              rel="noopener noreferrer"
            >
              <button className="share-button">
                <FontAwesomeIcon icon={faEnvelope} className="share-button-icon" />
              </button>
            </a>
          </div>
        </div>
      </div>
    </Popup>
  );
}