Created the Footer.jsx
This commit is contained in:
parent
8d0000d5e7
commit
fcce9589a3
31
client/src/common/components/Footer/Footer.jsx
Normal file
31
client/src/common/components/Footer/Footer.jsx
Normal file
@ -0,0 +1,31 @@
|
||||
import "./styles.sass";
|
||||
import Logo from "@/common/images/bs2ab.png";
|
||||
import {Link, useLocation} from "react-router-dom";
|
||||
import {FontAwesomeIcon} from "@fortawesome/react-fontawesome";
|
||||
import {faHome} from "@fortawesome/free-solid-svg-icons";
|
||||
|
||||
export const Footer = () => {
|
||||
const location = useLocation();
|
||||
|
||||
const isLegalPage = location.pathname === "/imprint" || location.pathname === "/privacy";
|
||||
|
||||
return (
|
||||
<footer>
|
||||
<div className="footer-left">
|
||||
<a className="glassy footer-info" href="https://www.bs2ab.de/" target="_blank" rel="noreferrer">
|
||||
<img src={Logo} alt="Logo"/>
|
||||
<h2>Erstellt in Zusammenarbeit mit BS2AB</h2>
|
||||
</a>
|
||||
|
||||
{isLegalPage && <Link className="glassy footer-home" to="/">
|
||||
<FontAwesomeIcon icon={faHome}/>
|
||||
</Link>}
|
||||
</div>
|
||||
|
||||
<div className="glassy footer-legal">
|
||||
<Link to={"/privacy"}>Datenschutz</Link>
|
||||
<Link to={"/imprint"}>Impressum</Link>
|
||||
</div>
|
||||
</footer>
|
||||
)
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user