Install scene: fix cmd-bar overlap, swap install command
The "CLICK TO COPY" hint was absolute-positioned at top:10/right:14 of the cmd-box, landing on top of "~/facere — bash" in the bar header. Move the hint into the bar as a flex sibling so the title and hint share the row cleanly without overlap. Replace the placeholder install command with the real installer pulled from raw.githubusercontent.com, with FACERE_GH_TOKEN as a "contact us for demo" placeholder. Also fix deploy/build.sh: `npm init -y` rejects the leading-dot dir name `.build`, and the preset must be resolved by absolute path since babel runs from the repo root.
This commit is contained in:
8
app.jsx
8
app.jsx
@@ -434,7 +434,7 @@ function ProductSection({ bgRef, contentRef }) {
|
||||
/* ───────────────── InstallSection ───────────────── */
|
||||
function InstallSection({ bgRef, contentRef }) {
|
||||
const [copied, setCopied] = useState(false);
|
||||
const cmd = "curl -fsSL https://facere.ai/install.sh | sh";
|
||||
const cmd = `curl -fsSL https://raw.githubusercontent.com/ZhaoYiping789/facere-installer/main/bootstrap.sh | FACERE_GH_TOKEN="contact us for demo"`;
|
||||
|
||||
const copy = async () => {
|
||||
try {
|
||||
@@ -475,15 +475,15 @@ function InstallSection({ bgRef, contentRef }) {
|
||||
<span className="cmd-led led-amber" />
|
||||
<span className="cmd-led led-cyan" />
|
||||
<span className="cmd-title">~/facere — bash</span>
|
||||
<span className="cmd-bar-hint">
|
||||
{copied ? "✓ COPIED" : "CLICK TO COPY"}
|
||||
</span>
|
||||
</div>
|
||||
<div className="cmd-body">
|
||||
<span className="cmd-prompt">$</span>
|
||||
<span className="cmd-text">{cmd}</span>
|
||||
<span className="cmd-cursor" />
|
||||
</div>
|
||||
<div className="cmd-hint">
|
||||
{copied ? "✓ COPIED" : "CLICK TO COPY"}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<a className="docs-link" href="#" onClick={(e) => e.preventDefault()}>
|
||||
|
||||
Reference in New Issue
Block a user