Commit f853d26b authored by antoor's avatar antoor

Redesign the about page

重新设计关于页面
parents 64a6cdbf 02864bfc
...@@ -383,7 +383,11 @@ module.exports = { ...@@ -383,7 +383,11 @@ module.exports = {
}, },
settings: { settings: {
about: { about: {
title: 'About' title: 'About',
header: 'AntSword',
homepage: 'Home',
document: 'Document',
qqgroup: 'QQ Group'
}, },
language: { language: {
title: 'Language setting', title: 'Language setting',
......
...@@ -384,7 +384,11 @@ module.exports = { ...@@ -384,7 +384,11 @@ module.exports = {
}, },
settings: { settings: {
about: { about: {
title: '关于程序' title: '关于程序',
header: '中国蚁剑',
homepage: '主页',
document: '文档',
qqgroup: 'Q群'
}, },
language: { language: {
title: '语言设置', title: '语言设置',
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* 设置中心::关于 * 设置中心::关于
*/ */
const LANG = antSword['language']['settings']; const LANG = antSword['language']['settings']['about'];
class About { class About {
...@@ -10,19 +10,19 @@ class About { ...@@ -10,19 +10,19 @@ class About {
sidebar.addItem({ sidebar.addItem({
id: 'about', id: 'about',
selected: true, selected: true,
text: `<i class="fa fa-heart-o"></i> ${LANG['about']['title']}` text: `<i class="fa fa-heart-o"></i> ${LANG['title']}`
}); });
const cell = sidebar.cells('about'); const cell = sidebar.cells('about');
cell.attachHTMLString(` cell.attachHTMLString(`
<div align="center" class="about"> <div align="center" class="about">
<img src="../static/imgs/logo.png" /> <img src="../static/imgs/logo.png" />
<hr/> <hr/>
<h2>中国蚁剑</h2> <h2>${LANG['header']}<span> v${antSword['package']['version']}</span></h2>
<p> <p>
<a href="https://github.com/antoor/antSword"><i class="fa fa-github-alt"></i> GitHub</a> / <a href="https://github.com/antoor/antSword"><i class="fa fa-github-alt"></i> GitHub</a> /
<a href="http://uyu.us"><i class="fa fa-home"></i> 主页</a> / <a href="http://uyu.us"><i class="fa fa-home"></i> ${LANG['homepage']}</a> /
<a href="http://doc.uyu.us"><i class="fa fa-book"></i> 文档</a> / <a href="http://doc.uyu.us"><i class="fa fa-book"></i> ${LANG['document']}</a> /
<a href="http://shang.qq.com/wpa/qunwpa?idkey=51997458a52d534454fd15e901648bf1f2ed799fde954822a595d6794eadc521"><i class="fa fa-qq"></i> Q群</a> <a href="http://shang.qq.com/wpa/qunwpa?idkey=51997458a52d534454fd15e901648bf1f2ed799fde954822a595d6794eadc521"><i class="fa fa-qq"></i> ${LANG['qqgroup']}</a>
</p> </p>
</div> </div>
`); `);
......
...@@ -190,6 +190,10 @@ html, body, #container, #loading { ...@@ -190,6 +190,10 @@ html, body, #container, #loading {
.about > p { .about > p {
color: #ececec; color: #ececec;
} }
.about > h2 > span {
font-size: 14px;
color: #9E9E9E;
}
.about a { .about a {
text-decoration: blink; text-decoration: blink;
color: #795548; color: #795548;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment