-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlogout.php
More file actions
94 lines (78 loc) · 2.79 KB
/
Copy pathlogout.php
File metadata and controls
94 lines (78 loc) · 2.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<?php
session_start();
// destroy all session data
session_unset();
session_destroy();
// delete session cookie
if (isset($_COOKIE[session_name()])) {
setcookie(session_name(), '', time() - 3600, '/');
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Logged Out - SatTrack</title>
<link href="https://fonts.googleapis.com/css2?family=EB+Garamond:wght@400;500;600;700&family=Inconsolata:wght@400;500&display=swap" rel="stylesheet">
<link rel="stylesheet" href="assets/css/styles.css">
</head>
<body class="auth-page">
<!-- nav bar -->
<nav>
<a href="index.php" class="logo">SatTrack</a>
</nav>
<!-- twinkling stars -->
<canvas id="stars-container"></canvas>
<!-- logout container -->
<div class="logout-container">
<p class="logout-subtitle">See You Soon, Astronomer</p>
<h1 class="logout-title">Logged Out</h1>
<p class="logout-description">
You have been successfully logged out. Thank you for using SatTrack!
</p>
<div class="logout-actions">
<a href="login.php" class="btn btn-primary">Sign In Again</a>
<a href="index.php" class="btn btn-secondary">Back to Home</a>
</div>
</div>
<script>
// animated stars background
const canvas = document.getElementById('stars-container');
const ctx = canvas.getContext('2d');
canvas.width = window.innerWidth;
canvas.height = window.innerHeight;
const stars = [];
const starCount = 200;
for (let i = 0; i < starCount; i++) {
stars.push({
x: Math.random() * canvas.width,
y: Math.random() * canvas.height,
radius: Math.random() * 1.5,
speed: Math.random() * 0.2 + 0.05,
opacity: Math.random() * 0.5 + 0.3
});
}
function animateStars() {
ctx.clearRect(0, 0, canvas.width, canvas.height);
stars.forEach(star => {
ctx.beginPath();
ctx.arc(star.x, star.y, star.radius, 0, Math.PI * 2);
ctx.fillStyle = `rgba(255, 255, 255, ${star.opacity})`;
ctx.fill();
star.y += star.speed;
if (star.y > canvas.height) {
star.y = 0;
star.x = Math.random() * canvas.width;
}
});
requestAnimationFrame(animateStars);
}
animateStars();
window.addEventListener('resize', () => {
canvas.width = window.innerWidth;
canvas.height = window.innerHeight;
});
</script>
</body>
</html>