title
This commit is contained in:
parent
fda904c77c
commit
9b51b46820
|
@ -1,9 +1,10 @@
|
|||
---
|
||||
export interface Props {
|
||||
title: string
|
||||
title?: string
|
||||
}
|
||||
|
||||
const { title } = Astro.props
|
||||
const permaTitle = 'Hacking in Parallel 2022 //// Berlin'
|
||||
---
|
||||
|
||||
<!DOCTYPE html>
|
||||
|
@ -12,10 +13,14 @@ const { title } = Astro.props
|
|||
<meta charset='UTF-8' />
|
||||
<meta name='viewport' content='width=device-width' />
|
||||
<link rel='icon' type='image/svg+xml' href='/favicon.svg' />
|
||||
<title>{title}</title>
|
||||
<title>{`${title ? title + ' / ' : ''}${permaTitle}`}</title>
|
||||
</head>
|
||||
<body>
|
||||
<slot />
|
||||
<footer>
|
||||
<a href='/imprint/'>Imprint</a> ////
|
||||
<a href='/privacy/'>Privacy</a>
|
||||
</footer>
|
||||
<style is:global lang='scss'>
|
||||
:root {
|
||||
--background: #000;
|
||||
|
@ -50,6 +55,11 @@ const { title } = Astro.props
|
|||
line-height: 1.5;
|
||||
font-weight: 500;
|
||||
}
|
||||
main {
|
||||
margin: auto;
|
||||
padding: 1.5rem;
|
||||
max-width: 64ch;
|
||||
}
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
|
@ -85,6 +95,11 @@ const { title } = Astro.props
|
|||
content: '';
|
||||
}
|
||||
}
|
||||
footer {
|
||||
font-size: 0.75rem;
|
||||
text-align: center;
|
||||
padding: 1.5rem 0;
|
||||
}
|
||||
</style>
|
||||
</body>
|
||||
</html>
|
||||
|
|
17
src/pages/imprint/index.astro
Normal file
17
src/pages/imprint/index.astro
Normal file
|
@ -0,0 +1,17 @@
|
|||
---
|
||||
import Layout from '../../layouts/Layout.astro'
|
||||
---
|
||||
|
||||
<Layout title='Imprint'>
|
||||
<main>
|
||||
<article>
|
||||
<h1>Imprint</h1>
|
||||
<p>
|
||||
Lorem ipsum dolor sit amet consectetur adipisicing elit. Enim, eius
|
||||
nostrum harum quo eligendi rerum ipsam, officia laboriosam sapiente non
|
||||
perspiciatis excepturi ex quaerat cum aut. Dolore optio repudiandae
|
||||
tempora!
|
||||
</p>
|
||||
</article>
|
||||
</main>
|
||||
</Layout>
|
|
@ -2,7 +2,7 @@
|
|||
import Layout from '../layouts/Layout.astro'
|
||||
---
|
||||
|
||||
<Layout title='Welcome to Astro.'>
|
||||
<Layout>
|
||||
<header>
|
||||
<div>
|
||||
<h1>Hacking in<br />Parallel</h1>
|
||||
|
@ -26,11 +26,6 @@ import Layout from '../layouts/Layout.astro'
|
|||
</Layout>
|
||||
|
||||
<style lang='scss'>
|
||||
main {
|
||||
margin: auto;
|
||||
padding: 1.5rem;
|
||||
max-width: 64ch;
|
||||
}
|
||||
header {
|
||||
width: 100%;
|
||||
min-height: 50vh;
|
||||
|
|
15
src/pages/privacy/index.astro
Normal file
15
src/pages/privacy/index.astro
Normal file
|
@ -0,0 +1,15 @@
|
|||
---
|
||||
import Layout from '../../layouts/Layout.astro'
|
||||
---
|
||||
|
||||
<Layout title='Privacy'>
|
||||
<article>
|
||||
<h1>Privacy</h1>
|
||||
<p>
|
||||
Lorem ipsum dolor sit amet consectetur adipisicing elit. Enim, eius
|
||||
nostrum harum quo eligendi rerum ipsam, officia laboriosam sapiente non
|
||||
perspiciatis excepturi ex quaerat cum aut. Dolore optio repudiandae
|
||||
tempora!
|
||||
</p>
|
||||
</article>
|
||||
</Layout>
|
Loading…
Reference in a new issue