-
Notifications
You must be signed in to change notification settings - Fork 0
/
NoRivals.html
152 lines (141 loc) · 5.44 KB
/
NoRivals.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
<!DOCTYPE html>
<html>
<head>
<title>No Rivals</title>
<link rel = "stylesheet" href="CSS Code/dallas.css">
</head>
<body>
<nav id="desktop-nav">
<div class="nav-container">
<!-- Left-aligned logo and links -->
<div class="left-nav">
<div class="logo">
<a href="index.html">Hayden Barogh</a>
</div>
</div>
<!-- Center-aligned nav links -->
<div class="center-nav">
<ul class="nav-links">
<li><a href="about.html">About</a></li>
<li><a href="works.html">Works</a></li>
<li><a href="Contact.html">Contact</a></li>
</ul>
</div>
<!-- Right-aligned Instagram logo -->
<div class="right-nav">
<a href="https://www.instagram.com/haydenbproductions?igsh=MWVwejF6MmtrcTMycA%3D%3D&utm_source=qr" target="_blank">
<img src="Images/logos/Instagram-Logo.png" alt="Instagram" class="social-logo">
</a>
</div>
</div>
</nav>
<nav id="hamburger-nav">
<div class="logo">
<a href="index.html">Hayden Barogh</a>
</div>
<div class="hamburger-menu">
<div class="hamburger-icon" onclick="toggleMenu()">
<span></span>
<span></span>
<span></span>
</div>
<div class="menu-links">
<li><a href="about.html" onclick="toggleMenu()">About</a></li>
<li><a href="works.html" onclick="toggleMenu()">Works</a></li>
<li><a href="Contact.html" onclick="toggleMenu()">Contact</a></li>
<li>
<a href="https://www.instagram.com/haydenbproductions?igsh=MWVwejF6MmtrcTMycA%3D%3D&utm_source=qr" target="_blank" onclick="toggleMenu()">
<img src="Images/logos/Instagram-Logo.png" alt="Instagram" class="social-logo">
</a>
</li>
</div>
</div>
</nav>
<h1 class="page-title">No Rivals</h1>
<div class="gallery">
<div class="gallery-item">
<img src="Images/NoRivals/IMG_3751.jpg" alt="Photo 1" class="gallery-photo" loading="lazy">
</div>
<div class="gallery-item">
<img src="Images/NoRivals/IMG_3750.jpg" alt="Photo 2" class="gallery-photo" loading="lazy">
</div>
<div class="gallery-item">
<img src="Images/NoRivals/IMG_3707.jpg" alt="Photo 3" class="gallery-photo" loading="lazy">
</div>
<div class="gallery-item">
<img src="Images/NoRivals/IMG_3730.jpg" alt="Photo 4" class="gallery-photo" loading="lazy">
</div>
<div class="gallery-item">
<img src="Images/NoRivals/IMG_3733.jpg" alt="Photo 5" class="gallery-photo" loading="lazy">
</div>
<div class="gallery-item">
<img src="Images/NoRivals/IMG_0537-2.jpg" alt="Photo 6" class="gallery-photo" loading="lazy">
</div>
<div class="gallery-item">
<img src="Images/NoRivals/IMG_0559.jpg" alt="Photo 7" class="gallery-photo" loading="lazy">
</div>
<div class="gallery-item">
<img src="Images/NoRivals/IMG_0562-2.jpg" alt="Photo 8" class="gallery-photo" loading="lazy">
</div>
<div class="gallery-item">
<img src="Images/NoRivals/IMG_0465-2.jpg" alt="Photo 9" class="gallery-photo" loading="lazy">
</div>
<div class="gallery-item">
<img src="Images/NoRivals/IMG_9083.jpg" alt="Photo 10" class="gallery-photo" loading="lazy">
</div>
<div class="gallery-item">
<img src="Images/NoRivals/IMG_9265.jpg" alt="Photo 11" class="gallery-photo" loading="lazy">
</div>
<div class="gallery-item">
<img src="Images/NoRivals/IMG_9325.jpg" alt="Photo 12" class="gallery-photo" loading="lazy">
</div>
<!-- Add more photos as needed -->
</div>
<!-- Lightbox for viewing images -->
<div id="lightbox" class="lightbox">
<span class="close">×</span>
<img class="lightbox-content" id="lightbox-img">
</div>
<!-- Link to the external JS file -->
<script src="script.js"></script>
<script>
// Get the lightbox elements
var lightbox = document.getElementById("lightbox");
var lightboxImg = document.getElementById("lightbox-img");
var close = document.getElementsByClassName("close")[0];
// Loop through all images with the "gallery-photo" class
var photos = document.getElementsByClassName("gallery-photo");
for (let i = 0; i < photos.length; i++) {
photos[i].onclick = function() {
lightbox.style.display = "block";
lightboxImg.src = this.src;
}
}
// Close the lightbox when the user clicks on the "close" button
close.onclick = function() {
lightbox.style.display = "none";
}
// Close the lightbox when the user clicks anywhere outside of the image
lightbox.onclick = function(event) {
if (event.target !== lightboxImg) {
lightbox.style.display = "none";
}
}
</script>
<script>
document.addEventListener('DOMContentLoaded', function () {
const items = document.querySelectorAll('.gallery-item');
const observer = new IntersectionObserver((entries) => {
entries.forEach(entry => {
if (entry.isIntersecting) {
entry.target.classList.add('visible');
}
});
}, { threshold: 0.2 }); // Adjust the threshold for triggering the fade-in
items.forEach(item => {
observer.observe(item);
});
});
</script>
</body>
</html>