From c0e6754daa740bf33e1daee0f8345159d69204ad Mon Sep 17 00:00:00 2001 From: Tarun Gupta Date: Sat, 14 Mar 2026 12:36:08 +0530 Subject: [PATCH 1/2] fix: about/providers page api fix --- .../about-pages/network-activity/useDashboardData.ts | 4 ++-- src/components/about-pages/network-activity/useMarketData.ts | 2 +- .../ecosystem-pages/providers-page/useProviderList.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/about-pages/network-activity/useDashboardData.ts b/src/components/about-pages/network-activity/useDashboardData.ts index 9a8f0ae3c..4f58fc2e4 100644 --- a/src/components/about-pages/network-activity/useDashboardData.ts +++ b/src/components/about-pages/network-activity/useDashboardData.ts @@ -4,12 +4,12 @@ import { useQuery } from "@tanstack/react-query"; import axios from "axios"; export async function getDashboardData(): Promise { - const response = await axios.get(`${BASE_API_URL}/dashboardData`); + const response = await axios.get(`${BASE_API_URL}/v1/dashboard-data`); return response.data; } export async function getProviderDetail() { - const response = await axios.get(`${BASE_API_URL}/providers`); + const response = await axios.get(`${BASE_API_URL}/v1/providers`); return response.data; } diff --git a/src/components/about-pages/network-activity/useMarketData.ts b/src/components/about-pages/network-activity/useMarketData.ts index f4336d6cc..33797d8c9 100644 --- a/src/components/about-pages/network-activity/useMarketData.ts +++ b/src/components/about-pages/network-activity/useMarketData.ts @@ -23,7 +23,7 @@ const mockData: MarketData = { async function getMarketData(): Promise { if (isProd) { - const response = await axios.get(`${BASE_API_URL}/marketdata`); + const response = await axios.get(`${BASE_API_URL}/v1/market-data`); return response.data; } else { return mockData; diff --git a/src/components/ecosystem-pages/providers-page/useProviderList.ts b/src/components/ecosystem-pages/providers-page/useProviderList.ts index ee22010e6..4e50885f4 100644 --- a/src/components/ecosystem-pages/providers-page/useProviderList.ts +++ b/src/components/ecosystem-pages/providers-page/useProviderList.ts @@ -7,7 +7,7 @@ const isProd = import.meta.env.PROD; export async function getProviderList(): Promise { try { - const response = await axios.get(`${BASE_API_URL}/providers`); + const response = await axios.get(`${BASE_API_URL}/v1/providers`); // Handle case where response.data might be an array directly or wrapped const data = Array.isArray(response.data) ? response.data : response.data?.data || response.data?.providers || []; From c321dcb7e18083bb12bfa88920848fa282ad1c7f Mon Sep 17 00:00:00 2001 From: Tarun Gupta Date: Wed, 18 Mar 2026 20:02:53 +0530 Subject: [PATCH 2/2] update: homepage --- Readme.md | 2 +- src/components/home/gpu-pricing.astro | 691 ++++++++++++++++++ .../home/trustedby/trusted-by.astro | 8 +- src/content/Homepage/index.md | 15 + src/utils/schema/homepage.ts | 12 + 5 files changed, 723 insertions(+), 5 deletions(-) create mode 100644 src/components/home/gpu-pricing.astro diff --git a/Readme.md b/Readme.md index 3cda9667d..cf01aecdd 100644 --- a/Readme.md +++ b/Readme.md @@ -21,7 +21,7 @@ ## Akash Network Website -Explore the repository for the Akash Network website, skillfully developed by [Hooman Digital](https://twitter.com/hooman_digital). The website serves as a dynamic showcase, illustrating the prowess and capabilities of Akash Network—a decentralized cloud computing marketplace revolutionizing the digital landscape.. +Explore the repository for the Akash Network website, skillfully developed by [Hooman Digital](https://twitter.com/hooman_digital). The website serves as a dynamic showcase, illustrating the prowess and capabilities of Akash Network—a decentralized cloud computing marketplace revolutionizing the digital landscape... ## Getting Started Locally diff --git a/src/components/home/gpu-pricing.astro b/src/components/home/gpu-pricing.astro new file mode 100644 index 000000000..1195e8309 --- /dev/null +++ b/src/components/home/gpu-pricing.astro @@ -0,0 +1,691 @@ +--- +import { getEntry } from "astro:content"; +import axios from "axios"; +import { gpus } from "@/utils/api"; + +const content = await getEntry("Homepage", "index"); +const data = content.data.gpuPricing; + +const gpuModels = ["H200", "H100", "A100"]; + +const staticPrices = { + H200: { aws: 7.91, gcp: 10.44, coreweave: 6.31 }, + H100: { aws: 6.88, gcp: 14.19, coreweave: 6.16 }, + A100: { aws: 3.43, gcp: 4.03, coreweave: 2.70 } +}; + +let akashPrices = { + H200: 0, + H100: 0, + A100: 0 +}; + +try { + + const res = await axios.get(gpus); + const models = res?.data?.models || []; + + const findPrice = (name: string) => + models.find((m: any) => m?.model?.toLowerCase().includes(name)) + ?.price?.weightedAverage; + + const h200 = findPrice("h200"); + const h100 = findPrice("h100"); + const a100 = findPrice("a100"); + + if (h200) akashPrices.H200 = Number(h200.toFixed(2)); + if (h100) akashPrices.H100 = Number(h100.toFixed(2)); + if (a100) akashPrices.A100 = Number(a100.toFixed(2)); + +} catch {} +--- + +
+
+ + + +
+ +
+ +

+{data.title} +

+ +

+{data.subtitle} +

+ +
+ + + +{data.ctaText} + + + + + + + +
+ +
+ +

+Choose a GPU Model +

+ + + + + + + + + +
+ + + +
+ +
+ +{gpuModels.map((gpu)=>( + +))} + +
+ +
+ +
+ +1 + +
+ +
+ +1h + +
+ +
+ +
+ + + + + +
+ + + +
+ +
+ + + + + +Akash +
+ +
+ +
+ + + + +
+ +
+ +Save % + + + +{data.deployText} + + + + +
+ +
+ +
+ + + + +
+ +
+ + + + + + + + + + + + + +AWS +
+ +
+ +
+ + + + +
+ +
+ +
+ + + + +
+ +
+ + + + + + + + + + + + + + +Google Cloud +
+ +
+ +
+ + + + +
+ +
+ +
+ + + + +
+ +
+ + + + + + + + + + + + + + +Coreweave +
+ +
+ +
+ + + + +
+ +
+ +
+ +
+ +
+ + + + + + + +

+{data.description} +

+ +
+
+ + + + + \ No newline at end of file diff --git a/src/components/home/trustedby/trusted-by.astro b/src/components/home/trustedby/trusted-by.astro index be803b18e..938139528 100644 --- a/src/components/home/trustedby/trusted-by.astro +++ b/src/components/home/trustedby/trusted-by.astro @@ -1,10 +1,10 @@ --- -import ExpandedGpuPricing from "../ExpandedGpuPricing"; +import GpuPricing from "../gpu-pricing.astro"; import TrustedByMarquee from "../TrustedByMarquee"; import { trustedBySection } from "./trustedby"; --- -
+

@@ -17,8 +17,8 @@ import { trustedBySection } from "./trustedby";

-
- +
+
diff --git a/src/content/Homepage/index.md b/src/content/Homepage/index.md index d3090fbcf..c80cf39e4 100644 --- a/src/content/Homepage/index.md +++ b/src/content/Homepage/index.md @@ -32,6 +32,21 @@ heroSection: link: "/deploy" type: secondary +gpuPricing: + title: "The Efficiency Gap" + subtitle: "The price of centralization vs. the open market." + + ctaText: "View Pricing Page" + ctaLink: "/pricing/gpus" + + savePercent: 80 + deployText: "Deploy Now" + + description: > + Why the gap? Hyperscalers set prices in a boardroom to maximize margin. + Akash prices are set by a global reverse auction to maximize utilization. + You are paying for the silicon, not the overhead. + # infrastructure section content infrastructureSection: title: "Optimized for AI & Data Workloads" diff --git a/src/utils/schema/homepage.ts b/src/utils/schema/homepage.ts index bf4931632..f9329a678 100644 --- a/src/utils/schema/homepage.ts +++ b/src/utils/schema/homepage.ts @@ -24,6 +24,18 @@ export const homePageSchema = defineCollection({ }), ), }), + gpuPricing: z.object({ + title: z.string(), + subtitle: z.string(), + + ctaText: z.string(), + ctaLink: z.string(), + + savePercent: z.number(), + deployText: z.string(), + + description: z.string(), + }), infrastructureSection: z.object({ title: z.string(), description: z.string(),