hololake-platform/src/components/HoloLakeHome.tsx

49 lines
2.6 KiB
TypeScript
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.

type HoloLakeHomeProps = {
onEnterKnowledgeBase: () => void
}
const modules = [
['知识湖', '把代码仓库、文档与路径转译成可阅读、可追溯的知识页面。', '进入知识库'],
['页面组件', '提示块、批注、关系卡、路径包、折叠块与高亮代码已接入笔记编辑器。', '在笔记中输入 /'],
['协作空间', '人类与人格体在同一上下文中对话、确认、留存回执。', '筹备中'],
['授权中心', '任何真实操作先形成可读计划,再由人类一次确认。', '筹备中'],
]
export function HoloLakeHome({ onEnterKnowledgeBase }: HoloLakeHomeProps) {
return (
<main className="hololake-home" aria-label="HoloLake Era 世界入口">
<section className="hololake-home__hero">
<div className="hololake-home__halo" aria-hidden="true" />
<p className="hololake-home__eyebrow">ICE-GL · </p>
<h1>HoloLake <em>Era</em></h1>
<p className="hololake-home__lead"></p>
<p className="hololake-home__copy"></p>
<div className="hololake-home__actions">
<button className="hololake-home__primary" onClick={onEnterKnowledgeBase}> <span></span></button>
<span className="hololake-home__status"><i /> · </span>
</div>
</section>
<section className="hololake-home__signal-grid" aria-label="系统状态">
<article><span></span><strong>SYS-GLW-0001</strong><small></small></article>
<article><span></span><strong>Tolaria </strong><small></small></article>
<article><span></span><strong></strong><small></small></article>
</section>
<section className="hololake-home__modules">
<div className="hololake-home__section-head"><span>01 / </span><p></p></div>
<div className="hololake-home__module-grid">
{modules.map(([title, description, action], index) => (
<article className="hololake-module" key={title}>
<span className="hololake-module__number">0{index + 1}</span>
<h2>{title}</h2>
<p>{description}</p>
{index === 0 ? <button onClick={onEnterKnowledgeBase}>{action} <span></span></button> : <span className="hololake-module__soon">{action}</span>}
</article>
))}
</div>
</section>
</main>
)
}