-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproject-5.html
More file actions
475 lines (419 loc) · 14.5 KB
/
Copy pathproject-5.html
File metadata and controls
475 lines (419 loc) · 14.5 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
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>:: hacker_camerawork ::</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css">
<style>
body{
background-color: black;
}
/* Style for the main header */
.main-header {
background-color: #f7f7f7; /* Header background color */
color: #7e8597;
padding: 15px 15px; /* Header padding */
display: flex;
justify-content: space-between; /* Align left and right content */
align-items: center; /* Vertically center content */
}
/* Style for the left end content */
.header-left {
display: flex;
align-items: center;
margin-left: 50px; /* Adjust spacing from the left */
}
.header-left ul {
list-style: none; /* Remove list bullets */
padding: 0;
}
.header-left li {
display: inline;
margin-right: 20px; /* Adjust spacing between elements */
font-size: 14px; /* Decrease font size */
}
.header-left a {
color: #7e8597; /* Left end text color */
text-decoration: none; /* Remove underlines */
}
/* Style for the right end content */
.header-right {
display: flex;
align-items: center;
margin-right: 20px; /* Adjust spacing from the right */
}
/* Style for social media icons */
.header-right a {
color: #7e8597; /* Social media icon color */
text-decoration: none; /* Remove underlines */
font-size: 18px; /* Decrease icon size */
margin-left: 20px; /* Adjust spacing between icons */
}
*{
margin: 0;
padding: 0;
font-family: sans-serif;
}
.banner{
width: 100%;
height: 100vh;
background-size: cover;
background-position: center;
}
.navbar{
width: 85%;
margin: auto;
padding: 35px 0;
display: flex;
align-items: center;
justify-content: space-between;
}
.logo{
width: 150px;
cursor: pointer;
}
.navbar ul li{
list-style: none;
display: inline-block;
margin: 0 20px;
position: relative;
}
.navbar ul li a{
text-decoration: none;
color: #7e8597;
text-transform: Uppercase;
}
.navbar ul li::after{
content: '';
height: 3px;
width: 0%;
background: #009688;
position: absolute;
left: 0;
bottom: -10px;
transition:0.5s;
}
.navbar ul li:hover::after{
width:100%;
}
.content{
width: 100%;
position: absolute;
top: 50%;
transform: translateY(-50%);
text-align: center;
color: #fff;
}
.content h1{
font-size: 70px;
margin-top: 80px;
}
.content p{
margin: 20px auto;
font-weight: 100;
line-height: 25px;
}
h3{
color: #fff;
text-align: center;
font-size: 36px;
margin: 10px 10px;
}
/* Additional styles for the image masonry */
.category-col {
/* Your existing styles */
/* Add new styles for the image masonry */
display: flex;
justify-content: center;
align-items: flex-start;
}
.image-masonry {
column-count: 3; /* Set the number of columns */
column-gap: 15px; /* Adjust the gap between columns */
margin-top: 20px; /* Adjust top margin as needed */
}
.image-masonry img {
width: 100%;
margin-bottom: 10px; /* Adjust the gap between images */
display: block;
border-radius: 10px; /* Add border radius for image corners */
}
/* Hover effect for images */
.image-masonry img {
/* Your existing styles */
transition: transform 0.3s ease-in-out; /* Add a smooth transition */
}
.image-masonry img:hover {
transform: scale(0.9); /* Increase the image size on hover */
}
.see.more {
text-align: center;
margin: 10px;
}
.see.more a {
display: inline-block;
padding: 10px 20px;
background-color: rgb(45, 51, 53);
color: #ffffff;
text-decoration: none;
border-radius: 5px;
font-size: 16px;
border: 10px;
margin: 5px; /* Add some margin for spacing */
}
/* Position the links */
.see.more {
display: flex;
justify-content: space-between; /* Space items apart */
}
/* Adjust individual link styles */
.see.more a {
margin: 0; /* Reset margin for the links */
}
/* Footer Section */
.footer-bottom {
background-color: #333;
color: #fff;
padding: 20px 0;
text-align: center;
}
/* Copyright Text */
.copyright-text {
font-size: 16px;
}
/* Styles for the scroll to top button */
#scrollToTopBtn {
display: none; /* Initially hide the button */
position: fixed; /* Fixed position on the screen */
bottom: 20px; /* Adjust the distance from the bottom */
right: 20px; /* Adjust the distance from the right */
background-color: transparent; /* Transparent background */
border: 2px solid #ffffff; /* White border */
color: #000000; /* Text color */
background-color: #fff;
font-size: 24px; /* Adjust the font size */
cursor: pointer;
opacity: 0.7; /* Initial transparency */
transition: opacity 0.3s; /* Smooth transition for opacity */
border-radius: 5px; /* Rounded corners */
padding: 10px; /* Padding inside the button */
}
#scrollToTopBtn:hover {
opacity: 1; /* Full opacity on hover */
}
@media only screen and (max-width: 768px) {
.logo {
width: 150px;
margin: 30px;
}
/* Navbar styles */
.navbar {
width: 100%;
padding: 20px 0;
}
.navbar ul {
display: flex;
flex-direction: column;
align-items: center;
padding: 20px;
}
.navbar ul li {
margin: 10px 0;
}
/* Header adjustments */
.header-left,
.header-right {
margin: 0;
}
.header-left ul li,
.header-right a {
font-size: 12px; /* Decrease font size for smaller screens */
}
/* Navbar adjustments */
.navbar {
width: 100%;
padding: 20px 0;
}
.navbar ul {
flex-direction: column;
align-items: center;
padding: 10px;
}
.navbar ul li {
margin: 10px 0;
}
/* Styles for image grid in mobile view */
.image-masonry {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(100%, 1fr)); /* Images take full width */
gap: 15px; /* Adjust gap between images */
margin-top: 20px; /* Top margin as needed */
margin: 15px;
}
/* Image styles for mobile view */
.image-masonry img {
width: 380px; /* Take full width of their container */
height: auto; /* Auto-adjust height to maintain aspect ratio */
margin-bottom: 15px; /* Adjust the gap between images */
transition: transform 0.3s ease-in-out; /* Smooth image transformation on hover */
}
/* Hover effect for images in mobile view */
.image-masonry img:hover {
transform: scale(0.9); /* Scale the image on hover */
}
/* Footer adjustments */
.footer-bottom {
padding: 10px 0;
}
.copyright-text {
font-size: 12px;
}
}
</style>
</head>
<body>
<!-- main header -->
<header class="main-header">
<!-- header left -->
<div class="header-left">
<ul class="topbar-info">
<li><i class="icon-pin"></i> Nellore, Andhra Pradesh</li>
<li><i class="icon-mail"></i> <a href="mailto:hackercamerawork@gmail.com">hackercamerawork@gmail.com</a></li>
<li><i class="icon-phone"></i> +91-7981471527</li>
</ul>
</div>
<!-- header right -->
<div class="header-right">
<a href="#"><i class="fab fa-facebook-f"></i></a>
<a href="#"><i class="fab fa-twitter"></i></a>
<a href="#"><i class="fab fa-instagram"></i></a>
</div>
</header>
<!-- Your page content goes here -->
<div class="banner">
<div class="navbar">
<img src="logo w.png" class="logo">
<ul>
<li><a href="index.html" style="color: white;">Home</a></li>
<li><a href="Posts.html" style="color: white;">Gallery</a></li>
<li><a href="Projects.html" style="color: white;">Projects</a></li>
<li><a href="About.html" style="color: white;">About</a></li>
<li><a href="contact.html" style="color: white;">Contact</a></li>
</ul>
</div>
<section class="category">
<div class="row">
<h3>Street</h3>
<div class="category-col">
<!-- Masonry-style arrangement of images -->
<div class="image-masonry">
<img src="Project5/1 (1).jpg" width="260px" height="540px">
<img src="Project5/1 (2).jpg" width="260px" height="540px">
<img src="Project5/_HCP3058.jpg" width="540px" height="260px">
<img src="Project5/agori (2).jpg" width="260px" height="540px">
<img src="Project5/DSC_0016 copy.jpg" width="260px" height="540px">
<img src="Project5/DSC_0120.JPG" width="260px" height="540px">
<img src="Project5/1 (6).jpg" width="260px" height="540px">
<img src="Project5/seagirl.jpg" width="260px" height="540px">
<img src="Project5/HCP_0809.jpg" width="260px" height="540px">
<img src="Project5/agori (3).jpg" width="260px" height="540px">
<img src="Project5/1 (4).jpg" width="260px" height="540px">
<img src="Project5/grassbaby.jpg" width="260px" height="540px">
<img src="Project5/DSC_0166 copy.jpg" width="260px" height="540px">
<img src="Project5/1 (3).jpg" width="260px" height="540px">
<img src="Project5/DSC_0148.JPG" width="260px" height="540px">
<img src="Project5/1 (5).jpg" width="260px" height="540px">
<img src="Project5/DSC_0147 (1).jpg" width="540px" height="260px">
<img src="Project5/sad.jpg" width="540px" height="260px">
<img src="Project5/sea.jpg" width="540px" height="260px">
<img src="Project5/pic1.jpg" width="540px" height="260px">
<img src="Project5/pic.jpg" width="260px" height="540px">
<img src="Project5/pic2.jpg" width="260px" height="540px">
<img src="Project5/agori (1).jpg" width="260px" height="540px">
</div>
</div>
</section>
<div class="see more">
<a href="project-4.html">Previous</a>
<a href="project-6.html">Next</a>
</div>
<!-- Scroll to Top Button -->
<button onclick="scrollToTop()" id="scrollToTopBtn" title="Go to top">▲</button>
<!--Footer Bottom-->
<div>
<footer>
<div class="footer-bottom">
<div class="container">
<div class="container-wrapper">
<div class="copyright-text"> All Rights Reserved © 2021 | Hacker_Camerawork</div>
</div>
</div>
</div>
</footer>
</div>
<!--End pagewrapper-->
<script>
window.onload = function() {
const masonry = document.querySelector('.image-masonry');
let masonryColumns = 3; // Set the number of columns
function updateMasonry() {
let columnWidth = masonry.offsetWidth / masonryColumns;
let items = masonry.children;
let columns = [];
// Create columns
for (let i = 0; i < masonryColumns; i++) {
let column = document.createElement('div');
column.classList.add('masonry-column');
column.style.width = columnWidth + 'px';
columns.push(column);
masonry.appendChild(column);
}
// Distribute items to columns
for (let i = 0; i < items.length; i++) {
let columnIndex = i % masonryColumns;
columns[columnIndex].appendChild(items[i]);
}
}
// Update masonry layout on window resize
window.addEventListener('resize', function() {
updateMasonry();
});
updateMasonry();
};
window.onload = function() {
// Existing code...
updateMasonry();
};
// Function to scroll to the top of the page
function scrollToTop() {
document.body.scrollTop = 0; // For Safari
document.documentElement.scrollTop = 0; // For Chrome, Firefox, IE, and Opera
}
// Show/hide the button based on scroll position
window.onscroll = function() {
toggleScrollToTopButton();
};
function toggleScrollToTopButton() {
var scrollToTopButton = document.getElementById("scrollToTopBtn");
var scrollThresholdDesktop = 1000; // Desktop view threshold
var scrollThresholdMobile = 3000; // Mobile view threshold
var stopScrollingBeforeBottom = 200; // Stop scrolling 300px before reaching the bottom
// Display the button based on the viewport width
var scrollThreshold = window.innerWidth >= 768 ? scrollThresholdDesktop : scrollThresholdMobile;
// Calculate the remaining height to the bottom
var remainingHeight = document.documentElement.scrollHeight - (window.innerHeight + window.scrollY);
// Display the button when scrolling down to the specified threshold and before reaching the bottom
if (document.body.scrollTop > scrollThreshold || document.documentElement.scrollTop > scrollThreshold) {
if (remainingHeight > stopScrollingBeforeBottom) {
scrollToTopButton.style.display = "block";
} else {
scrollToTopButton.style.display = "none";
}
} else {
scrollToTopButton.style.display = "none";
}
}
</script>
</body>
</html>