-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
193 lines (166 loc) · 4.34 KB
/
index.php
File metadata and controls
193 lines (166 loc) · 4.34 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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<!-- Removed viewport meta tag to force desktop layout on mobile -->
<!-- <meta name="viewport" content="width=device-width, initial-scale=1"> -->
<title>Booker Library Management System</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background-color: #f4f4f4;
color: #333;
}
header {
background-color: #007bff;
padding: 20px 0;
text-align: center;
color: white;
}
header h1 {
font-size: 32px;
font-weight: bold;
}
nav {
background-color: #0056b3;
padding: 10px 0;
}
nav ul {
list-style: none;
display: flex;
justify-content: center;
flex-wrap: wrap;
gap: 20px;
margin: 0;
padding: 0;
}
nav ul li a {
color: white;
text-decoration: none;
font-weight: 600;
padding: 8px 15px;
transition: background-color 0.3s;
}
nav ul li a:hover {
background-color: #003d80;
border-radius: 5px;
}
.hero {
background: url('https://images.unsplash.com/photo-1524995997946-a1c2e315a42f') no-repeat center center/cover;
height: 60vh;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
color: white;
padding: 20px;
position: relative;
}
.hero::after {
content: '';
position: absolute;
top: 0; left: 0; right: 0; bottom: 0;
background-color: rgba(0, 0, 0, 0.5);
}
.hero .content {
position: relative;
z-index: 1;
}
.hero h1 {
font-size: 40px;
font-weight: bold;
}
.hero p {
font-size: 20px;
margin-top: 10px;
}
.info-section {
padding: 40px 20px;
background-color: #ffffff;
text-align: center;
}
.info-section h2 {
font-size: 28px;
margin-bottom: 10px;
}
.info-section p {
font-size: 18px;
margin: 5px 0;
}
footer {
background-color: #343a40;
color: #ccc;
padding: 20px 0;
text-align: center;
}
footer p {
margin: 5px;
font-size: 14px;
}
footer i {
margin-right: 8px;
color: #17a2b8;
}
/* Removed media query to prevent responsive font size changes on mobile */
/*
@media screen and (max-width: 768px) {
.hero h1 {
font-size: 28px;
}
.hero p {
font-size: 16px;
}
}
*/
</style>
</head>
<body>
<header style="display: flex; align-items: center; justify-content: center; gap: 15px;">
<img src="booker library1.png" alt="Booker Library Logo" style="height: 50px;"/>
<h1 style="margin: 0;">BOOKER LIBRARY MANAGEMENT SYSTEM</h1>
</header>
<nav>
<ul>
<li><a href="index.php">HOME</a></li>
<li>
<?php
session_start();
// Always redirect to login page when clicking Books button
echo '<a href="student_login.php?redirect=books.php">BOOKS</a>';
?>
</li>
<li><a href="student_login.php">STUDENT LOGIN</a></li>
<li><a href="registration.php">REGISTRATION</a></li>
<li><a href="staff_login.php">STAFF PORTAL</a></li>
<?php
if (isset($_SESSION['student_id']) && !empty($_SESSION['student_id'])) {
echo '<li><a href="feedback.php">FEEDBACK</a></li>';
}
?>
</ul>
</nav>
<section class="hero">
<div class="content">
<h1>Welcome to Booker Library</h1>
<p>Empowering Knowledge, One Book at a Time</p>
</div>
</section>
<section class="info-section">
<h2>Library Hours</h2>
<p><strong>Opens:</strong> 09:00 AM</p>
<p><strong>Closes:</strong> 05:00 PM</p>
</section>
<footer>
<p><i class="fas fa-envelope"></i> <a href="contact.php" style="color: inherit; text-decoration: none;">booker.library.staff@gmail.com</a></p>
<p><i class="fas fa-phone"></i> +254 793 751 238</p>
<p><i class="fas fa-globe"></i> www.bookerlibrary.co.ke</p>
</footer>
</body>
</html>