-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpersonal.html
More file actions
161 lines (142 loc) · 5.65 KB
/
personal.html
File metadata and controls
161 lines (142 loc) · 5.65 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Shant Manoukian - Personal</title>
<link rel="icon" type="image/png" href="icon.png">
<link rel="stylesheet" href="style.css">
<style>
/* Lightbox styles */
.lightbox {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.9);
z-index: 1000;
cursor: pointer;
align-items: center;
justify-content: center;
}
.lightbox.active {
display: flex;
}
.lightbox img {
max-width: 90%;
max-height: 90%;
object-fit: contain;
}
.photo-item img {
cursor: pointer;
transition: transform 0.2s;
}
.photo-item img:hover {
transform: scale(1.05);
}
</style>
</head>
<body>
<div class="container">
<div class="header">
<h1>Personal</h1>
<div class="nav-links">
<a href="index.html">home</a> |
<a href="projects.html">projects</a> |
<a href="work.html">work</a>
</div>
</div>
<div class="section">
<div class="section-title">Interests & Hobbies</div>
<ul>
<li>Thrifting - Big fan of vintage clothing! </li>
<li> Souls Games + Sekiro <img src="sun-icon.png"
style="width: 20px; height: 20px; vertical-align: middle; cursor: pointer;"
onclick="playSound('sun-sound.mp3')"> </li>
<li> 3DS Homebrew and Retro Games - New Leaf and Tomodachi Life <img src="leaf-icon.png"
style="width: 20px; height: 20px; vertical-align: middle; cursor: pointer;"
onclick="playSound('leaf-sound.mp3')"> </li>
<li> Photography - Always trying to wrangle my camera into taking good photos (Panasonic DMC-FX3)
</li>
</ul>
</div>
<div class="section">
<div class="section-title">Photo Gallery - <a href="https://shantrm.github.io/photo-portfolio/"
target="_blank">View Portfolio :) </a></div>
<p>A collection of my favorite photographs</p>
<div class="photo-gallery">
<div class="photo-item">
<img src="photos/photo1.JPG" alt="Photo 1" onclick="openLightbox(this)">
</div>
<div class="photo-item">
<img src="photos/photo2.JPG" alt="Photo 2" onclick="openLightbox(this)">
</div>
<div class="photo-item">
<img src="photos/photo3.JPG" alt="Photo 3" onclick="openLightbox(this)">
</div>
<div class="photo-item">
<img src="photos/photo4.JPG" alt="Photo 4" onclick="openLightbox(this)">
</div>
<div class="photo-item">
<img src="photos/photo5.JPG" alt="Photo 5" onclick="openLightbox(this)">
</div>
<div class="photo-item">
<img src="photos/photo6.JPG" alt="Photo 6" onclick="openLightbox(this)">
</div>
<div class="photo-item">
<img src="photos/photo7.JPG" alt="Photo 7" onclick="openLightbox(this)">
</div>
<div class="photo-item">
<img src="photos/photo8.JPG" alt="Photo 8" onclick="openLightbox(this)">
</div>
<div class="photo-item">
<img src="photos/photo9.JPG" alt="Photo 9" onclick="openLightbox(this)">
</div>
<div class="photo-item">
<img src="photos/photo10.JPG" alt="Photo 10" onclick="openLightbox(this)">
</div>
<div class="photo-item">
<img src="photos/photo11.JPG" alt="Photo 11" onclick="openLightbox(this)">
</div>
<div class="photo-item">
<img src="photos/photo12.JPG" alt="Photo 12" onclick="openLightbox(this)">
</div>
</div>
</div>
</div>
<!-- Lightbox Modal -->
<div class="lightbox" id="lightbox" onclick="closeLightbox()">
<img id="lightbox-img" src="" alt="">
</div>
<script>
function playSound(soundFile) {
const audio = new Audio(soundFile);
audio.volume = 0.5;
audio.play().catch(err => console.log('Audio play failed:', err));
}
function openLightbox(imgElement) {
const lightbox = document.getElementById('lightbox');
const lightboxImg = document.getElementById('lightbox-img');
lightboxImg.src = imgElement.src;
lightboxImg.alt = imgElement.alt;
lightbox.classList.add('active');
// Prevent body scroll when lightbox is open
document.body.style.overflow = 'hidden';
}
function closeLightbox() {
const lightbox = document.getElementById('lightbox');
lightbox.classList.remove('active');
// Re-enable body scroll
document.body.style.overflow = 'auto';
}
// Close lightbox on Escape key
document.addEventListener('keydown', function (e) {
if (e.key === 'Escape') {
closeLightbox();
}
});
</script>
</body>
</html>