-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
292 lines (252 loc) · 7.74 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Home - CigarChimp</title>
<link rel="icon" href="https://i.imgur.com/Xvw0EHr.png" type="image/png">
<!-- Link to Bebas Neue Font from Google Fonts -->
<link href="https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap" rel="stylesheet">
<style>
body,
html {
margin: 0;
padding: 0;
overflow: hidden;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
height: 100vh;
width: 100vw;
box-sizing: border-box;
overscroll-behavior: none;
background-color: #f3f2f4;
}
/* Navigation Styles */
nav {
background-color: #f3f2f4;
padding: 10px 32.5px;
width: 100%;
display: flex;
justify-content: space-between;
align-items: center;
position: fixed;
top: 0;
z-index: 100;
}
nav a.logo {
display: flex;
align-items: center;
padding-left: 1%;
padding-top: 1%;
}
nav img {
height: 60px;
cursor: pointer;
padding: 5px;
}
@media (min-width: 769px) {
nav img {
height: 80px;
}
}
nav ul {
list-style: none;
display: flex;
margin: 0;
padding: 0 40px 0 10px;
justify-content: flex-end;
flex: 1;
}
nav ul li {
margin: 0 15px;
}
nav ul li a {
text-decoration: none;
color: #6e6e6e;
font-size: 21.5px;
font-family: 'Bebas Neue', sans-serif;
text-transform: uppercase;
letter-spacing: 0.05em;
line-height: 1.2;
padding: 0 8.5px;
transition: color 0.3s;
}
nav ul li a:hover {
color: #14b6cf;
}
nav ul li a.active {
color: #000000;
}
.hamburger {
display: none;
flex-direction: column;
cursor: pointer;
margin-right: 15px;
padding: 5px;
}
.hamburger div {
width: 25px;
height: 3px;
background-color: #444343;
margin: 4px;
transition: 0.4s;
}
.hamburger.active div:nth-child(1) {
transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active div:nth-child(2) {
opacity: 0;
}
.hamburger.active div:nth-child(3) {
transform: rotate(-45deg) translate(5px, -5px);
}
.overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.8);
display: flex;
justify-content: center;
align-items: center;
visibility: hidden;
opacity: 0;
transition: opacity 0.3s ease;
z-index: 999;
}
.overlay ul {
list-style: none;
padding: 0;
text-align: center;
}
.overlay ul li {
margin: 20px 0;
}
.overlay ul li a {
text-decoration: none;
color: white;
font-size: 20px;
font-family: 'Bebas Neue', sans-serif;
text-transform: uppercase;
letter-spacing: 0.05em;
line-height: 1.2;
padding: 8.5px;
transition: color 0.3s ease;
}
.overlay.active {
visibility: visible;
opacity: 1;
}
.responsive-image {
position: relative;
display: flex;
justify-content: center;
align-items: center;
width: 80%; /* Set width to ensure visibility */
height: auto;
max-height: 80vh;
margin-top: 100px; /* Add margin to avoid overlap with nav */
}
.responsive-image a {
display: block;
width: 65%; /* Adjust width to narrow the clickable area */
margin: 0 auto; /* Center the link */
text-align: center; /* Center the content inside the link */
text-decoration: none;
}
.responsive-image img {
width: 100%;
height: auto;
object-fit: contain;
transition: transform 0.3s ease;
}
.responsive-image a:hover img {
transform: scale(1.03);
}
@media (max-width: 768px) {
nav ul {
display: none;
}
.hamburger {
display: flex;
}
.responsive-image {
width: 100%; /* Full width on mobile */
}
.responsive-image img {
width: 100%;
height: auto;
object-fit: cover;
}
}
@media (min-width: 769px) {
.responsive-image img {
width: 100%;
height: auto;
max-height: 70vh;
object-fit: contain;
}
}
</style>
</head>
<body>
<!-- Navigation Bar -->
<nav>
<a href="index.html" class="logo">
<img src="https://i.imgur.com/Xvw0EHr.png" alt="CigarChimp Logo">
</a>
<ul>
<li><a href="index.html" class="active">home</a></li>
<li><a href="prints.html">prints</a></li>
<li><a href="process.html">our process</a></li>
</ul>
<div class="hamburger" onclick="toggleMenu()">
<div></div>
<div></div>
<div></div>
</div>
</nav>
<!-- Overlay for full-page navigation -->
<div class="overlay" id="overlay">
<ul>
<li><a href="index.html">home</a></li>
<li><a href="prints.html">prints</a></li>
<li><a href="process.html">our process</a></li>
</ul>
</div>
<script>
function toggleMenu() {
const nav = document.querySelector('.hamburger');
const overlay = document.getElementById('overlay');
nav.classList.toggle('active');
overlay.classList.toggle('active');
}
document.getElementById('overlay').addEventListener('click', function (e) {
if (e.target === this) {
toggleMenu();
}
});
function setActiveNavLink() {
const navLinks = document.querySelectorAll('nav ul li a');
const currentPage = window.location.pathname.split('/').pop();
navLinks.forEach(link => {
if (link.getAttribute('href') === currentPage) {
link.classList.add('active');
} else {
link.classList.remove('active');
}
});
}
setActiveNavLink();
</script>
<!-- Content Section -->
<div class="responsive-image">
<a href="prints.html">
<img id="dynamicImage" src="https://i.imgur.com/E9nZ5hV.png" alt="Header Image">
</a>
</div>
</body>
</html>