-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from MinaFoundation/feature/govbotOCVFrontend-0…
….0.3 Feature/govbot ocv frontend 0.0.3
- Loading branch information
Showing
6 changed files
with
73 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
--- | ||
import MainLayout from "../layouts/MainLayout.astro"; | ||
--- | ||
|
||
<MainLayout title="404 - Page Not Found"> | ||
<div | ||
class="flex flex-col items-center justify-center min-h-screen text-center px-4" | ||
> | ||
<h1 class="text-6xl font-bold text-purple-600 mb-4">404</h1> | ||
<p class="text-2xl text-gray-700 mb-8"> | ||
Oops! Looks like you've wandered into uncharted territory. | ||
</p> | ||
|
||
<div class="relative w-64 h-64 mb-8"> | ||
<div | ||
id="astronaut" | ||
class="absolute inset-0 bg-contain bg-center bg-no-repeat transform transition-transform duration-1000 ease-in-out" | ||
style="background-image: url('/astronaut.svg');" | ||
> | ||
</div> | ||
</div> | ||
|
||
<p class="text-xl text-gray-600 mb-8"> | ||
Don't worry, our space explorer is searching for your page! | ||
</p> | ||
</div> | ||
</MainLayout> | ||
|
||
<script> | ||
const astronaut = document.getElementById("astronaut"); | ||
let rotation = 0; | ||
|
||
function rotateAstronaut() { | ||
rotation += 5; | ||
if (astronaut) { | ||
astronaut.style.transform = `rotate(${rotation}deg)`; | ||
} | ||
} | ||
|
||
setInterval(rotateAstronaut, 100); | ||
|
||
document.addEventListener("mousemove", (e) => { | ||
const x = e.clientX / window.innerWidth - 0.5; | ||
const y = e.clientY / window.innerHeight - 0.5; | ||
|
||
if (astronaut) { | ||
astronaut.style.transform = `translate(${x * 20}px, ${y * 20}px) rotate(${rotation}deg)`; | ||
} | ||
}); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters