Skip to content

Commit 3f797d5

Browse files
author
Coco Nalea
committed
第一次更新
1 parent 4700794 commit 3f797d5

File tree

12 files changed

+351
-77
lines changed

12 files changed

+351
-77
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
/部署.bat
1+
/部署.bat
2+
/测试.bat

components/footer.html

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<footer class="site-footer">
2+
<div class="footer-container">
3+
<div class="footer-section">
4+
<h3>关于我们</h3>
5+
<p>这是一个简洁高效的静态网站范例,展示现代网页开发技术。</p>
6+
</div>
7+
8+
<div class="footer-section">
9+
<h3>快速链接</h3>
10+
<ul>
11+
<li><a href="/index.html">首页</a></li>
12+
<li><a href="/src/pages/about.html">关于</a></li>
13+
<li><a href="#">服务</a></li>
14+
<li><a href="#">联系</a></li>
15+
</ul>
16+
</div>
17+
18+
<div class="footer-section">
19+
<h3>联系方式</h3>
20+
<ul class="contact-info">
21+
<li><i class="fas fa-envelope"></i> [email protected]</li>
22+
<li><i class="fas fa-phone"></i> +86 123 4567 8910</li>
23+
</ul>
24+
25+
<div class="social-links">
26+
<a href="#"><i class="fab fa-weixin"></i></a>
27+
<a href="#"><i class="fab fa-weibo"></i></a>
28+
<a href="#"><i class="fab fa-github"></i></a>
29+
</div>
30+
</div>
31+
</div>
32+
33+
<div class="copyright">
34+
<p>&copy; 2025 我的网站. 保留所有权利.</p>
35+
</div>
36+
</footer>

components/header.html

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<header class="site-header">
2+
<div class="header-container">
3+
<div class="logo">
4+
<a href="/index.html">我的网站</a>
5+
</div>
6+
7+
<nav class="main-nav">
8+
<ul>
9+
<li><a href="/index.html">首页</a></li>
10+
<li><a href="/src/pages/about.html">关于</a></li>
11+
<li><a href="#">服务</a></li>
12+
<li><a href="#">联系</a></li>
13+
</ul>
14+
</nav>
15+
16+
<div class="mobile-menu-btn">
17+
<i class="fas fa-bars"></i>
18+
</div>
19+
</div>
20+
</header>

index.html

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
<head>
55
<meta charset="UTF-8">
66
<meta name="viewport" content="width=device-width, initial-scale=1.0">
7-
<title>我的静态网站</title>
7+
<title>柯迓的静态网站</title>
8+
<!-- Favicon -->
9+
<link rel="icon" href="public/img/favicon.ico" type="image/x-icon">
810
<!-- 引入基础样式 -->
911
<link rel="stylesheet" href="/src/assets/styles/base.css">
1012
<link rel="stylesheet" href="/src/assets/styles/layout.css">
@@ -17,17 +19,17 @@
1719
<div id="header"></div>
1820

1921
<main class="container">
20-
<section class="hero">
21-
<h1>欢迎访问我的网站</h1>
22-
<p>这是一个简洁、高效的静态网站范例</p>
22+
<section class="hero">
23+
<h1 data-typewriter>欢迎访问我的网站</h1>
24+
<p data-typewriter data-delay="1500">希望不会让你不愉快 >﹏<</p>
2325
<a href="/src/pages/about.html" class="btn">了解更多</a>
2426
</section>
2527

2628
<section class="features">
2729
<div class="card">
2830
<i class="fas fa-bolt"></i>
29-
<h3>极速加载</h3>
30-
<p>基于纯HTML/CSS/JS,无后端依赖</p>
31+
<h3>123</h3>
32+
<p>456</p>
3133
</div>
3234
<div class="card">
3335
<i class="fas fa-mobile-alt"></i>
@@ -41,23 +43,15 @@ <h3>现代设计</h3>
4143
</div>
4244
</section>
4345

44-
<section class="content-section">
45-
<h2>我们的服务</h2>
46-
<p>我们提供专业的网站开发服务,包括:</p>
47-
<ul>
48-
<li>静态网站开发</li>
49-
<li>响应式设计</li>
50-
<li>性能优化</li>
51-
<li>SEO优化</li>
52-
</ul>
53-
</section>
5446
</main>
5547

5648
<!-- 动态插入页脚 -->
5749
<div id="footer"></div>
5850

5951
<!-- 主JS脚本 -->
6052
<script src="/src/scripts/main.js"></script>
53+
<!-- 可选功能脚本 -->
54+
<script src="/src/scripts/optional.js"></script>
6155
</body>
6256

6357
</html>

public/img/favicon.ico

782 Bytes
Binary file not shown.

public/img/头像.png

506 KB
Loading

src/assets/styles/base.css

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050

