Restore Foundation to Layout ARMS list with external link

cgen-45f8ed05af0d4e69a28b1b341cd9e1ed
This commit is contained in:
Builder.io 2025-11-17 04:55:21 +00:00
parent f124dd4977
commit fcc785759b
3 changed files with 30 additions and 0 deletions

View file

@ -45,6 +45,13 @@ const ARMS = [
{ id: "labs", label: "Labs", color: "#FBBF24", href: "/labs" },
{ id: "gameforge", label: "GameForge", color: "#22C55E", href: "/gameforge" },
{ id: "corp", label: "Corp", color: "#3B82F6", href: "/corp" },
{
id: "foundation",
label: "Foundation",
color: "#EF4444",
href: "https://aethex.foundation",
external: true,
},
{ id: "devlink", label: "Dev-Link", color: "#06B6D4", href: "/dev-link" },
{ id: "nexus", label: "Nexus", color: "#A855F7", href: "/nexus" },
];
@ -56,6 +63,8 @@ const ARM_LOGOS: Record<string, string> = {
gameforge:
"https://cdn.builder.io/api/v1/image/assets%2Ffc53d607e21d497595ac97e0637001a1%2Fcd3534c1caa0497abfd44224040c6059?format=webp&width=800",
corp: "https://cdn.builder.io/api/v1/image/assets%2Ffc53d607e21d497595ac97e0637001a1%2F3772073d5b4b49e688ed02480f4cae43?format=webp&width=800",
foundation:
"https://cdn.builder.io/api/v1/image/assets%2Ffc53d607e21d497595ac97e0637001a1%2Fc02cb1bf5056479bbb3ea4bd91f0d472?format=webp&width=800",
devlink:
"https://cdn.builder.io/api/v1/image/assets%2Ffc53d607e21d497595ac97e0637001a1%2F9a96b43cbd7b49bb9d5434580319c793?format=webp&width=800",
nexus:

View file

@ -38,6 +38,14 @@ const getArmConfig = (pathname: string): ArmConfig => {
armLogo: "https://cdn.builder.io/api/v1/image/assets%2Ffc53d607e21d497595ac97e0637001a1%2F3772073d5b4b49e688ed02480f4cae43?format=webp&width=800",
};
}
if (pathname.includes("/foundation")) {
return {
message: "Redirecting to Foundation Network...",
bootMessage: "Foundation Network Active",
accentColor: "from-red-500 to-red-400",
armLogo: "https://cdn.builder.io/api/v1/image/assets%2Ffc53d607e21d497595ac97e0637001a1%2Fc02cb1bf5056479bbb3ea4bd91f0d472?format=webp&width=800",
};
}
if (pathname.includes("/dev-link")) {
return {
message: "Loading Dev-Link Platform...",

View file

@ -5,6 +5,7 @@ export type ArmType =
| "labs"
| "gameforge"
| "corp"
| "foundation"
| "devlink"
| "staff"
| "nexus"
@ -55,6 +56,17 @@ const THEMES: Record<ArmType, ArmTheme> = {
fontFamily: '"Inter", "-apple-system", "BlinkMacSystemFont", "Segoe UI", sans-serif',
displayName: "Corp",
},
foundation: {
arm: "foundation",
accentColor: "from-red-500 to-red-400",
accentHex: "#ef4444",
wallpaperClass: "wallpaper-foundation",
wallpaperPattern:
"repeating-linear-gradient(0deg, rgba(239, 68, 68, 0.04) 0px, rgba(239, 68, 68, 0.04) 1px, transparent 1px, transparent 2px)",
fontClass: "font-foundation",
fontFamily: '"Merriweather", "Georgia", serif',
displayName: "Foundation",
},
devlink: {
arm: "devlink",
accentColor: "from-cyan-500 to-cyan-400",
@ -104,6 +116,7 @@ const detectArmFromPath = (pathname: string): ArmType => {
if (pathname.includes("/labs")) return "labs";
if (pathname.includes("/gameforge")) return "gameforge";
if (pathname.includes("/corp")) return "corp";
if (pathname.includes("/foundation")) return "foundation";
if (pathname.includes("/dev-link")) return "devlink";
if (pathname.includes("/staff")) return "staff";
if (pathname.includes("/nexus")) return "nexus";