zachery.lol/routes/contact/index.html
Zachery Aaron Shores-Chmielewski f018534156 feat: better page layout, contact page
Move the message box and such around, fix the contact page
2026-02-06 23:53:15 +07:00

149 lines
3.5 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Contact</title>
<style>
body {
font-family: system-ui, sans-serif;
margin: 0;
padding: 0;
overflow: hidden;
}
#fractal-canvas {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 0;
}
.content-overlay {
position: relative;
z-index: 1;
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.contact-box {
background: rgba(0, 0, 0, 0.65);
padding: 2.5rem 3rem;
border-radius: 10px;
text-align: center;
min-width: 250px;
}
.contact-box h2 {
color: #fff;
margin: 0 0 1.5rem 0;
font-weight: normal;
font-family: "Gill Sans", sans-serif;
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}
.contact-list {
list-style: none;
padding: 0;
margin: 0;
}
.contact-list li {
margin: 1rem 0;
}
.contact-list li a {
text-decoration: none;
color: #fff;
padding: 0.6rem 1.5rem;
display: inline-block;
background: rgba(255, 255, 255, 0.1);
border-radius: 4px;
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
transition: background 0.2s;
font-size: 1.1rem;
}
.contact-list li a:hover {
background: rgba(255, 255, 255, 0.2);
}
nav.back-link {
margin-top: 2rem;
}
nav.back-link a {
text-decoration: none;
color: #fff;
padding: 0.5rem 1rem;
display: inline-block;
background: rgba(0, 0, 0, 0.3);
border-radius: 4px;
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
transition: background 0.2s;
}
nav.back-link a:hover {
background: rgba(0, 0, 0, 0.5);
}
</style>
</head>
<body>
<canvas id="fractal-canvas"></canvas>
<div class="content-overlay">
<div class="contact-box">
<h2>Contact</h2>
<ul class="contact-list">
<li><a href="mailto:">Email me</a></li>
<li><a href="/contact/message">Direct message</a></li>
</ul>
</div>
<nav class="back-link">
<a href="/">back to home</a>
</nav>
</div>
<script src="/routes/root/pkg/fractal_engine.js"></script>
<script>
(async function() {
await wasm_bindgen('/routes/root/pkg/fractal_engine_bg.wasm');
const canvas = document.getElementById('fractal-canvas');
function resizeCanvas() {
canvas.width = window.innerWidth;
canvas.height = window.innerHeight;
}
resizeCanvas();
window.addEventListener('resize', resizeCanvas);
let startTime = performance.now();
const animationSpeed = 0.0001;
const scale = 4;
function animate() {
const elapsed = performance.now() - startTime;
const time = elapsed * animationSpeed;
try {
wasm_bindgen.render_fractal_animated('fractal-canvas', time, scale);
} catch (e) {
console.error('Fractal render error:', e);
}
requestAnimationFrame(animate);
}
animate();
})();
</script>
</body>
</html>