-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
298 lines (257 loc) · 11.2 KB
/
index.html
File metadata and controls
298 lines (257 loc) · 11.2 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>1213 PHOTO</title>
<link rel="stylesheet" href="style.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=Cascadia+Mono:ital,wght@0,200..700;1,200..700&family=Gabarito&display=swap" rel="stylesheet"></head>
<body>
<!-- TOP RIBBON -->
<div class="ribbon-top">
<div class="ribbon-inner">
<div class="ribbon-links">
<a href="gallery.html">GALLERIES</a>
<a href="about.html">ABOUT</a>
</div>
</div>
</div>
<!-- MARQUEE -->
<div class="marquee-bar">
<marquee scrollamount="6">⋆ 𖤓 ⋆˚࿔ ═══════ WELCOME TO 1213PHOTO.COM ═══════ ⋆ 𖤓 ⋆˚࿔ </marquee>
</div>
<!-- HERO HEADER -->
<header class="site-header">
<div class="header-scanlines"></div>
<div class="header-content">
<!-- <div class="header-eyebrow">— —</div> -->
<h1 class="site-title">1213<span class="title-accent">PHOTO</span></h1>
<!-- <div class="header-cta-row">
<a href="gallery.html" class="btn btn-primary">VIEW GALLERIES</a>
<a href="about.html" class="btn btn-ghost">ABOUT ME</a>
</div> -->
</div>
</header>
<!-- MAIN NAV -->
<!-- <nav class="main-nav">
<a href="index.html" class="nav-link active">HOME</a>
<a href="gallery.html" class="nav-link">GALLERIES</a>
<a href="about.html" class="nav-link">ABOUT</a>
</nav> -->
<!-- PAGE BODY -->
<div class="page-wrapper">
<!-- LEFT SIDEBAR -->
<aside class="sidebar-left">
<div class="card">
<div class="card-title">QUICK LINKS</div>
<nav class="sidebar-nav">
<a href="gallery.html"> Photo Galleries </a>
<a href="about.html">About Ryan</a>
</nav>
</div>
<!-- WIDGET: LIVE CLOCK -->
<div class="card widget-card">
<div class="card-title">LOCAL TIME</div>
<div class="clock-widget">
<div class="clock-time" id="clock-time">--:--:--</div>
<div class="clock-date" id="clock-date">Loading...</div>
<div class="clock-city">Cleveland, OH</div>
</div>
</div>
<div class="card">
<div class="card-title">GEAR</div>
<ul class="gear-list">
<li>Nikon D500</li>
</ul>
</div>
</aside>
<!-- MAIN CONTENT -->
<main class="main-content">
<div class="card welcome-card">
<div class="card-title">WELCOME</div>
<div class="divider"></div>
</div>
<div class="card">
<div class="gallery-grid">
<a href="gallery.html#street" class="gallery-thumb">
<div class="thumb-img thumb-street"></div>
<div class="thumb-info">
<div class="thumb-name">XXX</div>
<div class="thumb-count">XXX photos</div>
</div>
</a>
<div class="card-footer-row">
<a href="gallery.html" class="btn btn-primary btn-sm">Galleries →</a>
</div>
<div class="divider"></div>
</div>
<div class="card">
<div class="card-title">Favorites</div>
<div class="fav1"></div>
<div class="fav2"></div>
<div class="fav3"></div>
<div class="fav4"></div>
</div>
</div>
</main>
<!-- RIGHT SIDEBAR -->
<aside class="sidebar-right">
<div class="card">
<div class="card-title">RECENT SHOTS</div>
<div class="recent-grid">
<div class="recent-slot rs1"></div>
<div class="recent-slot rs2"></div>
<div class="recent-slot rs3"></div>
<div class="recent-slot rs4"></div>
</div>
<a href="gallery.html" class="btn btn-ghost btn-sm" style="width:100%;text-align:center;display:block;margin-top:8px">SEE ALL →</a>
</div>
<div class="card">
</div>
</aside>
</div>
<footer class="site-footer">
<div class="footer-ribbon"></div>
<div class="footer-inner">
<div class="footer-brand">1213PHOTO.COM</div>
<div class="footer-links">
<a href="index.html">Home</a>
<a href="gallery.html">Galleries</a>
<a href="about.html">About</a>
</div>
<div class="footer-copy">© 2026 1213photo.com All rights reserved</div>
</div>
</footer>
<script>
function updateClock() {
const now = new Date();
document.getElementById('clock-time').textContent = now.toLocaleTimeString('en-US', {timeZone:'America/New_York', hour12:true});
document.getElementById('clock-date').textContent = now.toLocaleDateString('en-US', {timeZone:'America/New_York', weekday:'short', month:'short', day:'numeric', year:'numeric'});
}
updateClock(); setInterval(updateClock, 1000);
let v = parseInt(localStorage.getItem('1213visits') || '1336') + 1;
localStorage.setItem('1213visits', v);
document.getElementById('visit-count').textContent = v.toLocaleString();
</script>
<!-- Lightbox overlay for homepage (reusable carousel) -->
<style>
.lb-overlay{position:fixed;inset:0;display:none;align-items:center;justify-content:center;z-index:9999}
.lb-overlay.open{display:flex}
.lb-backdrop{position:absolute;inset:0;background:rgba(0,0,0,0.75)}
.lb-shell{position:relative;max-width:95%;max-height:90%;z-index:2;display:flex;flex-direction:column;align-items:center}
.lb-viewport{width:min(1100px,90vw);height:min(700px,70vh);display:flex;align-items:center;justify-content:center;background:#111;border-radius:6px;overflow:hidden}
.lb-viewport img{max-width:100%;max-height:100%;object-fit:contain;display:block}
.lb-controls{position:absolute;top:50%;left:12px;transform:translateY(-50%);z-index:3}
.lb-controls .btn{background:rgba(255,255,255,0.08);border:none;color:#fff;padding:8px 12px;border-radius:4px;cursor:pointer}
.lb-next{position:absolute;right:12px;top:50%;transform:translateY(-50%)}
.lb-close{position:relative;margin:10px auto 6px auto;background:transparent;border:0;color:#fff;font-size:14px;cursor:pointer}
.lb-thumbs{display:flex;gap:6px;padding-top:8px;overflow-x:auto;max-width:90vw}
.lb-thumbs img{height:64px;cursor:pointer;opacity:0.7}
.lb-thumbs img.active{outline:2px solid #fff;opacity:1}
@media (max-width:600px){.lb-viewport{height:50vh}}
</style>
<div id="lb-overlay" class="lb-overlay" aria-hidden="true">
<div class="lb-backdrop" onclick="closeLightbox()"></div>
<div class="lb-shell" role="dialog" aria-modal="true">
<button class="lb-close" onclick="closeLightbox()">CLOSE ×</button>
<div class="lb-viewport">
<!-- <button class="lb-controls btn lb-prev" onclick="prevLightbox()">◀</button> -->
<img id="lb-img" src="" alt="">
<!-- removed right/play-like button as requested -->
</div>
<div class="lb-thumbs" id="lb-thumbs" aria-hidden="false"></div>
</div>
</div>
<script>
// lightbox for homepage
const LB = {images:[], idx:0};
function openLightbox(images, index){
if(!images || images.length===0) return;
LB.images = images.slice();
LB.idx = index || 0;
renderLightbox();
document.getElementById('lb-overlay').classList.add('open');
document.getElementById('lb-overlay').setAttribute('aria-hidden','false');
document.addEventListener('keydown', lbKeyHandler);
}
function closeLightbox(){
document.getElementById('lb-overlay').classList.remove('open');
document.getElementById('lb-overlay').setAttribute('aria-hidden','true');
document.removeEventListener('keydown', lbKeyHandler);
}
function renderLightbox(){
const img = document.getElementById('lb-img');
img.src = LB.images[LB.idx];
const thumbs = document.getElementById('lb-thumbs');
thumbs.innerHTML = '';
LB.images.forEach((s,i)=>{
const t = document.createElement('img');
t.src = s; t.alt = '';
if(i===LB.idx) t.classList.add('active');
t.addEventListener('click', ()=>{ LB.idx = i; renderLightbox(); });
thumbs.appendChild(t);
});
}
function nextLightbox(){ LB.idx = (LB.idx+1) % LB.images.length; renderLightbox(); }
function prevLightbox(){ LB.idx = (LB.idx-1+LB.images.length) % LB.images.length; renderLightbox(); }
function lbKeyHandler(e){ if(e.key==='ArrowRight') nextLightbox(); else if(e.key==='ArrowLeft') prevLightbox(); else if(e.key==='Escape') closeLightbox(); }
</script>
<script>
// Populate homepage gallery preview and recent shots from gallery_data.json
(function(){
fetch('gallery_data.json').then(r => r.json()).then(data => {
// Build gallery preview (use first image of each album)
const galleryGrid = document.querySelector('.gallery-grid');
if(galleryGrid){
galleryGrid.innerHTML = '';
const albums = Object.keys(data).sort();
albums.slice(0,4).forEach(albumName => {
const imgs = data[albumName];
if(!imgs || imgs.length===0) return;
const safeName = albumName.replace(/\s+/g,'-');
const a = document.createElement('a');
a.href = `gallery.html#${safeName}`;
a.className = 'gallery-thumb';
const thumbImg = document.createElement('img');
thumbImg.className = 'thumb-img';
thumbImg.src = imgs[0];
thumbImg.alt = albumName;
a.appendChild(thumbImg);
const info = document.createElement('div');
info.className = 'thumb-info';
const name = document.createElement('div'); name.className='thumb-name'; name.textContent = albumName;
const count = document.createElement('div'); count.className='thumb-count'; count.textContent = `${imgs.length} photos`;
info.appendChild(name); info.appendChild(count);
a.appendChild(info);
// open album in lightbox when clicked
a.addEventListener('click', (e) => { e.preventDefault(); openLightbox(imgs, 0); });
galleryGrid.appendChild(a);
});
}
// Fill recent shots (most recent = last files found)
const all = [];
Object.keys(data).forEach(k => data[k].forEach(p => all.push(p)));
const recent = all.slice(-4).reverse();
const recentSlots = document.querySelectorAll('.recent-grid .recent-slot');
recentSlots.forEach((slot, i) => {
slot.innerHTML = '';
if(recent[i]){
const a = document.createElement('a');
a.href = '#';
a.addEventListener('click', (ev) => { ev.preventDefault(); openLightbox(recent, i); });
const img = document.createElement('img');
img.src = recent[i]; img.alt = 'Recent shot'; img.style.width = '100%'; img.style.height = '100%'; img.style.objectFit = 'cover';
a.appendChild(img);
slot.appendChild(a);
}
});
}).catch(err => {
// silent fail — gallery still works, but previews won't load
console.warn('Could not load gallery_data.json for homepage previews', err);
});
})();
</script>
</body>
</html>