-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathabout.html
237 lines (221 loc) · 11.1 KB
/
about.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
<!DOCTYPE html>
<html lang="zh-Hant">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>關於我</title>
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet">
<link href="https://cdn.jsdelivr.net/npm/bootstrap-icons/font/bootstrap-icons.css" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500&display=swap" rel="stylesheet">
<style>
/* 全局字體樣式 */
body {
font-family: 'Roboto', sans-serif;
background-color: #f0f8ff;
}
/* 導覽列透明效果 */
.navbar {
background-color: rgba(255, 255, 255, 0.8);
transition: background-color 0.3s;
}
.navbar.scrolled {
background-color: #ffffff;
}
/* 卡片樣式 */
.card {
border-radius: 10px;
box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
transition: box-shadow 0.3s ease;
}
.card:hover {
box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.15);
}
/* 卡片圖片效果 */
.card-img-top {
width: 100%;
height: auto;
border-radius: 10px 10px 0 0;
transition: transform 0.3s ease;
}
.card-img-top:hover {
transform: scale(1.05);
}
/* 按鈕樣式 */
.btn-primary {
background-color: #333a56;
border: none;
transition: background-color 0.3s ease, color 0.3s ease;
}
.btn-primary:hover {
background-color: #555a77;
color: #ffffff;
}
/* 頁尾樣式 */
footer {
position: fixed;
bottom: 0;
left: 0;
right: 0;
background-color: #333a56;
color: #ffffff;
text-align: center;
padding: 20px 0;
border-top: 1px solid #ddd;
}
.social-icons a {
margin: 0 10px;
font-size: 1.5rem;
color: #ffffff;
transition: transform 0.3s ease, color 0.3s ease;
}
.social-icons a:hover {
transform: scale(1.1);
color: #ffdd57;
}
/* 調整內容區域的底部邊距 */
.content {
padding-bottom: 80px;
}
</style>
</head>
<body>
<!-- 導覽列 -->
<nav class="navbar navbar-expand-lg navbar-light bg-light fixed-top">
<div class="container-fluid">
<a class="navbar-brand" href="#">Nono的網站</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav"
aria-controls="navbarNav" aria-expanded="false" aria-label="切換導航">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link" href="index.html">首頁</a>
</li>
<li class="nav-item">
<a class="nav-link active" href="about.html">關於我</a>
</li>
</ul>
<!-- 語言切換按鈕 -->
<ul class="navbar-nav ms-auto">
<li class="nav-item">
<a href="#" class="nav-link" id="zh-link">繁體中文</a>
</li>
<li class="nav-item">
<a href="#" class="nav-link" id="en-link">English</a>
</li>
</ul>
</div>
</div>
</nav>
<!-- 關於我內容 -->
<div class="container">
<div class="text-center">
<br>
<img src="images/images.jpg" alt="個人照片" class="profile-img">
<h1 class="mt-4" id="name">陳有臨</h1>
<p class="lead" id="intro">本人是個非常懶的人,喜歡躺在床上耍廢,還好我只要當四個月的兵,不然會很痛苦!</p>
</div>
<div class="mt-5">
<h2 id="personal-info-title">個人資訊</h2>
<ul class="list-group">
<li class="list-group-item"><strong id="name-label">姓名:</strong> <span id="name-value">陳有臨</span></li>
<li class="list-group-item"><strong id="job-label">職業:</strong> <span id="job-value">學生</span></li>
<li class="list-group-item"><strong id="hobby-label">興趣:</strong> <span id="hobby-value">游泳、耍廢</span></li>
<li class="list-group-item"><strong id="language-label">語言:</strong> <span id="language-value">C, C++, Python, HTML, PHP, VB</span></li>
<li class="list-group-item"><strong id="license-label">證照:</strong> <span id="license-value">電腦硬體裝修丙級, Linux系統管理(LX3)</span></li>
<li class="list-group-item"><strong id="competition-label">比賽:</strong> <span id="competition-value">達文西國際發明展--金牌, 綠點子國際發明暨設計競賽--銅牌</span></li>
<li class="list-group-item"><strong id="contact-label">聯絡方式:</strong> <a href="mailto:50915133@gm.nfu.edu.tw" id="contact-value">50915133@gm.nfu.edu.tw</a></li>
</ul>
</div>
<br>
<br>
<br>
<br>
</div>
<!-- Bootstrap JS 和 Popper.js -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/js/bootstrap.bundle.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/lazysizes/5.3.0/lazysizes.min.js" async></script>
<script>
// 語言資料
const translations = {
zh: {
name: "陳有臨",
intro: "本人是個非常懶的人,喜歡躺在床上耍廢,還好我只要當四個月的兵,不然會很痛苦!",
personalInfoTitle: "個人資訊",
nameLabel: "姓名:",
jobLabel: "職業:",
jobValue: "學生",
hobbyLabel: "興趣:",
hobbyValue: "游泳、耍廢",
languageLabel: "語言:",
languageValue: "C, C++, Python, HTML, PHP, VB",
licenseLabel: "證照:",
licenseValue: "電腦硬體裝修丙級, Linux系統管理(LX3)",
competitionLabel: "比賽:",
competitionValue: "達文西國際發明展--金牌, 綠點子國際發明暨設計競賽--銅牌",
contactLabel: "聯絡方式:",
contactValue: "50915133@gm.nfu.edu.tw"
},
en: {
name: "Youlin Chen",
intro: "I am a very lazy person who loves lying in bed and doing nothing. Luckily, I only have to serve in the military for four months; otherwise, it would be really painful!",
personalInfoTitle: "Personal Information",
nameLabel: "Name:",
jobLabel: "Occupation:",
jobValue: "Student",
hobbyLabel: "Hobbies:",
hobbyValue: "Swimming, Relaxing",
languageLabel: "Languages:",
languageValue: "C, C++, Python, HTML, PHP, VB",
licenseLabel: "Licenses:",
licenseValue: "Computer Hardware Maintenance Level C, Linux System Management (LX3)",
competitionLabel: "Competitions:",
competitionValue: "Da Vinci International Invention Exhibition--Gold Medal, Green Idea International Invention and Design Competition--Bronze Medal",
contactLabel: "Contact:",
contactValue: "50915133@gm.nfu.edu.tw"
}
};
// 切換語言功能
document.getElementById('zh-link').addEventListener('click', function () {
switchLanguage('zh');
});
document.getElementById('en-link').addEventListener('click', function () {
switchLanguage('en');
});
function switchLanguage(lang) {
document.getElementById('name').textContent = translations[lang].name;
document.getElementById('intro').textContent = translations[lang].intro;
document.getElementById('personal-info-title').textContent = translations[lang].personalInfoTitle;
document.getElementById('name-label').textContent = translations[lang].nameLabel;
document.getElementById('name-value').textContent = translations[lang].name;
document.getElementById('job-label').textContent = translations[lang].jobLabel;
document.getElementById('job-value').textContent = translations[lang].jobValue;
document.getElementById('hobby-label').textContent = translations[lang].hobbyLabel;
document.getElementById('hobby-value').textContent = translations[lang].hobbyValue;
document.getElementById('language-label').textContent = translations[lang].languageLabel;
document.getElementById('language-value').textContent = translations[lang].languageValue;
document.getElementById('license-label').textContent = translations[lang].licenseLabel;
document.getElementById('license-value').textContent = translations[lang].licenseValue;
document.getElementById('competition-label').textContent = translations[lang].competitionLabel;
document.getElementById('competition-value').textContent = translations[lang].competitionValue;
document.getElementById('contact-label').textContent = translations[lang].contactLabel;
document.getElementById('contact-value').textContent = translations[lang].contactValue;
}
</script>
<!-- 頁尾 -->
<footer>
© 2024 Nono的網站 | 聯絡我們: <a href="mailto:50915133@gmm.nfu.edu.tw">50915133@gm.nfu.edu.tw</a>
<div class="social-icons">
<a href="https://www.instagram.com/" target="_blank" aria-label="Instagram"><i class="bi bi-instagram"></i></a>
<a href="https://www.facebook.com/" target="_blank" aria-label="Facebook"><i class="bi bi-facebook"></i></a>
<a href="https://www.twitch.tv/" target="_blank" aria-label="Twitch"><i class="bi bi-twitch"></i></a>
<a href="https://line.me/" target="_blank" aria-label="Line"><i class="bi bi-line"></i></a>
<a href="https://twitter.com/" target="_blank" aria-label="Twitter"><i class="bi bi-twitter"></i></a>
<a href="https://discord.com/" target="_blank" aria-label="Discord"><i class="bi bi-discord"></i></a>
<a href="https://www.youtube.com/" target="_blank" aria-label="YouTube"><i class="bi bi-youtube"></i></a>
</div>
</footer>
</body>
</html>