Files
pages/src/lib/footer.svelte

115 lines
2.5 KiB
Svelte
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<script lang="ts">
import SeparatorLine from "./separator-line.svelte";
var ratCounter = 0;
let playSound = function() {
let bolt = new Audio(`common/rat/bolt${ratCounter}.wav`)
bolt.volume = 0.2;
bolt.play();
ratCounter += 1;
if (ratCounter == 3) {
ratCounter = 0;
}
}
</script>
<footer>
<SeparatorLine noMargin />
<div class="content-container">
<div class="content-box center-box">
<p> 20232025 denizk0461</p>
</div>
<div class="content-box">
<h6>Content</h6>
<a href="/projects">Projects</a>
<a href="/garden">Garden</a>
<a href="/about">About</a>
</div>
<div class="content-box">
<h6>Meta</h6>
<a href="https://codeberg.org/denizk0461/pages-svelte">Page Source</a>
<a href="/privacy">Privacy & Cookies</a>
</div>
<div class="content-box"></div>
</div>
<input
type="image"
onclick={playSound}
title="the bottom rat"
alt="the bottom rat"
class="bottom-rat"
src="/common/rat/spookyrat.webp">
</footer>
<style>
footer {
background-color: var(--color-background-highlight);
margin-top: 40px;
width: 100%;
backdrop-filter: blur(6px);
}
footer h6 {
font-family: var(--font-mono);
font-style: italic;
}
footer p, footer a {
display: block;
font-family: var(--font-mono);
font-weight: 400;
color: var(--color-text);
text-decoration: none;
font-size: 1rem;
margin: 0;
}
footer a:hover {
font-weight: 900;
}
.bottom-rat {
position: absolute;
width: 20%;
max-width: 100px;
right: 0;
bottom: 0;
}
.content-container {
height: 100%;
margin: 0 24px 0 48px;
display: flex;
/* align-items: center; */
flex-flow: row;
gap: 16px;
justify-content: space-evenly;
align-items: flex-start;
}
.content-box {
width: 100%;
margin: 16px 0;
}
.center-box {
margin: auto 0;
}
@media screen and (max-width: 800px) {
.content-container {
flex-direction: column;
gap: 0;
}
.content-box {
margin: 8px 0;
}
.center-box {
margin: 16px 0 8px;
}
}
</style>