-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
448 lines (428 loc) · 30.7 KB
/
index.html
File metadata and controls
448 lines (428 loc) · 30.7 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
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
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
<!DOCTYPE html>
<html lang="th" class="scroll-smooth">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Thongchai Tantawat</title>
<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=Fira+Code:wght@400;500;700&family=Sarabun:wght@400;700&display=swap" rel="stylesheet">
<script src="https://unpkg.com/feather-icons"></script>
<style>
body {
font-family: 'Sarabun', sans-serif;
background-color: #1a202c; /* Dark Blue-Gray */
color: #cbd5e0; /* Light Gray */
}
.font-fira {
font-family: 'Fira Code', monospace;
}
.terminal-header {
background-color: #2d3748; /* Darker Gray */
border-bottom: 1px solid #4a5568;
}
.terminal-body {
background-color: #1a202c;
}
.text-comment {
color: #637795;
}
.text-keyword {
color: #c792ea; /* Purple */
}
.text-variable {
color: #82aaff; /* Blue */
}
.text-string {
color: #c3e88d; /* Green */
}
.text-function {
color: #f78c6c; /* Orange */
}
.cursor::after {
content: '_';
animation: blink 1s step-end infinite;
}
@keyframes blink {
50% {
opacity: 0;
}
}
.skill-tag {
transition: all 0.2s ease-in-out;
}
.skill-tag:hover {
transform: translateY(-2px);
box-shadow: 0 4px 10px rgba(199, 146, 234, 0.2);
}
/* Hamburger Animation Styles */
.hamburger-line {
position: absolute;
left: 0;
width: 100%;
height: 2px;
background-color: currentColor;
border-radius: 9999px;
transition: all 0.3s ease-in-out;
}
#mobile-menu-button.menu-open .hamburger-line:nth-child(2) { /* Top line */
top: 50%;
transform: translateY(-50%) rotate(45deg);
}
#mobile-menu-button.menu-open .hamburger-line:nth-child(3) { /* Middle line */
opacity: 0;
}
#mobile-menu-button.menu-open .hamburger-line:nth-child(4) { /* Bottom line */
top: 50%;
transform: translateY(-50%) rotate(-45deg);
}
</style>
</head>
<body class="leading-relaxed">
<!-- Navigation -->
<nav class="bg-gray-900/50 backdrop-blur-sm sticky top-0 z-50 border-b border-gray-700">
<div class="container mx-auto px-6 py-3 flex justify-between items-center">
<a href="#" class="font-fira text-xl font-bold text-white">My <span class="text-keyword">Portfolio</span></a>
<div class="hidden md:flex space-x-6 text-sm items-center">
<a href="#about" class="hover:text-variable transition-colors duration-200">/about</a>
<a href="#skills" class="hover:text-variable transition-colors duration-200">/skills</a>
<a href="#experience" class="hover:text-variable transition-colors duration-200">/experience</a>
<a href="#education" class="hover:text-variable transition-colors duration-200">/education</a>
<a href="#projects" class="hover:text-variable transition-colors duration-200">/projects</a>
<a href="#contact" class="bg-indigo-500 hover:bg-indigo-600 text-white font-bold py-2 px-4 rounded-lg transition-colors duration-200">contact()</a>
</div>
<button id="mobile-menu-button" class="md:hidden text-white w-8 h-8 relative focus:outline-none">
<span class="sr-only">Toggle Menu</span>
<span class="hamburger-line top-[25%]"></span>
<span class="hamburger-line top-[50%] -translate-y-1/2"></span>
<span class="hamburger-line top-[75%] -translate-y-1/2"></span>
</button>
</div>
<!-- Mobile Menu -->
<div id="mobile-menu" class="hidden md:hidden px-6 pt-2 pb-4 space-y-2">
<a href="#about" class="block hover:text-variable transition-colors duration-200">/about</a>
<a href="#skills" class="block hover:text-variable transition-colors duration-200">/skills</a>
<a href="#experience" class="block hover:text-variable transition-colors duration-200">/experience</a>
<a href="#education" class="block hover:text-variable transition-colors duration-200">/education</a>
<a href="#projects" class="block hover:text-variable transition-colors duration-200">/projects</a>
<a href="#contact" class="block mt-2 bg-indigo-500 hover:bg-indigo-600 text-white font-bold py-2 px-4 rounded-lg transition-colors duration-200 text-center">contact()</a>
</div>
</nav>
<!-- Main Content -->
<div class="container mx-auto px-6 py-12 md:py-20">
<!-- Hero Section -->
<header class="text-center min-h-[40vh] flex flex-col justify-center items-center">
<div class="w-full max-w-3xl">
<div class="rounded-lg shadow-2xl overflow-hidden border border-gray-700">
<div class="terminal-header p-3 flex items-center">
<div class="flex space-x-2">
<div class="w-3 h-3 rounded-full bg-red-500"></div>
<div class="w-3 h-3 rounded-full bg-yellow-500"></div>
<div class="w-3 h-3 rounded-full bg-green-500"></div>
</div>
<p class="flex-grow text-center text-sm text-gray-400 font-fira">/bin/bash</p>
</div>
<div class="terminal-body p-4 md:p-8 text-left font-fira text-sm md:text-base">
<p><span class="text-green-400">user@portfolio</span><span class="text-white">:</span><span class="text-blue-400">~</span>$ <span id="typewriter" class="text-white cursor"></span></p>
</div>
</div>
</div>
</header>
<!-- About Me Section -->
<section id="about" class="my-20 scroll-mt-20">
<h2 class="text-3xl font-bold text-center mb-12 font-fira"><span class="text-comment">// 01.</span> <span class="text-variable">AboutMe</span></h2>
<div class="max-w-6xl mx-auto flex flex-col md:flex-row items-center gap-10 md:gap-12">
<!-- Profile Image -->
<div class="w-full md:w-1/3 flex-shrink-0">
<img src="https://github.com/phuketdev/phuketdev.github.io/blob/main/images/thong.jpg?raw=true"
alt="Thongchai Tandawat Profile Picture"
class="rounded-full w-52 h-52 md:w-64 md:h-64 object-cover mx-auto border-4 border-indigo-500/50 shadow-2xl">
</div>
<!-- About Text -->
<div class="w-full md:w-2/3">
<div class="bg-gray-800/50 border border-gray-700 rounded-lg p-8 font-fira text-sm leading-loose">
<p><span class="text-comment">/**</span></p>
<p><span class="text-comment"> * สวัสดีครับ ผมธงชัย ตัณฑวัฒน์, Full-Stack Developer ผู้หลงใหลในการสร้างสรรค์เว็บแอปพลิเคชันที่มีประสิทธิภาพและสวยงาม</span></p>
<p><span class="text-comment"> * ด้วยประสบการณ์กว่า 15 ปีในการพัฒนาซอฟต์แวร์ ผมมีความเชี่ยวชาญในการใช้เทคโนโลยีสมัยใหม่</span></p>
<p><span class="text-comment"> * เพื่อแก้ปัญหาทางธุรกิจที่ซับซ้อนและสร้างประสบการณ์ที่ดีที่สุดให้กับผู้ใช้งาน</span></p>
<p><span class="text-comment"> * ผมเชื่อในการเรียนรู้ตลอดชีวิตและพร้อมที่จะพัฒนาตัวเองไปพร้อมกับเทคโนโลยีที่เปลี่ยนแปลงอยู่เสมอ</span></p>
<p><span class="text-comment"> */</span></p>
<br>
<p><span class="text-keyword">const</span> <span class="text-variable">name</span> = <span class="text-string">'ธงชัย ตัณฑวัฒน์ (Thongchai Tandawat)'</span>;</p>
<p><span class="text-keyword">const</span> <span class="text-variable">role</span> = <span class="text-string">'Full-Stack Developer'</span>;</p>
<p><span class="text-keyword">const</span> <span class="text-variable">location</span> = <span class="text-string">'ภูเก็ต, ประเทศไทย'</span>;</p>
<p><span class="text-keyword">const</span> <span class="text-variable">status</span> = <span class="text-string">'พร้อมเรียนรู้สิ่งใหม่เสมอ และเปิดรับทุกโอกาส'</span>;</p>
</div>
</div>
</div>
</section>
<!-- Skills Section -->
<section id="skills" class="my-20 scroll-mt-20">
<h2 class="text-3xl font-bold text-center mb-10 font-fira"><span class="text-comment">// 02.</span> <span class="text-variable">Skills</span></h2>
<div class="max-w-5xl mx-auto">
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
<!-- Frontend -->
<div class="bg-gray-800/50 border border-gray-700 rounded-lg p-6">
<h3 class="text-xl font-bold mb-4 font-fira text-function">frontend.js</h3>
<div class="flex flex-wrap gap-2">
<span class="skill-tag bg-blue-900/50 text-blue-300 text-xs font-medium px-3 py-1 rounded-full border border-blue-700">React</span>
<span class="skill-tag bg-green-900/50 text-green-300 text-xs font-medium px-3 py-1 rounded-full border border-green-700">Vue.js</span>
<span class="skill-tag bg-yellow-900/50 text-yellow-300 text-xs font-medium px-3 py-1 rounded-full border border-yellow-700">JavaScript (ES6+)</span>
<span class="skill-tag bg-blue-900/50 text-blue-300 text-xs font-medium px-3 py-1 rounded-full border border-blue-700">TypeScript</span>
<span class="skill-tag bg-purple-900/50 text-purple-300 text-xs font-medium px-3 py-1 rounded-full border border-purple-700">Tailwind CSS</span>
<span class="skill-tag bg-pink-900/50 text-pink-300 text-xs font-medium px-3 py-1 rounded-full border border-pink-700">Sass</span>
</div>
</div>
<!-- Backend -->
<div class="bg-gray-800/50 border border-gray-700 rounded-lg p-6">
<h3 class="text-xl font-bold mb-4 font-fira text-function">backend.js</h3>
<div class="flex flex-wrap gap-2">
<span class="skill-tag bg-green-900/50 text-green-300 text-xs font-medium px-3 py-1 rounded-full border border-green-700">Node.js</span>
<span class="skill-tag bg-gray-700 text-gray-200 text-xs font-medium px-3 py-1 rounded-full border border-gray-500">Express.js</span>
<span class="skill-tag bg-yellow-900/50 text-yellow-300 text-xs font-medium px-3 py-1 rounded-full border border-yellow-700">Python</span>
<span class="skill-tag bg-gray-700 text-gray-200 text-xs font-medium px-3 py-1 rounded-full border border-gray-500">Django</span>
<span class="skill-tag bg-blue-900/50 text-blue-300 text-xs font-medium px-3 py-1 rounded-full border border-blue-700">Go</span>
<span class="skill-tag bg-orange-900/50 text-orange-300 text-xs font-medium px-3 py-1 rounded-full border border-orange-700">RESTful APIs</span>
</div>
</div>
<!-- Database & DevOps -->
<div class="bg-gray-800/50 border border-gray-700 rounded-lg p-6">
<h3 class="text-xl font-bold mb-4 font-fira text-function">tools.config</h3>
<div class="flex flex-wrap gap-2">
<span class="skill-tag bg-blue-900/50 text-blue-300 text-xs font-medium px-3 py-1 rounded-full border border-blue-700">PostgreSQL</span>
<span class="skill-tag bg-green-900/50 text-green-300 text-xs font-medium px-3 py-1 rounded-full border border-green-700">MongoDB</span>
<span class="skill-tag bg-yellow-900/50 text-yellow-300 text-xs font-medium px-3 py-1 rounded-full border border-yellow-700">Firebase</span>
<span class="skill-tag bg-blue-900/50 text-blue-300 text-xs font-medium px-3 py-1 rounded-full border border-blue-700">Docker</span>
<span class="skill-tag bg-orange-900/50 text-orange-300 text-xs font-medium px-3 py-1 rounded-full border border-orange-700">AWS</span>
<span class="skill-tag bg-gray-700 text-gray-200 text-xs font-medium px-3 py-1 rounded-full border border-gray-500">Git & GitHub</span>
</div>
</div>
</div>
</div>
</section>
<!-- Experience Section -->
<section id="experience" class="my-20 scroll-mt-20">
<h2 class="text-3xl font-bold text-center mb-10 font-fira"><span class="text-comment">// 03.</span> <span class="text-variable">Experience</span></h2>
<div class="max-w-4xl mx-auto relative border-l-2 border-gray-700 pl-10">
<!-- Timeline Item 1 -->
<div class="mb-12">
<div class="absolute -left-3.5 mt-1.5 w-6 h-6 bg-indigo-500 rounded-full border-4 border-gray-800"></div>
<p class="text-sm text-gray-400 font-fira">Jan 2009 - Present</p>
<h3 class="text-xl font-bold text-white mt-1">Web Developer</h3>
<p class="text-md text-variable mb-3">Bangkok Hospital Phuket</p>
<ul class="list-disc list-inside text-gray-400 space-y-2 text-sm">
<li><span class="text-comment">//</span> พัฒนาและดูแลเว็บแอปพลิเคชันภายในของโรงพยาบาล</li>
<li><span class="text-comment">//</span> ทำงานร่วมกับทีมแพทย์และบุคลากรเพื่อรวบรวมความต้องการของระบบ</li>
<li><span class="text-comment">//</span> ออกแบบและจัดการฐานข้อมูลสำหรับระบบต่างๆ</li>
</ul>
</div>
<!-- Timeline Item 2 -->
<div class="mb-12">
<div class="absolute -left-3.5 mt-1.5 w-6 h-6 bg-gray-600 rounded-full border-4 border-gray-800"></div>
<p class="text-sm text-gray-400 font-fira">Jan 2007 - Jan 2009 (2 yr 1 mo)</p>
<h3 class="text-xl font-bold text-white mt-1">IT Support</h3>
<p class="text-md text-variable mb-3">Bangkok Hospital Phuket</p>
<ul class="list-disc list-inside text-gray-400 space-y-2 text-sm">
<li><span class="text-comment">//</span> ให้ความช่วยเหลือและแก้ไขปัญหาด้านเทคนิคให้กับบุคลากร</li>
<li><span class="text-comment">//</span> ดูแลและบำรุงรักษาระบบคอมพิวเตอร์และเครือข่าย</li>
<li><span class="text-comment">//</span> จัดการบัญชีผู้ใช้งานและสิทธิ์การเข้าถึงระบบ</li>
</ul>
</div>
<!-- Timeline Item 3 -->
<div class="mb-12">
<div class="absolute -left-3.5 mt-1.5 w-6 h-6 bg-gray-600 rounded-full border-4 border-gray-800"></div>
<p class="text-sm text-gray-400 font-fira">Jan 2005 - Jan 2007 (2 yr 0 mo)</p>
<h3 class="text-xl font-bold text-white mt-1">Application Software</h3>
<p class="text-md text-variable mb-3">Global Building Control</p>
<ul class="list-disc list-inside text-gray-400 space-y-2 text-sm">
<li><span class="text-comment">//</span> พัฒนาซอฟต์แวร์สำหรับระบบควบคุมอาคาร</li>
<li><span class="text-comment">//</span> ทดสอบและแก้ไขข้อบกพร่องของโปรแกรม</li>
<li><span class="text-comment">//</span> จัดทำเอกสารประกอบการใช้งานซอฟต์แวร์</li>
</ul>
</div>
</div>
</section>
<!-- Education Section -->
<section id="education" class="my-20 scroll-mt-20">
<h2 class="text-3xl font-bold text-center mb-10 font-fira"><span class="text-comment">// 04.</span> <span class="text-variable">Education</span></h2>
<div class="max-w-4xl mx-auto relative border-l-2 border-gray-700 pl-10">
<!-- Timeline Item 1 -->
<div class="mb-12">
<div class="absolute -left-3.5 mt-1.5 w-6 h-6 bg-indigo-500 rounded-full border-4 border-gray-800"></div>
<p class="text-sm text-gray-400 font-fira">ปีที่จบการศึกษา : 2547</p>
<h3 class="text-xl font-bold text-white mt-1">ปริญญาตรี, คณะวิศวกรรมศาสตร์</h3>
<p class="text-md text-variable mb-3">มหาวิทยาลัยเทคโนโลยีมหานคร</p>
<ul class="list-disc list-inside text-gray-400 space-y-2 text-sm">
<li><span class="text-comment">//</span> สาขาวิชาวิศวกรรมคอมพิวเตอร์</li>
</ul>
</div>
<!-- Timeline Item 2 -->
<div class="mb-12">
<div class="absolute -left-3.5 mt-1.5 w-6 h-6 bg-gray-600 rounded-full border-4 border-gray-800"></div>
<p class="text-sm text-gray-400 font-fira">ปีที่จบการศึกษา : 2544</p>
<h3 class="text-xl font-bold text-white mt-1">ประกาศนียบัตรวิชาชีพชั้นสูง (ปวส.), แผนกวิชาช่างอิเล็กทรอนิกส์</h3>
<p class="text-md text-variable mb-3">วิทยาลัยเทคนิคภูเก็ต</p>
<ul class="list-disc list-inside text-gray-400 space-y-2 text-sm">
<li><span class="text-comment">//</span> สาขาวิชาเทคนิคคอมพิวเตอร์</li>
</ul>
</div>
</div>
</section>
<!-- Projects Section -->
<section id="projects" class="my-20 scroll-mt-20">
<h2 class="text-3xl font-bold text-center mb-10 font-fira"><span class="text-comment">// 05.</span> <span class="text-variable">Projects</span></h2>
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
<!-- Project Card 1 -->
<div class="bg-gray-800/50 border border-gray-700 rounded-lg overflow-hidden flex flex-col group transition-transform duration-300 hover:-translate-y-1">
<div class="p-6 flex-grow">
<div class="flex justify-between items-center mb-4">
<i data-feather="folder" class="text-indigo-400"></i>
<div class="flex space-x-3">
<!-- <a href="#" target="_blank" class="text-gray-500 hover:text-white transition-colors"><i data-feather="github"></i></a> -->
<a href="#" target="_blank" class="text-gray-500 hover:text-white transition-colors"><i data-feather="external-link"></i></a>
</div>
</div>
<h3 class="text-xl font-bold mb-2 group-hover:text-variable transition-colors">Hospital Group Websites</h3>
<p class="text-sm text-gray-400 mb-4">ออกแบบและพัฒนาเว็บไซต์ของโรงพยาบาล 3 แห่ง ได้แก่ รพ.กรุงเทพภูเก็ต, รพ.ดีบุก, และ รพ.กรุงเทพสิริโรจน์</p>
</div>
<div class="bg-gray-900/50 px-6 py-3 border-t border-gray-700">
<p class="font-fira text-xs text-gray-500 flex flex-wrap gap-x-4 gap-y-1">
<span>WordPress</span> <span>PHP</span> <span>MySQL</span> <span>JavaScript</span>
</p>
</div>
</div>
<!-- Project Card 2 -->
<div class="bg-gray-800/50 border border-gray-700 rounded-lg overflow-hidden flex flex-col group transition-transform duration-300 hover:-translate-y-1">
<div class="p-6 flex-grow">
<div class="flex justify-between items-center mb-4">
<i data-feather="folder" class="text-indigo-400"></i>
<div class="flex space-x-3">
<!-- <a href="#" target="_blank" class="text-gray-500 hover:text-white transition-colors"><i data-feather="github"></i></a> -->
<a href="#" target="_blank" class="text-gray-500 hover:text-white transition-colors"><i data-feather="external-link"></i></a>
</div>
</div>
<h3 class="text-xl font-bold mb-2 group-hover:text-variable transition-colors">Intranet & Web Application</h3>
<p class="text-sm text-gray-400 mb-4">ออกแบบและพัฒนาระบบ Intranet, Web Application เพื่อใช้งานภายในโรงพยาบาลกรุงเทพภูเก็ต</p>
</div>
<div class="bg-gray-900/50 px-6 py-3 border-t border-gray-700">
<p class="font-fira text-xs text-gray-500 flex flex-wrap gap-x-4 gap-y-1">
<span>ASP.NET</span> <span>C#</span> <span>SQL Server</span> <span>React</span>
</p>
</div>
</div>
<!-- Project Card 3 -->
<div class="bg-gray-800/50 border border-gray-700 rounded-lg overflow-hidden flex flex-col group transition-transform duration-300 hover:-translate-y-1">
<div class="p-6 flex-grow">
<div class="flex justify-between items-center mb-4">
<i data-feather="folder" class="text-indigo-400"></i>
<div class="flex space-x-3">
<!-- <a href="#" target="_blank" class="text-gray-500 hover:text-white transition-colors"><i data-feather="github"></i></a> -->
</div>
</div>
<h3 class="text-xl font-bold mb-2 group-hover:text-variable transition-colors">Airport Control System GUI</h3>
<p class="text-sm text-gray-400 mb-4">ออกแบบ GUI (Graphic User Interface) สำหรับระบบ BAS และ Fire Alarm ของสนามบินสุวรรณภูมิ</p>
</div>
<div class="bg-gray-900/50 px-6 py-3 border-t border-gray-700">
<p class="font-fira text-xs text-gray-500 flex flex-wrap gap-x-4 gap-y-1">
<span>C#</span> <span>WPF</span> <span>SCADA</span> <span>SQL</span>
</p>
</div>
</div>
</div>
</section>
<!-- Contact Section -->
<section id="contact" class="my-20 scroll-mt-20">
<div class="text-center max-w-2xl mx-auto">
<h2 class="text-3xl font-bold mb-4 font-fira"><span class="text-comment">// 06.</span> <span class="text-variable">Get In Touch</span></h2>
<p class="text-gray-400 mb-8">ผมกำลังมองหาโอกาสใหม่ๆ และยินดีที่จะได้ร่วมงานกับคุณ หากคุณสนใจ สามารถติดต่อผมได้เลยครับ</p>
<a href="mailto:youremail@example.com" class="font-fira inline-block bg-indigo-500 hover:bg-indigo-600 text-white font-bold py-3 px-8 rounded-lg transition-colors duration-200 text-lg">
<span class="text-keyword">const</span> <span class="text-variable">message</span> = <span class="text-string">'Nobody can stop me'</span>;
</a>
</div>
</section>
</div>
<!-- Footer -->
<footer class="text-center py-8">
<div class="flex justify-center space-x-6 mb-4">
<a href="#" target="_blank" class="text-gray-500 hover:text-white transition-colors"><i data-feather="github" class="w-6 h-6"></i></a>
<a href="#" target="_blank" class="text-gray-500 hover:text-white transition-colors"><i data-feather="linkedin" class="w-6 h-6"></i></a>
<a href="#" target="_blank" class="text-gray-500 hover:text-white transition-colors"><i data-feather="twitter" class="w-6 h-6"></i></a>
</div>
<p class="font-fira text-xs text-gray-600">Designed & Built by Thongchai Tandawat</p>
</footer>
<script>
// Feather Icons
feather.replace();
// Mobile Menu Toggle
const mobileMenuButton = document.getElementById('mobile-menu-button');
const mobileMenu = document.getElementById('mobile-menu');
mobileMenuButton.addEventListener('click', () => {
mobileMenu.classList.toggle('hidden');
mobileMenuButton.classList.toggle('menu-open');
});
// Close mobile menu on link click
document.querySelectorAll('#mobile-menu a').forEach(link => {
link.addEventListener('click', () => {
mobileMenu.classList.add('hidden');
mobileMenuButton.classList.remove('menu-open');
});
});
// Typewriter Effect
const typewriterElement = document.getElementById('typewriter');
const text = "./run-profile.sh";
let index = 0;
function type() {
if (index < text.length) {
typewriterElement.textContent += text.charAt(index);
index++;
setTimeout(type, 100);
} else {
setTimeout(startIntro, 1000);
}
}
function startIntro() {
typewriterElement.classList.remove('cursor');
const introText = [
{ text: "Loading profile...", colorClass: "text-comment"},
{ text: "Welcome to my profile", colorClass: "text-white"},
{ text: "I am Thongchai Tandawat, a Full-Stack Developer", colorClass: "text-white"},
{ text: "Scroll down to learn more about me", colorClass: "text-string"},
];
let lineIndex = 0;
const terminalBody = typewriterElement.parentElement.parentElement;
typewriterElement.parentElement.innerHTML += `<br>`; // Add a line break after the command
function typeLine() {
if (lineIndex < introText.length) {
const newLine = document.createElement('p');
let charIndex = 0;
const currentLine = introText[lineIndex];
newLine.className = currentLine.colorClass;
terminalBody.appendChild(newLine);
function typeChar() {
if (charIndex < currentLine.text.length) {
newLine.textContent += currentLine.text.charAt(charIndex);
charIndex++;
setTimeout(typeChar, 40);
} else {
lineIndex++;
if (lineIndex === introText.length) {
// Add final prompt
const finalPrompt = document.createElement('p');
finalPrompt.innerHTML = `<span class="text-green-400">user@portfolio</span><span class="text-white">:</span><span class="text-blue-400">~</span>$ <span class="cursor"></span>`;
terminalBody.appendChild(finalPrompt);
}
setTimeout(typeLine, 500);
}
}
typeChar();
}
}
typeLine();
}
document.addEventListener('DOMContentLoaded', (event) => {
type();
});
</script>
</body>
</html>