-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy paththor-hammer.html
More file actions
287 lines (245 loc) · 7.76 KB
/
thor-hammer.html
File metadata and controls
287 lines (245 loc) · 7.76 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Thor Hammer | Peter He</title>
<meta name="description" content="Electromagnetic Thor Hammer with Fingerprint Scanner">
<meta name="author" content="Peter He">
<meta property="og:url" content="https://peterhe.dev/thor-hammer" />
<meta property="og:type" content="website" />
<meta property="og:title" content="Thor Hammer | Peter He" />
<meta property="og:description" content="Electromagnetic Thor Hammer with Fingerprint Scanner" />
<!-- Favicon -->
<link rel="icon" type="image/x-icon" href="favicon/favicon.ico">
<link rel="icon" type="image/svg+xml" href="favicon/favicon.svg">
<link rel="apple-touch-icon" sizes="180x180" href="favicon/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="192x192" href="favicon/web-app-manifest-192x192.png">
<link rel="icon" type="image/png" sizes="512x512" href="favicon/web-app-manifest-512x512.png">
<link rel="manifest" href="favicon/site.webmanifest">
<script src="https://cdn.tailwindcss.com"></script>
<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=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap" rel="stylesheet">
<style>
body {
font-family: 'Inter', sans-serif;
margin: 0;
padding: 0;
background-color: #ffffff;
color: #000000;
line-height: 1.6;
}
.container {
display: flex;
min-height: 100vh;
max-width: 1400px;
margin: 0 auto;
padding: 0 2rem;
}
.left-section {
flex: 1;
display: flex;
align-items: center;
justify-content: center;
padding: 2rem;
}
.right-section {
flex: 1;
display: flex;
flex-direction: column;
justify-content: center;
padding: 2rem;
}
.left-section img {
max-width: 100%;
height: auto;
border-radius: 10px;
}
.project-name {
color: #000000;
font-size: 2.5rem;
font-weight: 700;
}
h1 {
margin: 0 0 1rem 0;
}
h2 {
font-size: 1.5rem;
color: #333333;
margin: 0 0 1rem 0;
font-weight: 500;
}
p {
margin: 0.5rem 0;
color: #555555;
}
.project-details {
margin: 2rem 0;
}
.project-details h3 {
font-size: 1.25rem;
margin: 0 0 1rem 0;
color: #000000;
}
.project-details ul {
margin: 0;
padding-left: 1.5rem;
}
.project-details li {
margin: 0.5rem 0;
color: #555555;
}
.learn-more-btn-wrapper {
text-align: center;
margin-top: 2rem;
}
.learn-more-btn {
display: inline-block;
padding: 1rem 2rem;
background-color: #000000;
color: white;
text-decoration: none;
border-radius: 5px;
font-weight: 500;
transition: background-color 0.3s ease;
}
.learn-more-btn:hover {
background-color: #333333;
}
.learn-more-section {
padding: 4rem 2rem;
background-color: #f8f9fa;
}
.learn-more-section h2 {
text-align: center;
font-size: 2.5rem;
margin-bottom: 3rem;
color: #000000;
}
.features-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 2rem;
max-width: 1200px;
margin: 0 auto;
}
.feature {
background-color: white;
padding: 2rem;
border-radius: 10px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.feature h3 {
font-size: 1.5rem;
margin: 0 0 1rem 0;
color: #000000;
}
.feature p {
margin: 1rem 0;
color: #555555;
}
footer {
text-align: center;
padding: 2rem 0;
color: #666666;
border-top: 1px solid #e5e5e5;
margin-top: 4rem;
}
@media (max-width: 768px) {
.container {
flex-direction: column;
padding: 0 1rem;
}
.left-section,
.right-section {
padding: 1rem;
}
.project-name {
font-size: 2rem;
}
.features-grid {
grid-template-columns: 1fr;
gap: 1rem;
}
}
</style>
</head>
<body class="bg-white text-gray-900 font-sans">
<!-- Navigation -->
<nav class="border-b border-gray-200 py-4">
<div class="max-w-6xl mx-auto px-6">
<div class="flex space-x-8">
<a href="index.html" class="text-gray-500 hover:text-gray-700 transition-colors">home</a>
<a href="projects.html" class="text-black font-medium border-b-2 border-black pb-1">projects</a>
<a href="research.html" class="text-gray-500 hover:text-gray-700 transition-colors">research</a>
<a href="creative.html" class="text-gray-500 hover:text-gray-700 transition-colors">creative</a>
<a href="fun.html" class="text-gray-500 hover:text-gray-700 transition-colors">fun</a>
</div>
</div>
</nav>
<div class="container">
<div class="left-section">
<img id="productImage" src="assets/thor2.png" alt="Thor Hammer">
</div>
<div class="right-section">
<h1><span class="project-name">Thor Hammer</span></h1>
<h2>High School Senior Project</h2>
<p class="text-orange-600">An electromagnetic Thor hammer with fingerprint authentication</p>
<div class="project-details">
<h3>Key Features</h3>
<ul>
<li>Dual heavy-duty door electromagnets</li>
<li>Arduino-based control system</li>
<li>Fingerprint scanner authentication</li>
<li>48V power system (4x 12V lead-acid batteries)</li>
</ul>
</div>
<div class="learn-more-btn-wrapper">
<a href="https://www.youtube.com/watch?v=0_8Xhzt5YQI" target="_blank" rel="noopener noreferrer"" class="learn-more-btn">Credit: Allen Pan on Youtube</a>
</div>
</div>
</div>
<div class="learn-more-section" id="learn-more">
<h2>Project Details</h2>
<div class="features-grid">
<div class="feature">
<h3>Electromagnetic System</h3>
<img src="assets/thorboard.png" alt="thor power system" class="w-full h-auto mb-4 rounded-lg shadow-md">
<p>Implemented a powerful electromagnetic system using two heavy-duty door electromagnets for secure hammer attachment.</p>
</div>
<div class="feature">
<h3>Authentication System</h3>
<video src="assets/11341.mp4" autoplay muted loop playsinline webkit-playsinline preload="metadata"
class="w-full h-auto rounded-lg object-cover" style="aspect-ratio: 4/3;">
Your browser does not support the video tag.
</video>
<p>Integrated a fingerprint scanner with Arduino for secure access control to the hammer.</p>
</div>
<div class="feature">
<h3>Power System</h3>
<img src="assets/thor1.png" alt="thor power system" class="w-full h-auto mb-4 rounded-lg shadow-md">
<p>Designed a robust power system using four 12V lead-acid batteries wired in parallel for reliable operation.</p>
</div>
</div>
</div>
<footer>
<p>© 2026 Peter He. All rights reserved.</p>
</footer>
<script>
var prevScrollpos = window.pageYOffset;
window.onscroll = function () {
var currentScrollPos = window.pageYOffset;
var navbar = document.getElementById("navbar");
if (prevScrollpos > currentScrollPos) {
navbar.style.top = "0px";
} else {
if (currentScrollPos > 0) {
navbar.style.top = "-70px";
}
}
prevScrollpos = currentScrollPos;
};
</script>
</body>
</html>