添加 Font Awesome

This commit is contained in:
赵鑫 2022-08-31 00:59:26 +08:00
parent 4d2e9c0cfc
commit b49d6fddbb
5 changed files with 176 additions and 31 deletions

128
package-lock.json generated
View File

@ -11,6 +11,7 @@
"hexo": "^6.2.0",
"hexo-browsersync": "^0.3.0",
"hexo-deployer-rsync": "^1.0.0",
"hexo-fontawesome": "^2.3.0",
"hexo-generator-archive": "^1.0.0",
"hexo-generator-category": "^1.0.0",
"hexo-generator-index": "^2.0.0",
@ -64,6 +65,66 @@
"node": ">=6.9.0"
}
},
"node_modules/@fortawesome/fontawesome-common-types": {
"version": "0.2.36",
"resolved": "https://registry.npmjs.org/@fortawesome/fontawesome-common-types/-/fontawesome-common-types-0.2.36.tgz",
"integrity": "sha512-a/7BiSgobHAgBWeN7N0w+lAhInrGxksn13uK7231n2m8EDPE3BMCl9NZLTGrj9ZXfCmC6LM0QLqXidIizVQ6yg==",
"hasInstallScript": true,
"engines": {
"node": ">=6"
}
},
"node_modules/@fortawesome/fontawesome-svg-core": {
"version": "1.2.36",
"resolved": "https://registry.npmjs.org/@fortawesome/fontawesome-svg-core/-/fontawesome-svg-core-1.2.36.tgz",
"integrity": "sha512-YUcsLQKYb6DmaJjIHdDWpBIGCcyE/W+p/LMGvjQem55Mm2XWVAP5kWTMKWLv9lwpCVjpLxPyOMOyUocP1GxrtA==",
"hasInstallScript": true,
"dependencies": {
"@fortawesome/fontawesome-common-types": "^0.2.36"
},
"engines": {
"node": ">=6"
}
},
"node_modules/@fortawesome/free-brands-svg-icons": {
"version": "5.15.4",
"resolved": "https://registry.npmjs.org/@fortawesome/free-brands-svg-icons/-/free-brands-svg-icons-5.15.4.tgz",
"integrity": "sha512-f1witbwycL9cTENJegcmcZRYyawAFbm8+c6IirLmwbbpqz46wyjbQYLuxOc7weXFXfB7QR8/Vd2u5R3q6JYD9g==",
"hasInstallScript": true,
"optional": true,
"dependencies": {
"@fortawesome/fontawesome-common-types": "^0.2.36"
},
"engines": {
"node": ">=6"
}
},
"node_modules/@fortawesome/free-regular-svg-icons": {
"version": "5.15.4",
"resolved": "https://registry.npmjs.org/@fortawesome/free-regular-svg-icons/-/free-regular-svg-icons-5.15.4.tgz",
"integrity": "sha512-9VNNnU3CXHy9XednJ3wzQp6SwNwT3XaM26oS4Rp391GsxVYA+0oDR2J194YCIWf7jNRCYKjUCOduxdceLrx+xw==",
"hasInstallScript": true,
"optional": true,
"dependencies": {
"@fortawesome/fontawesome-common-types": "^0.2.36"
},
"engines": {
"node": ">=6"
}
},
"node_modules/@fortawesome/free-solid-svg-icons": {
"version": "5.15.4",
"resolved": "https://registry.npmjs.org/@fortawesome/free-solid-svg-icons/-/free-solid-svg-icons-5.15.4.tgz",
"integrity": "sha512-JLmQfz6tdtwxoihXLg6lT78BorrFyCf59SAwBM6qV/0zXyVeDygJVb3fk+j5Qat+Yvcxp1buLTY5iDh1ZSAQ8w==",
"hasInstallScript": true,
"optional": true,
"dependencies": {
"@fortawesome/fontawesome-common-types": "^0.2.36"
},
"engines": {
"node": ">=6"
}
},
"node_modules/@socket.io/component-emitter": {
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/@socket.io/component-emitter/-/component-emitter-3.1.0.tgz",
@ -1616,6 +1677,22 @@
"node": ">=4"
}
},
"node_modules/hexo-fontawesome": {
"version": "2.3.0",
"resolved": "https://registry.npmjs.org/hexo-fontawesome/-/hexo-fontawesome-2.3.0.tgz",
"integrity": "sha512-CBMCBsVQKLu/Baz7DPaW7tykdJKG2GFcV0iwCCgdpE52DWJL7LU6SUor20fk6a2wAb/Er4YSdiwMsjnhpNgEBg==",
"dependencies": {
"@fortawesome/fontawesome-svg-core": "^1.2.36"
},
"optionalDependencies": {
"@fortawesome/free-brands-svg-icons": "^5.15.4",
"@fortawesome/free-regular-svg-icons": "^5.15.4",
"@fortawesome/free-solid-svg-icons": "^5.15.4"
},
"peerDependencies": {
"hexo": "3.x || 4.x || 5.x || 6.x"
}
},
"node_modules/hexo-front-matter": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/hexo-front-matter/-/hexo-front-matter-3.0.0.tgz",
@ -4154,6 +4231,46 @@
"to-fast-properties": "^2.0.0"
}
},
"@fortawesome/fontawesome-common-types": {
"version": "0.2.36",
"resolved": "https://registry.npmjs.org/@fortawesome/fontawesome-common-types/-/fontawesome-common-types-0.2.36.tgz",
"integrity": "sha512-a/7BiSgobHAgBWeN7N0w+lAhInrGxksn13uK7231n2m8EDPE3BMCl9NZLTGrj9ZXfCmC6LM0QLqXidIizVQ6yg=="
},
"@fortawesome/fontawesome-svg-core": {
"version": "1.2.36",
"resolved": "https://registry.npmjs.org/@fortawesome/fontawesome-svg-core/-/fontawesome-svg-core-1.2.36.tgz",
"integrity": "sha512-YUcsLQKYb6DmaJjIHdDWpBIGCcyE/W+p/LMGvjQem55Mm2XWVAP5kWTMKWLv9lwpCVjpLxPyOMOyUocP1GxrtA==",
"requires": {
"@fortawesome/fontawesome-common-types": "^0.2.36"
}
},
"@fortawesome/free-brands-svg-icons": {
"version": "5.15.4",
"resolved": "https://registry.npmjs.org/@fortawesome/free-brands-svg-icons/-/free-brands-svg-icons-5.15.4.tgz",
"integrity": "sha512-f1witbwycL9cTENJegcmcZRYyawAFbm8+c6IirLmwbbpqz46wyjbQYLuxOc7weXFXfB7QR8/Vd2u5R3q6JYD9g==",
"optional": true,
"requires": {
"@fortawesome/fontawesome-common-types": "^0.2.36"
}
},
"@fortawesome/free-regular-svg-icons": {
"version": "5.15.4",
"resolved": "https://registry.npmjs.org/@fortawesome/free-regular-svg-icons/-/free-regular-svg-icons-5.15.4.tgz",
"integrity": "sha512-9VNNnU3CXHy9XednJ3wzQp6SwNwT3XaM26oS4Rp391GsxVYA+0oDR2J194YCIWf7jNRCYKjUCOduxdceLrx+xw==",
"optional": true,
"requires": {
"@fortawesome/fontawesome-common-types": "^0.2.36"
}
},
"@fortawesome/free-solid-svg-icons": {
"version": "5.15.4",
"resolved": "https://registry.npmjs.org/@fortawesome/free-solid-svg-icons/-/free-solid-svg-icons-5.15.4.tgz",
"integrity": "sha512-JLmQfz6tdtwxoihXLg6lT78BorrFyCf59SAwBM6qV/0zXyVeDygJVb3fk+j5Qat+Yvcxp1buLTY5iDh1ZSAQ8w==",
"optional": true,
"requires": {
"@fortawesome/fontawesome-common-types": "^0.2.36"
}
},
"@socket.io/component-emitter": {
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/@socket.io/component-emitter/-/component-emitter-3.1.0.tgz",
@ -5317,6 +5434,17 @@
}
}
},
"hexo-fontawesome": {
"version": "2.3.0",
"resolved": "https://registry.npmjs.org/hexo-fontawesome/-/hexo-fontawesome-2.3.0.tgz",
"integrity": "sha512-CBMCBsVQKLu/Baz7DPaW7tykdJKG2GFcV0iwCCgdpE52DWJL7LU6SUor20fk6a2wAb/Er4YSdiwMsjnhpNgEBg==",
"requires": {
"@fortawesome/fontawesome-svg-core": "^1.2.36",
"@fortawesome/free-brands-svg-icons": "^5.15.4",
"@fortawesome/free-regular-svg-icons": "^5.15.4",
"@fortawesome/free-solid-svg-icons": "^5.15.4"
}
},
"hexo-front-matter": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/hexo-front-matter/-/hexo-front-matter-3.0.0.tgz",

