refactor: update CTA buttons with external links and navigation improvements

- Changed "Deploy a Model" button in agents CallToAction to external link (myceliumcloud.tf) with target="_blank"
- Updated "Host a Node" button path from /host to /nodes in agents and cloud CallToAction
- Changed cloud CallToAction "Start Deploying" button to external link with target="_blank"
- Updated CloudHeroNew buttons to external links for myceliumcloud.tf and docs
- Removed onGetStartedClick handler from CloudHeroNew in
This commit is contained in:
2025-11-18 11:56:33 +01:00
parent 6329d2dcac
commit c289c63856
9 changed files with 69 additions and 23 deletions

View File

@@ -52,13 +52,21 @@ export function CallToAction() {
{/* ✅ Two cards, stacked center with spacing */}
<div className="mt-10 flex flex-wrap justify-center gap-x-10 gap-y-8">
<div className="flex flex-col items-center text-center max-w-xs">
<Button to="/host" variant="solid" color="cyan" className="mt-4">
<Button to="/nodes" variant="solid" color="cyan" className="mt-4">
Host a Node
</Button>
</div>
<div className="flex flex-col items-center text-center max-w-xs">
<Button to="/cloud" variant="outline" color="white" className="mt-4">
<Button
as="a"
to="https://myceliumcloud.tf"
variant="outline"
color="white"
className="mt-4"
target="_blank"
rel="noopener noreferrer"
>
Start Deploying
</Button>
</div>

View File

@@ -27,13 +27,22 @@ export function CloudHeroNew({ onGetStartedClick = () => {} }: { onGetStartedCli
</p>
<div className="mt-10 flex items-center gap-x-6">
<Button
onClick={onGetStartedClick}
as="a"
to="https://myceliumcloud.tf"
variant="solid"
color="cyan"
target="_blank"
rel="noopener noreferrer"
>
Deploy Workloads
</Button>
<Button to="#" variant="outline">
<Button
as="a"
to="https://myceliumcloud.tf/docs"
variant="outline"
target="_blank"
rel="noopener noreferrer"
>
Explore Docs <span aria-hidden="true"></span>
</Button>
</div>
@@ -41,7 +50,7 @@ export function CloudHeroNew({ onGetStartedClick = () => {} }: { onGetStartedCli
</div>
</div>
{/* Bottom horizontal line with spacing */}
{/* Bottom horizontal line with spacing */}
<div className="w-full border-b border-gray-100" />
<div className="max-w-7xl bg-transparent mx-auto py-6 border border-t-0 border-b-0 border-gray-100"></div>
</div>

View File

@@ -79,6 +79,18 @@ export function CloudIntro() {
const current = tabs.find((t) => t.id === active)!.content;
const currentButtons = tabButtons[active as keyof typeof tabButtons];
const primaryLinks: Record<string, string | undefined> = {
kubernetes: "https://myceliumcloud.tf",
vdc: undefined,
qsfs: undefined,
};
const secondaryLinks: Record<string, string | undefined> = {
kubernetes: "https://myceliumcloud.tf/docs",
vdc: "https://threefold.info/mycelium_vdc/docs/",
qsfs: undefined,
};
return (
<section className="relative w-full bg-[#121212] overflow-hidden">
{/* Top Spacing Border */}
@@ -164,17 +176,25 @@ export function CloudIntro() {
{currentButtons && (
<div className="mt-8 flex flex-wrap gap-4">
<Button
to="#"
as={primaryLinks[active] ? "a" : undefined}
to={primaryLinks[active] ?? "#"}
variant="solid"
color="cyan"
{...(primaryLinks[active]
? { target: "_blank", rel: "noopener noreferrer" }
: {})}
>
{currentButtons.primary}
</Button>
<Button
to="#"
as={secondaryLinks[active] ? "a" : undefined}
to={secondaryLinks[active] ?? "#"}
variant="outline"
color="white"
{...(secondaryLinks[active]
? { target: "_blank", rel: "noopener noreferrer" }
: {})}
>
{currentButtons.secondary}
</Button>