feat: add imprint to footer
This commit is contained in:
committed by
Mathias Schopmans
parent
8a982b9956
commit
6dd5d5c017
@@ -14,6 +14,18 @@
|
||||
margin: 0 0 30px;
|
||||
}
|
||||
|
||||
.imprint {
|
||||
opacity: 0.7;
|
||||
display: block;
|
||||
font-size: 12px;
|
||||
text-decoration: underline;
|
||||
text-align: center;
|
||||
|
||||
&:hover {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 768px) {
|
||||
.branding {
|
||||
display: flex;
|
||||
@@ -28,6 +40,10 @@
|
||||
.description {
|
||||
margin: 0 50px 0;
|
||||
}
|
||||
|
||||
.imprint {
|
||||
text-align: right;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 768px) and (max-width: 1023px) {
|
||||
|
||||
@@ -2,7 +2,7 @@ import logo from "../../../public/logo.svg";
|
||||
import styles from "./Footer.module.css";
|
||||
|
||||
import { SocialLinks } from "@/components/SocialLinks/SocialLinks";
|
||||
import { getAppName, getLabel } from "@/lib/data";
|
||||
import { getAppName, getImprintUrl, getLabel } from "@/lib/data";
|
||||
|
||||
export function Footer() {
|
||||
return (
|
||||
@@ -12,6 +12,9 @@ export function Footer() {
|
||||
<p className={styles.description}>{getLabel("footer")}</p>
|
||||
<SocialLinks className={styles.socialLinks} />
|
||||
</div>
|
||||
<a href={getImprintUrl()} className={styles.imprint} target="_blank">
|
||||
{getLabel("imprint")}
|
||||
</a>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -62,6 +62,10 @@ export function getItems(quadrant?: string, featured?: boolean): Item[] {
|
||||
}) as Item[];
|
||||
}
|
||||
|
||||
export function getImprintUrl() {
|
||||
return config.imprint;
|
||||
}
|
||||
|
||||
export function getItem(id: string): Item | undefined {
|
||||
return data.items.find((item) => item.id === id) as Item;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user