-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFREELANCING.html
299 lines (251 loc) · 9.46 KB
/
FREELANCING.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
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
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Google tag (gtag.js) -->
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-SK797FYR9W"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-SK797FYR9W');
</script>
<script src="https://use.fontawesome.com/7bfc5a1c66.js"></script>
<script src="https://kit.fontawesome.com/d32b56e4b3.js" crossorigin="anonymous"></script>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link href="https://fonts.googleapis.com/css2?family=Gotu&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
<link href="media-web.css" type="text/css" rel="stylesheet">
<title>Lamekh Photography Gallery</title>
<link rel="shortcut icon" href="./shoots/LamekH Photography logo.gif"/>
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #f4f4f4;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 10px;
background-color: rgb(33, 24, 68)
}
.gallery {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
grid-gap: 20px;
background-color: grey; /* Set the background color here */
padding: 15px;
}
.gallery-item {
display: flex;
align-items: center;
justify-content: center;
height: 300px; /* Set the desired height here */
/* background-color: darkorange; /* Set the background color here */
}
.gallery-item img {
max-width: 100%;
max-height: 100%;
width: auto;
height: auto;
cursor: pointer;
}
.modal {
display: none;
position: fixed;
z-index: 999;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.8);
}
.modal-content {
display: block;
margin: auto;
width: 80%;
max-width: 800px;
max-height: 80%;
overflow: auto;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
.modal-content img {
width: 100%;
height: auto;
}
.close {
color: #fff;
position: absolute;
top: 15px;
right: 35px;
font-size: 40px;
font-weight: bold;
cursor: pointer;
}
.view-more-btn {
padding: 10px 20px;
background-color: #4CAF50;
color: white;
font-size: 16px;
border: none;
cursor: pointer;
border-radius: 5px;
text-decoration: none;
text-align: center;
/* Remove default link underline */
}
.view-more-btn:hover {
background-color: #45a049; /* Darken the button color on hover */
}
h1{
text-align: center;
}
.close:hover,
.close:focus {
color: #ccc;
text-decoration: none;
cursor: pointer;
}
#viewMoreBtn {
display: none; /* Initially hide the View More button */
margin: 20px auto; /* Added some margin for better spacing */
}
</style>
</head>
<body>
<div>
<div class="bimage">
<div class="upper-box">
<div class=" container border">
<nav style="background-color: rgb(33, 24, 68);" class="navbar navbar-dark navbar-expand-lg container sticky-top" id="main-navi">
<a class="navbar-brand" id="home" href="index.html">
<img src="LamekH Photography logo.png" width="27" height="27" class="d-inline-block align-top" alt="">
LamekH Photography
</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto container" id="nav-links-border">
<li class="nav-item">
<a class="nav-link" href="index.html#about">About</a>
</li>
<li class="nav-item">
<a class="nav-link" href="index.html#services">Services</a>
</li>
<li class="nav-item">
<a class="nav-link" href="contact-form.html">Booking</a>
</li>
<li class="nav-item">
<a class="nav-link" href="LamekH Gallery.html">Gallery</a>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Contact
</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdown" id="drop-menu">
<a class="dropdown-item" href="tel:+264816323668">Call us</a>
<a class="dropdown-item" href="mailto:[email protected]">Email us</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="index.html#follow-us">Social Media</a>
</div>
</li>
</ul>
</div>
</nav>
<div class="who-we-are alert alert-primary justify-content-center text-center" id="about" style="font-family: gotu; background-image:url(./bg-pics/wintry.jpg); border: none;" role="alert">
<br>
<br>
<div class="container">
<h1>Freelancing Gallery</h1>
<div class="gallery">
<!-- Initially display 12 images -->
<div class="gallery-item">
<img src="/FREELANCING/1.jpg" alt="High-fashion model posing in a studio for a professional photoshoot" onclick="openModal('/FREELANCING/1.jpg')">
</div>
<div class="gallery-item">
<img src="/FREELANCING/2.jpg" alt="Outdoor lifestyle photoshoot with a model in Windhoek, Namibia" onclick="openModal('/FREELANCING/2.jpg')">
</div>
<div class="gallery-item">
<img src="/FREELANCING/3.jpg" alt="Creative editorial fashion photography with dramatic lighting" onclick="openModal('/FREELANCING/3.jpg')">
</div>
<div class="gallery-item">
<img src="/FREELANCING/4.jpg" alt="Freelance portrait photography of a smiling model in golden hour" onclick="openModal('/FREELANCING/4.jpg')">
</div>
<div class="gallery-item">
<img src="/FREELANCING/5.jpg" alt="Urban street photography session featuring a stylish model" onclick="openModal('/FREELANCING/5.jpg')">
</div>
<div class="gallery-item">
<img src="/FREELANCING/6.jpg" alt="Glamour photoshoot of a model in elegant evening wear" onclick="openModal('/FREELANCING/6.jpg')">
</div>
<div class="gallery-item">
<img src="/FREELANCING/7.jpg" alt="Freelance photography capturing a model’s candid moment in nature" onclick="openModal('/FREELANCING/7.jpg')">
</div>
<div class="gallery-item">
<img src="/FREELANCING/8.jpg" alt="Beauty and makeup photography featuring a close-up portrait" onclick="openModal('/FREELANCING/8.jpg')">
</div>
<div class="gallery-item">
<img src="/FREELANCING/9.jpg" alt="Dramatic black and white freelance photoshoot for a model portfolio" onclick="openModal('/FREELANCING/9.jpg')">
</div>
<div class="gallery-item">
<img src="/FREELANCING/10.jpg" alt="Couple photoshoot in an urban setting for a freelance photography project" onclick="openModal('/FREELANCING/10.jpg')">
</div>
<div class="gallery-item">
<img src="/FREELANCING/11.jpg" alt="Editorial fashion photography for a Namibian clothing brand" onclick="openModal('/FREELANCING/11.jpg')">
</div>
<div class="gallery-item">
<img src="/FREELANCING/12.jpg" alt="Professional headshot session for a personal branding photoshoot" onclick="openModal('/FREELANCING/12.jpg')">
</div>
<!-- Repeat this block for the remaining 7 images -->
</div>
<!-- View More button -->
<button id="viewMoreBtn" onclick="showMore()">View More</button>
</div>
<div id="myModal" class="modal" onclick="closeModal()">
<span class="close" onclick="closeModal()">×</span>
<img class="modal-content" id="modalImg" onclick="event.stopPropagation()">
</div>
<script>
// Initially hide the View More button
document.getElementById('viewMoreBtn').style.display = 'none';
// Function to display more images
function showMore() {
var galleryItems = document.querySelectorAll('.gallery-item');
// Loop through the next 10 items and make them visible
for (var i = 8; i < 18; i++) {
if (i < galleryItems.length) {
galleryItems[i].style.display = 'flex'; // Display the hidden items
} else {
// Hide the View More button if all images are displayed
document.getElementById('viewMoreBtn').style.display = 'none';
break;
}
}
}
// Function to open the modal
function openModal(src) {
document.getElementById("modalImg").src = src;
document.getElementById("myModal").style.display = "block";
}
// Function to close the modal
function closeModal() {
document.getElementById("myModal").style.display = "none";
}
function closeModal() {
document.getElementById('myModal').style.display = "none";
}
// Function to close modal when ESC key is pressed
document.addEventListener('keydown', function(event) {
if (event.key === "Escape") {
closeModal();
}
});
</script>
</body>
</html>