Skip to content

Commit 42188a1

Browse files
committed
chore(main&RADME): 删除无用内容,使用更小的资源,README更新
1 parent 452341b commit 42188a1

File tree

4 files changed

+49
-42
lines changed

4 files changed

+49
-42
lines changed

README.md

Lines changed: 43 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
![预览截图2](./screenshots/2.png)
88

9+
**🌐 体验最新Commit:https://iicsc.damon233.top/github-contributions**
10+
911
## ✨ 特性
1012

1113
- 📊 贡献热力图展示
@@ -30,76 +32,81 @@ python -m http.server 8000
3032

3133
# Python 2
3234
python -m SimpleHTTPServer 8000
33-
34-
# 8000为端口,可以修改
3535
```
3636

37-
3. 在浏览器中访问:`http://localhost:8000`
37+
_**注:**`8000` **为端口,可以修改**_
3838

39+
3. 在浏览器中访问:`http://localhost:8000`
3940

4041
_**注:您也可以直接打开** `index.html`_
4142

4243
## 🛠️ 项目结构
4344

4445
```
4546
github-contributions/
46-
├── index.html # 主页面HTML结构
47-
│ ├── 导航栏
48-
│ ├── 用户输入区
49-
│ ├── 统计卡片
50-
│ ├── 图表区域
51-
│ └── 页脚
52-
53-
├── styles.css # 样式文件
54-
│ ├── 主题变量
55-
│ ├── 布局样式
56-
│ ├── 组件样式
57-
│ └── 动画效果
58-
59-
├── yearly_contributions.js # 年度统计相关
60-
│ ├── 数据处理
61-
│ ├── 图表生成
62-
│ ├── 动画效果
63-
│ └── 事件处理
64-
65-
├── heatmap.js # 贡献热力图相关
66-
│ ├── 热力图生成
67-
│ ├── 日期处理
68-
│ ├── 动画效果
69-
│ └── 交互处理
70-
71-
└── monthly_activity.js # 月度活动统计
72-
├── 数据处理
73-
└── 图表生成
47+
├── fonts/
48+
│ └── Hubot-Sans.woff2 # 自定义字体
49+
50+
├── images/
51+
│ └── placeholder-avatar.svg # 头像占位
52+
53+
├── index.html # 主页面HTML结构
54+
│ ├── 导航栏
55+
│ ├── 用户输入区
56+
│ ├── 统计卡片
57+
│ ├── 图表区域
58+
│ └── 页脚
59+
60+
├── styles.css # 样式文件
61+
│ ├── 主题变量
62+
│ ├── 布局样式
63+
│ ├── 组件样式
64+
│ └── 动画效果
65+
66+
├── yearly_contributions.js # 年度统计相关
67+
│ ├── 数据处理
68+
│ ├── 图表生成
69+
│ ├── 动画效果
70+
│ └── 事件处理
71+
72+
├── heatmap.js # 贡献热力图相关
73+
│ ├── 热力图生成
74+
│ ├── 日期处理
75+
│ ├── 动画效果
76+
│ └── 交互处理
77+
78+
└── monthly_activity.js # 月度活动统计
79+
├── 数据处理
80+
└── 图表生成
7481
```
7582

7683
### 核心文件说明
7784

78-
#### index.html
85+
#### 📄 index.html
7986
- 定义页面结构和布局
8087
- 引入所需的样式和脚本
8188
- 包含主要的HTML组件
8289

83-
#### styles.css
90+
#### 📄 styles.css
8491
- 定义自定义WOFF字体
8592
- 定义全局主题变量
8693
- 设置响应式布局
8794
- 实现组件样式
8895
- 定义动画效果
8996

90-
#### yearly_contributions.js
97+
#### 📄 yearly_contributions.js
9198
- 处理年度贡献数据
9299
- 生成年度统计图表
93100
- 计算连续贡献天数
94101
- 处理数据刷新逻辑
95102

96-
#### heatmap.js
103+
#### 📄 heatmap.js
97104
- 生成贡献热力图
98105
- 处理日期和贡献数据
99106
- 实现交互效果
100107
- 管理动画效果
101108

102-
#### monthly_activity.js
109+
#### 📄 monthly_activity.js
103110
- 处理月度活动数据
104111
- 生成月度统计图表
105112

images/placeholder-avatar.png

-17.1 KB
Binary file not shown.

images/placeholder-avatar.svg

Lines changed: 1 addition & 0 deletions
Loading

index.html

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html>
33

44
<head>
5-
<title>GitHub活动统计</title>
5+
<title>GitHub 贡献统计</title>
66
<link rel="icon"
77
href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><text x='50%' y='50%' font-size='80' text-anchor='middle' dominant-baseline='central'>📊</text></svg>"
88
type="image/svg+xml">
@@ -15,13 +15,12 @@
1515
<body>
1616
<nav class="navbar">
1717
<div class="nav-brand">
18-
<img src="https://github.com/IICSC.png" alt="IICSC" onerror="this.onerror=null;this.src='./images/placeholder-avatar.png';" class="nav-avatar">
18+
<img src="https://github.com/IICSC.png" alt="IICSC" onerror="this.onerror=null;this.src='./images/placeholder-avatar.svg';" class="nav-avatar">
1919
<span class="nav-title">GitHub 贡献统计</span>
2020
</div>
2121
<div class="nav-links">
2222
<a href="#" class="nav-link active">首页</a>
2323
<a href="#heatmap" class="nav-link">贡献日历</a>
24-
<a href="#about" class="nav-link">关于</a>
2524
</div>
2625
</nav>
2726
<div class="container">
@@ -31,7 +30,7 @@ <h1>GitHub 贡献统计</h1>
3130
<div class="input-group">
3231
<label for="username">GitHub 用户名</label>
3332
<div class="input-wrapper">
34-
<img id="userAvatar" src="https://github.com/WuXiaoMuer.png" alt="User Avatar" onerror="this.onerror=null;this.src='./images/placeholder-avatar.png';"
33+
<img id="userAvatar" src="https://github.com/WuXiaoMuer.png" alt="User Avatar" onerror="this.onerror=null;this.src='./images/placeholder-avatar.svg';"
3534
class="user-avatar">
3635

3736
<input type="text" id="username" placeholder="输入用户名" value="WuXiaoMuer">
@@ -86,11 +85,11 @@ <h3>最长连续贡献</h3>
8685

8786
<div class="author">
8887
<a href="https://github.com/WuXiaoMuer" target="_blank" class="author-link">
89-
<img src="https://github.com/WuXiaoMuer.png" alt="WuXiaoMuer" onerror="this.onerror=null;this.src='./images/placeholder-avatar.png';" class="author-avatar">
88+
<img src="https://github.com/WuXiaoMuer.png" alt="WuXiaoMuer" onerror="this.onerror=null;this.src='./images/placeholder-avatar.svg';" class="author-avatar">
9089
<span>WuXiaoMuer</span>
9190
</a>
9291
<a href="https://github.com/IICSC" target="_blank" class="author-link">
93-
<img src="https://github.com/IICSC.png" alt="IICSC" onerror="this.onerror=null;this.src='./images/placeholder-avatar.png';" class="author-avatar">
92+
<img src="https://github.com/IICSC.png" alt="IICSC" onerror="this.onerror=null;this.src='./images/placeholder-avatar.svg';" class="author-avatar">
9493
<span>IICSC</span>
9594
</a>
9695
</div>

0 commit comments

Comments
 (0)