feat: add imprint to footer

This commit is contained in:
Mathias Schopmans
2024-03-05 09:22:36 +01:00
committed by Mathias Schopmans
parent 8a982b9956
commit 6dd5d5c017
3 changed files with 24 additions and 1 deletions

View File

@@ -14,6 +14,18 @@
margin: 0 0 30px; 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) { @media (min-width: 768px) {
.branding { .branding {
display: flex; display: flex;
@@ -28,6 +40,10 @@
.description { .description {
margin: 0 50px 0; margin: 0 50px 0;
} }
.imprint {
text-align: right;
}
} }
@media (min-width: 768px) and (max-width: 1023px) { @media (min-width: 768px) and (max-width: 1023px) {

View File

@@ -2,7 +2,7 @@ import logo from "../../../public/logo.svg";
import styles from "./Footer.module.css"; import styles from "./Footer.module.css";
import { SocialLinks } from "@/components/SocialLinks/SocialLinks"; import { SocialLinks } from "@/components/SocialLinks/SocialLinks";
import { getAppName, getLabel } from "@/lib/data"; import { getAppName, getImprintUrl, getLabel } from "@/lib/data";
export function Footer() { export function Footer() {
return ( return (
@@ -12,6 +12,9 @@ export function Footer() {
<p className={styles.description}>{getLabel("footer")}</p> <p className={styles.description}>{getLabel("footer")}</p>
<SocialLinks className={styles.socialLinks} /> <SocialLinks className={styles.socialLinks} />
</div> </div>
<a href={getImprintUrl()} className={styles.imprint} target="_blank">
{getLabel("imprint")}
</a>
</div> </div>
); );
} }

View File

@@ -62,6 +62,10 @@ export function getItems(quadrant?: string, featured?: boolean): Item[] {
}) as Item[]; }) as Item[];
} }
export function getImprintUrl() {
return config.imprint;
}
export function getItem(id: string): Item | undefined { export function getItem(id: string): Item | undefined {
return data.items.find((item) => item.id === id) as Item; return data.items.find((item) => item.id === id) as Item;
} }