haikal/templates/403.html

176 lines
6.3 KiB
HTML

{% load i18n %}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>403 - {% trans "Access Forbidden" %}</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css"
rel="stylesheet">
<style>
:root {
--dark-bg: #121212;
--main-color: #ff3864;
--secondary-color: #e6e6e6;
}
body, html {
height: 100%;
margin: 0;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background-color: var(--dark-bg);
color: var(--secondary-color);
overflow: hidden; /* Hide overflow for the particles */
}
.center-content {
height: 100%;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
flex-direction: column;
z-index: 2; /* Ensure content is on top of particles */
position: relative;
}
.glitch {
font-size: 10rem;
font-weight: bold;
color: var(--main-color);
position: relative;
animation: glitch-animation 2.5s infinite;
}
@keyframes glitch-animation {
0% { text-shadow: 2px 2px var(--secondary-color); }
20% { text-shadow: -2px -2px var(--secondary-color); }
40% { text-shadow: 4px 4px var(--main-color); }
60% { text-shadow: -4px -4px var(--main-color); }
80% { text-shadow: 6px 6px var(--secondary-color); }
100% { text-shadow: -6px -6px var(--secondary-color); }
}
.main-message {
font-size: 2.5rem;
margin-top: -20px;
letter-spacing: 5px;
text-transform: uppercase;
}
.sub-message {
font-size: 1.2rem;
color: #8c8c8c;
margin-top: 10px;
}
.home-button {
margin-top: 30px;
padding: 12px 30px;
background-color: var(--main-color);
border: none;
color: #fff;
border-radius: 5px;
font-size: 1rem;
text-decoration: none;
transition: background-color 0.3s, transform 0.3s;
}
.home-button:hover {
background-color: #d12e52;
transform: scale(1.05);
}
/* Particle Background styles */
#particles-js {
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
z-index: 1;
}
</style>
</head>
<body>
<div id="particles-js"></div>
<div class="center-content container-fluid">
<h1 class="glitch">403</h1>
<h2 class="main-message">{% trans "Access Forbidden" %}</h2>
<p class="sub-message">{% trans "You do not have permission to view this page." %}</p>
<p class="sub-message fs-2">{% trans "Powered By Tenhal, Riyadh Saudi Arabia" %}</p>
<a href="{% url 'home' %}" class="home-button">{% trans "Go Home" %}</a>
</div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/particles.js@2.0.0/particles.min.js"></script>
<script>
/* Particles.js Configuration */
particlesJS("particles-js", {
"particles": {
"number": {
"value": 80,
"density": {
"enable": true,
"value_area": 800
}
},
"color": {
"value": "#ff3864"
},
"shape": {
"type": "circle",
},
"opacity": {
"value": 0.5,
"random": false,
"anim": {
"enable": false
}
},
"size": {
"value": 3,
"random": true,
},
"line_linked": {
"enable": true,
"distance": 150,
"color": "#e6e6e6",
"opacity": 0.4,
"width": 1
},
"move": {
"enable": true,
"speed": 6,
"direction": "none",
"random": false,
"straight": false,
"out_mode": "out",
"bounce": false,
"attract": {
"enable": false,
}
}
},
"interactivity": {
"detect_on": "canvas",
"events": {
"onhover": {
"enable": true,
"mode": "grab"
},
"onclick": {
"enable": true,
"mode": "push"
},
"resize": true
},
"modes": {
"grab": {
"distance": 140,
"line_linked": {
"opacity": 1
}
},
"push": {
"particles_nb": 4
}
}
},
"retina_detect": true
});
</script>
</body>
</html>