-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathabout.html
170 lines (162 loc) · 7.81 KB
/
about.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<script src="https://cdn.tailwindcss.com"></script>
<link
href="https://unpkg.com/tailwindcss@^2/dist/tailwind.min.css"
rel="stylesheet"
/>
<title>Library Hub</title>
<style>
.mobile-menu {
transform: translateX(-100%);
transition: transform 0.3s ease-in-out;
}
.mobile-menu.active {
transform: translateX(0);
}
</style>
</head>
<body class="m-0 p-0 bg-gradient-to-r from-purple-500 to-pink-500 min-h-screen flex flex-col">
<nav class="bg-gray-800 text-white relative">
<div class="container mx-auto px-4">
<!-- Desktop Menu -->
<div class="hidden md:flex items-center justify-between py-4">
<div class="flex items-center">
<img src="logo.png" alt="Library Logo" class="h-8 w-8 mr-2" />
<span class="text-xl font-bold text-yellow-300">
<a href="index.html">LibraryHub</a>
</span>
</div>
<div class="flex space-x-6">
<a href="index.html" class="hover:text-yellow-300">Home</a>
<a href="category.html" class="hover:text-yellow-300">Category</a>
<a href="about.html" class="hover:text-yellow-300">About</a>
<a href="contact.html" class="hover:text-yellow-300">Contact</a>
<a href="faq.html" class="hover:text-yellow-300">FAQ</a>
</div>
</div>
<!-- Mobile Menu Button -->
<div class="md:hidden flex items-center justify-between py-4">
<div class="flex items-center">
<img src="logo.png" alt="Library Logo" class="h-8 w-8 mr-2" />
<span class="text-xl font-bold text-yellow-300">
<a href="index.html">LibraryHub</a>
</span>
</div>
<button id="mobile-menu-button" class="text-white focus:outline-none">
<svg class="h-6 w-6" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16M4 18h16" />
</svg>
</button>
</div>
<!-- Mobile Menu -->
<div id="mobile-menu" class="mobile-menu md:hidden fixed top-0 left-0 w-64 h-full bg-gray-800 z-50 shadow-lg">
<div class="p-4">
<button id="close-menu" class="text-white mb-4">
<svg class="h-6 w-6" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12" />
</svg>
</button>
<div class="flex flex-col space-y-4">
<a href="index.html" class="hover:text-yellow-300">Home</a>
<a href="category.html" class="hover:text-yellow-300">Category</a>
<a href="about.html" class="hover:text-yellow-300">About</a>
<a href="contact.html" class="hover:text-yellow-300">Contact</a>
<a href="faq.html" class="hover:text-yellow-300">FAQ</a>
</div>
</div>
</div>
</div>
</nav>
<main class="flex-grow">
<div class="container mx-auto p-4">
<div class="bg-white rounded-lg shadow-md p-4 sm:p-8">
<h1 class="text-2xl sm:text-3xl font-bold text-center mb-4 text-purple-500">About Us</h1>
<p class="text-base sm:text-lg text-gray-600 text-center mb-8">Welcome to Library Hub, your one-stop destination for all your reading needs.</p>
<div class="grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-6 mb-10">
<div class="p-4 sm:p-6 text-center bg-pink-100 rounded-lg shadow-md">
<img src="image.jpg" alt="Image" class="rounded-full w-32 h-32 mb-4">
<h2 class="text-2xl font-bold mb-2 text-orange-500">Our Mission</h2>
<p class="text-lg text-gray-600">To provide a vast collection of books to readers of all ages and genres.</p>
</div>
<div class="p-4 sm:p-6 text-center bg-blue-100 rounded-lg shadow-md">
<img src="image.jpg" alt="Image" class="rounded-full w-32 h-32 mb-4">
<h2 class="text-2xl font-bold mb-2 text-green-500">Our Vision</h2>
<p class="text-lg text-gray-600">To become the leading online library, making reading accessible to everyone.</p>
</div>
<div class="p-4 sm:p-6 text-center bg-yellow-100 rounded-lg shadow-md">
<img src="image.jpg" alt="Image" class="rounded-full w-32 h-32 mb-4">
<h2 class="text-2xl font-bold mb-2 text-red-500">Our Team</h2>
<p class="text-lg text-gray-600">A team of book lovers dedicated to providing the best reading experience.</p>
</div>
</div>
</div>
</div>
</main>
<footer class="bg-gray-900 text-gray-400 py-8 mt-auto">
<div class="container mx-auto px-4">
<div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-8">
<div>
<h2 class="text-white font-bold mb-4 text-purple-500">About Us</h2>
<p>Discover our world of broadcasting and entertainment through books</p>
</div>
<div>
<h2 class="text-white font-bold mb-4 text-orange-500">Quick Links</h2>
<ul>
<li><a href="index.html" class="text-gray-400 hover:text-gray-200">Home</a></li>
<li><a href="category.html" class="text-gray-400 hover:text-gray-200">Explore</a></li>
<li><a href="about.html" class="text-gray-400 hover:text-gray-200">About</a></li>
<li><a href="contact.html" class="text-gray-400 hover:text-gray-200">Contact</a></li>
</ul>
</div>
<div>
<h2 class="text-white font-bold mb-4 text-green-500">Contact Info</h2>
<p>
<span class="text-gray-400">Address:</span>
<br>
123 Main Street, Anytown, CA 12345
</p>
<p>
<span class="text-gray-400">Phone:</span>
<br>
(123) 456-7890
</p>
</div>
<div>
<h2 class="text-white font-bold mb-4 text-red-500">Newsletter</h2>
<form>
<input type="email" placeholder="Enter your email" class="border border-gray-500 rounded-md p-2 mb-4" />
<button type="submit" class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded">Subscribe</button>
</form>
</div>
</div>
<div class="border-t border-gray-700 mt-8 pt-4">
<p class="text-center text-gray-500">© 2024 Library Hub. All rights reserved.</p>
</div>
</div>
</footer>
<script>
// Mobile menu functionality
const mobileMenuButton = document.getElementById('mobile-menu-button');
const closeMenuButton = document.getElementById('close-menu');
const mobileMenu = document.getElementById('mobile-menu');
mobileMenuButton.addEventListener('click', () => {
mobileMenu.classList.add('active');
});
closeMenuButton.addEventListener('click', () => {
mobileMenu.classList.remove('active');
});
// Close menu when clicking outside
document.addEventListener('click', (e) => {
if (mobileMenu.classList.contains('active') &&
!mobileMenu.contains(e.target) &&
!mobileMenuButton.contains(e.target)) {
mobileMenu.classList.remove('active');
}
});
</script>
</body>
</html>