react-icons/fa#FaCloudUploadAlt TypeScript Examples

The following examples show how to use react-icons/fa#FaCloudUploadAlt. 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: CreateShareSection.tsx    From crosshare with GNU Affero General Public License v3.0 5 votes vote down vote up
export function CreateShareSection(props: { halfWidth: boolean }) {
  const createShareButtonCss = getCreateShareButtonCss(props.halfWidth);

  return (
    <>
      <h2><Trans>Create or Share a Puzzle</Trans></h2>
      <div
        css={{
          display: 'flex',
          alignItems: 'flex-start',
          justifyContent: 'space-between',
          flexDirection: 'column',
          [props.halfWidth ? LARGE_AND_UP : SMALL_AND_UP]: {
            flexDirection: 'row',
          },
        }}
      >
        <Link css={createShareButtonCss} href="/construct">
          <FaHammer
            css={{ alignSelf: 'center', marginRight: '0.5em', fontSize: '2em' }}
          />
          <div css={{ flex: 1 }}>
            <Trans id="create-button">
              <h4>Create a new puzzle</h4>
              <p
                css={{
                  color: 'var(--text)',
                  display: 'inline-block',
                  textDecoration: 'none !important',
                }}
              >
                Build a crossword puzzle with the Crosshare constructor
              </p>
            </Trans>
          </div>
        </Link>
        <Link css={createShareButtonCss} href="/upload">
          <FaCloudUploadAlt
            css={{ alignSelf: 'center', marginRight: '0.5em', fontSize: '2em' }}
          />
          <div css={{ flex: 1 }}>
            <Trans id="upload-button">
              <h4>Upload a .puz file</h4>
              <p
                css={{
                  color: 'var(--text)',
                  display: 'inline-block',
                  textDecoration: 'none !important',
                }}
              >
                Get a Crosshare link to share with solvers
              </p>
            </Trans>
          </div>
        </Link>
      </div>
    </>
  );
}