@fortawesome/free-brands-svg-icons#faInstagram JavaScript Examples
The following examples show how to use
@fortawesome/free-brands-svg-icons#faInstagram.
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 |
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>© 1991 - {new Date().getFullYear()} All rights reserved.</div>
</div>
)
}
Example #2
Source File: index.js From official-website-backend with MIT License | 6 votes |
/**
* 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 gatsby-blog-mdx with MIT License | 5 votes |
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 #4
Source File: footer.js From web-frontend with MIT License | 5 votes |
render() {
return (
<div id="footer">
<div className="kontak">
<Container className="footer" fluid>
<Row className="cp">
<Col lg="3">
<a
href="https://api.whatsapp.com/send?phone=6282282512539"
target="_blank"
rel="noreferrer">
<FontAwesomeIcon icon={faWhatsapp} /> <p>0822-825-12539</p>{" "}
</a>
</Col>
<Col lg="3">
<a
href="https://www.instagram.com/palembang_digital/"
target="_blank"
rel="noreferrer">
<FontAwesomeIcon icon={faInstagram} />{" "}
<p>palembang_digital</p>
</a>
</Col>
<Col lg="3">
<a
href="https://www.youtube.com/channel/UCc2Wluk3SISRSNzNlxaQ1Fw"
target="_blank"
rel="noreferrer">
<FontAwesomeIcon icon={faYoutubeSquare} />{" "}
<p>palembang_digital</p>
</a>
</Col>
<Col lg="3" className="ig">
<a
href="mailto:[email protected]"
target="_blank"
rel="noreferrer">
<FontAwesomeIcon icon={faEnvelopeSquare} />{" "}
<p>[email protected]</p>
</a>
</Col>
</Row>
<hr></hr>
<p>Palembang Digital © 2020</p>
</Container>
</div>
</div>
);
}
Example #5
Source File: Footer.js From Oud with MIT License | 4 votes |
/**
* 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">
©{new Date().getFullYear()} Oud - All Rights Reserved
</p>
</div>
</div>
</div>
</footer>
<div></div>
</div>
);
}
Example #6
Source File: Campaign.jsx From journey.io with MIT License | 4 votes |
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>
);
}