-
Notifications
You must be signed in to change notification settings - Fork 0
/
gallery-page.html
70 lines (65 loc) · 2.75 KB
/
gallery-page.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="gallery-page.css">
</head>
<body>
<div id="navbar"></div>
<div class="gal-body">
<div class = "gal-bg">
<h1 class="gallery-main-head">Gallery</h1>
<article class="gallery">
<a>
<img src="https://tse1.mm.bing.net/th?id=OIP.Ajdh_kw2GFtQzwODj_J5JgHaEK&pid=Api&P=0&h=180" alt="guitar player at concert" />
</a>
<a href="https://comicss.art" target="_top">
<img src="https://tse4.mm.bing.net/th?id=OIP.dHksvaksxVKmLgSogysTpgHaD4&pid=Api&P=0&h=180" alt="duo singing" />
</a>
<a>
<img src="https://tse2.mm.bing.net/th?id=OIP.cxQ9JAo9uNGFAmKIZ5wCyQAAAA&pid=Api&P=0&h=180" alt="crowd cheering" />
</a>
<a>
<img src="https://aniportalimages.s3.amazonaws.com/media/details/NxtWave_Logo2021090907535420210909075559.jpg" alt="singer performing" />
</a>
<a>
<img src="https://tse3.mm.bing.net/th?id=OIP.cAOgGado1bxM1YYddUMQqwHaEK&pid=Api&P=0&h=180" alt="singer fistbumping crowd" />
</a>
<a>
<img src="https://assets.codepen.io/1506195/unsplash-music-5.avif" alt="man with a guitar singing" />
</a>
<a>
<img src="https://res.cloudinary.com/dqaznnail/image/upload/v1730540755/z7b6ymma3hdz2ogkf9wa.jpg" alt="" />
</a>
<a>
<img src="https://assets.codepen.io/1506195/unsplash-music-7.avif" alt="woman singing on stage" />
</a>
</article>
</div>
</div>
<div id="footer"></div>
<script>
// JavaScript to load the navbar
fetch("navbar.html")
.then(response => response.text())
.then(data => {
document.getElementById("navbar").innerHTML = data;
// Change navbar color based on the page after navbar is loaded
const currentPage = window.location.pathname; // Current page path
if (currentPage.includes("galler-page.html") || currentPage.includes("/gallery-page")) {
document.getElementById("navbar").style.backgroundColor = "#1e3a6e"; // Different color for Page 2
}
})
.catch(error => console.error('Error loading navbar:', error)); // Error handling
// Load the footer
fetch("footer.html")
.then(response => response.text())
.then(data => {
document.getElementById("footer").innerHTML = data;
})
.catch(error => console.error('Error loading footer:', error)); // Error handling
</script>
</body>
</html>