docs(readme): 更新中英文文档链接格式

移除重复的“图文及视频完整操作指南”描述,统一中英文文档链接展示方式。

feat(footer): 优化页脚版权信息样式并添加 GitHub 链接

将页脚内容改为使用 Flex 布局,居中对齐,并在右侧添加指向项目仓库的 GitHub 图标链接。
图标带有悬停颜色过渡效果,提升用户交互体验。
同时修复了模块末尾多余的空行问题。
This commit is contained in:
Abner
2025-10-31 20:58:38 +08:00
parent 83a4958d03
commit 1114719664
3 changed files with 42 additions and 9 deletions

View File

@@ -88,7 +88,7 @@
5. **扫码安装** - 使用生成的二维码在新设备上安装
### 📚 详细文档
- **[Giffgaff使用教程](./docs/User_Guide.md)** - 图文及视频完整操作指南 | [English](./docs/User_Guide_EN.md)
- **[Giffgaff使用教程](./docs/User_Guide.md)** | [English](./docs/User_Guide_EN.md)
- [Giffgaff详细说明](./docs/reference/README_giffgaff_esim.md) | [English](./docs/reference/README_giffgaff_esim_EN.md)
- [Simyo详细说明](./docs/reference/README_simyo_esim.md) | [English](./docs/reference/README_simyo_esim_EN.md)

View File

@@ -76,7 +76,7 @@ Modern eSIM management toolkit designed for Giffgaff and Simyo users, supporting
5. **Scan to Install** - Use the generated QR code to install on new device
### 📚 Detailed Documentation
- **[Giffgaff User Guide](./docs/User_Guide.md)** - Complete图文 and video operation guide | [中文版](./docs/User_Guide_EN.md)
- **[Giffgaff User Guide](./docs/User_Guide.md)** | [中文版](./docs/User_Guide_EN.md)
- [Giffgaff Detailed Instructions](./docs/reference/README_giffgaff_esim.md) | [中文版](./docs/reference/README_giffgaff_esim_EN.md)
- [Simyo Detailed Instructions](./docs/reference/README_simyo_esim.md) | [中文版](./docs/reference/README_simyo_esim_EN.md)
- [Performance Optimization Guide](./docs/PERFORMANCE.md)

View File

@@ -24,10 +24,45 @@ export function injectFooter(options = {}) {
// 3) 最后退回到 body避免因 body 为 flex row 导致横排:因此仅最后兜底)
const createCopyrightNode = () => {
const p = document.createElement('p');
p.textContent = options.text || getCopyrightText();
p.style.marginTop = '8px';
return p;
const div = document.createElement('div');
div.style.display = 'flex';
div.style.alignItems = 'center';
div.style.justifyContent = 'center';
div.style.gap = '12px';
div.style.marginTop = '8px';
const span = document.createElement('span');
span.textContent = options.text || getCopyrightText();
const githubLink = document.createElement('a');
githubLink.href = 'https://github.com/Silentely/eSIM-Tools';
githubLink.target = '_blank';
githubLink.rel = 'noopener noreferrer';
githubLink.setAttribute('aria-label', '在 GitHub 上查看源码');
githubLink.style.display = 'flex';
githubLink.style.alignItems = 'center';
githubLink.style.justifyContent = 'center';
githubLink.style.color = '#6b7280';
githubLink.style.textDecoration = 'none';
githubLink.style.transition = 'color 0.2s ease';
const githubIcon = document.createElement('i');
githubIcon.className = 'fab fa-github';
githubIcon.style.fontSize = '18px';
githubLink.addEventListener('mouseenter', () => {
githubLink.style.color = '#1f2937';
});
githubLink.addEventListener('mouseleave', () => {
githubLink.style.color = '#6b7280';
});
githubLink.appendChild(githubIcon);
div.appendChild(span);
div.appendChild(githubLink);
return div;
};
// 情形 1已有站内 footer如首页免责声明区
@@ -73,6 +108,4 @@ export function autoInjectFooter() {
} else {
run();
}
}
}