@fortawesome/free-brands-svg-icons#faFacebookSquare JavaScript Examples
The following examples show how to use
@fortawesome/free-brands-svg-icons#faFacebookSquare.
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: Home.jsx From Website with MIT License | 4 votes |
export default function Home() {
const { t } = useTranslation();
// Checks the contents of the NEWS tag
// if not "News" that means we are rendering swedish
swedish = t("HOME.NEWS") !== "News";
return (
<div className="home">
<Parallax className="parallax" blur={0} bgImage={bgImage} bgImageAlt="" strength={300}>
<div className="firstView">
<img src={logo} className="logoLarge" alt="logotype" />
<h1 className="titleLine">______________</h1>
<div className="Icons">
<a
href="https://www.facebook.com/LARVLTU/"
target="_blank"
rel="noopener noreferrer"
>
<FontAwesomeIcon icon={faFacebookSquare} className="icon" />
</a>
<a
href="https://www.instagram.com/larv_teknologkaren/"
target="_blank"
rel="noopener noreferrer"
>
<FontAwesomeIcon icon={faInstagramSquare} className="icon" />
</a>
{/*
<NavLink to="/snapchat"> // Snapchat ikon
<FontAwesomeIcon icon={faSnapchatSquare} className="icon" />
</NavLink>*/}
</div>
<h1>{t("HOME.HEADER")}</h1>
<h1>{t("HOME.DATE")}</h1>
<h1>{t("HOME.FAIR")}</h1>
<Countdown date={larvDate} renderer={renderer}></Countdown>
</div>
</Parallax>
<NavLink exact to="/students/guide" style={{ textDecoration: "none" }}>
<div
calassName="IAOpen"
style={{
backgroundColor: "#8FE381",
fontSize: "200%",
color: "black",
padding: "1%",
}}
>
<b>{t("HOME.ANNOUNCEMENT")}</b>
<p></p>
<b>{t("HOME.ANNOUNCEMENT_2")}</b>
</div>
</NavLink>
<NavLink exact to="/fair/map" style={{ textDecoration: "none" }}>
<div
calassName="IAOpen"
style={{
backgroundColor: "#009dff",
fontSize: "200%",
color: "black",
padding: "1%",
}}
>
<b>LARV-map</b>
<p></p>
<b>{t("HOME.ANNOUNCEMENT_2")}</b>
</div>
</NavLink>
<div className="content">
<div className="info">
<h1>{t("HOME.HEADER_2")}</h1>
<p>{t("HOME.INFO")}</p>
<div className="ButtonDiv">
{/*<a
className="button"
href="https://fair.larv.org/sv/event/4547"
target="_blank"
rel="noopener noreferrer"
>
{t("PLATFORM.BUTTON")}
</a>*/}
<NavLink className="button" to="/students">
{t("GENERAL.STUDENTS")}
</NavLink>
<NavLink className="button" to="/organizations">
{t("GENERAL.ORGANIZATIONS")}
</NavLink>
</div>
</div>
<div className="grey">
<News />
</div>
</div>
</div>
);
}