@fortawesome/free-brands-svg-icons#faYoutube TypeScript Examples
The following examples show how to use
@fortawesome/free-brands-svg-icons#faYoutube.
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: core.module.ts From enterprise-ng-2020-workshop with MIT License | 6 votes |
constructor(
@Optional()
@SkipSelf()
parentModule: CoreModule,
faIconLibrary: FaIconLibrary
) {
if (parentModule) {
throw new Error('CoreModule is already loaded. Import only in AppModule');
}
faIconLibrary.addIcons(
faCog,
faBars,
faRocket,
faPowerOff,
faUserCircle,
faPlayCircle,
faGithub,
faMediumM,
faTwitter,
faInstagram,
faYoutube
);
}
Example #2
Source File: helpers.tsx From sync-party with GNU General Public License v3.0 | 6 votes |
getIconFromFileType = (url: string): IconProp => {
let icon: IconDefinition;
if (testMediaType(url) === 'audio') {
icon = faMusic;
} else if (testMediaType(url) === 'video') {
icon = faFilm;
} else if (getSite(url) === 'youtube') {
icon = faYoutube;
} else if (getSite(url) === 'soundcloud') {
icon = faSoundcloud;
} else if (getSite(url) === 'twitch') {
icon = faTwitch;
} else {
icon = faFile;
}
return icon;
}
Example #3
Source File: app.component.ts From gnosis.1inch.exchange with MIT License | 5 votes |
youtubeIcon = faYoutube;
Example #4
Source File: profile.ts From resume-nextjs with MIT License | 5 votes |
profile: IProfile.Payload = {
disable: false,
// image: 'https://resume.yowu.dev/static/image/profile_2019.png',
image,
name: {
title: 'Lorem ipsum',
small: '(LI)',
},
contact: [
{
title: '[email protected]',
link: '#',
icon: faEnvelope,
},
{
title: 'Please contact me by email',
icon: faPhone,
badge: true,
},
{
title: 'https://github.com',
link: 'https://github.com/uyu423/resume-nextjs',
icon: faGithub,
},
{
link: 'https://www.facebook.com/iu.loen',
icon: faFacebook,
},
{
title: 'YouTube',
link: 'https://www.youtube.com/channel/UC3SyT4_WLHzN7JmHQwKQZww',
// icon: faRss,
icon: faYoutube,
},
],
notice: {
title: "This resume is a sample page of 'https://github.com/uyu423/resume-nextjs'.",
icon: faBell,
},
}
Example #5
Source File: Footer.tsx From devex with GNU General Public License v3.0 | 4 votes |
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 #6
Source File: index.tsx From website with MIT License | 4 votes |
Footer: React.FC<FooterProps> = ({ mainClasses }) => {
const { socialnetworks, footerNavItems } = useSettings();
const currentYear = new Date().getFullYear();
return (
<footer className={` ${mainClasses} mt-40 border-t border-zinc-500 w-full`}>
<div className="container flex justify-center w-full py-16 mx-auto text-primary md:justify-between">
<div className="flex flex-col justify-center w-full text-center">
<div className="flex flex-col justify-between w-full md:flex-row">
<div className="flex flex-col gap-1 pb-8 font-medium md:pb-3">
{footerNavItems?.map(({ link, title }) => (
<Link href={link.value} key={link.value}>
<a className="md:mr-10 md:text-left">{title}</a>
</Link>
))}
</div>
<div className="flex flex-col gap-3">
<p className="font-medium text-center md:text-left">
Encuéntranos en
</p>
<div className="flex justify-center gap-3 md:justify-start">
{socialnetworks?.twitter && (
<Link href={socialnetworks?.twitter}>
<a
target="_blank"
className="grid w-6 h-6 rounded-full place-items-center"
>
<FontAwesomeIcon icon={faTwitter} size="lg" />
</a>
</Link>
)}
{socialnetworks?.instagram && (
<Link href={socialnetworks?.instagram}>
<a
target="_blank"
className="grid w-6 h-6 rounded-full place-items-center"
>
<FontAwesomeIcon icon={faInstagram} size="lg" />
</a>
</Link>
)}
{socialnetworks?.github && (
<Link href={socialnetworks?.github}>
<a
target="_blank"
className="grid w-6 h-6 rounded-full place-items-center"
>
<FontAwesomeIcon icon={faGithub} size="lg" />
</a>
</Link>
)}
{socialnetworks?.youtube && (
<Link href={socialnetworks?.youtube}>
<a
target="_blank"
className="grid w-6 h-6 rounded-full place-items-center"
>
<FontAwesomeIcon icon={faYoutube} size="lg" />
</a>
</Link>
)}
{socialnetworks?.linkedin && (
<Link href={socialnetworks?.linkedin}>
<a
target="_blank"
className="grid w-6 h-6 rounded-full place-items-center "
>
<FontAwesomeIcon icon={faLinkedin} size="lg" />
</a>
</Link>
)}
{socialnetworks?.twitch && (
<Link href={socialnetworks?.twitch}>
<a
target="_blank"
className="grid w-6 h-6 rounded-full place-items-center"
>
<FontAwesomeIcon icon={faTwitch} size="lg" />
</a>
</Link>
)}
</div>
</div>
</div>
<div className="flex flex-col items-center mt-16 md:flex-row">
<div>
<p className="mb-2 font-light md:mr-4">
© FrontendCafé {currentYear}
</p>
</div>
<div>
<Link href="https://vercel.com/?utm_source=hifrontendcafe&utm_campaign=oss">
<a target="_blank" rel="noopener noreferrer">
<Image
src={logo_vercel}
alt="Powered by Vercel"
placeholder="blur"
blurDataURL={logo_vercel}
/>
</a>
</Link>
</div>
</div>
</div>
</div>
</footer>
);
}