react-icons/fa APIs
- FaTwitter
- FaGithub
- FaSearch
- FaDiscord
- FaEye
- FaInstagram
- FaPlus
- FaFacebookF
- FaTrash
- FaGlobe
- FaUsers
- FaEdit
- FaListUl
- FaWhatsapp
- FaApple
- FaTimes
- FaMoon
- FaSun
- FaYoutube
- FaInfoCircle
- FaSave
- FaEyeSlash
- FaCheck
- FaRegCheckCircle
- FaExternalLinkAlt
- FaChevronUp
- FaChevronDown
- FaUser
- FaThumbsUp
- FaGoogle
- FaChevronLeft
- FaTrashAlt
- FaCheckCircle
- FaExclamationCircle
- FaCode
- FaFilter
- FaLinkedinIn
- FaHome
- FaAngleRight
- FaAngleLeft
- FaCopy
- FaArrowRight
- FaThumbsDown
- FaTimesCircle
- FaMapMarkedAlt
- FaNetworkWired
- FaFacebook
- FaMedal
- FaQuestionCircle
- FaAppStoreIos
- FaRegNewspaper
- FaLinkedin
- FaAward
- FaSpinner
- FaBell
- FaLink
- FaCog
- FaCaretDown
- FaCaretLeft
- FaCaretRight
- FaRegQuestionCircle
- FaSignInAlt
- FaRegCircle
- FaPlayCircle
- FaBook
- FaMinus
- FaRegClock
- FaRegTimesCircle
- FaUserClock
- FaClipboardCheck
- FaTelegram
- FaToolbox
- FaCalendarAlt
- FaChevronCircleDown
- FaChevronCircleUp
- FaChevronCircleRight
- FaCogs
- FaDownload
- FaSitemap
- FaTrophy
- FaGripVertical
- FaFlagCheckered
- FaMapMarkerAlt
- FaChrome
- FaRegStickyNote
- FaRegSun
- FaTags
- FaGetPocket
- FaRegEdit
- FaRobot
- FaDev
- FaQuora
- FaGraduationCap
- FaClipboard
- FaVine
- FaMicroscope
- FaReact
- FaVuejs
- FaPalette
- FaPen
- FaSmile
- FaPaperPlane
- FaImage
- FaUserPlus
- FaAnchor
- FaCaretUp
- FaRss
- FaRegLightbulb
- FaStar
- FaSignOutAlt
- FaUserMinus
- FaEnvelopeOpenText
- FaPencilAlt
- FaExclamation
- FaUnlock
- FaLock
- FaSlack
- FaUserCircle
- FaEnvelope
- FaKey
- FaRegStar
- FaWrench
- FaMarkdown
- FaArrowCircleLeft
- FaArrowCircleRight
- FaScroll
- FaUserFriends
- FaBolt
- FaExpand
- FaLocationArrow
- FaStopCircle
- FaHandHolding
- FaPhotoVideo
- FaShareAlt
- FaVoicemail
- FaGithubAlt
- FaLifeRing
- FaSyncAlt
- FaSoundcloud
- FaSpotify
- FaHistory
- FaBloggerB
- FaDrawPolygon
- FaHandPaper
- FaHandPointer
- FaPhone
- FaList
- FaMailBulk
- FaHourglass
- FaMediumM
- FaPlay
- FaGift
- FaChevronRight
- FaLongArrowAltRight
- FaMedium
- FaWindowClose
- FaEllipsisH
- FaVolumeUp
- FaVolumeMute
- FaKeyboard
- FaHammer
- FaFileImport
- FaListOl
- FaSquare
- FaFillDrip
- FaUserLock
- FaRegPlusSquare
- FaRegFile
- FaSlash
- FaCloudUploadAlt
- FaBackspace
- FaAngleDoubleRight
- FaAngleDoubleLeft
- FaGlasses
- FaPause
- FaCheckSquare
- FaComment
- FaPrint
- FaShareSquare
- FaChartBar
- FaMagic
- FaBicycle
- FaCat
- FaDirections
- FaGlobeAfrica
- FaMountain
- FaUpload
- FaLightbulb
- FaDocker
- FaTwitterSquare
- FaGlobeAmericas
- FaLinux
- FaFile
- FaDesktop
- FaFacebookMessenger
- FaWpforms
- FaBomb
- FaBars
- FaTabletAlt
- FaMemory
- FaCalendarDay
- Fa500Px
- FaAdobe
- FaAdversal
- FaAirbnb
- FaAlipay
- FaAmazon
- FaAmazonPay
- FaBehanceSquare
- FaInstagramSquare
- FaLaugh
- FaMagento
- FaOpera
- FaYinYang
Other Related APIs
react-icons/fa#FaPlay TypeScript Examples
The following examples show how to use
react-icons/fa#FaPlay.
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.tsx From netflix-clone with GNU General Public License v3.0 | 5 votes |
FeaturedMovie: React.FC<{ movieId: number }> = ({ movieId }) => {
const [movie, setMovie] = useState<MovieProps>({} as MovieProps);
useEffect(() => {
api
.get(
`/tv/${movieId}?language=pt-BR&api_key=${process.env.REACT_APP_API_KEY}`,
)
.then(response => {
const { data } = response;
const seasons = `${data.number_of_seasons} Temporada${
data.number_of_seasons > 1 ? 's' : ''
}`;
const rating = data.vote_average.toString();
const ratingFormatted = rating.includes('.')
? rating.replace('.', '')
: rating.concat('0');
setMovie({
id: data.id,
name: data.original_name,
imageUrl: `https://image.tmdb.org/t/p/original${data.backdrop_path}`,
rating: ratingFormatted,
releaseDate: data.first_air_date.toString().split('-')[0],
seasons,
overview: data.overview,
genres: data.genres.map((genre: any) => genre.name).join(', '),
});
});
}, [movieId]);
return (
<Container>
{movie.id && (
<MovieBackground image={movie.imageUrl}>
<div>
<Content>
<h1>{movie.name}</h1>
<MovieInfo>
<span>{movie.rating}% relevante</span>
<span>{movie.releaseDate}</span>
<span>{movie.seasons || movie.runtime}</span>
</MovieInfo>
<p>{movie.overview}</p>
<span>
<strong>Gêneros:</strong> {movie.genres}
</span>
<MovieButtons>
<MovieButtonPlay href="/">
<FaPlay /> Assistir
</MovieButtonPlay>
<MovieButtonMoreAbout href="/">
<FaInfoCircle /> Mais informações
</MovieButtonMoreAbout>
</MovieButtons>
</Content>
</div>
</MovieBackground>
)}
</Container>
);
}
Example #2
Source File: index.tsx From netflix-clone with GNU General Public License v3.0 | 5 votes |
SectionMovies: React.FC<SectionMoviesProps> = ({ name, movies }) => {
const [marginContent, setMarginContent] = useState(0);
const MAX_WIDTH_CONTENT = useMemo(() => movies.length * 220, [movies]);
const handleScrollMovies = useCallback(
direction => {
setMarginContent(stateMargin => {
const newValue = stateMargin + (direction === 'left' ? -400 : 400);
const isError =
MAX_WIDTH_CONTENT + newValue < window.innerWidth || newValue === 400;
return isError ? stateMargin : newValue;
});
},
[MAX_WIDTH_CONTENT],
);
return (
<Container>
<h1>{name}</h1>
<ButtonLetf type="button" onClick={() => handleScrollMovies('right')}>
<FaChevronLeft />
</ButtonLetf>
<ContentMovies
style={{ marginLeft: marginContent, width: MAX_WIDTH_CONTENT }}
>
{movies.map(movie => (
<Movie key={movie.id}>
<img
src={`https://image.tmdb.org/t/p/w300${movie.poster_path}`}
alt={`Capa do filme/seriado ${movie.name}`}
/>
<MovieCard>
<strong>{movie.name || movie.title}</strong>
<p>{movie.overview}</p>
<MovieCardControll>
<button type="button">
<FaPlay /> Assistir
</button>
<span>
<FaPlus />
</span>
<span>
<FaThumbsUp />
</span>
<span>
<FaThumbsDown />
</span>
</MovieCardControll>
</MovieCard>
</Movie>
))}
</ContentMovies>
<ButtonRight type="button" onClick={() => handleScrollMovies('left')}>
<FaChevronRight />
</ButtonRight>
</Container>
);
}