添加游戏发布页面的客户端引导组件
Project CI / AI game creator shell Rust lane 1/2 (pull_request) Failing after 1m4s
Project CI / AI game creator shell Rust lane 2/2 (pull_request) Failing after 1m5s
Project CI / AI game creator shell Rust smoke (pull_request) Failing after 1m3s
Project CI / AI game creator shell Rust crates (pull_request) Successful in 1m31s
Project CI / Frontend tests (pull_request) Successful in 3m47s
Project CI / Repository checks (pull_request) Successful in 4m8s
Project CI / AI game creator shell web tests (pull_request) Successful in 2m10s
Project CI / Backend tests (pull_request) Successful in 6m39s
Project CI / Native shell tests (pull_request) Successful in 7m25s

This commit is contained in:
2026-09-30 16:23:34 +08:00
parent 534baea589
commit fa56f45675
@@ -0,0 +1,35 @@
import type { HTMLAttributes } from 'react';
import { ClientDownloadEntry } from '../creation-home/ClientDownloadEntry';
type GamePublishClientGuideProps = HTMLAttributes<HTMLElement>;
/** 悬浮引导卡片:把还没有游戏包的作者引到客户端。 */
export function GamePublishClientGuide({
className,
...props
}: GamePublishClientGuideProps) {
return (
<section
className={`flex w-fit max-w-full flex-none flex-col items-center gap-3
rounded-2xl border px-[1.15rem] py-[0.9rem] text-center
[background:linear-gradient(135deg,color-mix(in_srgb,var(--platform-action-accent,#c7653d)_11%,var(--platform-panel-fill))_0%,color-mix(in_srgb,var(--platform-action-accent,#c7653d)_4%,var(--platform-panel-fill))_100%)]
border-[color-mix(in_srgb,var(--platform-action-accent,#c7653d)_26%,transparent)]
[box-shadow:0_0.55rem_1.1rem_color-mix(in_srgb,var(--platform-action-accent,#c7653d)_12%,transparent)]
${className ?? ''}`}
{...props}
>
<strong className="text-[0.82rem] text-(--platform-text-strong)">
还没有游戏包?
</strong>
<ClientDownloadEntry
label="下载客户端制作游戏"
tone="accentSoft"
size="sm"
iconOnlyOnNarrowScreens={false}
/>
</section>
);
}
export default GamePublishClientGuide;