-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgallery.html
152 lines (143 loc) · 4.98 KB
/
gallery.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Gallery - Md. Mustak Khan</title>
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
<link rel="stylesheet" href="styles.css">
<style>
body {
background-color: #f8f9fa;
font-family: 'Roboto', sans-serif;
color: #333;
}
.gallery-header {
text-align: center;
padding: 2rem;
}
.gallery-title {
font-size: 2.5rem;
margin-bottom: 1rem;
color: #007bff;
}
.gallery-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 1rem;
padding: 1rem;
}
.gallery-item {
background: #ffffff;
border-radius: 10px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
height: 200px; /* Fixed height for equal size */
}
.gallery-item img {
max-width: 100%;
max-height: 100%;
object-fit: cover;
}
:root {
--primary-color: #007bff;
--background-color: #f8f9fa;
--text-color: #333;
}
[data-theme="dark"] {
--primary-color: #66d9ef;
--background-color: #2f343a;
--text-color: #ffffff;
}
body {
background-color: var(--background-color);
color: var(--text-color);
}
.gallery-title {
color: var(--primary-color);
}
</style>
</head>
<body>
<!-- Navigation -->
<nav class="navbar">
<div class="nav-container">
<div class="nav-left">
<a href="index.html" class="nav-logo">MK</a>
<div class="search-container">
<input type="text" placeholder="Search..." class="search-input">
<button class="search-btn">
<i class="fas fa-search"></i>
</button>
</div>
</div>
<div class="nav-links">
<a href="home.html" class="nav-link">Home</a>
<a href="about.html" class="nav-link active">About</a>
<a href="research.html" class="nav-link">Research</a>
<a href="publications.html" class="nav-link">Publications</a>
<a href="people.html" class="nav-link">People</a>
<a href="lab-protocols.html" class="nav-link">Lab Protocols</a>
<div class="dropdown">
<button class="nav-link dropdown-btn">More
<i class="fas fa-chevron-down"></i>
</button>
<div class="dropdown-content">
<a href="resources.html" class="dropdown-link">Resources & Tools</a>
<a href="gallery.html" class="dropdown-link">Gallery</a>
<a href="contact.html" class="dropdown-link">Contact</a>
</div>
</div>
</div>
<button class="mobile-menu">
<i class="fas fa-bars"></i>
</button>
</div>
</nav>
<div class="gallery-header">
<h1 class="gallery-title">Photo Gallery</h1>
</div>
<div class="gallery-grid">
<div class="gallery-item">
<img src="lab.jpg" >
</div>
<div class="gallery-item">
<img src="lab2.jpg" >
</div>
<div class="gallery-item">
<img src="event.jpg">
</div>
<div class="gallery-item">
<img src="event3.jpg" >
</div>
<!-- Add more images as needed -->
</div>
<div class="gallery-grid">
<div class="gallery-item">
<img src="event1.jpg">
</div>
<div class="gallery-item">
<img src="event2.jpg" >
</div>
<!-- Add more images as needed -->
</div>
<!-- Footer -->
<footer class="footer">
<div class="footer-container">
<p>© 2025 Md. Mustak Khan. All rights reserved.</p>
</div>
</footer>
<script>
const themeToggle = document.getElementById('themeToggle');
themeToggle.addEventListener('click', () => {
const currentTheme = document.documentElement.getAttribute('data-theme');
const newTheme = currentTheme === 'dark' ? 'light' : 'dark';
document.documentElement.setAttribute('data-theme', newTheme);
});
</script>
</body>
</html>