-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathportfolio.html
More file actions
275 lines (243 loc) · 7.41 KB
/
portfolio.html
File metadata and controls
275 lines (243 loc) · 7.41 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
---
layout: minimal
title: Mike Hall - Portfolio
description: A collection of historical projects, community platforms, and engineering work. Features a dynamic visual timeline of site evolution.
breadcrumb: Portfolio
permalink: /portfolio/
---
<article class="page">
<header class="home-header">
<h1>Project Portfolio <span class="subtitle">Digital Archeology & Modern Games</span></h1>
<h2 class="title">A career built on community, platform architecture, and technical media.</h2>
<p class="home-intro">This portfolio showcases key projects and platforms I've designed, built, and led. From deterministic card combat to historical community archives, this is a look at the evolution of my work.</p>
</header>
<div class="editorial-index-grid">
{% for project in site.data.portfolio %}
<article class="editorial-card portfolio-card" id="project-{{ project.id }}">
{% if project.images %}
<div class="portfolio-slideshow" data-project="{{ project.id }}">
<div class="slideshow-track">
{% for img in project.images %}
<img src="{{ img }}" alt="{{ project.title }} Evolution" class="slide {% if forloop.first %}is-active{% endif %}" data-index="{{ forloop.index0 }}">
{% endfor %}
</div>
<div class="slideshow-controls">
<button class="slide-prev" aria-label="Previous Slide">❮</button>
<button class="slide-next" aria-label="Next Slide">❯</button>
</div>
</div>
{% elsif project.image %}
<div class="editorial-card-thumb">
<img src="{{ project.image }}" alt="Screenshot for {{ project.title }}" loading="lazy">
</div>
{% endif %}
<div class="editorial-card-body">
<div class="editorial-card-meta">
<span>{{ project.years }}</span>
<span class="meta-dot">•</span>
<span class="collection-badge">{{ project.role }}</span>
</div>
<h3 class="editorial-card-title">
{{ project.title }}
</h3>
<p class="editorial-card-guests">
{{ project.description }}
</p>
<div class="project-tags-row">
{% for tag in project.tags %}
<span class="related-tag">{{ tag }}</span>
{% endfor %}
</div>
<div class="editorial-card-actions">
{% if project.url %}
<a class="editorial-card-button" href="{{ project.url }}" target="_blank" rel="noopener">Visit Site</a>
{% endif %}
{% if project.wayback_url %}
<a class="editorial-card-button" href="{{ project.wayback_url }}" target="_blank" rel="noopener">Explore Archive</a>
{% endif %}
</div>
</div>
</article>
{% endfor %}
</div>
</article>
<div id="gallery-modal" class="gallery-modal" aria-hidden="true">
<span class="modal-close">×</span>
<div class="modal-content">
<img id="modal-img" src="" alt="Expanded Preview">
</div>
</div>
<style>
.portfolio-card {
border-top: 4px solid var(--color-primary, #007bff);
overflow: hidden;
}
.project-tags-row {
display: flex;
gap: 0.5rem;
flex-wrap: wrap;
margin-bottom: 1.5rem;
}
.project-tags-row .related-tag {
margin-bottom: 0;
font-size: 0.6rem;
}
/* Slideshow CSS */
.portfolio-slideshow {
position: relative;
width: 100%;
padding-top: 56.25%; /* 16:9 */
background: #1a1a1a; /* Slightly lighter than black */
cursor: pointer;
overflow: hidden;
}
.slideshow-track {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
z-index: 5;
}
/* Placeholder text for missing images */
.portfolio-slideshow::after {
content: "Snapshot Loading...";
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
color: rgba(255,255,255,0.4);
font-size: 0.9rem;
font-weight: 800;
text-transform: uppercase;
letter-spacing: 0.15em;
z-index: 2;
}
.slide {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
opacity: 0;
transition: opacity 0.5s ease;
}
.slide.is-active {
opacity: 1;
}
.slideshow-controls {
position: absolute;
bottom: 1rem;
right: 1rem;
display: flex;
gap: 0.5rem;
z-index: 10;
}
.slideshow-controls button {
background: rgba(0, 0, 0, 0.6);
color: white;
border: none;
width: 30px;
height: 30px;
border-radius: 50%;
cursor: pointer;
font-size: 0.8rem;
display: flex;
align-items: center;
justify-content: center;
backdrop-filter: blur(4px);
transition: background 0.2s;
}
.slideshow-controls button:hover {
background: var(--color-primary, #007bff);
}
/* Modal/Gallery CSS */
.gallery-modal {
display: none;
position: fixed;
z-index: 1000;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0,0,0,0.9);
align-items: center;
justify-content: center;
}
.gallery-modal[aria-hidden="false"] {
display: flex;
}
.modal-close {
position: absolute;
top: 2rem;
right: 2rem;
color: white;
font-size: 3rem;
cursor: pointer;
}
.modal-content img {
max-width: 90vw;
max-height: 90vh;
border-radius: 8px;
box-shadow: 0 0 50px rgba(0,0,0,0.5);
}
</style>
<script>
document.addEventListener('DOMContentLoaded', () => {
const slideshows = document.querySelectorAll('.portfolio-slideshow');
const modal = document.getElementById('gallery-modal');
const modalImg = document.getElementById('modal-img');
const closeBtn = document.querySelector('.modal-close');
slideshows.forEach(slideshow => {
const slides = slideshow.querySelectorAll('.slide');
let currentIndex = 0;
let interval;
const showSlide = (index) => {
slides.forEach(s => s.classList.remove('is-active'));
slides[index].classList.add('is-active');
currentIndex = index;
};
const nextSlide = (e) => {
if (e) e.stopPropagation();
let next = (currentIndex + 1) % slides.length;
showSlide(next);
};
const prevSlide = (e) => {
if (e) e.stopPropagation();
let prev = (currentIndex - 1 + slides.length) % slides.length;
showSlide(prev);
};
// Auto-play
const startAutoPlay = () => {
interval = setInterval(nextSlide, 4000);
};
const stopAutoPlay = () => {
clearInterval(interval);
};
startAutoPlay();
// Controls
slideshow.querySelector('.slide-next').addEventListener('click', nextSlide);
slideshow.querySelector('.slide-prev').addEventListener('click', prevSlide);
// Modal expansion
slideshow.addEventListener('click', (e) => {
if (e.target.tagName === 'BUTTON') return;
const activeImg = slides[currentIndex];
modalImg.src = activeImg.src;
modal.setAttribute('aria-hidden', 'false');
stopAutoPlay();
});
slideshow.addEventListener('mouseenter', stopAutoPlay);
slideshow.addEventListener('mouseleave', startAutoPlay);
});
closeBtn.addEventListener('click', () => {
modal.setAttribute('aria-hidden', 'true');
});
modal.addEventListener('click', (e) => {
if (e.target === modal) modal.setAttribute('aria-hidden', 'true');
});
});
</script>