Skip to content

Initial Matrix-style 404 page #231

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Jul 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
96 changes: 96 additions & 0 deletions site/404.qmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
---
title: "inValidPage (404)"
html:
page-layout: full
filters:
- tachyons
---

```{=html}
<style>
a {
color: #DE257E;
text-decoration: none;
}

a:hover {
/* color: #DE257E; */
text-decoration: none;
}

</style>
```

<div class="sidebar-search">
<div id="quarto-search" class="type-textbox" title="Search" style="margin-bottom:60px;">

</div>
</div>


::: {.column-screen}


```{=html}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>InvalidPage</title>
<style>
body {
margin: 0;
overflow: hidden;
}
canvas {
display: block;
background-color: black;
}
</style>
</head>
<body>
<canvas id="matrix-rain"></canvas>
<script>
const canvas = document.getElementById('matrix-rain');
const ctx = canvas.getContext('2d');
canvas.width = window.innerWidth;
canvas.height = window.innerHeight;

const fontSize = 16;
const columns = Math.floor(canvas.width / fontSize);
const chars = 'ValidMind'.split('');
const drops = new Array(columns).fill(0);

function randomChar() {
return chars[Math.floor(Math.random() * chars.length)];
}

function draw() {
ctx.fillStyle = 'rgba(0, 0, 0, 0.05)';
ctx.fillRect(0, 0, canvas.width, canvas.height);

ctx.font = `${fontSize}px monospace`;
ctx.fillStyle = 'rgba(255, 20, 147, 1)'; // Change text color to pink

for (let i = 0; i < drops.length; i++) {
const text = randomChar();
const x = i * fontSize;
const y = drops[i] * fontSize;

ctx.fillText(text, x, y);

if (y > canvas.height && Math.random() < 0.1) {
drops[i] = 0;
}
drops[i]++;
}
}

setInterval(draw, 50);
</script>
</body>
</html>
```

:::
Loading
Loading