-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
428 lines (370 loc) · 18.3 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
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
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Личный Сайт</title>
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="preloader.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600;700&family=Montserrat:wght@300;400;500;600&family=Playfair+Display:wght@400;500;600;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
<script type="text/javascript">
(function(c,l,a,r,i,t,y){
c[a]=c[a]||function(){(c[a].q=c[a].q||[]).push(arguments)};
t=l.createElement(r);t.async=1;t.src="https://www.clarity.ms/tag/"+i;
y=l.getElementsByTagName(r)[0];y.parentNode.insertBefore(t,y);
})(window, document, "clarity", "script", "pq4b0ekp1a");
</script>
</head>
<body>
<!-- Preloader -->
<div class="preloader"></div>
<!-- Navigation -->
<nav>
<div class="nav-content">
<div class="menu-btn">
<span></span>
<span></span>
<span></span>
</div>
<ul class="nav-menu">
<li><a href="#home">ГЛАВНАЯ</a></li>
<li><a href="#about">ОБО МНЕ</a></li>
<li><a href="#gallery">ГАЛЕРЕЯ</a></li>
<li><a href="#contact">КОНТАКТЫ</a></li>
</ul>
</div>
</nav>
<!-- Hero Section -->
<section class="hero" id="home">
<div class="hero-content">
<img src="/assets/5.jpg" alt="Profile Image" class="profile-image">
<h1><span>Нурлан Мамедов</span></h1>
<p>ГЕНИЙ. МИЛЛИАРДЕР. ПЛЕЙБОЙ. ФИЛАНТРОП.</p>
<div class="quote">
"Жизнь - это не поиск себя. Жизнь - это создание себя."
<span class="quote-author">- Бернард Шоу</span>
</div>
</div>
</section>
<!-- About Section -->
<section class="about" id="about">
<div class="about-content">
<h2>ОБО МНЕ</h2>
<p class="quote-large">"Настоящее богатство — это не деньги, а возможности, которые они открывают."</p>
<p class="about-text">
Я — человек, который верит в силу развития и личностного роста. Мой путь сформирован множеством уникальных встреч, приключений и увлечений. Я увлекаюсь путешествиями, саморазвитием и философией, всегда стремлюсь узнать больше о себе и окружающем мире. Для меня каждый день — это шанс стать лучше и вдохновить других. Открыт для общения с интересными людьми и новых идей, которые могут изменить мир.
</p>
</div>
</section>
<!-- Gallery Section -->
<section class="gallery" id="gallery">
<h2>ГАЛЕРЕЯ</h2>
<div class="gallery-grid">
<div class="gallery-item">
<img src="/assets/1.jpg" alt="Gallery Image 1">
<div class="overlay">
<!-- Removed text -->
</div>
</div>
<div class="gallery-item">
<img src="/assets/2.jpg" alt="Gallery Image 1">
<div class="overlay">
<!-- Removed text -->
</div>
</div>
<div class="gallery-item">
<img src="/assets/3.jpg" alt="Gallery Image 1">
<div class="overlay">
<!-- Removed text -->
</div>
</div>
<div class="gallery-item">
<img src="/assets/4.jpg" alt="Gallery Image 1">
<div class="overlay">
<!-- Removed text -->
</div>
</div>
<div class="gallery-item">
<img src="/assets/5.jpg" alt="Gallery Image 1">
<div class="overlay">
<!-- Removed text -->
</div>
</div>
</div>
</section>
<!-- Contact Section -->
<section class="contact" id="contact">
<h2>СВЯЗАТЬСЯ СО МНОЙ</h2>
<p class="contact-intro">Я всегда рад новым знакомствам и интересным проектам. Не стесняйтесь связаться со мной!</p>
<div class="contact-content">
<div class="contact-info">
<div class="contact-item">
<i class="fab fa-telegram"></i>
<a href="https://t.me/Saint_Sobazell" target="_blank">Telegram</a>
</div>
<div class="contact-item">
<i class="fab fa-instagram"></i>
<a href="https://www.instagram.com/_nurlan_mamedov_" target="_blank">Instagram</a>
</div>
<div class="contact-item">
<i class="fas fa-map-marker-alt"></i>
<span>Владивосток, Россия</span>
</div>
</div>
<form class="contact-form">
<input type="text" name="name" placeholder="Ваше имя" required>
<input type="email" name="email" placeholder="Ваш email" required>
<textarea name="message" placeholder="Ваше сообщение" required></textarea>
<button type="submit">Отправить</button>
</form>
</div>
</section>
<!-- Footer -->
<footer>
<div class="footer-content">
<div class="social-links">
<a href="https://t.me/Saint_Sobazell" class="social-link"><i class="fab fa-telegram"></i></a>
<a href="https://www.instagram.com/_nurlan_mamedov_" class="social-link"><i class="fab fa-instagram"></i></a>
</div>
<p class="copyright">© 2024 Нурлан Мамедов. Все права защищены.</p>
<p class="watermark">Site made by <a href="https://abusov.com" target="_blank">Nijat Abushov</a></p>
</div>
</footer>
<!-- Popup Overlay -->
<div class="popup-overlay">
<div class="popup-content">
<button class="popup-close"><i class="fas fa-times"></i></button>
<img src="" alt="">
</div>
</div>
<script>
document.addEventListener('DOMContentLoaded', () => {
// Calculate scrollbar width
const scrollbarWidth = window.innerWidth - document.documentElement.clientWidth;
document.documentElement.style.setProperty('--scrollbar-width', `${scrollbarWidth}px`);
// Add loading class to html
document.documentElement.classList.add('loading');
// Preloader
const preloader = document.querySelector('.preloader');
const heroTitle = document.querySelector('.hero h1 span');
window.addEventListener('load', () => {
setTimeout(() => {
preloader.classList.add('fade-out');
// Remove loading class after animation
setTimeout(() => {
document.documentElement.classList.remove('loading');
preloader.remove();
// Start typing animation after preloader is gone
setTimeout(() => {
heroTitle.classList.add('typing');
}, 100); // Slightly reduced delay
}, 400); // Slightly reduced delay
}, 800);
});
// Force scroll to top on page refresh
if (history.scrollRestoration) {
history.scrollRestoration = 'manual';
}
window.scrollTo(0, 0);
// Mobile menu functionality
const menuBtn = document.querySelector('.menu-btn');
const navMenu = document.querySelector('.nav-menu');
const navLinks = document.querySelectorAll('.nav-menu a');
menuBtn.addEventListener('click', () => {
menuBtn.classList.toggle('open');
navMenu.classList.toggle('open');
});
// Close menu when clicking a link
navLinks.forEach(link => {
link.addEventListener('click', (e) => {
e.preventDefault(); // Prevent default anchor behavior
menuBtn.classList.remove('open');
navMenu.classList.remove('open');
const targetId = link.getAttribute('href').substring(1);
const targetSection = document.getElementById(targetId);
if (targetSection) {
targetSection.scrollIntoView({
behavior: 'smooth',
block: 'start'
});
}
});
});
// Active menu handler
const sections = document.querySelectorAll('section');
function setActiveMenu() {
let current = '';
sections.forEach(section => {
const sectionTop = section.offsetTop;
const sectionHeight = section.clientHeight;
if (window.scrollY >= (sectionTop - sectionHeight/3)) {
current = section.getAttribute('id');
}
});
navLinks.forEach(link => {
link.classList.remove('active');
if (link.getAttribute('href').substring(1) === current) {
link.classList.add('active');
}
});
}
window.addEventListener('scroll', setActiveMenu);
window.addEventListener('load', setActiveMenu);
// Slider functionality
const slider = {
slides: document.querySelectorAll('.slide'),
dots: document.querySelectorAll('.dot'),
prevBtn: document.querySelector('.prev-btn'),
nextBtn: document.querySelector('.next-btn'),
sliderContainer: document.querySelector('.interests-slider'),
currentSlide: 0,
touchStartX: 0,
touchEndX: 0,
mouseStartX: 0,
mouseEndX: 0,
isDragging: false,
init() {
this.prevBtn.addEventListener('click', () => this.changeSlide('prev'));
this.nextBtn.addEventListener('click', () => this.changeSlide('next'));
this.dots.forEach((dot, index) => {
dot.addEventListener('click', () => this.goToSlide(index));
});
// Touch Events (Mobile)
this.sliderContainer.addEventListener('touchstart', (e) => {
this.touchStartX = e.touches[0].clientX;
}, { passive: true });
this.sliderContainer.addEventListener('touchmove', (e) => {
this.touchEndX = e.touches[0].clientX;
e.preventDefault(); // Prevent scrolling while swiping
}, { passive: false });
this.sliderContainer.addEventListener('touchend', () => {
this.handleSwipe(this.touchStartX, this.touchEndX);
});
// Mouse Events (Desktop)
this.sliderContainer.addEventListener('mousedown', (e) => {
this.isDragging = true;
this.mouseStartX = e.clientX;
this.sliderContainer.style.cursor = 'grabbing';
});
document.addEventListener('mousemove', (e) => {
if (this.isDragging) {
this.mouseEndX = e.clientX;
}
});
document.addEventListener('mouseup', () => {
if (this.isDragging) {
this.handleSwipe(this.mouseStartX, this.mouseEndX);
this.isDragging = false;
this.sliderContainer.style.cursor = 'grab';
}
});
},
handleSwipe(startX, endX) {
const swipeDistance = startX - endX;
const minSwipeDistance = 30; // Reduced threshold for more responsive swipes
if (Math.abs(swipeDistance) > minSwipeDistance) {
if (swipeDistance > 0) {
this.changeSlide('next');
} else {
this.changeSlide('prev');
}
}
},
changeSlide(direction) {
this.slides[this.currentSlide].classList.remove('active');
this.dots[this.currentSlide].classList.remove('active');
if (direction === 'next') {
this.currentSlide = (this.currentSlide + 1) % this.slides.length;
} else {
this.currentSlide = (this.currentSlide - 1 + this.slides.length) % this.slides.length;
}
this.slides[this.currentSlide].classList.add('active');
this.dots[this.currentSlide].classList.add('active');
},
goToSlide(index) {
this.slides[this.currentSlide].classList.remove('active');
this.dots[this.currentSlide].classList.remove('active');
this.currentSlide = index;
this.slides[this.currentSlide].classList.add('active');
this.dots[this.currentSlide].classList.add('active');
}
};
slider.init();
// Popup functionality
const popup = document.querySelector('.popup-overlay');
const popupContent = popup.querySelector('.popup-content');
const popupClose = popup.querySelector('.popup-close');
const popupImg = popup.querySelector('img');
const popupTitle = popup.querySelector('h3');
const popupDesc = popup.querySelector('p');
const galleryItems = document.querySelectorAll('.gallery-item');
function openPopup(item) {
const img = item.querySelector('img');
const title = item.querySelector('.overlay span').textContent;
const desc = item.querySelector('.overlay p').textContent;
popupImg.src = img.src;
popupImg.alt = img.alt;
popupTitle.textContent = title;
popupDesc.textContent = desc;
popup.classList.add('active');
document.body.style.overflow = 'hidden'; // Prevent scrolling
}
function closePopup() {
popup.classList.remove('active');
document.body.style.overflow = ''; // Restore scrolling
}
// Add click events to gallery items
galleryItems.forEach(item => {
item.addEventListener('click', () => openPopup(item));
});
// Close popup when clicking close button or outside
popupClose.addEventListener('click', closePopup);
popup.addEventListener('click', (e) => {
if (e.target === popup) closePopup();
});
// Close popup with Escape key
document.addEventListener('keydown', (e) => {
if (e.key === 'Escape') closePopup();
});
// Prevent popup content clicks from closing the popup
popupContent.addEventListener('click', (e) => {
e.stopPropagation();
});
// Intersection Observer for scroll animations
const observerOptions = {
root: null,
threshold: 0.1,
rootMargin: '-50px'
};
const animatedSections = document.querySelectorAll('section:not(.hero)');
function handleIntersection(entries, observer) {
entries.forEach(entry => {
if (entry.isIntersecting) {
const section = entry.target;
section.style.opacity = '0';
section.style.transform = 'translateY(50px)';
// Force reflow
section.offsetHeight;
// Add animation
section.style.transition = 'all 0.8s ease-out';
section.style.opacity = '1';
section.style.transform = 'translateY(0)';
observer.unobserve(section);
}
});
}
const sectionObserver = new IntersectionObserver(handleIntersection, observerOptions);
// Initialize sections
animatedSections.forEach(section => {
section.style.opacity = '0';
section.style.transform = 'translateY(50px)';
sectionObserver.observe(section);
});
});
</script>
<script defer src="https://cloud.umami.is/script.js" data-website-id="62f9e3d1-48fb-4303-933d-0f2f1e6b8a25"></script>
</body>
</html>