-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
312 lines (299 loc) · 13.2 KB
/
index.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
300
301
302
303
304
305
306
307
308
309
310
311
312
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Portfolio</title>
<link rel="stylesheet" href="assets/font-icons/themify-icons/themify-icons.css">
<link rel="stylesheet" href="assets/css/style.css">
<link rel="stylesheet" href="assets/css/responsive.css">
</head>
<body>
<div id="header">
<div id="my-nav-bar" class="my-nav-bar-js">
<div id="main-nav">
<a href="#" class="reset padding-8-16 color-gray hover-grey bar-item-js">HOME</a>
<a href="#about-me" class="reset padding-8-16 color-gray hover-grey hide-small bar-item-js">
<i class="ti-user font-13"></i>
ABOUT
</a>
<a href="#portfolio" class="reset padding-8-16 color-gray hover-grey hide-small bar-item-js">
<i class="ti-layout-grid3-alt font-13"></i>
PORTFOLIO</a>
<a href="#where-my-work" class="reset padding-8-16 color-gray hover-grey hide-small bar-item-js">
<i class="ti-email font-13"></i>
CONTACT
</a>
</div>
<div class="padding-8-16 hover-red hide-small">
<i class="ti-search font-13 hide-small"></i>
</div>
<div class="padding-8-16 hover-black hide-large menu-btn-js">
<i class="ti-menu font-13"></i>
</div>
</div>
</div>
<div id="mobile-bar" class="mobile-bar-js white hide-large">
<div class="reset padding-8-16 hover-grey bar-item-js">ABOUT</div>
<div class="reset padding-8-16 hover-grey bar-item-js">PORTFOLIO</div>
<div class="reset padding-8-16 hover-grey bar-item-js">CONTACT</div>
<div class="reset padding-8-16 hover-grey bar-item-js">SEARCH</div>
</div>
<div id="large-image-1" class="bg-img1 opacity-min" style="white-space:nowrap;">
<span class="display-middle bc-black color-white font-24 padding-12-24 letter-spacing-10 line-height-normal">MY <span
class="hide-small">WEBSITE</span> LOGO</span>
</div>
<div id="about-me" class="content padding-64-16 text-center color-gray">
<h3>ABOUT ME</h3>
<em class="margin-15-0">I love photography</em>
<p class="text-justify margin-15-0">We have created a fictional "personal" website/blog, and our fictional character
is a hobby photographer. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor
incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris
nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum
dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia
deserunt mollit anim id est laborum consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et
dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea
commodo consequat.</p>
<div class="flex-box flex-column">
<div class="width-50 padding-12-24 width-small">
<p class="margin-15-0">
<b>
<i class="ti-user font-13"></i>
My Name
</b>
</p>
<br>
<img class="width-100 h-opacity hover-full" src="/assets/imgs/avatar_hat.jpg" alt="">
</div>
<div class="width-50 padding-12-24 hide-small">
<p class="margin-15-0 text-justify">Welcome to my website. I am lorem ipsum consectetur adipiscing elit, sed
do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud
exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in
reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat
cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum consectetur
adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim
veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
</div>
</div>
<p class="padding-16-0 margin-18-0 font-18">Im really good at:</p>
<p class="margin-15-0 text-start letter-spacing-10">
<i class="ti-camera"></i>photography
</p>
<div class="bc-light-gray width-100">
<div class="padding-4-8 bc-gray-black color-white" style="width: 90%;">90%</div>
</div>
<p class="margin-15-0 text-start letter-spacing-10">
<i class="ti-layout-media-overlay"></i>Web Design
</p>
<div class="bc-light-gray width-100">
<div class="padding-4-8 bc-gray-black color-white" style="width: 85%;">85%</div>
</div>
<p class="margin-15-0 text-start letter-spacing-10">
<i class="ti-layout-cta-left"></i>Photoshop
</p>
<div class="bc-light-gray width-100">
<div class="padding-4-8 bc-gray-black color-white" style="width: 75%;">75%</div>
</div>
</div>
<div class="flex-box flex-column padding-16-0 bc-gray-black text-center color-white">
<div class="width-25 margin-16-0 width-small">
<span class="font-24">14+</span>
<br>
Partners
</div>
<div class="width-25 margin-16-0 width-small">
<span class="font-24">55+</span>
<br>
Projects Done
</div>
<div class="width-25 margin-16-0 width-small">
<span class="font-24">89+</span>
<br>
Happy Clients
</div>
<div class="width-25 margin-16-0 width-small">
<span class="font-24">150+</span>
<br>
Meetings
</div>
</div>
<!--Large image two-->
<div id="large-image-2" class="bg-img2 opacity-min">
<span class="display-middle font-36 letter-spacing-10 color-white">PORTFOLIO</span>
</div>
<div id="portfolio" class="content padding-64-16 text-center">
<h3 class="color-gray">MY WORK</h3>
<p class="margin-15-0">
<em class="color-gray">
Here are some of my latest lorem work ipsum tipsum.
<br>
Click on the images to make them bigger
</em>
</p>
<br>
<div class="flex-box flex-column margin-bottom-16">
<div class="width-25 padding-0-8 width-small">
<img src="/assets/imgs/p1.jpg" alt="The mist over the mountains" class="hover-light-gray width-100"
onclick="openModal(this)">
</div>
<div class="width-25 padding-0-8 width-small">
<img src="/assets/imgs/p2.jpg" alt="Coffee beans" class="hover-light-gray width-100"
onclick="openModal(this)">
</div>
<div class="width-25 padding-0-8 width-small">
<img src="/assets/imgs/p3.jpg" alt="Bear closeup" class="hover-light-gray width-100"
onclick="openModal(this)">
</div>
<div class="width-25 padding-0-8 width-small">
<img src="/assets/imgs/p4.jpg" alt="Quiet ocean" class="hover-light-gray width-100"
onclick="openModal(this)">
</div>
</div>
<div class="flex-box flex-column">
<div class="width-25 padding-0-8 width-small">
<img src="/assets/imgs/p5.jpg" alt="The mist" class="hover-light-gray width-100" onclick="openModal(this)">
</div>
<div class="width-25 padding-0-8 width-small">
<img src="/assets/imgs/p6.jpg" alt="My beloved typewriter" class="hover-light-gray width-100"
onclick="openModal(this)">
</div>
<div class="width-25 padding-0-8 width-small">
<img src="/assets/imgs/p7.jpg" alt="Empty ghost train" class="hover-light-gray width-100"
onclick="openModal(this)">
</div>
<div class="width-25 padding-0-8 width-small">
<img src="/assets/imgs/p8.jpg" alt="Sailing" class="hover-light-gray width-100" onclick="openModal(this)">
</div>
</div>
<button id="load-btn" class="reset padding-12-24 hover-grey">LOAD MORE</button>
</div>
<!--Large image three-->
<div id="large-image-3" class="bg-img3 opacity-min">
<span class="display-middle font-36 letter-spacing-10 color-white">CONTACT</span>
</div>
<div class="content padding-64-16" id="where-my-work">
<h3 class="color-gray text-center">WHERE MY WORK</h3>
<p class="margin-15-0 text-center">
<em class="color-gray">I'd love your feedback!</em>
</p>
<div class="flex-box padding-32-0 margin-15-0 flex-column">
<div class="width-third padding-0-16 width-small">
<img class="width-100" src="/assets/imgs/map.jpg" alt="">
</div>
<div class="width-twothird padding-0-16 margin-16-0 width-small">
<div class="font-18 color-gray margin-bottom-16">
<i class="ti-location-pin margin-right-16"></i>
Chicago, US
<br>
<i class="ti-tablet margin-right-16"></i>
Phone: +00 151515
<br>
<i class="ti-email margin-right-16"></i>
Email: mail@mail.com
</div>
<p class="color-gray margin-15-0">Swing by for a cup of <i class="ti-face-smile"></i>, or leave me a note:
</p>
<form action="">
<div class="flex-box flex-column margin-bottom-8">
<input
type="text"
class="h-input reset margin-right-16"
placeholder="Name"
required
name="Name"
>
<input
type="text"
class="h-input reset"
placeholder="Email"
required
name="Email"
>
</div>
<input
type="text"
class="h-input reset"
placeholder="Message"
required
name="Message"
>
<div id="submit-section">
<button class="h-button reset color-white bc-black margin-15-0 hover-grey">SEND MESSAGE</button>
</div>
</form>
</div>
</div>
</div>
<div id="footer" class="bc-gray-black hover-black">
<div id="footer-body" class="padding-64-16 text-center">
<a href="" class="h-button bc-light-gray color-gray hover-grey">
<i class="ti-arrow-up"></i>
To the top
</a>
<p class="margin-16-0 font-24 color-white">
<i class="ti-facebook"></i>
<i class="ti-instagram"></i>
<i class="ti-youtube"></i>
<i class="ti-pinterest"></i>
<i class="ti-twitter-alt"></i>
<i class="ti-linkedin"></i>
</p>
<p class="margin-15-0 color-white">
Powed by w3.css
</p>
</div>
</div>
<div id="modal" class="modal-js">
<a id="modal-close" class="padding-8-16 hover-grey modal-close-js">
<i class="ti-close"></i>
</a>
<div id="modal-content" class="padding-64-0 text-center">
<img id="modal-img" src="./assets/imgs/p1.jpg" alt="" class="modal-img-js">
<p id="caption" class="margin-15-0 font-18 h-opacity caption-js">The mist over the mountains</p>
</div>
</div>
<script>
//Scroll bar
const myNavBar = document.querySelector('.my-nav-bar-js');
const barItemList = document.querySelectorAll('.bar-item-js');
window.onscroll = function () {
if (document.body.scrollTop > 100 ||
document.documentElement.scrollTop > 100) {
myNavBar.className = 'my-nav-bar-js animate-top box-shadow white';
barItemList.forEach(item => {
item.className = item.className.replace('color-gray', 'color-black');
});
} else {
myNavBar.className = myNavBar.className.replace(' animate-top box-shadow white', '');
barItemList.forEach(item => {
item.className = item.className.replace('color-black', 'color-gray');
});
}
}
//Show mobile bar
const menuBtn = document.querySelector('.menu-btn-js');
const mobileBar = document.querySelector('.mobile-bar-js');
menuBtn.addEventListener('click', () => {
if (mobileBar.style.display === 'none' || mobileBar.style.display === '') {
mobileBar.style.display = 'block';
} else {
mobileBar.style.display = 'none';
}
});
//Handle modal
const modal = document.querySelector('.modal-js');
const modalClose = document.querySelector('.modal-close-js');
const modalImg = document.querySelector('.modal-img-js');
const caption = document.querySelector('.caption-js');
const hideModal = () => {
modal.style.display = 'none';
}
const openModal = (element) => {
modalImg.src = element.src;
caption.innerHTML = element.alt;
modal.style.display = 'block';
}
modalClose.addEventListener('click', hideModal);
</script>
</body>
</html>