-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexplore.html
More file actions
152 lines (137 loc) · 6.13 KB
/
explore.html
File metadata and controls
152 lines (137 loc) · 6.13 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Explore</title>
<link rel="stylesheet" href="explore.css" />
<link rel="stylesheet" href="style.css">
</head>
<body>
<nav class="navbar">
<!-- Hamburger Menu -->
<div class="hamburger">
<span class="bar"></span>
<span class="bar"></span>
<span class="bar"></span>
</div>
<!-- Logo -->
<div class="logo">
<a href="#"><img src="images/logo.svg" alt="logo" width="35px"></a>
<div class="name">Image</div>
</div>
<!-- Navigation Menu -->
<div class="nav-menu">
<ul class="nav-links">
<li><a href="index.html">Home</a></li>
<li><a href="explore.html">Explore</a></li>
<li><a href="index3.html">Terminologies</a></li>
<li><a href="form.html">Contact</a></li>
</ul>
<div class="theme-toggle">
<label class="switch">
<input type="checkbox" id="theme-switch" />
<span class="slider round"></span>
</label>
</div>
</div>
</nav>
<div class="search-area">
<div class="content">
<div class="search">
<input type="text" placeholder="search images....." />
<button id="btn"><img src="images/search.svg" alt="logo" width="40px"></button>
</div>
</div>
</div>
</div>
<div class="image-gallary">
<ul class="gallary">
<li class="images">
<img src="https://images.unsplash.com/photo-1475865799801-006015070145?ixlib=rb-4.0.3&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=400&fit=max" alt="img" />
</li>
<li class="images">
<img src="https://images.unsplash.com/photo-1575761939448-508de7e396fb?ixlib=rb-4.0.3&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=400&fit=max" alt="img" />
</li>
<li class="images">
<img src="https://images.unsplash.com/photo-1586166417450-7a475d879c51?ixlib=rb-4.0.3&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=400&fit=max" alt="img" />
</li>
<li class="images">
<img src="https://images.unsplash.com/photo-1550063873-ab792950096b?ixlib=rb-4.0.3&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=400&fit=max" alt="img" />
</li>
<li class="images">
<img src="https://images.unsplash.com/photo-1594942939601-bb71a5d73663?ixlib=rb-4.0.3&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=400&fit=max" alt="img" />
</li>
<li class="images">
<img src="https://images.unsplash.com/photo-1724870173195-cb2829436cd1?ixlib=rb-4.0.3&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=400&fit=max" alt="img" />
</li>
<li class="images">
<img src="https://images.unsplash.com/photo-1585347110520-7a8a5c77af09?ixlib=rb-4.0.3&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=400&fit=max" alt="img" />
</li>
<li class="images">
<img src="https://images.unsplash.com/photo-1593791335760-f99675477733?ixlib=rb-4.0.3&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=400&fit=max" alt="img" />
</li>
<li class="images">
<img src="https://images.unsplash.com/photo-1542583701-20d3be307eba?ixlib=rb-4.0.3&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=400&fit=max" alt="img" />
</li>
<li class="images">
<img src="https://images.unsplash.com/photo-1540316264016-aeb7538f4d6f?ixlib=rb-4.0.3&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=400&fit=max" alt="img" />
</li>
<li class="images">
<img src="https://images.unsplash.com/photo-1656455807889-4aa81119f2da?ixlib=rb-4.0.3&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=400&fit=max" alt="img" />
</li>
<li class="images">
<img src="https://images.unsplash.com/photo-1526223352238-fef4f40bbef8?ixlib=rb-4.0.3&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=400&fit=max" alt="img" />
</li>
<li class="images">
<img src="https://images.unsplash.com/photo-1597034776274-47c0c5d4e8f5?ixlib=rb-4.0.3&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=400&fit=max" alt="img" />
</li>
<li class="images">
<img src="https://images.unsplash.com/photo-1601084195907-44baaa49dabd?ixlib=rb-4.0.3&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=400&fit=max" alt="img" />
</li>
</ul>
<button id="load">MORE...</button>
</div>
<footer>
<div class="copy">AdarshCodeCraft © 2024</div>
</footer>
<script>
document.addEventListener('DOMContentLoaded', () => {
const hamburger = document.querySelector('.hamburger');
const navMenu = document.querySelector('.nav-menu');
const themeSwitch = document.getElementById('theme-switch');
// Toggle mobile menu
hamburger.addEventListener('click', () => {
hamburger.classList.toggle('active');
navMenu.classList.toggle('active');
});
// Close menu on outside click
document.addEventListener('click', (e) => {
if (!hamburger.contains(e.target) && !navMenu.contains(e.target)) {
hamburger.classList.remove('active');
navMenu.classList.remove('active');
}
});
// Close menu on link click
document.querySelectorAll('.nav-links a').forEach(link => {
link.addEventListener('click', () => {
hamburger.classList.remove('active');
navMenu.classList.remove('active');
});
});
// Theme switcher
themeSwitch.addEventListener('change', function() {
if(this.checked) {
document.documentElement.style.setProperty('--bg-color', '#1a1a1a');
document.documentElement.style.setProperty('--text-color', '#ffffff');
} else {
document.documentElement.style.setProperty('--bg-color', '#ffffff');
document.documentElement.style.setProperty('--text-color', '#333');
}
});
});
</script>
<script src="explore.js"></script>
<script src="script.js"></script>
</body>
</html>