Skip to content

Commit

Permalink
Merge pull request #95 from our-mini-games/feat-Chinese-chess
Browse files Browse the repository at this point in the history
fix: 中国象棋
  • Loading branch information
humandetail authored Jan 8, 2024
2 parents b4a4e87 + cfa40d7 commit 3f10eae
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 12 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ https://our-mini-games.github.io/mini-games/games/

- [x] 蜘蛛纸牌

- [ ] 中国象棋
- [x] 中国象棋
5 changes: 3 additions & 2 deletions packages/Chinese-chess/index.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/jpg" href="/mini-games/Chinese-chess.jpg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Chinese chess</title>
<title>中国象棋</title>
</head>
<body>
<div id="app"></div>
Expand Down
3 changes: 2 additions & 1 deletion packages/Chinese-chess/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@
:spinning="loading"
tip="资源加载中..."
>
<input
<a-input
v-if="!nickname"
placeholder="请输入您的昵称,按“回车”提交"
style="position: fixed; left: 50%; top: 50%; width: 320px; transform: translate(-50%, -50%);"
@keydown="handleMouseDown"
/>

Expand Down
9 changes: 5 additions & 4 deletions packages/Chinese-chess/src/assets/style.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@font-face {
font-family: PieceFont;
src: url(fzlsft.ttf);
src: url(/resources/FZLSFT.ttf);
font-weight: bold;
font-style: normal;
}
Expand Down Expand Up @@ -35,10 +35,11 @@ ol {
body {
font-size: 16px;
line-height: 1.4;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
color: var(--black);
opacity: .1;
// background-color: var(--light);
}

* {
font-family: PieceFont, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji' !important;
}

:where(.btn) {
Expand Down
2 changes: 1 addition & 1 deletion packages/Chinese-chess/src/main.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { createApp } from 'vue'
import App from './App.vue'

import '@/assets/style.scss'
import 'ant-design-vue/dist/reset.css'
import '@/assets/style.scss'

createApp(App).mount('#app')
4 changes: 2 additions & 2 deletions packages/Chinese-chess/src/pages/OnlineGame/GameLobby.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
class="btn-back"
@click="handleBack"
>
游戏大厅
首页
</a-button>
<h1 class="title">
Room
游戏大厅
</h1>
</header>

Expand Down
Binary file added packages/entry/public/Chinese-chess.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion packages/entry/src/config/games.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export const games: GameConfig[] = [
{
path: '/mini-games/games/chinese-chess/index.html',
name: '中国象棋',
cover: 'org.svg'
cover: 'Chinese-chess.jpg'
},
{
path: 'https://github.com/our-mini-games/mini-games/discussions',
Expand Down

0 comments on commit 3f10eae

Please sign in to comment.