feat(game): align in-game GUI with ref captures

This commit is contained in:
2026-08-01 22:03:03 +00:00
parent 23cdc2adf2
commit 43ec211ff8
30 changed files with 1306 additions and 776 deletions
+18 -15
View File
@@ -1,9 +1,11 @@
<script setup lang="ts">
import { computed, onMounted, ref } from 'vue';
import { useRouter } from 'vue-router';
import { trpc } from '../utils/trpc';
type Result = Awaited<ReturnType<typeof trpc.nation.getNationInfo.query>>;
const data = ref<Result | null>(null);
const router = useRouter();
const error = ref('');
const number = (value: number) => value.toLocaleString('ko-KR');
const diff = (value: number) => `${value > 0 ? '+' : ''}${number(value)}`;
@@ -24,7 +26,7 @@ onMounted(async () => {
<table class="legacy-table title-table legacy-bg0">
<tbody>
<tr>
<td> <br /><RouterLink to="/">돌아가기</RouterLink></td>
<td> <br /><button type="button" @click="router.push('/')">돌아가기</button></td>
</tr>
</tbody>
</table>
@@ -104,7 +106,10 @@ onMounted(async () => {
<table class="legacy-table footer-table legacy-bg0">
<tbody>
<tr>
<td><RouterLink to="/">돌아가기</RouterLink></td>
<td><button type="button" @click="router.push('/')">돌아가기</button></td>
</tr>
<tr>
<td class="credit">삼국지 모의전투 PHP HiDCHe / KOEI의 이미지를 사용했습니다 / 제작: Hide.D</td>
</tr>
</tbody>
</table>
@@ -129,7 +134,7 @@ onMounted(async () => {
}
.title-table,
.footer-table {
text-align: center;
text-align: left;
}
.title-table {
margin-bottom: 14px;
@@ -158,20 +163,18 @@ onMounted(async () => {
.history {
text-align: left !important;
}
.title-table button,
.footer-table button {
border: 0;
border-radius: 3px;
padding: 8px 12px;
background: #345c85;
color: #fff;
cursor: pointer;
}
.credit { padding: 0 !important; }
.error {
color: #ff7373;
text-align: center;
}
@media (max-width: 700px) {
.legacy-info-page {
width: 500px;
}
.info-table {
font-size: 12px;
}
.info-table td,
.info-table th {
padding: 3px;
}
}
</style>