-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
396 lines (367 loc) · 15.8 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
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=advice-width, initial-scale=1.0">
<title>Personal Portfolio</title>
<script src="https://threejs.org/build/three.js"></script>
<link rel="stylesheet" href="style.css">
</head>
<body>
<!-- navbar -->
<nav class="navbar">
<ul class="link-group">
<li class="link active"><a href="#">home</a></li>
<li class="link"><a href="#">projects highlights</a></li>
<li class="link"><a href="#">about</a></li>
<li class="link"><a href="#">contact</a></li>
</ul>
</nav>
<!-- home section -->
<section class="home-section active">
<h1 class="hero-heading">hello, this is <br> Tony</h1>
<img id="switching-image" src="IMG_5428.jpg" class="home-img" alt="">
<!-- JavaScript to switch images -->
<script>
var imageElement = document.getElementById('switching-image');
var images = ['IMG_5428.jpg', 'fatty.png'];
var currentIndex = 0;
setInterval(function() {
currentIndex = (currentIndex + 1) % images.length;
imageElement.src = images[currentIndex];
}, 1700);
</script>
<!-- Pong game -->
<div id="pong-game" style="width: 100%; height: 100px; position: absolute; bottom: 0;"></div>
<script>
localStorage.removeItem('highScore');
var score = 0;
var highScore = localStorage.getItem('highScore') || 0;
var canvas = document.createElement('canvas');
canvas.width = window.innerWidth;
canvas.height = 100; // Adjust this to match the height of the div
document.getElementById('pong-game').appendChild(canvas);
var ctx = canvas.getContext('2d');
var ball = {x: canvas.width / 2, y: canvas.height / 2, radius: 10, dx: 2, dy: 2};
var paddle = {width: 75, height: 10, x: (canvas.width - 75) / 2, speed: 5, left: false, right: false};
function drawBall() {
ctx.beginPath();
ctx.arc(ball.x, ball.y, ball.radius, 0, Math.PI * 2);
ctx.fillStyle = '#737573'; // Darker color
ctx.fill();
ctx.closePath();
}
function drawPaddle() {
ctx.beginPath();
ctx.rect(paddle.x, canvas.height - paddle.height, paddle.width, paddle.height);
ctx.fillStyle = '#737573'; // Darker color
ctx.fill();
ctx.closePath();
}
function drawScore() {
ctx.font = '16px Arial';
ctx.fillStyle = '#737573'; // Darker color
ctx.fillText('Score: ' + score, 8, 20);
}
function drawHighScore() {
ctx.font = '16px Arial';
ctx.fillStyle = '#737573'; // Darker color
ctx.fillText('High Score: ' + highScore, canvas.width - 100, 20);
}
function animate() {
requestAnimationFrame(animate);
ctx.clearRect(0, 0, canvas.width, canvas.height);
drawBall();
drawPaddle();
drawScore();
drawHighScore();
ball.x += ball.dx;
ball.y += ball.dy;
if (ball.x + ball.dx > canvas.width - ball.radius || ball.x + ball.dx < ball.radius) {
ball.dx = -ball.dx;
}
if (ball.y + ball.dy < ball.radius) {
ball.dy = -ball.dy;
} else if (ball.y + ball.dy > canvas.height - ball.radius) {
if (ball.x > paddle.x && ball.x < paddle.x + paddle.width) {
ball.dy = -ball.dy;
ball.dx = Math.random() * 6 - 3; // Random number between -3 and 3
score++; // Increase score
if (score > highScore) {
highScore = score;
localStorage.setItem('highScore', highScore);
}
} else {
// Game over
ball.y = canvas.height / 2;
ball.dy = -ball.dy;
score = 0; // Reset score
}
}
if (paddle.right && paddle.x < canvas.width - paddle.width) {
paddle.x += paddle.speed;
} else if (paddle.left && paddle.x > 0) {
paddle.x -= paddle.speed;
}
}
document.addEventListener('keydown', function(event) {
switch (event.code) {
case 'ArrowRight':
paddle.right = true;
break;
case 'ArrowLeft':
paddle.left = true;
break;
}
}, false);
document.addEventListener('keyup', function(event) {
switch (event.code) {
case 'ArrowRight':
paddle.right = false;
break;
case 'ArrowLeft':
paddle.left = false;
break;
}
}, false);
animate();
</script>
</section>
<!-- project section -->
<section class="project-section">
<h1 class="project-heading">highlights for my open source projects</h1>
<div class="project-card">
<img src="project-1.png" class="project-img" alt="">
<div class="project-content">
<h1 class="project-title">project 01</h1>
<p class="project-info">
A progressive web app to address the world hunger and food waste issue by web scraping google search and store the relevant information into firebase then display the firebase data while push notification to the users when the database is updated with new information. This app can be installed on ios, android and computer.
</p>
<div class="project-btn-grp">
<a href='https://github.com/tony9321/Free-Food-and-Groceries-Around-You'>
<button class="project-btn github">github repo</button>
</a>
<a href='https://youtu.be/LvWr-KEDlhA'>
<button class="project-btn live">see live</button>
</a>
</div>
</div>
</div>
<div class="project-container">
<div class="project-card">
<img src="project-2.png" class="project-img" alt="">
<div class="project-content">
<h1 class="project-title">project 02</h1>
<p class="project-info">
This is the project I created a year ago, got the idea while learning competitive programming. There wasn't much resources in the county I live, I learned those knowledage through an social media called Discord, and met my frineds, teachers through the Internet, that's the reason I created this project to help people find their study mates easier. This is also an Hakathon project and is open source and awarded by several orginizations.
</p>
<div class="project-btn-grp">
<a href='https://github.com/Swipe-For-Study-Buddies'>
<button class="project-btn github">github repo</button>
</a>
<a href='https://youtu.be/LvWr-KEDlhA'>
<button class="project-btn live">see live</button>
</a>
</div>
</div>
</div>
<!--
<div class="project-card">
<img src="project-3.png" class="project-img" alt="">
<div class="project-content">
<h1 class="project-title">project 03</h1>
<p class="project-info">
This is the project I created to learn solidity, web3 programming, smart contract and python.
</p>
<div class="project-btn-grp">
<a href='https://github.com/tony9321/Tony-s-Python-and-Solidity-Contract'>
<button class="project-btn github">github repo</button>
</a>
<a href='https://youtu.be/LvWr-KEDlhA'>
<button class="project-btn live">see live</button>
</a>
</div>
</div>
</div>
<div class="project-card">
<img src="project-4.png" class="project-img" alt="">
<div class="project-content">
<h1 class="project-title">project 04</h1>
<p class="project-info">
This is the project I created to learn python and the use of web scraper, this code is scrapping data from a job seeking website for block chain developer offers.
</p>
<div class="project-btn-grp">
<a href='https://github.com/tony9321/Tony-s-web-scrapper'>
<button class="project-btn github">github repo</button>
</a>
<a href='https://youtu.be/LvWr-KEDlhA'>
<button class="project-btn live">see live</button>
</a>
</div>
</div>
</div>
-->
<div class="project-card">
<img src="project-3.png" class="project-img" alt="">
<div class="project-content">
<h1 class="project-title">project 03</h1>
<p class="project-info">
A fullstack web3 website, mainly built to code in solidity, web3 programming, hardhat, javascript. A full functioning web3 project that was later used as referenced for the company I interned at for decentrzlied smart contract project.
</p>
<div class="project-btn-grp">
<a href='https://github.com/tony9321/Tony-s-hardhat-and-solidity-contract'>
<button class="project-btn github">github repo</button>
</a>
<a href='https://youtu.be/LvWr-KEDlhA'>
<button class="project-btn live">see live</button>
</a>
</div>
</div>
</div>
<div class="project-card">
<img src="project-4.png" class="project-img" alt="">
<div class="project-content">
<h1 class="project-title">🦛!!!See more projects in my github!!!🦛</h1>
<p class="project-info">
Click the button below to see more projects in my github, I have more than 20 projects in my github.
</p>
<div class="project-btn-grp">
<a href='https://github.com/tony9321'>
<button class="project-btn github">my github</button>
</a>
</div>
</div>
</div>
</div>
</section>
<!-- about section -->
<section class="about-section">
<div class="about">
<div class="about-img-container">
<img src="home.JPG" class="about-img" alt="">
<a href="https://drive.google.com/drive/folders/11WXV8GeiAERXIHyxaaIVqyr3HdaiGaeh?usp=sharing">
<button class="download-cv-btn">Click here for Resume/CV & Documents</button>
</a>
</div>
<p class="about-info">Hi, this is Tony, an 18 years old high school grad and this is my CV. I am a freshman of Green River College(Auburn, WA) alsmot have my associate in CS and pre-med. I am used to be a homeschooled student, and a year of high school transfer experience in Elko high school(NV). I am also a competitive programmer ,developer, tutor, and open source hakathon winner. Recently I am actively looking for CS internship that can begin ASAP
<br>
<!-- LinkedIn button -->
<a href="https://www.linkedin.com/in/tony-chen-304529190/">
<button class="linkedin-button">My LinkedIn</button>
</a>
<!-- GitHub button -->
<a href="https://github.com/tony9321">
<button class="github-button">My GitHub</button>
</a>
</p>
</div>
<br>
</div>
<!-- skills -->
<div class="skill-section">
<h1 class="heading">skills</h1>
<div class="skills-container">
<div class="skill-card">
<img src="c++.png" class="skill-img" alt="">
<div class="skill-level">90%</div>
<h1 class="skill-name">C++</h1>
<p class="skill-info">This is the programming language I am most familiar with because I use it to code for competitive programming contest for a long time!</p>
</div>
<div class="skill-card">
<img src="c.png" class="skill-img" alt="">
<div class="skill-level">85%</div>
<h1 class="skill-name">C</h1>
<p class="skill-info">This is my second most familiar programming language because I also used it to code for competitive programming a short period of time!</p>
</div>
<div class="skill-card">
<img src="algorithms and data structure.png" class="skill-img" alt="">
<div class="skill-level">90%</div>
<h1 class="skill-name">algorithms & data structure</h1>
<p class="skill-info">I used to compete in competitive programming for quite a bit of time so this is what I am strongest at in the area of CS!</p>
</div>
<div class="skill-card">
<img src="solidity.png" class="skill-img" alt="">
<div class="skill-level">75%</div>
<h1 class="skill-name">solidity & block chain development</h1>
<p class="skill-info">I learned to code Ethereum smart contracts and deploy, inteact with them with solidity, python, js, hardhat, brownies, metamask, web3!</p>
</div>
<div class="skill-card">
<img src="python.png" class="skill-img" alt="">
<div class="skill-level">65%</div>
<h1 class="skill-name">python</h1>
<p class="skill-info">This is the first programming language I learned but I am not that familiar with it, I used it to code the discord bot and the backend of a web3 website!</p>
</div>
<div class="skill-card">
<img src="java.png" class="skill-img" alt="">
<div class="skill-level">40%</div>
<h1 class="skill-name">Java</h1>
<p class="skill-info">I only learned this language to take the AP computer science A exam by myself for a short period of time and did not use it to create any project yet!</p>
</div>
<div class="skill-card">
<img src="linux.png" class="skill-img" alt="">
<div class="skill-level">45%</div>
<h1 class="skill-name">Linux</h1>
<p class="skill-info">I learned a little bit of Kali Linux penetration test and used a little bit of linux system on the Raspberry Pi!</p>
</div>
<div class="skill-card">
<img src="html.png" class="skill-img" alt="">
<div class="skill-level">40%</div>
<h1 class="skill-name">HTML, CSS, react.js & Node.js</h1>
<p class="skill-info">I don't really have that much experiences in fronend like HTML, CSS, reactjs and nodejs but I have learned it through creating several websites and two web3 sites!</p>
</div>
<div class="skill-card">
<img src="js.png" class="skill-img" alt="">
<div class="skill-level">40%</div>
<h1 class="skill-name">JS and web development</h1>
<p class="skill-info">I have expereiences with js and web developments in only a few different websites, few are web2 and two are web3 sites, I also learned to code the backend of Web3 in JS too!</p>
</div>
<div class="skill-card">
<img src="mysql.png" class="skill-img" alt="">
<div class="skill-level">38%</div>
<h1 class="skill-name">mysql, phpadmin, mongodb</h1>
<p class="skill-info">I only have experience in few different projects with the utilization of relative database, mysql, sqlite3 and mongodb!</p>
</div>
</div>
</div>
<!-- timeline -->
<div class="timeline">
<h1 class="heading">education and experience</h1>
<div class="card">
<div class="card-body">
<h1 class="card-title">2022-Ongoing</h1>
<p class="card-detail">Associate in Computer Science Degree - Computer Science & Engineering in Green River College(Seattle, WA)</p>
</div>
</div>
<div class="card">
<div class="card-body">
<h1 class="card-title">2021-2022</h1>
<p class="card-detail">I was homeschooling in Taiwan to put more efforts in competitive programming, math, computer science and prepared for the SAT, AP calc BC, AP pyhsics 2 and AP computer science a all by myself since we don't have those courses at National Lo-Tung senior high school.</p>
</div>
</div>
<div class="card">
<div class="card-body">
<h1 class="card-title">2020-2021</h1>
<p class="card-detail">This year, I went to National Lo-Tung senior high school in Yilan, Taiwan as a high school freshman and mainly studying CS and math.</p>
</div>
</div>
<div class="card">
<div class="card-body">
<h1 class="card-title">2019-2020</h1>
<p class="card-detail">Was an exchange student as a high school sophomore in Elko, NV and got a GPA of 3.727(Unweighted)</p>
</div>
</div>
</div>
</section>
<!-- contact section -->
<section class="contact-section">
<form class="contact-form" action="mailto: [email protected]">
<input type="text" name="name" id="name" autocomplete="off" placeholder="name">
<input type="text" name="email" id="email" autocomplete="off" placeholder="email">
<textarea name="msg" id="msg" placeholder="message" autocomplete="off"></textarea>
<button type="submit" class="form-submit-btn">contact</button>
</form>
</section>
<script src="app.js"></script>>
</body>
</html>>