Skip to content

Commit 66d246f

Browse files
committed
feat: add games page and navigation menu
1 parent c00c51b commit 66d246f

3 files changed

Lines changed: 40 additions & 1 deletion

File tree

_config.butterfly.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ menu:
2323
Categories: /categories/ || fas fa-folder-open
2424
Tags: /tags/ || fas fa-tags
2525
Charts: /charts/ || fas fa-chart-bar
26+
Games: /games/ || fas fa-gamepad
2627
# ...其他你不需要的可以在前面加 # 注释掉
2728

2829
# --------------------------------------

reverse-app/vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ import react from '@vitejs/plugin-react'
44
// https://vite.dev/config/
55
export default defineConfig({
66
plugins: [react()],
7-
base: '/reverse-app/',
7+
base: '/games/reverse-app/',
88
})

source/games/index.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
title: 期货实验室 (Games)
3+
date: 2026-04-06 10:00:00
4+
aside: false
5+
---
6+
7+
欢迎来到期货实验室!这里收集了一些互动的期货交易小游戏,帮助你在娱乐中理解市场逻辑。
8+
9+
<div class="flink">
10+
<div class="flink-list">
11+
<div class="flink-list-item">
12+
<a href="/games/reverse-app/" title="期货反转交易挑战" target="_blank">
13+
<div class="flink-item-icon">
14+
<img src="/img/avatar.png" onerror='this.onerror=null;this.src="/img/friend_404.gif"' alt="期货反转交易挑战">
15+
</div>
16+
<div class="flink-item-name">期货反转交易挑战</div>
17+
<div class="flink-item-desc">测试你的反向思维,在极端行情中寻找转机。</div>
18+
</a>
19+
</div>
20+
<!-- 可以在此处添加更多游戏卡片 -->
21+
</div>
22+
</div>
23+
24+
<style>
25+
.flink-list-item {
26+
width: calc(33.333% - 15px) !important;
27+
}
28+
@media screen and (max-width: 768px) {
29+
.flink-list-item {
30+
width: calc(50% - 15px) !important;
31+
}
32+
}
33+
@media screen and (max-width: 500px) {
34+
.flink-list-item {
35+
width: 100% !important;
36+
}
37+
}
38+
</style>

0 commit comments

Comments
 (0)