-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Konzeption der Seite Impressum (#12)
Co-authored-by: Thomas Schley <thomas.schley@lmis.de>
- Loading branch information
Showing
21 changed files
with
3,660 additions
and
15,622 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,10 @@ | ||
body { | ||
html, body, #root { | ||
height: 100%; | ||
margin: 0; | ||
padding: 0; | ||
} | ||
|
||
body { | ||
font-family: 'Arial', sans-serif; | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
.footer { | ||
background-color: #0E172D; | ||
display: flex; | ||
justify-content: center; | ||
gap: 40px; | ||
list-style: none; | ||
padding: 20px 40px; | ||
a { | ||
color: white; | ||
font-size: x-large; | ||
text-decoration: none; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import styles from './Footer.module.css'; | ||
import {NavLink} from 'react-router'; | ||
|
||
function Footer() { | ||
|
||
const links = [ | ||
{ url: '/impressum', label: 'Impressum' }, | ||
]; | ||
|
||
const list = links.map((link, index) => { | ||
return <NavLink to={link.url} key={index}>{ link.label }</NavLink> | ||
}); | ||
|
||
return <nav className={styles.footer}>{ list }</nav>; | ||
} | ||
|
||
export default Footer; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
.header { | ||
background-color: #0E172D; | ||
color: white; | ||
font-size: xxx-large; | ||
padding: 20px 40px; | ||
text-align: center; | ||
text-decoration: none; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import React from 'react'; | ||
import styles from './Header.module.css'; | ||
import {Link} from 'react-router'; | ||
|
||
function Header() { | ||
return <Link className={styles.header} to="/">AquaBRain</Link>; | ||
} | ||
|
||
export default Header; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
.container { | ||
display: flex; | ||
flex-direction: column; | ||
height: 100%; | ||
} | ||
|
||
.content { | ||
padding: 40px; | ||
flex-grow: 1; | ||
overflow-y: auto; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
import { | ||
isRouteErrorResponse, | ||
Links, | ||
LinksFunction, | ||
Meta, | ||
Outlet, | ||
Scripts, | ||
ScrollRestoration, useRouteError | ||
} from 'react-router'; | ||
|
||
import stylesheet from './app.css?url'; | ||
import React from 'react'; | ||
import Header from './components/Header'; | ||
import Footer from './components/Footer'; | ||
import styles from './root.module.css'; | ||
|
||
export const links: LinksFunction = () => [ | ||
{ rel: 'stylesheet', href: stylesheet }, | ||
] | ||
|
||
export function Layout({children}: { children: React.ReactNode }) { | ||
return ( | ||
<html lang="de"> | ||
<head> | ||
<meta charSet="utf-8"/> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"/> | ||
<title>AquaBRain</title> | ||
<Meta/> | ||
<Links/> | ||
</head> | ||
<body> | ||
<div className={styles.container}> | ||
<Header/> | ||
<div className={styles.content}>{children}</div> | ||
<Footer/> | ||
</div> | ||
<ScrollRestoration/> | ||
<Scripts/> | ||
</body> | ||
</html> | ||
); | ||
} | ||
|
||
export default function App() { | ||
return <Outlet/>; | ||
} | ||
|
||
export function ErrorBoundary() { | ||
const error = useRouteError(); | ||
|
||
let message = 'Oops!'; | ||
let details = 'An unexpected error occured.'; | ||
let stack: string | undefined; | ||
|
||
if (isRouteErrorResponse(error)) { | ||
message = error.status === 404 ? '404' : 'Error'; | ||
details = error.status === 404 ? "The requested page could not be found" : error.statusText || details; | ||
} else if (import.meta.env.DEV && error && error instanceof Error) { | ||
details = error.message; | ||
stack = error.stack; | ||
} | ||
|
||
return ( | ||
<main className="pt-16 p-4 container mx-auto"> | ||
<h1>{message}</h1> | ||
<p>{details}</p> | ||
{stack && ( | ||
<pre className="w-full p-4 overflow-x-auto"> | ||
<code>{stack}</code> | ||
</pre> | ||
)} | ||
</main> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import {route, RouteConfig} from '@react-router/dev/routes'; | ||
|
||
export default [ | ||
route('impressum', './routes/Impressum.tsx') | ||
] satisfies RouteConfig; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
body { | ||
counter-reset: disclaimer; | ||
} | ||
|
||
.firstCounter::before { | ||
counter-increment: disclaimer; | ||
content: counter(disclaimer) ". "; | ||
} | ||
.counter::before { | ||
counter-increment: disclaimer; | ||
content: counter(disclaimer) ". "; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
import styles from './Impressum.module.css'; | ||
import {Link} from "react-router"; | ||
|
||
function Impressum() { | ||
|
||
const phone = '+49 (0)581 / 82-0'; | ||
const fax = '+49 (0)581 / 82-445'; | ||
const email = '5gla@landkreis-uelzen.de'; | ||
const salesTaxIdentificationNumber = 'DE116678257'; | ||
const editorialResponsiblePersons = [ | ||
'Thies-Benedict Lüdtke', | ||
'Alisa Lunow' | ||
]; | ||
const linkERecht24 = 'https://www.e-recht24.de/'; | ||
return ( | ||
<> | ||
<h1>Impressum</h1> | ||
<p>Angaben gemäß § 5 TMG</p> | ||
<p>Landkreis Uelzen</p> | ||
<p>Albrecht-Thaer-Straße 101</p> | ||
<p>29525 Uelzen</p> | ||
<p>Vertreten durch:</p> | ||
<p>Landrat Dr. Heiko Blume</p> | ||
<p>Kontakt</p> | ||
<p>Telefon: {phone}</p> | ||
<p>Telefax: {fax}</p> | ||
<p>E-Mail: <Link to={'mailto:' + email}>{email}</Link></p> | ||
<p>Umsatzsteuer-ID</p> | ||
<p>Umsatzsteuer-Identifikationsnummer gemäß § 27 a Umsatzsteuergesetz</p> | ||
<p>{salesTaxIdentificationNumber}</p> | ||
<p>Redaktionell verantwortlich</p> | ||
<p>{editorialResponsiblePersons.join(', ')}</p> | ||
<p>Verbraucherstreitbelegung/Universalschlichtungsstelle</p> | ||
<p>Wir sind nicht bereit oder verpflichtet, an Streitbeilegungsverfahren vor einer | ||
Verbraucherschlichtungsstelle teilzunehmen.</p> | ||
<p>Quelle: <Link to={linkERecht24}>eRecht24</Link></p> | ||
<p>Haftungsausschluss:</p> | ||
<p className={styles.firstCounter}>Inhalt des Onlineangebotes</p> | ||
<p>Der Landkreis Uelzen (Landkreis) übernimmt keinerlei Gewähr für die Aktualität, Korrektheit, | ||
Vollständigkeit oder Qualität der bereitgestellten Informationen. Haftungsansprüche, welche sich auf | ||
Schäden materieller oder ideeller Art beziehen, die durch die Nutzung oder Nichtnutzung der dargebotenen | ||
Informationen bzw. durch die Nutzung fehlerhafter und unvollständiger Informationen verursacht wurden, | ||
sind grundsätzlich ausgeschlossen, sofern seitens des Landkreises Uelzen kein nachweislich vorsätzliches | ||
oder grob fahrlässiges Verschulden vorliegt. Alle Angebote sind freibleibend und unverbindlich. Der | ||
Landkreis behält es sich ausdrücklich vor, Teile der Seiten oder das gesamte Angebot ohne gesonderte | ||
Ankündigung zu verändern, zu ergänzen, zu löschen oder die Veröffentlichung zeitweise oder endgültig | ||
einzustellen.</p> | ||
<p className={styles.counter}>Verweise und Links</p> | ||
<p>Das Internetangebot des Landkreises kann externe Links auf die Internetseiten Dritter enthalten. Auf den | ||
Inhalt hat der Landkreis keinen Einfluss. Der Landkreis übernimmt keine Verantwortung für die Inhalte | ||
und die Verfügbarkeit von Internetseiten Dritter, die über externe Links dieses Informationsangebotes | ||
erreicht werden. Der Landkreis distanziert sich ausdrücklich von allen Inhalten, die möglicherweise | ||
straf- oder haftungsrechtlich relevant sind oder gegen die guten Sitten verstoß.</p> | ||
<p className={styles.counter}>Urheber- und Kennzeichenrecht</p> | ||
<p>Der Landkreis ist bestrebt, in allen Publikationen die Urheberrechte der verwendeten Grafiken, | ||
Tondokumente, Videosequenzen und Texte zu beachten, von ihm selbst erstellte Grafiken, Tondokumente, | ||
Videosequenzen und Texte zu nutzen oder auf lizenzfreie Grafiken, Tondokumente, Videosequenzen und Texte | ||
zurückzugreifen.</p> | ||
<p>Alle innerhalb des Internetangebotes genannten und ggf. durch Dritte geschützten Marken- und Warenzeichen | ||
unterliegen uneingeschränkt den Bestimmungen des jeweils gültigen Kennzeichenrechts und den | ||
Besitzrechten der jeweiligen eingetragenen Eigentümer. Allein aufgrund der bloßen Nennung ist nicht der | ||
Schluss zu ziehen, dass Markenzeichen nicht durch Rechte Dritter geschützt sind!</p> | ||
<p>Das Copyright für veröffentlichte, selbst erstellte Objekte bleibt allein beim Landkreis. Eine | ||
Vervielfältigung oder Verwendung solcher Grafiken, Tondokumente, Videosequenzen und Texte in anderen | ||
elektronischen oder gedruckten Publikationen ist ohne ausdrückliche Zustimmung des Landkreises nicht | ||
gestattet.</p> | ||
</> | ||
); | ||
} | ||
|
||
export default Impressum; |
Oops, something went wrong.