-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
104 lines (92 loc) · 3.47 KB
/
Copy pathindex.php
File metadata and controls
104 lines (92 loc) · 3.47 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
95
96
97
98
99
100
101
102
103
104
<?php
// Rotate taglines on each refresh
$taglines = [
"Raise a Complaint, Spark a Solution",
"Because Silence Solves Nothing",
"Your Concerns, Our Priority",
"One Click to Resolution"
];
$selectedTagline = $taglines[array_rand($taglines)];
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Complaint & Response Management System</title>
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; img-src 'self' data:; style-src 'self' https://cdnjs.cloudflare.com 'unsafe-inline'; script-src 'self' 'unsafe-inline' https://cdnjs.cloudflare.com; font-src https://cdnjs.cloudflare.com;">
<link rel="stylesheet" href="assets/css/style.css">
<!-- Font Awesome for icons -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css">
</head>
<body>
<!-- Top Utility Bar -->
<div class="top-bar">
<div class="contact-info">
<span><i class="fa fa-envelope"></i> contact@iaue.edu.ng</span>
<span><i class="fa fa-phone"></i> +234 808 8061 428</span>
</div>
<div class="support-btn">
<a href="#">IAUE Support</a>
</div>
</div>
<!-- Navigation -->
<nav class="navbar">
<div class="logo">
<img src="images/iaue-logo.png" alt="University Logo">
<span>Ignatius Ajuru University of Education</span>
</div>
<ul class="nav-links">
<li><a href="#"><i class="fa fa-home"></i> Home</a></li>
<li><a href="signup.php"><i class="fa-solid fa-user-plus"></i> Register</a></li>
<li><a href="login.php"><i class="fa fa-sign-in-alt"></i> Login</a></li>
</ul>
</nav>
<!-- Hero Section -->
<main class="hero" style="background-image: url('images/Homepage1.jpg');">
<div class="overlay"></div>
<div class="arrow-left nav-arrow">❮</div>
<div class="arrow-right nav-arrow">❯</div>
<div class="hero-text">
<h3>Complaint and Response</h3>
<h1>Management System</h1>
<p class="tagline"><?php echo $selectedTagline; ?></p>
</div>
</main>
<script>
const hero = document.querySelector('.hero');
const images = [
"images/Homepage1.jpg",
"images/Homepage2.jpg"
];
let currentIndex = 0;
// Set initial background
hero.style.backgroundImage = `url('${images[currentIndex]}')`;
// Function to change background
function changeBackground(next = true) {
if (next) {
currentIndex = (currentIndex + 1) % images.length;
} else {
currentIndex = (currentIndex - 1 + images.length) % images.length;
}
hero.style.backgroundImage = `url('${images[currentIndex]}')`;
}
// Auto change every 6 seconds
let sliderInterval = setInterval(() => changeBackground(true), 6000);
// Manual arrows
document.querySelector('.arrow-left').addEventListener('click', () => {
changeBackground(false);
resetInterval();
});
document.querySelector('.arrow-right').addEventListener('click', () => {
changeBackground(true);
resetInterval();
});
// Reset auto-slide when user clicks
function resetInterval() {
clearInterval(sliderInterval);
sliderInterval = setInterval(() => changeBackground(true), 6000);
}
</script>
</body>
</html>