View File

@ -16,6 +16,7 @@
"hexo": "^6.2.0",
"hexo-browsersync": "^0.3.0",
"hexo-deployer-rsync": "^1.0.0",
"hexo-fontawesome": "^2.3.0",
"hexo-generator-archive": "^1.0.0",
"hexo-generator-category": "^1.0.0",
"hexo-generator-index": "^2.0.0",

View File

@ -27,7 +27,7 @@ sitemap: true
</style>
<div id="demo">
<h1>点击鼠标,让“社会主义核心价值观”飞翔!</h1>
<h1>请点击这里!</h1>
</div>
<script>
@ -82,7 +82,7 @@ sitemap: true
</style>
<div id="demo">
<h1>点击鼠标,让“社会主义核心价值观”飞翔!</h1>
<h1>请点击这里!</h1>
</div>
<script>

View File

@ -11,22 +11,24 @@ sitemap: true
<style>
#gameContainer {
width: 430px;
width: 100%;
margin: 0 auto;
max-width: 320px
}
#gameBoard {
display: flex;
flex-flow: row wrap;
display: grid;
grid-template-columns: repeat(4, 1fr);
grid-template-rows: repeat(4, 1fr);
gap: 10px;
margin: 0 auto;
}
#gameBoard card {
width: 100px;
height: 100px;
font-size: 80px;
line-height: 100px;
margin: auto;
width: 72px;
height: 72px;
font-size: 48px;
line-height: 72px;
text-align: center;
border-radius: 8px;
background-color: #66c;
@ -117,22 +119,24 @@ startButton.onclick = 开始游戏
``` html
<style>
#gameContainer {
width: 430px;
margin: 1rem auto;
width: 100%;
margin: 0 auto;
max-width: 320px
}
#gameBoard {
display: flex;
flex-flow: row wrap;
display: grid;
grid-template-columns: repeat(4, 1fr);
grid-template-rows: repeat(4, 1fr);
gap: 10px;
margin: 0 auto;
}
#gameBoard card {
width: 100px;
height: 100px;
font-size: 80px;
line-height: 100px;
margin: auto;
width: 72px;
height: 72px;
font-size: 48px;
line-height: 72px;
text-align: center;
border-radius: 8px;
background-color: #66c;

View File

@ -5,23 +5,36 @@ keywords: []
date: 2022-08-30 18:53:13
---
# 学业
<style>
.list-group {
display: flex;
gap: 1rem;
}
</style>
<a href="https://www.shuxuele.com">数学乐</a>
<a href="http://www.newxue.com">新学网</a>
<a href="https://www.zdic.net">汉典</a>
<a href="https://zh.m.wikipedia.org">维基百科</a>
# 学习
<div class="list-group">
<a href="https://www.zdic.net" title="一个面向广泛受众、含有丰富及有益内容的教育和信息网站">汉典</a>
<a href="https://www.shuxuele.com" title="Math is Fun 的中文版">数学乐</a>
<a href="http://www.newxue.com" title="中学生 小学生 在线学习网">新学网</a>
<a href="https://zh.m.wikipedia.org" title="一个自由内容、公开编辑且多语言的网络百科全书协作计划">维基百科 {% fa_inline wikipedia-w fab %}</a>
</div>
# 编程
<a href="https://www.w3school.com.cn">w3school 在线教程</a>
<a href="https://www.runoob.com">菜鸟教程</a>
<a href="https://github.com">Github</a>
<div class="list-group">
<a href="https://www.runoob.com" title="学的不仅是技术,更是梦想!">菜鸟教程</a>
<a href="https://www.w3school.com.cn" title="领先的 Web 技术教程">w3school</a>
<a href="https://github.com" title="The complete developer platform">GitHub {% fa_inline github fab %}</a>
</div>
# 工具
<a href="https://www.google.com/maps/@32.0535126,118.7949569,12.21z">谷歌地图</a>
<a href="https://www.favicon.cc/">favicon.ico Generator</a>
<div class="list-group">
<a href="https://www.google.com/maps/@32.0535126,118.7949569,12.21z" title="">谷歌地图 {% fa_inline globe %}</a>
<a href="https://www.favicon.c" title="favicon.ico Generator">favicon.cc</a>
</div>
# 家庭
@ -44,5 +57,4 @@ date: 2022-08-30 18:53:13
<a href="http://www.xiami.com">虾米音乐</a>
<a href="https://minecraft.fandom.com/zh/wiki/Minecraft_Wiki">中文Minecraft Wiki</a>
{% fa_css %}