-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgallery.html
More file actions
134 lines (126 loc) · 5.05 KB
/
gallery.html
File metadata and controls
134 lines (126 loc) · 5.05 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<title class="gal">SpaceX Gallery</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/css/bootstrap.min.css" integrity="sha384-xOolHFLEh07PJGoPkLv1IbcEPTNtaed2xpHsD9ESMhqIYd0nLMwNLD69Npy4HI+N" crossorigin="anonymous">
<link rel="stylesheet" href="./css/style.css">
<link rel="stylesheet" href="./css/navbar.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css"/>
<style>
/* Custom CSS for larger carousel images on mobile view */
@media (max-width: 576px) {
.carousel-inner img {
width: 100%;
max-height: 400px; /* You can adjust the maximum height as needed */
object-fit: cover;
}
}
@media (max-width: 576px) {
.carousel-inner img {
width: 100%;
max-height: 400px; /* You can adjust the maximum height as needed */
object-fit: cover;
}
}
</style>
</head>
<body style="background-color: black;">
<nav>
<input type="checkbox" id="check">
<label for="check" class="checkbtn">
<i class="fas fa-bars"></i>
</label>
<label class="logo">
<img src="./images/logo.png" height="100px" alt="SpaceX">
</label>
<ul>
<li><a href="/index.html">Home</a></li>
<li><a href="/founder.html">Founder</a></li>
<li><a href="/projects.html">Projects</a></li>
<li><a class="active" href="/gallery.html">Gallery</a></li>
</ul>
</nav>
<br>
<br>
<br>
<div class="container">
<div id="carouselExampleCaptions" class="carousel slide" data-ride="carousel">
<ol class="carousel-indicators">
<li data-target="#carouselExampleCaptions" data-slide-to="0" class="active"></li>
<li data-target="#carouselExampleCaptions" data-slide-to="1"></li>
<li data-target="#carouselExampleCaptions" data-slide-to="2"></li>
<li data-target="#carouselExampleCaptions" data-slide-to="3"></li>
<li data-target="#carouselExampleCaptions" data-slide-to="4"></li>
<li data-target="#carouselExampleCaptions" data-slide-to="5"></li>
</ol>
<div class="carousel-inner">
<div class="carousel-item active">
<img src="/images/ver8.jpg" class="d-block w-100" alt="...">
<div class="carousel-caption d-none d-md-block">
</div>
</div>
<div class="carousel-item">
<img src="/images/ver2.jpg" class="d-block w-100" alt="...">
<div class="carousel-caption d-none d-md-block">
</div>
</div>
<div class="carousel-item">
<img src="images/ver9.jpg" class="d-block w-100" alt="...">
<div class="carousel-caption d-none d-md-block">
</div>
</div>
<div class="carousel-item">
<img src="images/ver4.jpg" class="d-block w-100" alt="...">
<div class="carousel-caption d-none d-md-block">
</div>
</div>
<div class="carousel-item">
<img src="images/ver6.jpg" class="d-block w-100" alt="...">
<div class="carousel-caption d-none d-md-block">
</div>
</div>
<div class="carousel-item">
<img src="images/ver5.jpg" class="d-block w-100" alt="...">
<div class="carousel-caption d-none d-md-block">
</div>
</div>
</div>
<button class="carousel-control-prev" type="button" data-target="#carouselExampleCaptions" data-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</button>
<button class="carousel-control-next" type="button" data-target="#carouselExampleCaptions" data-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</button>
</div>
</div>
<!-- <script>
const checkBtn = document.querySelector('.checkbtn');
const header2 = document.querySelector('.header2');
const timelineEntries = document.querySelectorAll('.dabba');
checkBtn.addEventListener('click', () => {
header2.style.display = header2.style.display === 'none' ? 'block' : 'none';
timelineEntries.forEach(entry => {
entry.style.display = entry.style.display === 'none' ? 'block' : 'none';
});
});
</script> -->
<script>
const checkBtn = document.querySelector('.checkbtn');
const container = document.querySelectorAll('.container');
// Toggle carousel captions and navigation on hamburger menu click
checkBtn.addEventListener('click', () => {
container.forEach(caption => {
caption.classList.toggle('d-none'); // Toggle the 'd-none' class
});
});
</script>
<br />
<br />
<script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-Fy6S3B9q64WdZWQUiU+q4/2Lc9npb8tCaSX9FK7E8HnRr0Jz8D6OP9dO5Vg3Q9ct" crossorigin="anonymous"></script>
</body>
</html>