parent
35947778ce
commit
b80faa6f50
@ -1,26 +1,28 @@
|
||||
import React from "react"
|
||||
import footerStyles from "./footer.module.css"
|
||||
import * as footerStyles from "./footer.module.css"
|
||||
import { Link } from "gatsby"
|
||||
|
||||
export default ({ editLink }) => (
|
||||
<footer className={footerStyles.footer}>
|
||||
<div className={footerStyles.footerContent}>
|
||||
{editLink ? (
|
||||
<a
|
||||
className={footerStyles.footerItem}
|
||||
href={editLink}
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
>
|
||||
Seite bearbeiten
|
||||
</a>
|
||||
) : null}
|
||||
<Link className={footerStyles.footerItem} to="/impressum/">
|
||||
Impressum
|
||||
</Link>
|
||||
<Link className={footerStyles.footerItem} to="/datenschutz/">
|
||||
Datenschutzerklärung
|
||||
</Link>
|
||||
</div>
|
||||
</footer>
|
||||
)
|
||||
export default function Footer({ editLink }) {
|
||||
return (
|
||||
<footer className={footerStyles.footer}>
|
||||
<div className={footerStyles.footerContent}>
|
||||
{editLink ? (
|
||||
<a
|
||||
className={footerStyles.footerItem}
|
||||
href={editLink}
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
>
|
||||
Seite bearbeiten
|
||||
</a>
|
||||
) : null}
|
||||
<Link className={footerStyles.footerItem} to="/impressum/">
|
||||
Impressum
|
||||
</Link>
|
||||
<Link className={footerStyles.footerItem} to="/datenschutz/">
|
||||
Datenschutzerklärung
|
||||
</Link>
|
||||
</div>
|
||||
</footer>
|
||||
)
|
||||
}
|
||||
|
@ -1,14 +1,16 @@
|
||||
import React from 'react'
|
||||
import Nav from '../components/nav'
|
||||
import Footer from '../components/footer'
|
||||
import layoutStyles from './layout.module.css'
|
||||
import * as layoutStyles from './layout.module.css'
|
||||
|
||||
export default ({ path, editLink, children }) => (
|
||||
<>
|
||||
<Nav path={path} />
|
||||
<main className={layoutStyles.layout}>
|
||||
<article>{children}</article>
|
||||
</main>
|
||||
<Footer editLink={editLink} />
|
||||
</>
|
||||
)
|
||||
export default function Layout({ path, editLink, children }) {
|
||||
return (
|
||||
<>
|
||||
<Nav path={path} />
|
||||
<main className={layoutStyles.layout}>
|
||||
<article>{children}</article>
|
||||
</main>
|
||||
<Footer editLink={editLink} />
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 21 KiB |
Before Width: | Height: | Size: 33 KiB After Width: | Height: | Size: 33 KiB |
Loading…
Reference in new issue