Skip to content

Commit ccd00a8

Browse files
author
Shaw
committed
chore: checkpoint os homepage formatting
1 parent 2fa6889 commit ccd00a8

4 files changed

Lines changed: 43 additions & 39 deletions

File tree

61.3 KB
Loading
78 KB
Loading

packages/cloud-frontend/src/RootLayout.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@ export default function RootLayout() {
3434
<title>eliza cloud - Run in Cloud</title>
3535
<meta
3636
name="description"
37-
content="Run your Eliza agent in Cloud. Sign in or preorder ElizaOS hardware."
37+
content="Run your Eliza agent in Cloud. Sign in, manage agents, and connect elizaOS devices."
3838
/>
3939
<link rel="canonical" href={`${baseUrl}/`} />
4040
<meta property="og:title" content="eliza cloud - Run in Cloud" />
4141
<meta
4242
property="og:description"
43-
content="Run your Eliza agent in Cloud. Sign in or preorder ElizaOS hardware."
43+
content="Run your Eliza agent in Cloud. Sign in, manage agents, and connect elizaOS devices."
4444
/>
4545
<meta property="og:url" content={`${baseUrl}/`} />
4646
<meta property="og:site_name" content="Eliza Cloud" />
@@ -57,7 +57,7 @@ export default function RootLayout() {
5757
<meta name="twitter:title" content="Eliza Cloud" />
5858
<meta
5959
name="twitter:description"
60-
content="Run your Eliza agent in Cloud. Sign in or preorder ElizaOS hardware."
60+
content="Run your Eliza agent in Cloud. Sign in, manage agents, and connect elizaOS devices."
6161
/>
6262
<meta
6363
name="twitter:image"

packages/os-homepage/src/App.tsx

Lines changed: 40 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -615,44 +615,47 @@ function manifestToOsArtifacts(manifest: unknown): OsArtifact[] {
615615
(release?.channel as OsArtifact["channel"] | undefined) ?? "beta";
616616
const version = release?.version ?? "0.0.0";
617617
const artifacts = Array.isArray(m.artifacts) ? m.artifacts : [];
618-
return artifacts.map(
619-
(artifact: Record<string, unknown>): OsArtifact => {
620-
const target = artifact.target as Record<string, string> | null;
621-
const platform = (() => {
622-
const p = target?.platform ?? "";
623-
if (/android|cuttlefish/i.test(p)) return "android" as const;
624-
if (/macos|apple/i.test(p)) return "macos" as const;
625-
if (/windows|win/i.test(p)) return "windows" as const;
626-
return "linux" as const;
627-
})();
628-
const kind = (() => {
629-
const k = String(artifact.kind ?? "");
630-
if (k === "raw-image") return "iso" as const;
631-
if (k === "vm-image") return "ova" as const;
632-
if (k === "android-image") return "apk" as const;
633-
if (k === "usb-installer") return "desktop-app" as const;
634-
return "iso" as const;
635-
})();
636-
return {
637-
id: String(artifact.id ?? ""),
638-
label: String(artifact.filename ?? "").replace(/\.zst$|\.zip$/, ""),
639-
description: String(artifact.notes ?? ""),
640-
platform,
641-
kind,
642-
channel,
643-
version,
644-
downloadUrl: typeof artifact.downloadUrl === "string" ? artifact.downloadUrl : null,
645-
checksumUrl: null,
646-
sizeBytes: typeof artifact.sizeBytes === "number" ? artifact.sizeBytes : null,
647-
sha256: typeof artifact.sha256 === "string" ? artifact.sha256 : null,
648-
releaseNotesUrl: null,
649-
};
650-
},
651-
);
618+
return artifacts.map((artifact: Record<string, unknown>): OsArtifact => {
619+
const target = artifact.target as Record<string, string> | null;
620+
const platform = (() => {
621+
const p = target?.platform ?? "";
622+
if (/android|cuttlefish/i.test(p)) return "android" as const;
623+
if (/macos|apple/i.test(p)) return "macos" as const;
624+
if (/windows|win/i.test(p)) return "windows" as const;
625+
return "linux" as const;
626+
})();
627+
const kind = (() => {
628+
const k = String(artifact.kind ?? "");
629+
if (k === "raw-image") return "iso" as const;
630+
if (k === "vm-image") return "ova" as const;
631+
if (k === "android-image") return "apk" as const;
632+
if (k === "usb-installer") return "desktop-app" as const;
633+
return "iso" as const;
634+
})();
635+
return {
636+
id: String(artifact.id ?? ""),
637+
label: String(artifact.filename ?? "").replace(/\.zst$|\.zip$/, ""),
638+
description: String(artifact.notes ?? ""),
639+
platform,
640+
kind,
641+
channel,
642+
version,
643+
downloadUrl:
644+
typeof artifact.downloadUrl === "string" ? artifact.downloadUrl : null,
645+
checksumUrl: null,
646+
sizeBytes:
647+
typeof artifact.sizeBytes === "number" ? artifact.sizeBytes : null,
648+
sha256: typeof artifact.sha256 === "string" ? artifact.sha256 : null,
649+
releaseNotesUrl: null,
650+
};
651+
});
652652
}
653653

654654
// Static OS artifacts for distribution channels not yet in the manifest.
655-
function staticOsArtifacts(channel: OsArtifact["channel"], version: string): OsArtifact[] {
655+
function staticOsArtifacts(
656+
channel: OsArtifact["channel"],
657+
version: string,
658+
): OsArtifact[] {
656659
return [
657660
{
658661
id: `elizaos-linux-live-${channel}`,
@@ -673,7 +676,8 @@ function staticOsArtifacts(channel: OsArtifact["channel"], version: string): OsA
673676
{
674677
id: "elizaos-debian-package",
675678
label: "elizaOS Debian / Ubuntu package",
676-
description: "Install elizaOS on an existing Debian or Ubuntu system via apt.",
679+
description:
680+
"Install elizaOS on an existing Debian or Ubuntu system via apt.",
677681
platform: "linux",
678682
kind: "deb",
679683
channel,

0 commit comments

Comments
 (0)