258 lines
7.4 KiB
Svelte
258 lines
7.4 KiB
Svelte
<script>
|
||
import Header from "$lib/header.svelte";
|
||
import Footer from "$lib/footer.svelte";
|
||
|
||
let { children } = $props();
|
||
</script>
|
||
|
||
<Header />
|
||
|
||
<div class="waters"></div>
|
||
{@render children()}
|
||
|
||
<Footer />
|
||
|
||
<style>
|
||
/* @import url('https://fonts.upset.dev/css2?family=Reddit+Mono:wght@200..900&family=Reddit+Sans+Condensed:wght@200..900&family=Reddit+Sans:ital,wght@0,200..900;1,200..900&family=Space+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap'); */
|
||
|
||
@import url('https://fonts.upset.dev/css2?family=IBM+Plex+Mono:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Manrope:wght@200..800&family=Michroma&family=Space+Grotesk:wght@300..700&display=swap');
|
||
|
||
@font-face {
|
||
font-family: 'Monument Extended';
|
||
font-weight: 00;
|
||
font-style: normal;
|
||
src: url('/fonts/ppmonument-extended/.woff');
|
||
}
|
||
@font-face {
|
||
font-family: 'Monument Extended';
|
||
font-weight: 100;
|
||
font-style: normal;
|
||
src: url('/fonts/ppmonument-extended/thin.woff');
|
||
}
|
||
@font-face {
|
||
font-family: 'Monument Extended';
|
||
font-weight: 200;
|
||
font-style: normal;
|
||
src: url('/fonts/ppmonument-extended/light.woff');
|
||
}
|
||
@font-face {
|
||
font-family: 'Monument Extended';
|
||
font-weight: 300;
|
||
font-style: normal;
|
||
src: url('/fonts/ppmonument-extended/book.woff');
|
||
}
|
||
@font-face {
|
||
font-family: 'Monument Extended';
|
||
font-weight: 400;
|
||
font-style: normal;
|
||
src: url('/fonts/ppmonument-extended/regular.woff');
|
||
}
|
||
@font-face {
|
||
font-family: 'Monument Extended';
|
||
font-weight: 500;
|
||
font-style: normal;
|
||
src: url('/fonts/ppmonument-extended/medium.woff');
|
||
}
|
||
@font-face {
|
||
font-family: 'Monument Extended';
|
||
font-weight: 700;
|
||
font-style: normal;
|
||
src: url('/fonts/ppmonument-extended/bold.woff');
|
||
}
|
||
@font-face {
|
||
font-family: 'Monument Extended';
|
||
font-weight: 800;
|
||
font-style: normal;
|
||
src: url('/fonts/ppmonument-extended/black.woff');
|
||
}
|
||
@font-face {
|
||
font-family: 'Monument Extended';
|
||
font-weight: 900;
|
||
font-style: normal;
|
||
src: url('/fonts/ppmonument-extended/heavy.woff');
|
||
}
|
||
|
||
:global {
|
||
:root {
|
||
--color-text: #d0d0d0;
|
||
--color-text-img: invert(98%) sepia(1%) saturate(4643%) hue-rotate(297deg) brightness(115%) contrast(76%);
|
||
--color-text-dark: #1e1e1e;
|
||
--color-highlight: #72b175;
|
||
|
||
--color-background: #1b1b1b;
|
||
--color-background-highlight: color-mix(in srgb, var(--color-highlight) 10%, transparent);
|
||
--color-background-highlight-hover: color-mix(in srgb, var(--color-highlight) 60%, transparent);
|
||
|
||
--color-waters: #2b2b2b;
|
||
|
||
--notch-size: 32px;
|
||
--notch-size-small: 16px;
|
||
|
||
--color-link-unvisited: #c2e8ff;
|
||
--color-link-visited: #ffd7f0;
|
||
--color-link-hovered: #ffdad5;
|
||
|
||
--font-title: 'Monument Extended';
|
||
--font-sans-serif: 'Manrope', 'Lato', sans-serif;
|
||
--font-mono: 'IBM Plex Mono', monospace;
|
||
}
|
||
|
||
html {
|
||
scroll-behavior: smooth;
|
||
position: relative;
|
||
min-height: 100%;
|
||
}
|
||
|
||
body {
|
||
font-family: var(--font-sans-serif);
|
||
font-size: 1.1rem;
|
||
color: var(--color-text); /* text colour */
|
||
|
||
background-color: var(--color-background);
|
||
}
|
||
|
||
.waters {
|
||
position: fixed;
|
||
z-index: -99;
|
||
top: 0;
|
||
left: 0;
|
||
height: 100%;
|
||
width: 100%;
|
||
background-color: var(--color-waters);
|
||
mask-image: url('/bremen-waters-white.svg');
|
||
mask-position: center;
|
||
background-position: center;
|
||
background-attachment: fixed;
|
||
}
|
||
|
||
p, span, li, pre, a {
|
||
color: var(--color-text);
|
||
line-height: 1.7rem;
|
||
font-weight: 500;
|
||
}
|
||
.styled-list {
|
||
padding: 0;
|
||
}
|
||
|
||
.styled-list li::before {
|
||
content: "–";
|
||
font-weight: 900;
|
||
color: var(--color-highlight);
|
||
padding-right: 8px;
|
||
}
|
||
.styled-list li {
|
||
display: flex;
|
||
padding-left: 0;
|
||
margin-top: 4px;
|
||
margin-bottom: 4px;
|
||
transition: background-color 0.2s ease-in-out;
|
||
padding: 2px 12px;
|
||
}
|
||
.styled-list li a {
|
||
display: inline;
|
||
}
|
||
|
||
h1 {
|
||
font-size: 3.5rem;
|
||
line-height: 4rem;
|
||
}
|
||
h2 {
|
||
font-size: 2rem;
|
||
line-height: 2.2rem;
|
||
}
|
||
h3 {
|
||
font-size: 1.4rem;
|
||
line-height: 1.5rem;
|
||
}
|
||
h4, h5, h6 {
|
||
font-size: 1.2rem;
|
||
line-height: 1.3rem;
|
||
}
|
||
|
||
h1, h2, h3, h4, h5, h6 {
|
||
font-weight: 700;
|
||
font-family: var(--font-title);
|
||
color: var(--color-highlight);
|
||
margin-top: 12px;
|
||
margin-bottom: 8px;
|
||
width: fit-content;
|
||
}
|
||
|
||
code, .code-block {
|
||
font-family: var(--font-mono);
|
||
font-size: 1.0em;
|
||
font-weight: 500;
|
||
background-color: var(--color-background-highlight);
|
||
/* color: var(--color-background); */
|
||
border-radius: 8px;
|
||
padding-left: 6px;
|
||
padding-right: 6px;
|
||
}
|
||
|
||
img, video {
|
||
width: 80%;
|
||
margin-left: auto;
|
||
margin-right: auto;
|
||
display: flex;
|
||
}
|
||
|
||
.horizontally-centre-aligned {
|
||
width: 80%;
|
||
display: flex;
|
||
justify-content: center;
|
||
align-items: center;
|
||
margin-left: auto;
|
||
margin-right: auto;
|
||
}
|
||
|
||
.inline-img-left {
|
||
float: left;
|
||
max-width: 24%;
|
||
margin: 0 24px 24px 0;
|
||
}
|
||
|
||
.inline-img-right {
|
||
float: right;
|
||
max-width: 24%;
|
||
margin: 0 0 24px 24px;
|
||
}
|
||
|
||
a:link {
|
||
color: var(--color-link-unvisited);
|
||
}
|
||
/* visited link */
|
||
a:visited {
|
||
color: var(--color-link-visited);
|
||
}
|
||
/* mouse over link */
|
||
a:hover {
|
||
color: var(--color-link-hovered);
|
||
}
|
||
|
||
.notched {
|
||
clip-path: polygon(
|
||
0% var(--notch-size),
|
||
var(--notch-size) 0%,
|
||
calc(100% - var(--notch-size)) 0%,
|
||
100% var(--notch-size),
|
||
100% calc(100% - var(--notch-size)),
|
||
calc(100% - var(--notch-size)) 100%,
|
||
var(--notch-size) 100%,
|
||
0% calc(100% - var(--notch-size))
|
||
);
|
||
}
|
||
|
||
.notched-small {
|
||
clip-path: polygon(
|
||
0% var(--notch-size-small),
|
||
var(--notch-size-small) 0%,
|
||
calc(100% - var(--notch-size-small)) 0%,
|
||
100% var(--notch-size-small),
|
||
100% calc(100% - var(--notch-size-small)),
|
||
calc(100% - var(--notch-size-small)) 100%,
|
||
var(--notch-size-small) 100%,
|
||
0% calc(100% - var(--notch-size-small))
|
||
);
|
||
}
|
||
}
|
||
</style> |