@fortawesome/fontawesome-svg-core#IconDefinition JavaScript Examples
The following examples show how to use
@fortawesome/fontawesome-svg-core#IconDefinition.
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: footer.component.js From viade_es2a with BSD 2-Clause "Simplified" License | 6 votes |
Footer = (props: Props) => {
const { t } = props;
const githubIcon: IconLookup = { prefix: 'fab', iconName: 'github' };
const githubIconDef: IconDefinition = findIconDefinition(githubIcon);
return (
<footer className="solid-footer footer">
<section className="solid-footer__content">
<div className="solid-footer__content--copyright">
<ul>
<li>
{t('footer.version')}
{''} <span className="build-value">{process.env.REACT_APP_VERSION}</span>
</li>
</ul>
</div>
<div className="solid-footer__content--links">
<ul>
<li>
<a
href="https://github.com/Arquisoft/viade_es2a"
target="_blank"
rel="noopener noreferrer"
>
<FontAwesomeIcon className="link-icon" icon={githubIconDef} />
{process.env.REACT_APP_NAME}
</a>
</li>
</ul>
</div>
</section>
</footer>
);
}
Example #2
Source File: footer.component.js From portal with GNU General Public License v3.0 | 6 votes |
Footer = (props: Props) => {
const { t } = props;
const githubIcon: IconLookup = { prefix: 'fab', iconName: 'github' };
const githubIconDef: IconDefinition = findIconDefinition(githubIcon);
return (
<footer className="solid-footer footer">
<section className="solid-footer__content">
<div className="solid-footer__content--copyright">
<ul>
<li>© {process.env.REACT_APP_COMPANY_NAME}</li>
<li>
{t('footer.version')}
{''} <span className="build-value">{process.env.REACT_APP_VERSION}</span>
</li>
</ul>
</div>
<div className="solid-footer__content--links">
<ul>
<li>
<a
href="https://github.com/steamory/portal"
target="_blank"
rel="noopener noreferrer"
>
<FontAwesomeIcon className="link-icon" icon={githubIconDef} />
Portal
</a>
</li>
</ul>
</div>
</section>
</footer>
);
}