5151
/* 头部样式 */
5252
.site-header {
53-
background-color: white;
53+
background-color: rgba(255, 255, 255, 0.729);
5454
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
5555
position: sticky;
5656
top: 0;
@@ -215,6 +215,35 @@
215215
background-color: var(--light-gray);
216216
}
217217

218+
/* 打字机动画样式 */
219+
@keyframes typing {
220+
from { width: 0 }
221+
to { width: 100% }
222+
}
223+
224+
@keyframes blink-caret {
225+
from, to { border-color: transparent }
226+
50% { border-color: var(--primary-color) }
227+
}
228+
229+
.typewriter {
230+
overflow: hidden;
231+
border-right: 3px solid var(--primary-color);
232+
white-space: nowrap;
233+
animation:
234+
typing 3.5s steps(40, end),
235+
blink-caret 0.75s step-end infinite;
236+
}
237+
238+
@keyframes gentle-blink {
239+
0%, 100% { opacity: 1; }
240+
50% { opacity: 0.3; }
241+
}
242+
243+
.blink-after-typing {
244+
animation: gentle-blink 2s ease-in-out infinite !important;
245+
}
246+
218247
/* 响应式设计 */
219248
@media (max-width: 768px) {
220249
.main-nav {

src/components/footer.html

Lines changed: 17 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,31 @@
11
<footer class="site-footer">
2-
<div class="footer-container">
2+
<div class="footer-container" style="padding-left: 40px;">
33
<div class="footer-section">
4-
<h3>关于我们</h3>
5-
<p>这是一个简洁高效的静态网站范例,展示现代网页开发技术</p>
4+
<h3>关于我</h3>
5+
<p>随便写点什么的网站,如果有侵犯到你的版权,请和我联系</p>
66
</div>
7-
7+
88
<div class="footer-section">
9-
<h3>快速链接</h3>
9+
<h3>关注我</h3>
1010
<ul>
11-
<li><a href="/index.html">首页</a></li>
12-
<li><a href="/src/pages/about.html">关于</a></li>
13-
<li><a href="#">服务</a></li>
14-
<li><a href="#">联系</a></li>
15-
</ul>
11+
<li><a href="https://space.bilibili.com/401777887">b站</a></li>
12+
<div class="social-links">
13+
<a href="https://github.com/Coco-Keya"><i class="fab fa-github"></i></a>
14+
15+
</div>
1616
</div>
17-
17+
1818
<div class="footer-section">
1919
<h3>联系方式</h3>
2020
<ul class="contact-info">
21-
<li><i class="fas fa-envelope"></i> [email protected]</li>
22-
<li><i class="fas fa-phone"></i> +86 123 4567 8910</li>
21+
<li><i class="fas fa-envelope"></i> [email protected]</li>
2322
</ul>
23+
2424

25-
<div class="social-links">
26-
<a href="#"><i class="fab fa-weixin"></i></a>
27-
<a href="#"><i class="fab fa-weibo"></i></a>
28-
<a href="#"><i class="fab fa-github"></i></a>
29-
</div>
3025
</div>
3126
</div>
32-
33-
<div class="copyright">
34-
<p>&copy; 2025 我的网站. 保留所有权利.</p>
27+
28+
<div class="copyright" style="padding-left: 40px;">
29+
<p>&copy; 2025 柯迓的网站. 保留所有权利.</p>
3530
</div>
36-
</footer>
31+
</footer>

src/components/header.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<header class="site-header">
22
<div class="header-container">
33
<div class="logo">
4-
<a href="/index.html">我的网站</a>
4+
<a href="/index.html">柯迓的网站</a>
55
</div>
66

77
<nav class="main-nav">

src/pages/about.html

Lines changed: 108 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -3,55 +3,130 @@
33
<head>
44
<meta charset="UTF-8">
55
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6-
<title>关于我们 - 我的网站</title>
6+
<title>关于柯迓Keya</title>
7+
<!-- Favicon -->
8+
<link rel="icon" href="/public/img/favicon.ico" type="image/x-icon">
79
<link rel="stylesheet" href="/src/assets/styles/base.css">
810
<link rel="stylesheet" href="/src/assets/styles/layout.css">
911
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
12+
<style>
13+
.profile-header {
14+
text-align: center;
15+
padding: 40px 0;
16+
background-color: #f8f9fa;
17+
}
18+
.profile-avatar {
19+
width: 200px;
20+
height: 200px;
21+
border-radius: 50%;
22+
object-fit: cover;
23+
border: 5px solid white;
24+
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
25+
margin-bottom: 20px;
26+
}
27+
.profile-name {
28+
font-size: 2.5rem;
29+
margin: 10px 0;
30+
color: #333;
31+
}
32+
.profile-title {
33+
font-size: 1.2rem;
34+
color: #666;
35+
margin-bottom: 20px;
36+
}
37+
.about-section {
38+
max-width: 800px;
39+
margin: 0 auto;
40+
padding: 40px 20px;
41+
}
42+
.section-title {
43+
font-size: 1.8rem;
44+
margin-bottom: 20px;
45+
color: #333;
46+
border-bottom: 2px solid #eee;
47+
padding-bottom: 10px;
48+
}
49+
.skills-list {
50+
display: flex;
51+
flex-wrap: wrap;
52+
gap: 10px;
53+
margin: 20px 0;
54+
}
55+
.skill-item {
56+
background-color: #1ec09729;
57+
padding: 8px 15px;
58+
border-radius: 20px;
59+
font-size: 0.9rem;
60+
}
61+
62+
#english-quote {
63+
text-align: center;
64+
font-style: italic;
65+
margin: 20px 0;
66+
font-size: 1.5rem;
67+
color: #1e54f6;
68+
word-wrap: break-word;
69+
word-break: break-word;
70+
white-space: normal;
71+
max-width: 1000%;
72+
}
73+
</style>
1074
</head>
1175
<body>
1276
<div id="header"></div>
1377

1478
<main class="container">
79+
<div class="profile-header">
80+
<img src="/public/img/头像.png" alt="柯迓Keya" class="profile-avatar">
81+
<h1 class="profile-name">柯迓Keya</h1>
82+
<p class="profile-title">一个平凡的普通人 (‾◡◝)</p>
83+
</div>
84+
1585
<section class="about-section">
16-
<h1>关于我们</h1>
17-
<p>欢迎了解我们的故事和使命</p>
86+
<h2 class="section-title">关于我</h2>
87+
<p>喜欢看番,游戏,要和我一起吗?(。^▽^)</p>
1888

19-
<article class="about-content">
20-
<h2>我们的故事</h2>
21-
<p>成立于2023年,我们致力于提供高质量的网站开发服务。从一个小型工作室开始,我们已经成长为拥有10名专业开发人员的团队。</p>
22-
23-
<h2>我们的使命</h2>
24-
<p>通过创新的技术和卓越的设计,帮助客户在数字世界中脱颖而出。</p>
89+
<h2 class="section-title">兴趣</h2>
90+
<div class="skills-list">
91+
<span class="skill-item">loli</span>
92+
<span class="skill-item">少女</span>
93+
<span class="skill-item">JK</span>
94+
</div>
95+
96+
<h2 class="section-title">一些话</h2>
97+
<div class="experience-item">
98+
<p>你知道的,我是纯爱 (๑•̀ㅂ•́)و✧</p><br>
2599

26-
<h2>我们的价值观</h2>
27-
<ul class="values-list">
28-
<li><i class="fas fa-check"></i> 客户至上</li>
29-
<li><i class="fas fa-check"></i> 追求卓越</li>
30-
<li><i class="fas fa-check"></i> 持续创新</li>
31-
<li><i class="fas fa-check"></i> 团队合作</li>
32-
</ul>
33-
</article>
34-
35-
<div class="team-showcase">
36-
<h2>核心团队</h2>
37-
<div class="team-grid">
38-
<div class="team-member">
39-
<div class="member-photo"></div>
40-
<h3>张伟</h3>
41-
<p>创始人 & CEO</p>
42-
</div>
43-
<div class="team-member">
44-
<div class="member-photo"></div>
45-
<h3>李娜</h3>
46-
<p>技术总监</p>
47-
</div>
48-
</div>
100+
<p id="english-quote" data-typewriter data-blink="true" data-speed="10"></p>
49101
</div>
50102
</section>
51-
</div>
103+
</main>
52104

53105
<div id="footer"></div>
54106

107+
<script>
108+
// Fetch English quote from API
109+
fetch('https://v.api.aa1.cn/api/api-wenan-yingwen/index.php?type=json')
110+
.then(response => response.json())
111+
.then(data => {
112+
const quoteElement = document.getElementById('english-quote');
113+
quoteElement.textContent = data.text;
114+
// 手动触发打字机动画
115+
if (window.typewriter) {
116+
window.typewriter.animate(quoteElement, 20, 0, true, true);
117+
}
118+
})
119+
.catch(error => {
120+
console.error('Error fetching quote:', error);
121+
const quoteElement = document.getElementById('english-quote');
122+
quoteElement.textContent = 'Everything in excess is opposed to nature.';
123+
if (window.typewriter) {
124+
window.typewriter.animate(quoteElement, 20, 0, true, true);
125+
}
126+
});
127+
</script>
55128
<script src="/src/scripts/main.js"></script>
129+
<!-- 加载可选功能脚本 -->
130+
<script src="/src/scripts/optional.js"></script>
56131
</body>
57132
</html>

0 commit comments

Comments
 (0)