Skip to content

Commit d6b1027

Browse files
committed
优化整体发布前准备
1 parent e1bcdec commit d6b1027

File tree

4 files changed

+16
-15
lines changed

4 files changed

+16
-15
lines changed

src/app/[lang]/games/lasermaze/content.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -379,15 +379,15 @@ export default function LaserMazeGame({ lang, defaults, levels }) {
379379
<div className={hasPresetLevels ? "mt-6 border-t border-slate-200 pt-6" : ""}>
380380
<p className="text-sm font-medium text-slate-700">{t("lasermaze_random_section")}</p>
381381
<p className="mt-2 text-xs text-slate-500">{t("lasermaze_random_tip")}</p>
382-
<div className="mt-3 grid grid-cols-3 gap-2">
382+
<div className="mt-3 flex flex-wrap gap-2">
383383
{[1, 2, 3].map((difficulty) => {
384384
const selected = randomDifficulty === difficulty;
385385
return (
386386
<button
387387
key={difficulty}
388388
type="button"
389389
onClick={() => setRandomDifficulty(difficulty)}
390-
className={`rounded-full border px-4 py-2 text-sm font-semibold transition ${
390+
className={`flex-1 min-w-[120px] rounded-full border px-4 py-2 text-sm font-semibold text-center transition ${
391391
selected
392392
? "border-blue-500 bg-blue-500 text-white hover:bg-blue-500"
393393
: "border-blue-400 text-blue-500 hover:bg-blue-50"

src/app/[lang]/games/lasermaze/page.js

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,13 @@ export async function generateMetadata(props) {
1212
const { lang } = params;
1313

1414
const dict = await getDictionary(lang);
15-
const seo = dict.seo?.lasermaze ?? {
16-
title: "Laser Maze Puzzle",
17-
description: "Guide the laser through reflective blocks to light up every target.",
18-
keywords: "laser maze, reflection puzzle, mirror game",
19-
};
20-
2115
return {
2216
...PageMeta({
23-
title: seo.title,
24-
description: seo.description,
25-
keywords: seo.keywords,
26-
publishedDate: "2024-12-01T03:00:00.000Z",
27-
updatedDate: "2024-12-01T03:00:00.000Z",
17+
title: dict.seo.lasermaze.title,
18+
description: dict.seo.lasermaze.description,
19+
keywords: dict.seo.lasermaze.keywords,
20+
publishedDate: "2025-10-11T03:00:00.000Z",
21+
updatedDate: "2025-10-11T03:00:00.000Z",
2822
}),
2923
alternates: {
3024
canonical: `https://gallery.selfboot.cn/${lang}/games/lasermaze`,

src/app/config/project.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,13 @@ const Projects = {
2121
image: "https://slefboot-1251736664.file.myqcloud.com/20241116_ai_gallery_sokoban_small.png",
2222
link: "/games/sokoban",
2323
},
24+
{
25+
id: "lasermaze",
26+
title: "lasermaze_title",
27+
description: "lasermaze_description",
28+
image: "https://slefboot-1251736664.file.myqcloud.com/20251011_ai_gallery_lasermaze.webp",
29+
link: "/games/lasermaze",
30+
},
2431
{
2532
id: "unblockme",
2633
title: "unblockme_title",

src/app/dictionaries/zh.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -953,8 +953,8 @@
953953
"keywords": "Word文件合并, 在线Word合并, 免费Word合并工具"
954954
}
955955
},
956-
"lasermaze_title": "激光反射益智游戏",
957-
"lasermaze_description": "拖动白色反射块,引导 45° 激光依次命中所有绿色目标",
956+
"lasermaze_title": "在线免费激光反射益智游戏",
957+
"lasermaze_description": "把白色反射块放置到合适的位置,45 度 反射激光命中所有绿色目标。自带预设关卡,支持随机生成不同难度关卡,支持显示解法",
958958
"lasermaze_random_label": "随机关卡",
959959
"lasermaze_custom_label": "自定义关卡",
960960
"lasermaze_random_badge": "随机",

0 commit comments

Comments
 (0)