Files
game_install_tools/src/routes/+page.svelte
Chaos 6b6c61fd08 feat(installer): 实现游戏安装与快捷方式创建功能- 添加禁用右键菜单和开发者工具的保护机制
- 引入GAME_CONFIG配置文件统一管理游戏信息
- 安装页面支持记录安装路径到localStorage
- 成功页面增加创建桌面快捷方式选项
- 实现调用系统资源管理器打开游戏目录功能
- 集成Windows COM组件创建快捷方式的能力
- 更新UI界面展示多语言标题和版本信息
- 升级daisyui依赖至5.5.2版本- 调整窗口标题和产品名称为"游戏安装工具 - NoPJ"
2025-11-13 23:40:22 +08:00

40 lines
1.1 KiB
Svelte
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<script lang="ts">
import { goto } from '$app/navigation';
import { GAME_CONFIG } from '$lib/config';
</script>
<div class="hero min-h-screen transition-all duration-300 "
>
<div class="hero-content text-center select-none p-12 group hover:backdrop-blur hover:bg-base-100/70">
<div class="w-xl group-hover:w-2xl transition-all duration-1000 ease-in-out ">
<p class="text-5xl font-bold ">
<span class="text-rotate">
<span class="justify-items-center">
<span>{GAME_CONFIG.title}</span>
<span>{GAME_CONFIG.title_en}</span>
<span>{GAME_CONFIG.title_rus}</span>
</span>
</span>
</p>
<p class="pt-2">versin {GAME_CONFIG.version}</p>
<p class="py-6 text-left">
{GAME_CONFIG.description}
</p>
<!-- 事件会冒泡到父元素hero-content因此这些按钮可以不用显式绑定事件 -->
<div class="w-full">
<button class="btn btn-ghost btn-wide group-hover:btn-primary "
on:click="{() => goto('/install')}"
>
安装游戏
</button>
</div>
</div>
</div>
</div>