-
Notifications
You must be signed in to change notification settings - Fork 338
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Simarjit Singh
authored and
Simarjit Singh
committed
Nov 9, 2024
1 parent
d3eca41
commit 65d9d39
Showing
1 changed file
with
165 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,165 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>404 PAGE</title> | ||
|
||
<link rel='stylesheet' href='https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css'> | ||
<link rel='stylesheet' href='https://fonts.googleapis.com/css?family=Arvo'> | ||
<style> | ||
|
||
.page_404{ padding:40px 0; background:#fff; font-family: 'Arvo', serif; | ||
} | ||
|
||
.page_404 img{ width:100%;} | ||
|
||
.four_zero_four_bg{ | ||
|
||
background-image: url(https://cdn.dribbble.com/users/285475/screenshots/2083086/dribbble_1.gif); | ||
height: 400px; | ||
background-position: center; | ||
} | ||
|
||
|
||
.four_zero_four_bg h1{ | ||
font-size:80px; | ||
} | ||
|
||
.four_zero_four_bg h3{ | ||
font-size:80px; | ||
} | ||
|
||
.link_404{ | ||
color: #fff!important; | ||
padding: 10px 20px; | ||
background: #39ac31; | ||
margin: 20px 0; | ||
display: inline-block;} | ||
.contant_box_404{ margin-top:-50px;} | ||
</style> | ||
|
||
</head> | ||
|
||
<body> | ||
<style> | ||
.circle { | ||
position: absolute; | ||
width: 25px; | ||
height: 25px; | ||
border-radius: 50%; | ||
pointer-events: none; | ||
background: radial-gradient(circle, rgba(73, 232, 247, 0.466), rgba(141, 38, 172, 0.5)); | ||
transition: transform 0.1s, left 0.1s, top 0.1s; | ||
} | ||
|
||
.circle-container { | ||
position: fixed; | ||
top: 0; | ||
left: 0; | ||
width: 100%; | ||
height: 100%; | ||
pointer-events: none; | ||
z-index: 9999; | ||
} | ||
</style> | ||
<div class="circle-container"> | ||
<div class="circle"></div> | ||
<div class="circle"></div> | ||
<div class="circle"></div> | ||
<div class="circle"></div> | ||
<div class="circle"></div> | ||
<div class="circle"></div> | ||
<div class="circle"></div> | ||
<div class="circle"></div> | ||
<div class="circle"></div> | ||
<div class="circle"></div> | ||
<div class="circle"></div> | ||
<div class="circle"></div> | ||
<div class="circle"></div> | ||
<div class="circle"></div> | ||
<div class="circle"></div> | ||
<div class="circle"></div> | ||
<div class="circle"></div> | ||
<div class="circle"></div> | ||
<div class="circle"></div> | ||
<div class="circle"></div> | ||
<div class="circle"></div> | ||
<div class="circle"></div> | ||
<div class="circle"></div> | ||
<div class="circle"></div> | ||
<div class="circle"></div> | ||
<div class="circle"></div> | ||
<div class="circle"></div> | ||
<div class="circle"></div> | ||
<div class="circle"></div> | ||
<div class="circle"></div> | ||
</div> | ||
<script> | ||
document.addEventListener("DOMContentLoaded", function () { | ||
const coords = { x: 0, y: 0 }; | ||
const circles = document.querySelectorAll(".circle"); | ||
|
||
circles.forEach(function (circle) { | ||
circle.x = 0; | ||
circle.y = 0; | ||
}); | ||
|
||
window.addEventListener("mousemove", function (e) { | ||
coords.x = e.pageX; | ||
coords.y = e.pageY - window.scrollY; // Adjust for vertical scroll position | ||
}); | ||
|
||
function animateCircles() { | ||
let x = coords.x; | ||
let y = coords.y; | ||
|
||
circles.forEach(function (circle, index) { | ||
circle.style.left = `${x - 12}px`; | ||
circle.style.top = `${y - 12}px`; | ||
circle.style.transform = `scale(${(circles.length - index) / circles.length})`; | ||
|
||
const nextCircle = circles[index + 1] || circles[0]; | ||
circle.x = x; | ||
circle.y = y; | ||
|
||
x += (nextCircle.x - x) * 0.3; | ||
y += (nextCircle.y - y) * 0.3; | ||
}); | ||
|
||
requestAnimationFrame(animateCircles); | ||
} | ||
|
||
animateCircles(); | ||
}); | ||
|
||
</script> | ||
<section class="page_404"> | ||
<div class="container"> | ||
<div class="row"> | ||
<div class="col-sm-12 "> | ||
<div class="col-sm-10 col-sm-offset-1 text-center"> | ||
<div class="four_zero_four_bg"> | ||
<h1 class="text-center ">404</h1> | ||
|
||
|
||
</div> | ||
|
||
<div class="contant_box_404"> | ||
<h3 class="h2"> | ||
Look like you're lost | ||
</h3> | ||
|
||
<p>the page you are looking for not avaible!</p> | ||
|
||
<a href="index.html" class="link_404">Go to Home</a> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</section> | ||
|
||
|
||
</body> | ||
</html> |