Spaces:
Paused
Paused
Commit ·
d3e44c7
1
Parent(s): 3a0fa36
feat: update icon system with LobeHub provider logos
Browse files- Replace generic icons with LobeHub SVG provider logos (842 icons)
- Update llm-provider-icons.ts registry with direct SVG references
- Update ecosystem-catalog.ts with LobeHub branding
- Clean up deprecated/duplicate provider icons (bedrock, fireworks, groq)
- Update component references (LLMProviderIconCloud, HubLiveTerminal, CyberTicketModal)
- Add bilingual privacy policy and terms of service pages
- Refine language switcher in lib/languages.ts
- PROJECT_STATUS.md +1 -1
- app/actions/waitlist.ts +111 -30
- app/layout.tsx +125 -90
- app/status/layout.tsx +14 -6
- components/CinematicPreloader.tsx +10 -8
- components/CyberTicketModal.tsx +77 -22
- components/HubLiveTerminal.tsx +1 -1
- components/LLMProviderIconCloud.tsx +0 -1
- components/waitlist-form.tsx +107 -42
- data/ecosystem-catalog.ts +7 -10
- data/llm-provider-icons.ts +3 -8
- public/icons/bedrock-color.svg +0 -1
- public/icons/bedrock-text.svg +0 -1
- public/icons/bedrock.svg +0 -1
- public/icons/fireworks-color.svg +0 -1
- public/icons/fireworks-text.svg +0 -1
- public/icons/fireworks.svg +0 -1
- public/icons/groq-text.svg +0 -1
- public/icons/groq.svg +0 -1
- public/icons/xai.svg +1 -1
- public/llm.txt +1 -1
PROJECT_STATUS.md
CHANGED
|
@@ -14,7 +14,7 @@ This file outlines the current phase, purpose, and audience of the **HubAPI** wo
|
|
| 14 |
## 🚀 Core Project Goals // أهداف المشروع الأساسية
|
| 15 |
This project aims to build a unified ecosystem with two key offerings:
|
| 16 |
1. **LLM Provider API Key & Subscription Marketplace (منصة بيع مفاتيح وحسابات واشتراكات مزودي الذكاء الاصطناعي)**:
|
| 17 |
-
* A platform to purchase, manage, and subscribe to API keys, developer accounts, and premium rate-limit access for top-tier LLM providers (e.g., OpenAI, Anthropic,
|
| 18 |
2. **Agentic OS (برنامج نظام التشغيل الموجه للوكلاء الذكيين)**:
|
| 19 |
* Building a comprehensive agent-based operating system designed to run, coordinate, audit, and orchestrate autonomous AI agents seamlessly across computing environments.
|
| 20 |
|
|
|
|
| 14 |
## 🚀 Core Project Goals // أهداف المشروع الأساسية
|
| 15 |
This project aims to build a unified ecosystem with two key offerings:
|
| 16 |
1. **LLM Provider API Key & Subscription Marketplace (منصة بيع مفاتيح وحسابات واشتراكات مزودي الذكاء الاصطناعي)**:
|
| 17 |
+
* A platform to purchase, manage, and subscribe to API keys, developer accounts, and premium rate-limit access for top-tier LLM providers (e.g., OpenAI, Anthropic, Gemini, Cohere, etc.).
|
| 18 |
2. **Agentic OS (برنامج نظام التشغيل الموجه للوكلاء الذكيين)**:
|
| 19 |
* Building a comprehensive agent-based operating system designed to run, coordinate, audit, and orchestrate autonomous AI agents seamlessly across computing environments.
|
| 20 |
|
app/actions/waitlist.ts
CHANGED
|
@@ -9,13 +9,35 @@ export interface RegistrationResult {
|
|
| 9 |
error?: string;
|
| 10 |
}
|
| 11 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
// Set up MySQL connection pool if environment variables are provided
|
| 13 |
let pool: mysql.Pool | null = null;
|
| 14 |
-
if (
|
| 15 |
-
process.env.DB_HOST &&
|
| 16 |
-
process.env.DB_USER &&
|
| 17 |
-
process.env.DB_NAME
|
| 18 |
-
) {
|
| 19 |
try {
|
| 20 |
pool = mysql.createPool({
|
| 21 |
host: process.env.DB_HOST,
|
|
@@ -55,7 +77,9 @@ async function ensureMySQLTable(connection: mysql.PoolConnection) {
|
|
| 55 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
| 56 |
`);
|
| 57 |
try {
|
| 58 |
-
await connection.query(
|
|
|
|
|
|
|
| 59 |
} catch {
|
| 60 |
// Column might already exist or table can be altered in older MySQL
|
| 61 |
}
|
|
@@ -64,12 +88,18 @@ async function ensureMySQLTable(connection: mysql.PoolConnection) {
|
|
| 64 |
function escapeHtml(unsafe: string): string {
|
| 65 |
return unsafe.replace(/[&<>"']/g, (m) => {
|
| 66 |
switch (m) {
|
| 67 |
-
case "&":
|
| 68 |
-
|
| 69 |
-
case "
|
| 70 |
-
|
| 71 |
-
case "
|
| 72 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 73 |
}
|
| 74 |
});
|
| 75 |
}
|
|
@@ -82,9 +112,14 @@ async function sendWelcomeEmail(email: string, ticketNo: string) {
|
|
| 82 |
return;
|
| 83 |
}
|
| 84 |
|
|
|
|
| 85 |
const cleanTicketNo = escapeHtml(ticketNo);
|
| 86 |
-
const referralLink = escapeHtml(
|
| 87 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 88 |
|
| 89 |
const emailHtml = `
|
| 90 |
<!DOCTYPE html>
|
|
@@ -213,7 +248,7 @@ async function sendWelcomeEmail(email: string, ticketNo: string) {
|
|
| 213 |
<p style="font-size: 12px; line-height: 1.5; color: #888;">
|
| 214 |
Refer your network peers to bypass standard throttling gates and secure priority allocation metrics:
|
| 215 |
</p>
|
| 216 |
-
|
| 217 |
<div style="background-color: #09090b; padding: 12px; border: 1px solid #141417; border-radius: 2px; font-size: 11px; margin-bottom: 20px; word-break: break-all; text-align: center;">
|
| 218 |
<a href="${referralLink}" style="color: #ff9d00; text-decoration: none;">${referralLink}</a>
|
| 219 |
</div>
|
|
@@ -252,13 +287,20 @@ async function sendWelcomeEmail(email: string, ticketNo: string) {
|
|
| 252 |
throw new Error(`Resend API returned status ${res.status}: ${errText}`);
|
| 253 |
}
|
| 254 |
|
| 255 |
-
console.log(
|
|
|
|
|
|
|
| 256 |
} catch (err) {
|
| 257 |
-
console.error(
|
|
|
|
|
|
|
|
|
|
| 258 |
}
|
| 259 |
}
|
| 260 |
|
| 261 |
-
export async function registerWaitlist(
|
|
|
|
|
|
|
| 262 |
const email = formData.get("email")?.toString().trim();
|
| 263 |
const variant = formData.get("variant")?.toString().trim() || "classic";
|
| 264 |
|
|
@@ -272,15 +314,43 @@ export async function registerWaitlist(formData: FormData): Promise<Registration
|
|
| 272 |
return { success: false, error: "Please enter a valid email address." };
|
| 273 |
}
|
| 274 |
|
| 275 |
-
|
|
|
|
|
|
|
| 276 |
if (!pool) {
|
| 277 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 278 |
return { success: true };
|
| 279 |
}
|
| 280 |
|
| 281 |
const headerList = await headers();
|
| 282 |
-
const rawIp =
|
| 283 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 284 |
const ticketNo = getTicketNumber(email);
|
| 285 |
|
| 286 |
let connection: mysql.PoolConnection | null = null;
|
|
@@ -291,18 +361,21 @@ export async function registerWaitlist(formData: FormData): Promise<Registration
|
|
| 291 |
// Check if email already registered
|
| 292 |
const [emailCheck] = await connection.query<mysql.RowDataPacket[]>(
|
| 293 |
"SELECT id FROM waitlist WHERE LOWER(email) = LOWER(?) LIMIT 1",
|
| 294 |
-
[email]
|
| 295 |
);
|
| 296 |
|
| 297 |
if (emailCheck.length > 0) {
|
| 298 |
connection.release();
|
| 299 |
-
return {
|
|
|
|
|
|
|
|
|
|
| 300 |
}
|
| 301 |
|
| 302 |
// Rate Limiting checks
|
| 303 |
const [ipCheck] = await connection.query<mysql.RowDataPacket[]>(
|
| 304 |
"SELECT timestamp FROM waitlist WHERE ip_hash = ? ORDER BY timestamp DESC",
|
| 305 |
-
[ipHash]
|
| 306 |
);
|
| 307 |
|
| 308 |
const now = Date.now();
|
|
@@ -313,23 +386,30 @@ export async function registerWaitlist(formData: FormData): Promise<Registration
|
|
| 313 |
|
| 314 |
if (tooFast) {
|
| 315 |
connection.release();
|
| 316 |
-
return {
|
|
|
|
|
|
|
|
|
|
| 317 |
}
|
| 318 |
|
| 319 |
if (ipCheck.length >= 5) {
|
| 320 |
connection.release();
|
| 321 |
-
return {
|
|
|
|
|
|
|
|
|
|
|
|
|
| 322 |
}
|
| 323 |
|
| 324 |
// Insert new registration
|
| 325 |
const timestamp = new Date().toISOString();
|
| 326 |
await connection.query(
|
| 327 |
"INSERT INTO waitlist (email, timestamp, ip_hash, variant) VALUES (?, ?, ?, ?)",
|
| 328 |
-
[email, timestamp, ipHash, variant]
|
| 329 |
);
|
| 330 |
|
| 331 |
connection.release();
|
| 332 |
-
console.log(`[MySQL] Registered waitlist
|
| 333 |
|
| 334 |
// Dispatch welcome email asynchronously via Resend
|
| 335 |
sendWelcomeEmail(email, ticketNo);
|
|
@@ -344,7 +424,8 @@ export async function registerWaitlist(formData: FormData): Promise<Registration
|
|
| 344 |
}
|
| 345 |
return {
|
| 346 |
success: false,
|
| 347 |
-
error:
|
|
|
|
| 348 |
};
|
| 349 |
}
|
| 350 |
}
|
|
|
|
| 9 |
error?: string;
|
| 10 |
}
|
| 11 |
|
| 12 |
+
const IS_PRODUCTION = process.env.NODE_ENV === "production";
|
| 13 |
+
const SITE_URL = (
|
| 14 |
+
process.env.NEXT_PUBLIC_SITE_URL ??
|
| 15 |
+
"https://darkslategrey-nightingale-132659.hostingersite.com"
|
| 16 |
+
).replace(/\/$/, "");
|
| 17 |
+
|
| 18 |
+
const getEmailLogId = (emailStr: string): string =>
|
| 19 |
+
crypto
|
| 20 |
+
.createHash("sha256")
|
| 21 |
+
.update(emailStr.trim().toLowerCase())
|
| 22 |
+
.digest("hex")
|
| 23 |
+
.slice(0, 12);
|
| 24 |
+
|
| 25 |
+
const getIpHash = (rawIp: string): string | null => {
|
| 26 |
+
const salt = process.env.IP_HASH_SALT;
|
| 27 |
+
|
| 28 |
+
if (!salt && IS_PRODUCTION) {
|
| 29 |
+
return null;
|
| 30 |
+
}
|
| 31 |
+
|
| 32 |
+
return crypto
|
| 33 |
+
.createHash("sha256")
|
| 34 |
+
.update(`${salt ?? "development-only-ip-salt"}:${rawIp}`)
|
| 35 |
+
.digest("hex");
|
| 36 |
+
};
|
| 37 |
+
|
| 38 |
// Set up MySQL connection pool if environment variables are provided
|
| 39 |
let pool: mysql.Pool | null = null;
|
| 40 |
+
if (process.env.DB_HOST && process.env.DB_USER && process.env.DB_NAME) {
|
|
|
|
|
|
|
|
|
|
|
|
|
| 41 |
try {
|
| 42 |
pool = mysql.createPool({
|
| 43 |
host: process.env.DB_HOST,
|
|
|
|
| 77 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
| 78 |
`);
|
| 79 |
try {
|
| 80 |
+
await connection.query(
|
| 81 |
+
"ALTER TABLE waitlist ADD COLUMN variant VARCHAR(50) DEFAULT 'classic'",
|
| 82 |
+
);
|
| 83 |
} catch {
|
| 84 |
// Column might already exist or table can be altered in older MySQL
|
| 85 |
}
|
|
|
|
| 88 |
function escapeHtml(unsafe: string): string {
|
| 89 |
return unsafe.replace(/[&<>"']/g, (m) => {
|
| 90 |
switch (m) {
|
| 91 |
+
case "&":
|
| 92 |
+
return "&";
|
| 93 |
+
case "<":
|
| 94 |
+
return "<";
|
| 95 |
+
case ">":
|
| 96 |
+
return ">";
|
| 97 |
+
case '"':
|
| 98 |
+
return """;
|
| 99 |
+
case "'":
|
| 100 |
+
return "'";
|
| 101 |
+
default:
|
| 102 |
+
return m;
|
| 103 |
}
|
| 104 |
});
|
| 105 |
}
|
|
|
|
| 112 |
return;
|
| 113 |
}
|
| 114 |
|
| 115 |
+
const emailLogId = getEmailLogId(email);
|
| 116 |
const cleanTicketNo = escapeHtml(ticketNo);
|
| 117 |
+
const referralLink = escapeHtml(
|
| 118 |
+
`${SITE_URL}?ref=HUBAPI-${ticketNo.replace(",", "")}`,
|
| 119 |
+
);
|
| 120 |
+
const accessCode = escapeHtml(
|
| 121 |
+
`HUBAPI-ACC-${ticketNo.replace(",", "")}-${email.split("@")[0].toUpperCase()}`,
|
| 122 |
+
);
|
| 123 |
|
| 124 |
const emailHtml = `
|
| 125 |
<!DOCTYPE html>
|
|
|
|
| 248 |
<p style="font-size: 12px; line-height: 1.5; color: #888;">
|
| 249 |
Refer your network peers to bypass standard throttling gates and secure priority allocation metrics:
|
| 250 |
</p>
|
| 251 |
+
|
| 252 |
<div style="background-color: #09090b; padding: 12px; border: 1px solid #141417; border-radius: 2px; font-size: 11px; margin-bottom: 20px; word-break: break-all; text-align: center;">
|
| 253 |
<a href="${referralLink}" style="color: #ff9d00; text-decoration: none;">${referralLink}</a>
|
| 254 |
</div>
|
|
|
|
| 287 |
throw new Error(`Resend API returned status ${res.status}: ${errText}`);
|
| 288 |
}
|
| 289 |
|
| 290 |
+
console.log(
|
| 291 |
+
`[Resend] Successfully dispatched welcome email for user hash: ${emailLogId}`,
|
| 292 |
+
);
|
| 293 |
} catch (err) {
|
| 294 |
+
console.error(
|
| 295 |
+
`[Resend] Failed to send welcome email for user hash: ${emailLogId}`,
|
| 296 |
+
err,
|
| 297 |
+
);
|
| 298 |
}
|
| 299 |
}
|
| 300 |
|
| 301 |
+
export async function registerWaitlist(
|
| 302 |
+
formData: FormData,
|
| 303 |
+
): Promise<RegistrationResult> {
|
| 304 |
const email = formData.get("email")?.toString().trim();
|
| 305 |
const variant = formData.get("variant")?.toString().trim() || "classic";
|
| 306 |
|
|
|
|
| 314 |
return { success: false, error: "Please enter a valid email address." };
|
| 315 |
}
|
| 316 |
|
| 317 |
+
const emailLogId = getEmailLogId(email);
|
| 318 |
+
|
| 319 |
+
// If DB is unavailable, only allow fake success during local development.
|
| 320 |
if (!pool) {
|
| 321 |
+
if (IS_PRODUCTION) {
|
| 322 |
+
console.error(
|
| 323 |
+
`[WAITLIST] Hostinger DB unavailable. Registration rejected for user hash: ${emailLogId}`,
|
| 324 |
+
);
|
| 325 |
+
return {
|
| 326 |
+
success: false,
|
| 327 |
+
error:
|
| 328 |
+
"Waitlist service is temporarily unavailable. Please try again later.",
|
| 329 |
+
};
|
| 330 |
+
}
|
| 331 |
+
|
| 332 |
+
console.warn(
|
| 333 |
+
`[WAITLIST] DB unavailable. Development fallback accepted registration for user hash: ${emailLogId}`,
|
| 334 |
+
);
|
| 335 |
return { success: true };
|
| 336 |
}
|
| 337 |
|
| 338 |
const headerList = await headers();
|
| 339 |
+
const rawIp =
|
| 340 |
+
headerList.get("x-forwarded-for")?.split(",")[0] ||
|
| 341 |
+
headerList.get("x-real-ip") ||
|
| 342 |
+
"127.0.0.1";
|
| 343 |
+
const ipHash = getIpHash(rawIp);
|
| 344 |
+
if (!ipHash) {
|
| 345 |
+
console.error(
|
| 346 |
+
`[WAITLIST] IP hash salt missing. Registration rejected for user hash: ${emailLogId}`,
|
| 347 |
+
);
|
| 348 |
+
return {
|
| 349 |
+
success: false,
|
| 350 |
+
error:
|
| 351 |
+
"Waitlist service is temporarily unavailable. Please try again later.",
|
| 352 |
+
};
|
| 353 |
+
}
|
| 354 |
const ticketNo = getTicketNumber(email);
|
| 355 |
|
| 356 |
let connection: mysql.PoolConnection | null = null;
|
|
|
|
| 361 |
// Check if email already registered
|
| 362 |
const [emailCheck] = await connection.query<mysql.RowDataPacket[]>(
|
| 363 |
"SELECT id FROM waitlist WHERE LOWER(email) = LOWER(?) LIMIT 1",
|
| 364 |
+
[email],
|
| 365 |
);
|
| 366 |
|
| 367 |
if (emailCheck.length > 0) {
|
| 368 |
connection.release();
|
| 369 |
+
return {
|
| 370 |
+
success: false,
|
| 371 |
+
error: "This email is already registered on the waitlist.",
|
| 372 |
+
};
|
| 373 |
}
|
| 374 |
|
| 375 |
// Rate Limiting checks
|
| 376 |
const [ipCheck] = await connection.query<mysql.RowDataPacket[]>(
|
| 377 |
"SELECT timestamp FROM waitlist WHERE ip_hash = ? ORDER BY timestamp DESC",
|
| 378 |
+
[ipHash],
|
| 379 |
);
|
| 380 |
|
| 381 |
const now = Date.now();
|
|
|
|
| 386 |
|
| 387 |
if (tooFast) {
|
| 388 |
connection.release();
|
| 389 |
+
return {
|
| 390 |
+
success: false,
|
| 391 |
+
error: "Please wait 60 seconds before submitting another request.",
|
| 392 |
+
};
|
| 393 |
}
|
| 394 |
|
| 395 |
if (ipCheck.length >= 5) {
|
| 396 |
connection.release();
|
| 397 |
+
return {
|
| 398 |
+
success: false,
|
| 399 |
+
error:
|
| 400 |
+
"Limit reached. You have reached the maximum number of registrations allowed from this device.",
|
| 401 |
+
};
|
| 402 |
}
|
| 403 |
|
| 404 |
// Insert new registration
|
| 405 |
const timestamp = new Date().toISOString();
|
| 406 |
await connection.query(
|
| 407 |
"INSERT INTO waitlist (email, timestamp, ip_hash, variant) VALUES (?, ?, ?, ?)",
|
| 408 |
+
[email, timestamp, ipHash, variant],
|
| 409 |
);
|
| 410 |
|
| 411 |
connection.release();
|
| 412 |
+
console.log(`[MySQL] Registered waitlist user hash: ${emailLogId}`);
|
| 413 |
|
| 414 |
// Dispatch welcome email asynchronously via Resend
|
| 415 |
sendWelcomeEmail(email, ticketNo);
|
|
|
|
| 424 |
}
|
| 425 |
return {
|
| 426 |
success: false,
|
| 427 |
+
error:
|
| 428 |
+
"Failed to save registration to the database. Please try again later.",
|
| 429 |
};
|
| 430 |
}
|
| 431 |
}
|
app/layout.tsx
CHANGED
|
@@ -1,5 +1,10 @@
|
|
| 1 |
import type { Metadata } from "next";
|
| 2 |
-
import {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
import localFont from "next/font/local";
|
| 4 |
import "./globals.css";
|
| 5 |
import { Header } from "@/components/header";
|
|
@@ -9,7 +14,7 @@ import { ThemeProvider } from "@/components/theme-provider";
|
|
| 9 |
import Script from "next/script";
|
| 10 |
import { cookies, headers } from "next/headers";
|
| 11 |
|
| 12 |
-
const geist = Geist({subsets:[
|
| 13 |
|
| 14 |
const geistMono = Geist_Mono({
|
| 15 |
variable: "--font-geist-mono",
|
|
@@ -33,21 +38,28 @@ const fastHand = localFont({
|
|
| 33 |
variable: "--font-fast-hand",
|
| 34 |
});
|
| 35 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 36 |
export const metadata: Metadata = {
|
| 37 |
-
metadataBase: new URL(
|
| 38 |
title: "HUBAPI — Pre-Launch Marketing Showcase & Waitlist",
|
| 39 |
-
description:
|
|
|
|
| 40 |
alternates: {
|
| 41 |
-
canonical:
|
| 42 |
languages: {
|
| 43 |
-
|
| 44 |
-
|
| 45 |
},
|
| 46 |
},
|
| 47 |
openGraph: {
|
| 48 |
title: "HUBAPI — Pre-Launch Marketing Showcase",
|
| 49 |
-
description:
|
| 50 |
-
|
|
|
|
| 51 |
siteName: "HUBAPI",
|
| 52 |
images: [
|
| 53 |
{
|
|
@@ -62,7 +74,8 @@ export const metadata: Metadata = {
|
|
| 62 |
twitter: {
|
| 63 |
card: "summary_large_image",
|
| 64 |
title: "HUBAPI — Pre-Launch Marketing Showcase",
|
| 65 |
-
description:
|
|
|
|
| 66 |
images: ["/og-image.png"],
|
| 67 |
},
|
| 68 |
};
|
|
@@ -79,7 +92,7 @@ export default async function RootLayout({
|
|
| 79 |
}>) {
|
| 80 |
const cookieStore = await cookies();
|
| 81 |
const langCookie = cookieStore.get("hubapi_lang")?.value;
|
| 82 |
-
|
| 83 |
let lang = "en";
|
| 84 |
if (langCookie === "ar" || langCookie === "en") {
|
| 85 |
lang = langCookie;
|
|
@@ -90,11 +103,16 @@ export default async function RootLayout({
|
|
| 90 |
lang = "ar";
|
| 91 |
}
|
| 92 |
}
|
| 93 |
-
|
| 94 |
const dir = lang === "ar" ? "rtl" : "ltr";
|
| 95 |
|
| 96 |
return (
|
| 97 |
-
<html
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 98 |
<head>
|
| 99 |
{/* Google Tag Manager */}
|
| 100 |
<Script
|
|
@@ -119,7 +137,7 @@ j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
|
|
| 119 |
src="https://www.googletagmanager.com/ns.html?id=GTM-WHZJJT9H"
|
| 120 |
height="0"
|
| 121 |
width="0"
|
| 122 |
-
style={{ display:
|
| 123 |
/>
|
| 124 |
</noscript>
|
| 125 |
{/* End Google Tag Manager (noscript) */}
|
|
@@ -130,87 +148,104 @@ j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
|
|
| 130 |
enableSystem
|
| 131 |
disableTransitionOnChange
|
| 132 |
>
|
| 133 |
-
|
| 134 |
-
|
| 135 |
-
|
| 136 |
-
|
| 137 |
-
|
| 138 |
-
|
| 139 |
-
|
| 140 |
-
|
| 141 |
-
|
| 142 |
-
|
| 143 |
-
|
| 144 |
-
|
| 145 |
-
|
| 146 |
-
|
| 147 |
-
|
| 148 |
-
|
| 149 |
-
|
| 150 |
-
|
| 151 |
-
|
| 152 |
-
|
| 153 |
-
|
| 154 |
-
|
| 155 |
-
|
| 156 |
-
|
| 157 |
-
|
| 158 |
-
|
| 159 |
-
|
| 160 |
-
|
| 161 |
-
|
| 162 |
-
|
| 163 |
-
|
| 164 |
-
|
| 165 |
-
|
| 166 |
-
|
| 167 |
-
|
| 168 |
-
|
| 169 |
-
|
| 170 |
-
|
| 171 |
-
|
| 172 |
-
|
| 173 |
-
|
| 174 |
-
|
| 175 |
-
|
| 176 |
-
|
| 177 |
-
|
| 178 |
-
|
| 179 |
-
|
| 180 |
-
|
| 181 |
-
|
| 182 |
-
|
| 183 |
-
|
| 184 |
-
|
| 185 |
-
|
| 186 |
-
|
| 187 |
-
|
| 188 |
-
|
| 189 |
-
|
| 190 |
-
|
| 191 |
-
|
| 192 |
-
|
| 193 |
-
|
| 194 |
-
|
| 195 |
-
|
| 196 |
-
|
| 197 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 198 |
window.dataLayer = window.dataLayer || [];
|
| 199 |
function gtag(){dataLayer.push(arguments);}
|
| 200 |
gtag('js', new Date());
|
| 201 |
gtag('config', '${process.env.NEXT_PUBLIC_GA_ID}');
|
| 202 |
`}
|
| 203 |
-
|
| 204 |
-
|
| 205 |
-
|
| 206 |
-
|
| 207 |
-
|
| 208 |
-
|
| 209 |
-
|
| 210 |
-
|
| 211 |
-
|
| 212 |
-
|
| 213 |
-
|
| 214 |
</LanguageProvider>
|
| 215 |
</body>
|
| 216 |
</html>
|
|
|
|
| 1 |
import type { Metadata } from "next";
|
| 2 |
+
import {
|
| 3 |
+
Geist_Mono,
|
| 4 |
+
Geist,
|
| 5 |
+
Instrument_Serif,
|
| 6 |
+
IBM_Plex_Sans_Arabic,
|
| 7 |
+
} from "next/font/google";
|
| 8 |
import localFont from "next/font/local";
|
| 9 |
import "./globals.css";
|
| 10 |
import { Header } from "@/components/header";
|
|
|
|
| 14 |
import Script from "next/script";
|
| 15 |
import { cookies, headers } from "next/headers";
|
| 16 |
|
| 17 |
+
const geist = Geist({ subsets: ["latin"], variable: "--font-sans" });
|
| 18 |
|
| 19 |
const geistMono = Geist_Mono({
|
| 20 |
variable: "--font-geist-mono",
|
|
|
|
| 38 |
variable: "--font-fast-hand",
|
| 39 |
});
|
| 40 |
|
| 41 |
+
const SITE_URL = (
|
| 42 |
+
process.env.NEXT_PUBLIC_SITE_URL ??
|
| 43 |
+
"https://darkslategrey-nightingale-132659.hostingersite.com"
|
| 44 |
+
).replace(/\/$/, "");
|
| 45 |
+
|
| 46 |
export const metadata: Metadata = {
|
| 47 |
+
metadataBase: new URL(SITE_URL),
|
| 48 |
title: "HUBAPI — Pre-Launch Marketing Showcase & Waitlist",
|
| 49 |
+
description:
|
| 50 |
+
"One planned gateway for multiple LLM providers. Access leading AI models through a unified API layer.",
|
| 51 |
alternates: {
|
| 52 |
+
canonical: SITE_URL,
|
| 53 |
languages: {
|
| 54 |
+
en: `${SITE_URL}/?lang=en`,
|
| 55 |
+
ar: `${SITE_URL}/?lang=ar`,
|
| 56 |
},
|
| 57 |
},
|
| 58 |
openGraph: {
|
| 59 |
title: "HUBAPI — Pre-Launch Marketing Showcase",
|
| 60 |
+
description:
|
| 61 |
+
"One planned gateway for multiple LLM providers. Standard REST API, multi-model access, unified billing, and a developer-first dashboard.",
|
| 62 |
+
url: SITE_URL,
|
| 63 |
siteName: "HUBAPI",
|
| 64 |
images: [
|
| 65 |
{
|
|
|
|
| 74 |
twitter: {
|
| 75 |
card: "summary_large_image",
|
| 76 |
title: "HUBAPI — Pre-Launch Marketing Showcase",
|
| 77 |
+
description:
|
| 78 |
+
"One planned gateway for multiple LLM providers. Standard REST API, multi-model access, unified billing, and a developer-first dashboard.",
|
| 79 |
images: ["/og-image.png"],
|
| 80 |
},
|
| 81 |
};
|
|
|
|
| 92 |
}>) {
|
| 93 |
const cookieStore = await cookies();
|
| 94 |
const langCookie = cookieStore.get("hubapi_lang")?.value;
|
| 95 |
+
|
| 96 |
let lang = "en";
|
| 97 |
if (langCookie === "ar" || langCookie === "en") {
|
| 98 |
lang = langCookie;
|
|
|
|
| 103 |
lang = "ar";
|
| 104 |
}
|
| 105 |
}
|
| 106 |
+
|
| 107 |
const dir = lang === "ar" ? "rtl" : "ltr";
|
| 108 |
|
| 109 |
return (
|
| 110 |
+
<html
|
| 111 |
+
lang={lang}
|
| 112 |
+
dir={dir}
|
| 113 |
+
className={cn("font-sans", geist.variable)}
|
| 114 |
+
suppressHydrationWarning
|
| 115 |
+
>
|
| 116 |
<head>
|
| 117 |
{/* Google Tag Manager */}
|
| 118 |
<Script
|
|
|
|
| 137 |
src="https://www.googletagmanager.com/ns.html?id=GTM-WHZJJT9H"
|
| 138 |
height="0"
|
| 139 |
width="0"
|
| 140 |
+
style={{ display: "none", visibility: "hidden" }}
|
| 141 |
/>
|
| 142 |
</noscript>
|
| 143 |
{/* End Google Tag Manager (noscript) */}
|
|
|
|
| 148 |
enableSystem
|
| 149 |
disableTransitionOnChange
|
| 150 |
>
|
| 151 |
+
<SplitFlapAudioProvider>
|
| 152 |
+
{/* JSON-LD Organization Schema for SEO */}
|
| 153 |
+
<script
|
| 154 |
+
type="application/ld+json"
|
| 155 |
+
dangerouslySetInnerHTML={{
|
| 156 |
+
__html: JSON.stringify({
|
| 157 |
+
"@context": "https://schema.org",
|
| 158 |
+
"@type": "Organization",
|
| 159 |
+
name: "HUBAPI",
|
| 160 |
+
url: SITE_URL,
|
| 161 |
+
logo: `${SITE_URL}/logo.png`,
|
| 162 |
+
description:
|
| 163 |
+
"HUBAPI is a planned neural API gateway and automation platform designed to offer smart routing, cost optimization, and security shield for LLMs (pre-launch preview).",
|
| 164 |
+
sameAs: [
|
| 165 |
+
"https://github.com/hubapi",
|
| 166 |
+
"https://twitter.com/hubapi",
|
| 167 |
+
],
|
| 168 |
+
}),
|
| 169 |
+
}}
|
| 170 |
+
/>
|
| 171 |
+
{/* JSON-LD SoftwareApplication Schema for Rich Search Results */}
|
| 172 |
+
<script
|
| 173 |
+
type="application/ld+json"
|
| 174 |
+
dangerouslySetInnerHTML={{
|
| 175 |
+
__html: JSON.stringify({
|
| 176 |
+
"@context": "https://schema.org",
|
| 177 |
+
"@type": "SoftwareApplication",
|
| 178 |
+
name: "HUBAPI",
|
| 179 |
+
applicationCategory: "DeveloperApplication",
|
| 180 |
+
operatingSystem: "Web",
|
| 181 |
+
description:
|
| 182 |
+
"A unified API gateway for accessing multiple LLM providers with one API key, smart routing, usage tracking, and unified billing.",
|
| 183 |
+
url: `${SITE_URL}/`,
|
| 184 |
+
offers: {
|
| 185 |
+
"@type": "Offer",
|
| 186 |
+
price: "0",
|
| 187 |
+
priceCurrency: "USD",
|
| 188 |
+
availability: "https://schema.org/PreOrder",
|
| 189 |
+
},
|
| 190 |
+
}),
|
| 191 |
+
}}
|
| 192 |
+
/>
|
| 193 |
+
{/* Viewport Elegant Top Border */}
|
| 194 |
+
<div
|
| 195 |
+
className="fixed top-0 left-0 right-0 h-[1px] bg-gradient-to-r from-transparent via-primary/20 dark:via-primary/35 to-transparent pointer-events-none z-50"
|
| 196 |
+
aria-hidden="true"
|
| 197 |
+
/>
|
| 198 |
+
|
| 199 |
+
{/* Symmetrical Vertical Guides (Thin elegant lines) */}
|
| 200 |
+
<div
|
| 201 |
+
className="fixed inset-y-0 left-[8%] w-[1px] bg-gradient-to-b from-transparent via-primary/3 dark:via-primary/6 to-transparent pointer-events-none -z-40"
|
| 202 |
+
aria-hidden="true"
|
| 203 |
+
/>
|
| 204 |
+
<div
|
| 205 |
+
className="fixed inset-y-0 right-[8%] w-[1px] bg-gradient-to-b from-transparent via-primary/3 dark:via-primary/6 to-transparent pointer-events-none -z-40"
|
| 206 |
+
aria-hidden="true"
|
| 207 |
+
/>
|
| 208 |
+
|
| 209 |
+
{/* Premium Dark Grain Background Overlay */}
|
| 210 |
+
<div className="noise-grain" aria-hidden="true" />
|
| 211 |
+
|
| 212 |
+
{/* Soft Ambient Spotlight Glow (Linear/Vercel style top-centered light) */}
|
| 213 |
+
<div
|
| 214 |
+
className="fixed top-0 left-1/2 -translate-x-1/2 w-[1200px] h-[600px] bg-gradient-to-b from-primary/6 dark:from-primary/12 via-primary/2 dark:via-primary/4 to-transparent blur-[160px] rounded-full -z-40 pointer-events-none opacity-70 dark:opacity-85"
|
| 215 |
+
aria-hidden="true"
|
| 216 |
+
/>
|
| 217 |
+
|
| 218 |
+
{/* Subtle cool indigo glow near bottom to anchor scrolling */}
|
| 219 |
+
<div
|
| 220 |
+
className="fixed bottom-0 left-1/2 -translate-x-1/2 w-[1000px] h-[500px] bg-indigo-500/[0.015] dark:bg-indigo-500/[0.01] blur-[150px] rounded-full -z-40 pointer-events-none"
|
| 221 |
+
aria-hidden="true"
|
| 222 |
+
/>
|
| 223 |
+
|
| 224 |
+
{/* Google Analytics Integration */}
|
| 225 |
+
{process.env.NEXT_PUBLIC_GA_ID && (
|
| 226 |
+
<>
|
| 227 |
+
<Script
|
| 228 |
+
src={`https://www.googletagmanager.com/gtag/js?id=${process.env.NEXT_PUBLIC_GA_ID}`}
|
| 229 |
+
strategy="afterInteractive"
|
| 230 |
+
/>
|
| 231 |
+
<Script id="google-analytics" strategy="afterInteractive">
|
| 232 |
+
{`
|
| 233 |
window.dataLayer = window.dataLayer || [];
|
| 234 |
function gtag(){dataLayer.push(arguments);}
|
| 235 |
gtag('js', new Date());
|
| 236 |
gtag('config', '${process.env.NEXT_PUBLIC_GA_ID}');
|
| 237 |
`}
|
| 238 |
+
</Script>
|
| 239 |
+
</>
|
| 240 |
+
)}
|
| 241 |
+
|
| 242 |
+
<SkipToContent />
|
| 243 |
+
<Header />
|
| 244 |
+
{children}
|
| 245 |
+
<Footer />
|
| 246 |
+
<WaitlistSocialProofTicker />
|
| 247 |
+
</SplitFlapAudioProvider>
|
| 248 |
+
</ThemeProvider>
|
| 249 |
</LanguageProvider>
|
| 250 |
</body>
|
| 251 |
</html>
|
app/status/layout.tsx
CHANGED
|
@@ -1,19 +1,27 @@
|
|
| 1 |
import type { Metadata } from "next";
|
| 2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
export const metadata: Metadata = {
|
| 4 |
title: "HUBAPI — Neural Gateway Mesh Status & Diagnostics",
|
| 5 |
-
description:
|
|
|
|
| 6 |
alternates: {
|
| 7 |
-
canonical:
|
| 8 |
languages: {
|
| 9 |
-
|
| 10 |
-
|
| 11 |
},
|
| 12 |
},
|
| 13 |
openGraph: {
|
| 14 |
title: "HUBAPI — Neural Gateway Mesh Status",
|
| 15 |
-
description:
|
| 16 |
-
|
|
|
|
| 17 |
type: "website",
|
| 18 |
},
|
| 19 |
};
|
|
|
|
| 1 |
import type { Metadata } from "next";
|
| 2 |
|
| 3 |
+
const SITE_URL = (
|
| 4 |
+
process.env.NEXT_PUBLIC_SITE_URL ??
|
| 5 |
+
"https://darkslategrey-nightingale-132659.hostingersite.com"
|
| 6 |
+
).replace(/\/$/, "");
|
| 7 |
+
const STATUS_URL = `${SITE_URL}/status`;
|
| 8 |
+
|
| 9 |
export const metadata: Metadata = {
|
| 10 |
title: "HUBAPI — Neural Gateway Mesh Status & Diagnostics",
|
| 11 |
+
description:
|
| 12 |
+
"Real-time latency metrics, node health, system load, and diagnostic operations for HUBAPI's planned global LLM gateway routing mesh.",
|
| 13 |
alternates: {
|
| 14 |
+
canonical: STATUS_URL,
|
| 15 |
languages: {
|
| 16 |
+
en: `${STATUS_URL}?lang=en`,
|
| 17 |
+
ar: `${STATUS_URL}?lang=ar`,
|
| 18 |
},
|
| 19 |
},
|
| 20 |
openGraph: {
|
| 21 |
title: "HUBAPI — Neural Gateway Mesh Status",
|
| 22 |
+
description:
|
| 23 |
+
"Monitor real-time node pings, system loads, and global gateway health for HUBAPI's AI orchestration network.",
|
| 24 |
+
url: STATUS_URL,
|
| 25 |
type: "website",
|
| 26 |
},
|
| 27 |
};
|
components/CinematicPreloader.tsx
CHANGED
|
@@ -37,7 +37,7 @@ export function CinematicPreloader() {
|
|
| 37 |
"INITIALIZING THREE.JS WEBGL PARTICLE SYSTEM...",
|
| 38 |
"SYNCHRONIZING LATENCY METRICS AT EDGE NODES...",
|
| 39 |
"TUNING INTELLIGENT MODEL ROUTERS...",
|
| 40 |
-
"GATEWAY STABLE. SECURING NEURAL CHANNEL..."
|
| 41 |
];
|
| 42 |
|
| 43 |
const logsAr = [
|
|
@@ -46,7 +46,7 @@ export function CinematicPreloader() {
|
|
| 46 |
"تهيئة نظام الجسيمات ثلاثي الأبعاد WebGL...",
|
| 47 |
"مزامنة مقاييس زمن الاستجابة في بوابات الحافة...",
|
| 48 |
"تحسين موجهات الذكاء الاصطناعي التلقائية...",
|
| 49 |
-
"البوابة مستقرة. تأمين القناة العصبية..."
|
| 50 |
];
|
| 51 |
|
| 52 |
const currentLogs = language === "ar" ? logsAr : logsEn;
|
|
@@ -55,7 +55,7 @@ export function CinematicPreloader() {
|
|
| 55 |
const timer = setTimeout(() => {
|
| 56 |
setLogs((prev) => [...prev, `${currentLogs[stage]} [OK]`]);
|
| 57 |
setStage((prev) => prev + 1);
|
| 58 |
-
|
| 59 |
// Play subtle click audio if not muted
|
| 60 |
if (audio && !audio.isMuted) {
|
| 61 |
audio.playClick();
|
|
@@ -87,7 +87,7 @@ export function CinematicPreloader() {
|
|
| 87 |
const increment = stage === 6 ? 15 : Math.floor(Math.random() * 8) + 4;
|
| 88 |
return Math.min(prev + increment, 100);
|
| 89 |
});
|
| 90 |
-
},
|
| 91 |
|
| 92 |
return () => clearInterval(interval);
|
| 93 |
}, [isVisible, stage, audio]);
|
|
@@ -97,10 +97,10 @@ export function CinematicPreloader() {
|
|
| 97 |
{isVisible && (
|
| 98 |
<motion.div
|
| 99 |
initial={{ opacity: 1 }}
|
| 100 |
-
exit={{
|
| 101 |
-
opacity: 0,
|
| 102 |
y: -50,
|
| 103 |
-
transition: { duration: 0.8, ease: [0.76, 0, 0.24, 1] }
|
| 104 |
}}
|
| 105 |
className="fixed inset-0 z-[9999] bg-black flex flex-col items-center justify-center p-6 select-none font-mono text-xs overflow-hidden"
|
| 106 |
>
|
|
@@ -119,7 +119,9 @@ export function CinematicPreloader() {
|
|
| 119 |
>
|
| 120 |
<div className="absolute w-3 h-3 bg-primary rounded-full animate-pulse shadow-[0_0_10px_var(--primary-glow)]" />
|
| 121 |
</motion.div>
|
| 122 |
-
<h2 className="font-fast-hand text-3xl tracking-widest text-foreground mt-4">
|
|
|
|
|
|
|
| 123 |
<p className="text-[10px] text-muted-foreground/60 tracking-[0.2em] uppercase">
|
| 124 |
{t("loading")}
|
| 125 |
</p>
|
|
|
|
| 37 |
"INITIALIZING THREE.JS WEBGL PARTICLE SYSTEM...",
|
| 38 |
"SYNCHRONIZING LATENCY METRICS AT EDGE NODES...",
|
| 39 |
"TUNING INTELLIGENT MODEL ROUTERS...",
|
| 40 |
+
"GATEWAY STABLE. SECURING NEURAL CHANNEL...",
|
| 41 |
];
|
| 42 |
|
| 43 |
const logsAr = [
|
|
|
|
| 46 |
"تهيئة نظام الجسيمات ثلاثي الأبعاد WebGL...",
|
| 47 |
"مزامنة مقاييس زمن الاستجابة في بوابات الحافة...",
|
| 48 |
"تحسين موجهات الذكاء الاصطناعي التلقائية...",
|
| 49 |
+
"البوابة مستقرة. تأمين القناة العصبية...",
|
| 50 |
];
|
| 51 |
|
| 52 |
const currentLogs = language === "ar" ? logsAr : logsEn;
|
|
|
|
| 55 |
const timer = setTimeout(() => {
|
| 56 |
setLogs((prev) => [...prev, `${currentLogs[stage]} [OK]`]);
|
| 57 |
setStage((prev) => prev + 1);
|
| 58 |
+
|
| 59 |
// Play subtle click audio if not muted
|
| 60 |
if (audio && !audio.isMuted) {
|
| 61 |
audio.playClick();
|
|
|
|
| 87 |
const increment = stage === 6 ? 15 : Math.floor(Math.random() * 8) + 4;
|
| 88 |
return Math.min(prev + increment, 100);
|
| 89 |
});
|
| 90 |
+
}, 200);
|
| 91 |
|
| 92 |
return () => clearInterval(interval);
|
| 93 |
}, [isVisible, stage, audio]);
|
|
|
|
| 97 |
{isVisible && (
|
| 98 |
<motion.div
|
| 99 |
initial={{ opacity: 1 }}
|
| 100 |
+
exit={{
|
| 101 |
+
opacity: 0,
|
| 102 |
y: -50,
|
| 103 |
+
transition: { duration: 0.8, ease: [0.76, 0, 0.24, 1] },
|
| 104 |
}}
|
| 105 |
className="fixed inset-0 z-[9999] bg-black flex flex-col items-center justify-center p-6 select-none font-mono text-xs overflow-hidden"
|
| 106 |
>
|
|
|
|
| 119 |
>
|
| 120 |
<div className="absolute w-3 h-3 bg-primary rounded-full animate-pulse shadow-[0_0_10px_var(--primary-glow)]" />
|
| 121 |
</motion.div>
|
| 122 |
+
<h2 className="font-fast-hand text-3xl tracking-widest text-foreground mt-4">
|
| 123 |
+
HUBAPI
|
| 124 |
+
</h2>
|
| 125 |
<p className="text-[10px] text-muted-foreground/60 tracking-[0.2em] uppercase">
|
| 126 |
{t("loading")}
|
| 127 |
</p>
|
components/CyberTicketModal.tsx
CHANGED
|
@@ -6,17 +6,26 @@ import { X, Copy, Check, Activity, Download } from "lucide-react";
|
|
| 6 |
import { ThreeTicketCard } from "./ThreeTicketCard";
|
| 7 |
import { useLanguage } from "@/components/LanguageContext";
|
| 8 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
interface CyberTicketModalProps {
|
| 10 |
isOpen: boolean;
|
| 11 |
onClose: () => void;
|
| 12 |
email: string;
|
| 13 |
}
|
| 14 |
|
| 15 |
-
export function CyberTicketModal({
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
const { t, language } = useLanguage();
|
| 17 |
const [copied, setCopied] = useState(false);
|
| 18 |
const modalRef = useRef<HTMLDivElement>(null);
|
| 19 |
-
|
| 20 |
// Card tilt states for the 3D Holographic effect
|
| 21 |
const [rotateX, setRotateX] = useState(0);
|
| 22 |
const [rotateY, setRotateY] = useState(0);
|
|
@@ -38,14 +47,21 @@ export function CyberTicketModal({ isOpen, onClose, email }: CyberTicketModalPro
|
|
| 38 |
if (isOpen) {
|
| 39 |
// Simple futuristic terminal beep on render
|
| 40 |
try {
|
| 41 |
-
const audioCtx = new (
|
|
|
|
|
|
|
|
|
|
|
|
|
| 42 |
// Beep 1
|
| 43 |
const osc1 = audioCtx.createOscillator();
|
| 44 |
const gain1 = audioCtx.createGain();
|
| 45 |
osc1.type = "sine";
|
| 46 |
osc1.frequency.setValueAtTime(880, audioCtx.currentTime); // A5 note
|
| 47 |
gain1.gain.setValueAtTime(0.04, audioCtx.currentTime);
|
| 48 |
-
gain1.gain.exponentialRampToValueAtTime(
|
|
|
|
|
|
|
|
|
|
| 49 |
osc1.connect(gain1);
|
| 50 |
gain1.connect(audioCtx.destination);
|
| 51 |
osc1.start();
|
|
@@ -58,7 +74,10 @@ export function CyberTicketModal({ isOpen, onClose, email }: CyberTicketModalPro
|
|
| 58 |
osc2.type = "sine";
|
| 59 |
osc2.frequency.setValueAtTime(1320, audioCtx.currentTime); // E6 note
|
| 60 |
gain2.gain.setValueAtTime(0.03, audioCtx.currentTime);
|
| 61 |
-
gain2.gain.exponentialRampToValueAtTime(
|
|
|
|
|
|
|
|
|
|
| 62 |
osc2.connect(gain2);
|
| 63 |
gain2.connect(audioCtx.destination);
|
| 64 |
osc2.start();
|
|
@@ -105,10 +124,12 @@ export function CyberTicketModal({ isOpen, onClose, email }: CyberTicketModalPro
|
|
| 105 |
|
| 106 |
// Find focusable elements
|
| 107 |
const focusableElements = modal.querySelectorAll(
|
| 108 |
-
'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
|
| 109 |
);
|
| 110 |
const firstElement = focusableElements[0] as HTMLElement;
|
| 111 |
-
const lastElement = focusableElements[
|
|
|
|
|
|
|
| 112 |
|
| 113 |
// Save previous active element to restore later
|
| 114 |
const previousActiveElement = document.activeElement as HTMLElement;
|
|
@@ -208,13 +229,29 @@ export function CyberTicketModal({ isOpen, onClose, email }: CyberTicketModalPro
|
|
| 208 |
ctx.strokeStyle = "rgba(245, 158, 11, 0.4)";
|
| 209 |
ctx.lineWidth = 3;
|
| 210 |
// Top-Left corner
|
| 211 |
-
ctx.beginPath();
|
|
|
|
|
|
|
|
|
|
|
|
|
| 212 |
// Top-Right corner
|
| 213 |
-
ctx.beginPath();
|
|
|
|
|
|
|
|
|
|
|
|
|
| 214 |
// Bottom-Left corner
|
| 215 |
-
ctx.beginPath();
|
|
|
|
|
|
|
|
|
|
|
|
|
| 216 |
// Bottom-Right corner
|
| 217 |
-
ctx.beginPath();
|
|
|
|
|
|
|
|
|
|
|
|
|
| 218 |
|
| 219 |
// 5. Draw Header Logo text (HUBAPI)
|
| 220 |
ctx.font = "bold 32px monospace";
|
|
@@ -231,7 +268,7 @@ export function CyberTicketModal({ isOpen, onClose, email }: CyberTicketModalPro
|
|
| 231 |
ctx.strokeStyle = "rgba(245, 158, 11, 0.3)";
|
| 232 |
ctx.lineWidth = 1;
|
| 233 |
ctx.strokeRect(580, 55, 160, 30);
|
| 234 |
-
|
| 235 |
ctx.font = "bold 10px monospace";
|
| 236 |
ctx.fillStyle = "#fbbf24";
|
| 237 |
ctx.textAlign = "center";
|
|
@@ -258,7 +295,11 @@ export function CyberTicketModal({ isOpen, onClose, email }: CyberTicketModalPro
|
|
| 258 |
|
| 259 |
ctx.font = "10px monospace";
|
| 260 |
ctx.fillStyle = "rgba(255, 255, 255, 0.25)";
|
| 261 |
-
ctx.fillText(
|
|
|
|
|
|
|
|
|
|
|
|
|
| 262 |
|
| 263 |
// 8. Draw Barcode
|
| 264 |
const barcodeX = 540;
|
|
@@ -292,11 +333,11 @@ export function CyberTicketModal({ isOpen, onClose, email }: CyberTicketModalPro
|
|
| 292 |
const y = e.clientY - rect.top;
|
| 293 |
const px = x / rect.width;
|
| 294 |
const py = y / rect.height;
|
| 295 |
-
|
| 296 |
// Tilt calculations (-15 to 15 degrees)
|
| 297 |
const rx = (py - 0.5) * -22;
|
| 298 |
const ry = (px - 0.5) * 22;
|
| 299 |
-
|
| 300 |
setRotateX(rx);
|
| 301 |
setRotateY(ry);
|
| 302 |
setGlareX(px * 100);
|
|
@@ -318,8 +359,7 @@ export function CyberTicketModal({ isOpen, onClose, email }: CyberTicketModalPro
|
|
| 318 |
};
|
| 319 |
|
| 320 |
const shareText = `I just secured early access to @HUBAPI — the Neural API Gateway & AI Automation Mesh! 🚀\n\nClaimed Ticket: #${ticketNumber}\n\nJoin the pre-launch waitlist here:`;
|
| 321 |
-
const
|
| 322 |
-
const xShareLink = `https://twitter.com/intent/tweet?text=${encodeURIComponent(shareText)}&url=${encodeURIComponent(shareUrl)}`;
|
| 323 |
|
| 324 |
// Mask email for aesthetics, e.g. u***r@domain.com
|
| 325 |
const getMaskedEmail = () => {
|
|
@@ -370,7 +410,10 @@ export function CyberTicketModal({ isOpen, onClose, email }: CyberTicketModalPro
|
|
| 370 |
|
| 371 |
{/* Header */}
|
| 372 |
<div className="flex justify-between items-center mb-6">
|
| 373 |
-
<span
|
|
|
|
|
|
|
|
|
|
| 374 |
<span className="w-1.5 h-1.5 bg-amber-400 rounded-full animate-ping" />
|
| 375 |
{t("logo")} {"//"} {t("ticketConfirmed")}
|
| 376 |
</span>
|
|
@@ -415,7 +458,11 @@ export function CyberTicketModal({ isOpen, onClose, email }: CyberTicketModalPro
|
|
| 415 |
rel="noopener noreferrer"
|
| 416 |
className="flex-1 flex items-center justify-center gap-2 h-12 bg-white text-black hover:bg-white/90 transition-colors uppercase font-bold text-xs tracking-wider cursor-pointer border-none [clip-path:polygon(8px_0,100%_0,100%_calc(100%_-_8px),calc(100%_-_8px)_100%,0_100%,0_8px)]"
|
| 417 |
>
|
| 418 |
-
<svg
|
|
|
|
|
|
|
|
|
|
|
|
|
| 419 |
<path d="M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z" />
|
| 420 |
</svg>
|
| 421 |
<span>{t("shareOnX")}</span>
|
|
@@ -426,7 +473,9 @@ export function CyberTicketModal({ isOpen, onClose, email }: CyberTicketModalPro
|
|
| 426 |
className="flex-1 flex items-center justify-center gap-2 h-12 bg-amber-500 text-black hover:bg-amber-400 transition-colors uppercase font-bold text-xs tracking-wider cursor-pointer border-none [clip-path:polygon(8px_0,100%_0,100%_calc(100%_-_8px),calc(100%_-_8px)_100%,0_100%,0_8px)]"
|
| 427 |
>
|
| 428 |
<Download className="w-4 h-4" />
|
| 429 |
-
<span>
|
|
|
|
|
|
|
| 430 |
</button>
|
| 431 |
</div>
|
| 432 |
|
|
@@ -437,7 +486,11 @@ export function CyberTicketModal({ isOpen, onClose, email }: CyberTicketModalPro
|
|
| 437 |
{copied ? (
|
| 438 |
<>
|
| 439 |
<Check className="w-4 h-4 text-emerald-500" />
|
| 440 |
-
<span className="text-emerald-500">
|
|
|
|
|
|
|
|
|
|
|
|
|
| 441 |
</>
|
| 442 |
) : (
|
| 443 |
<>
|
|
@@ -450,7 +503,9 @@ export function CyberTicketModal({ isOpen, onClose, email }: CyberTicketModalPro
|
|
| 450 |
|
| 451 |
<div className="mt-6 flex items-center justify-center gap-2 text-[9px] text-white/35 text-center select-none">
|
| 452 |
<Activity className="w-3.5 h-3.5 text-amber-500/40" />
|
| 453 |
-
<span>
|
|
|
|
|
|
|
| 454 |
</div>
|
| 455 |
</motion.div>
|
| 456 |
</div>
|
|
|
|
| 6 |
import { ThreeTicketCard } from "./ThreeTicketCard";
|
| 7 |
import { useLanguage } from "@/components/LanguageContext";
|
| 8 |
|
| 9 |
+
const SITE_URL = (
|
| 10 |
+
process.env.NEXT_PUBLIC_SITE_URL ??
|
| 11 |
+
"https://darkslategrey-nightingale-132659.hostingersite.com"
|
| 12 |
+
).replace(/\/$/, "");
|
| 13 |
+
|
| 14 |
interface CyberTicketModalProps {
|
| 15 |
isOpen: boolean;
|
| 16 |
onClose: () => void;
|
| 17 |
email: string;
|
| 18 |
}
|
| 19 |
|
| 20 |
+
export function CyberTicketModal({
|
| 21 |
+
isOpen,
|
| 22 |
+
onClose,
|
| 23 |
+
email,
|
| 24 |
+
}: CyberTicketModalProps) {
|
| 25 |
const { t, language } = useLanguage();
|
| 26 |
const [copied, setCopied] = useState(false);
|
| 27 |
const modalRef = useRef<HTMLDivElement>(null);
|
| 28 |
+
|
| 29 |
// Card tilt states for the 3D Holographic effect
|
| 30 |
const [rotateX, setRotateX] = useState(0);
|
| 31 |
const [rotateY, setRotateY] = useState(0);
|
|
|
|
| 47 |
if (isOpen) {
|
| 48 |
// Simple futuristic terminal beep on render
|
| 49 |
try {
|
| 50 |
+
const audioCtx = new (
|
| 51 |
+
window.AudioContext ||
|
| 52 |
+
(window as unknown as { webkitAudioContext: typeof AudioContext })
|
| 53 |
+
.webkitAudioContext
|
| 54 |
+
)();
|
| 55 |
// Beep 1
|
| 56 |
const osc1 = audioCtx.createOscillator();
|
| 57 |
const gain1 = audioCtx.createGain();
|
| 58 |
osc1.type = "sine";
|
| 59 |
osc1.frequency.setValueAtTime(880, audioCtx.currentTime); // A5 note
|
| 60 |
gain1.gain.setValueAtTime(0.04, audioCtx.currentTime);
|
| 61 |
+
gain1.gain.exponentialRampToValueAtTime(
|
| 62 |
+
0.0001,
|
| 63 |
+
audioCtx.currentTime + 0.15,
|
| 64 |
+
);
|
| 65 |
osc1.connect(gain1);
|
| 66 |
gain1.connect(audioCtx.destination);
|
| 67 |
osc1.start();
|
|
|
|
| 74 |
osc2.type = "sine";
|
| 75 |
osc2.frequency.setValueAtTime(1320, audioCtx.currentTime); // E6 note
|
| 76 |
gain2.gain.setValueAtTime(0.03, audioCtx.currentTime);
|
| 77 |
+
gain2.gain.exponentialRampToValueAtTime(
|
| 78 |
+
0.0001,
|
| 79 |
+
audioCtx.currentTime + 0.25,
|
| 80 |
+
);
|
| 81 |
osc2.connect(gain2);
|
| 82 |
gain2.connect(audioCtx.destination);
|
| 83 |
osc2.start();
|
|
|
|
| 124 |
|
| 125 |
// Find focusable elements
|
| 126 |
const focusableElements = modal.querySelectorAll(
|
| 127 |
+
'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])',
|
| 128 |
);
|
| 129 |
const firstElement = focusableElements[0] as HTMLElement;
|
| 130 |
+
const lastElement = focusableElements[
|
| 131 |
+
focusableElements.length - 1
|
| 132 |
+
] as HTMLElement;
|
| 133 |
|
| 134 |
// Save previous active element to restore later
|
| 135 |
const previousActiveElement = document.activeElement as HTMLElement;
|
|
|
|
| 229 |
ctx.strokeStyle = "rgba(245, 158, 11, 0.4)";
|
| 230 |
ctx.lineWidth = 3;
|
| 231 |
// Top-Left corner
|
| 232 |
+
ctx.beginPath();
|
| 233 |
+
ctx.moveTo(35, 60);
|
| 234 |
+
ctx.lineTo(35, 35);
|
| 235 |
+
ctx.lineTo(60, 35);
|
| 236 |
+
ctx.stroke();
|
| 237 |
// Top-Right corner
|
| 238 |
+
ctx.beginPath();
|
| 239 |
+
ctx.moveTo(765, 60);
|
| 240 |
+
ctx.lineTo(765, 35);
|
| 241 |
+
ctx.lineTo(740, 35);
|
| 242 |
+
ctx.stroke();
|
| 243 |
// Bottom-Left corner
|
| 244 |
+
ctx.beginPath();
|
| 245 |
+
ctx.moveTo(35, 440);
|
| 246 |
+
ctx.lineTo(35, 465);
|
| 247 |
+
ctx.lineTo(60, 465);
|
| 248 |
+
ctx.stroke();
|
| 249 |
// Bottom-Right corner
|
| 250 |
+
ctx.beginPath();
|
| 251 |
+
ctx.moveTo(765, 440);
|
| 252 |
+
ctx.lineTo(765, 465);
|
| 253 |
+
ctx.lineTo(740, 465);
|
| 254 |
+
ctx.stroke();
|
| 255 |
|
| 256 |
// 5. Draw Header Logo text (HUBAPI)
|
| 257 |
ctx.font = "bold 32px monospace";
|
|
|
|
| 268 |
ctx.strokeStyle = "rgba(245, 158, 11, 0.3)";
|
| 269 |
ctx.lineWidth = 1;
|
| 270 |
ctx.strokeRect(580, 55, 160, 30);
|
| 271 |
+
|
| 272 |
ctx.font = "bold 10px monospace";
|
| 273 |
ctx.fillStyle = "#fbbf24";
|
| 274 |
ctx.textAlign = "center";
|
|
|
|
| 295 |
|
| 296 |
ctx.font = "10px monospace";
|
| 297 |
ctx.fillStyle = "rgba(255, 255, 255, 0.25)";
|
| 298 |
+
ctx.fillText(
|
| 299 |
+
`ISSUED_AT // ${new Date().toISOString().substring(0, 10)}`,
|
| 300 |
+
50,
|
| 301 |
+
420,
|
| 302 |
+
);
|
| 303 |
|
| 304 |
// 8. Draw Barcode
|
| 305 |
const barcodeX = 540;
|
|
|
|
| 333 |
const y = e.clientY - rect.top;
|
| 334 |
const px = x / rect.width;
|
| 335 |
const py = y / rect.height;
|
| 336 |
+
|
| 337 |
// Tilt calculations (-15 to 15 degrees)
|
| 338 |
const rx = (py - 0.5) * -22;
|
| 339 |
const ry = (px - 0.5) * 22;
|
| 340 |
+
|
| 341 |
setRotateX(rx);
|
| 342 |
setRotateY(ry);
|
| 343 |
setGlareX(px * 100);
|
|
|
|
| 359 |
};
|
| 360 |
|
| 361 |
const shareText = `I just secured early access to @HUBAPI — the Neural API Gateway & AI Automation Mesh! 🚀\n\nClaimed Ticket: #${ticketNumber}\n\nJoin the pre-launch waitlist here:`;
|
| 362 |
+
const xShareLink = `https://twitter.com/intent/tweet?text=${encodeURIComponent(shareText)}&url=${encodeURIComponent(SITE_URL)}`;
|
|
|
|
| 363 |
|
| 364 |
// Mask email for aesthetics, e.g. u***r@domain.com
|
| 365 |
const getMaskedEmail = () => {
|
|
|
|
| 410 |
|
| 411 |
{/* Header */}
|
| 412 |
<div className="flex justify-between items-center mb-6">
|
| 413 |
+
<span
|
| 414 |
+
id="ticket-modal-title"
|
| 415 |
+
className="text-xs text-amber-400 tracking-widest uppercase flex items-center gap-2"
|
| 416 |
+
>
|
| 417 |
<span className="w-1.5 h-1.5 bg-amber-400 rounded-full animate-ping" />
|
| 418 |
{t("logo")} {"//"} {t("ticketConfirmed")}
|
| 419 |
</span>
|
|
|
|
| 458 |
rel="noopener noreferrer"
|
| 459 |
className="flex-1 flex items-center justify-center gap-2 h-12 bg-white text-black hover:bg-white/90 transition-colors uppercase font-bold text-xs tracking-wider cursor-pointer border-none [clip-path:polygon(8px_0,100%_0,100%_calc(100%_-_8px),calc(100%_-_8px)_100%,0_100%,0_8px)]"
|
| 460 |
>
|
| 461 |
+
<svg
|
| 462 |
+
className="w-4 h-4 fill-current"
|
| 463 |
+
viewBox="0 0 24 24"
|
| 464 |
+
aria-hidden="true"
|
| 465 |
+
>
|
| 466 |
<path d="M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z" />
|
| 467 |
</svg>
|
| 468 |
<span>{t("shareOnX")}</span>
|
|
|
|
| 473 |
className="flex-1 flex items-center justify-center gap-2 h-12 bg-amber-500 text-black hover:bg-amber-400 transition-colors uppercase font-bold text-xs tracking-wider cursor-pointer border-none [clip-path:polygon(8px_0,100%_0,100%_calc(100%_-_8px),calc(100%_-_8px)_100%,0_100%,0_8px)]"
|
| 474 |
>
|
| 475 |
<Download className="w-4 h-4" />
|
| 476 |
+
<span>
|
| 477 |
+
{language === "ar" ? "تحميل التذكرة" : "Download Pass"}
|
| 478 |
+
</span>
|
| 479 |
</button>
|
| 480 |
</div>
|
| 481 |
|
|
|
|
| 486 |
{copied ? (
|
| 487 |
<>
|
| 488 |
<Check className="w-4 h-4 text-emerald-500" />
|
| 489 |
+
<span className="text-emerald-500">
|
| 490 |
+
{language === "ar"
|
| 491 |
+
? "تم نسخ الرمز"
|
| 492 |
+
: "Access Code Copied"}
|
| 493 |
+
</span>
|
| 494 |
</>
|
| 495 |
) : (
|
| 496 |
<>
|
|
|
|
| 503 |
|
| 504 |
<div className="mt-6 flex items-center justify-center gap-2 text-[9px] text-white/35 text-center select-none">
|
| 505 |
<Activity className="w-3.5 h-3.5 text-amber-500/40" />
|
| 506 |
+
<span>
|
| 507 |
+
SYS_ENCRYPT // ACC_TOKEN SHA256 VALIDATED BY HUBAPI GATEWAYS
|
| 508 |
+
</span>
|
| 509 |
</div>
|
| 510 |
</motion.div>
|
| 511 |
</div>
|
components/HubLiveTerminal.tsx
CHANGED
|
@@ -140,7 +140,7 @@ export function HubLiveTerminal() {
|
|
| 140 |
await new Promise((r) => setTimeout(r, 450));
|
| 141 |
appendLine("info", "[ROUTER] Checking candidates: Claude 4.7 Opus (budget fail), Qwen 4.6 (context limit fail)");
|
| 142 |
await new Promise((r) => setTimeout(r, 500));
|
| 143 |
-
appendLine("success", "✔ Route mapped:
|
| 144 |
await new Promise((r) => setTimeout(r, 300));
|
| 145 |
appendLine("success", "✔ Query processed. Execution: 1.62s. Transaction Cost: $14.40");
|
| 146 |
break;
|
|
|
|
| 140 |
await new Promise((r) => setTimeout(r, 450));
|
| 141 |
appendLine("info", "[ROUTER] Checking candidates: Claude 4.7 Opus (budget fail), Qwen 4.6 (context limit fail)");
|
| 142 |
await new Promise((r) => setTimeout(r, 500));
|
| 143 |
+
appendLine("success", "✔ Route mapped: Gemini 3.5 Pro (2M context limit native)");
|
| 144 |
await new Promise((r) => setTimeout(r, 300));
|
| 145 |
appendLine("success", "✔ Query processed. Execution: 1.62s. Transaction Cost: $14.40");
|
| 146 |
break;
|
components/LLMProviderIconCloud.tsx
CHANGED
|
@@ -19,7 +19,6 @@ const MONOCHROME_SLUGS = new Set([
|
|
| 19 |
"zai",
|
| 20 |
"moonshot",
|
| 21 |
"ibm",
|
| 22 |
-
"groq",
|
| 23 |
"ollama",
|
| 24 |
"github",
|
| 25 |
]);
|
|
|
|
| 19 |
"zai",
|
| 20 |
"moonshot",
|
| 21 |
"ibm",
|
|
|
|
| 22 |
"ollama",
|
| 23 |
"github",
|
| 24 |
]);
|
components/waitlist-form.tsx
CHANGED
|
@@ -7,6 +7,11 @@ import { ShimmerButton } from "@/components/ui/shimmer-button";
|
|
| 7 |
import { registerWaitlist } from "@/app/actions/waitlist";
|
| 8 |
import { useLanguage } from "@/components/LanguageContext";
|
| 9 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
export function WaitlistForm() {
|
| 11 |
const { t, language } = useLanguage();
|
| 12 |
const [isSubmitting, setIsSubmitting] = useState(false);
|
|
@@ -14,7 +19,7 @@ export function WaitlistForm() {
|
|
| 14 |
const [email, setEmail] = useState("");
|
| 15 |
const [consent, setConsent] = useState(false);
|
| 16 |
const [error, setError] = useState<string | null>(null);
|
| 17 |
-
|
| 18 |
// Registration persistent states
|
| 19 |
const [isRegistered, setIsRegistered] = useState(false);
|
| 20 |
const [registeredEmail, setRegisteredEmail] = useState("");
|
|
@@ -22,7 +27,8 @@ export function WaitlistForm() {
|
|
| 22 |
|
| 23 |
useEffect(() => {
|
| 24 |
const init = setTimeout(() => {
|
| 25 |
-
const registered =
|
|
|
|
| 26 |
const savedEmail = localStorage.getItem("hubapi_waitlist_email") || "";
|
| 27 |
if (registered && savedEmail) {
|
| 28 |
setIsRegistered(true);
|
|
@@ -54,30 +60,43 @@ export function WaitlistForm() {
|
|
| 54 |
setError(null);
|
| 55 |
|
| 56 |
if (!email) {
|
| 57 |
-
setError(
|
|
|
|
|
|
|
|
|
|
|
|
|
| 58 |
return;
|
| 59 |
}
|
| 60 |
|
| 61 |
if (!validateEmail(email)) {
|
| 62 |
-
setError(
|
|
|
|
|
|
|
|
|
|
|
|
|
| 63 |
return;
|
| 64 |
}
|
| 65 |
|
| 66 |
if (!consent) {
|
| 67 |
-
setError(
|
|
|
|
|
|
|
|
|
|
|
|
|
| 68 |
return;
|
| 69 |
}
|
| 70 |
|
| 71 |
setIsSubmitting(true);
|
| 72 |
-
|
| 73 |
try {
|
| 74 |
const formData = new FormData();
|
| 75 |
formData.append("email", email);
|
| 76 |
-
const savedVariant =
|
|
|
|
| 77 |
formData.append("variant", savedVariant);
|
| 78 |
-
|
| 79 |
const result = await registerWaitlist(formData);
|
| 80 |
-
|
| 81 |
if (result.success) {
|
| 82 |
localStorage.setItem("hubapi_waitlist_registered", "true");
|
| 83 |
localStorage.setItem("hubapi_waitlist_email", email);
|
|
@@ -85,10 +104,19 @@ export function WaitlistForm() {
|
|
| 85 |
setRegisteredEmail(email);
|
| 86 |
setIsTicketOpen(true);
|
| 87 |
} else {
|
| 88 |
-
setError(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 89 |
}
|
| 90 |
} catch {
|
| 91 |
-
setError(
|
|
|
|
|
|
|
|
|
|
|
|
|
| 92 |
} finally {
|
| 93 |
setIsSubmitting(false);
|
| 94 |
}
|
|
@@ -96,13 +124,12 @@ export function WaitlistForm() {
|
|
| 96 |
|
| 97 |
if (isRegistered) {
|
| 98 |
const ticketNo = getTicketNumber(registeredEmail);
|
| 99 |
-
const referralLink =
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
|
| 106 |
const xShareLink = `https://twitter.com/intent/tweet?text=${encodeURIComponent(shareText)}&url=${encodeURIComponent(referralLink)}`;
|
| 107 |
|
| 108 |
const handleCopyReferral = () => {
|
|
@@ -154,20 +181,22 @@ export function WaitlistForm() {
|
|
| 154 |
<div className="absolute top-0 left-0 w-2.5 h-2.5 border-t border-l border-primary/40" />
|
| 155 |
<div className="absolute top-0 right-0 w-2.5 h-2.5 border-t border-r border-primary/40" />
|
| 156 |
<span className="text-[8px] text-muted-foreground/80 tracking-wider uppercase font-mono">
|
| 157 |
-
{t("rank")}
|
|
|
|
| 158 |
</span>
|
| 159 |
<span className="text-xl sm:text-2xl font-black text-amber-500 dark:text-amber-400 font-sans tracking-wide text-glow">
|
| 160 |
#{ticketNo}
|
| 161 |
</span>
|
| 162 |
</div>
|
| 163 |
-
|
| 164 |
{/* Referrals Panel */}
|
| 165 |
<div className="relative border border-primary/20 dark:border-primary/30 p-3 sm:p-4 bg-primary/5 rounded-md flex flex-col gap-1 overflow-hidden shadow-[0_0_12px_rgba(255,170,64,0.02)]">
|
| 166 |
{/* Top corner brackets for small panels */}
|
| 167 |
<div className="absolute top-0 left-0 w-2.5 h-2.5 border-t border-l border-primary/40" />
|
| 168 |
<div className="absolute top-0 right-0 w-2.5 h-2.5 border-t border-r border-primary/40" />
|
| 169 |
<span className="text-[8px] text-muted-foreground/80 tracking-wider uppercase font-mono">
|
| 170 |
-
{t("referralsCount")}
|
|
|
|
| 171 |
</span>
|
| 172 |
<span className="text-xl sm:text-2xl font-black text-indigo-500 dark:text-indigo-400 font-sans tracking-wide text-glow-accent">
|
| 173 |
0
|
|
@@ -208,7 +237,9 @@ export function WaitlistForm() {
|
|
| 208 |
onClick={() => setIsTicketOpen(true)}
|
| 209 |
className="flex-1 h-11 bg-amber-500/20 hover:bg-amber-500/30 border border-amber-500/30 text-amber-500 hover:text-amber-400 text-xs font-bold transition-all duration-200 cursor-pointer flex items-center justify-center gap-1.5 [clip-path:polygon(6px_0,100%_0,100%_calc(100%_-_6px),calc(100%_-_6px)_100%,0_100%,0_6px)]"
|
| 210 |
>
|
| 211 |
-
<span>
|
|
|
|
|
|
|
| 212 |
</button>
|
| 213 |
<a
|
| 214 |
href={xShareLink}
|
|
@@ -216,7 +247,11 @@ export function WaitlistForm() {
|
|
| 216 |
rel="noopener noreferrer"
|
| 217 |
className="flex-1 h-11 bg-button-bg hover:bg-button-bg/90 text-button-text text-xs font-bold transition-all duration-200 cursor-pointer flex items-center justify-center gap-1.5 [clip-path:polygon(6px_0,100%_0,100%_calc(100%_-_6px),calc(100%_-_6px)_100%,0_100%,0_6px)] border border-button-border"
|
| 218 |
>
|
| 219 |
-
<svg
|
|
|
|
|
|
|
|
|
|
|
|
|
| 220 |
<path d="M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z" />
|
| 221 |
</svg>
|
| 222 |
<span>{t("shareOnX")}</span>
|
|
@@ -228,15 +263,17 @@ export function WaitlistForm() {
|
|
| 228 |
onClick={handleReset}
|
| 229 |
className="text-[9px] text-muted-foreground hover:text-foreground transition-colors uppercase cursor-pointer"
|
| 230 |
>
|
| 231 |
-
{language === "ar"
|
|
|
|
|
|
|
| 232 |
</button>
|
| 233 |
</div>
|
| 234 |
</div>
|
| 235 |
|
| 236 |
-
<CyberTicketModal
|
| 237 |
-
isOpen={isTicketOpen}
|
| 238 |
-
onClose={() => setIsTicketOpen(false)}
|
| 239 |
-
email={registeredEmail}
|
| 240 |
/>
|
| 241 |
</div>
|
| 242 |
);
|
|
@@ -250,7 +287,9 @@ export function WaitlistForm() {
|
|
| 250 |
noValidate
|
| 251 |
>
|
| 252 |
<div className="relative w-full sm:flex-1 group">
|
| 253 |
-
<div
|
|
|
|
|
|
|
| 254 |
<label htmlFor="email-input" className="sr-only">
|
| 255 |
Email address for waitlist
|
| 256 |
</label>
|
|
@@ -267,9 +306,9 @@ export function WaitlistForm() {
|
|
| 267 |
if (error) setError(null);
|
| 268 |
}}
|
| 269 |
className={`relative w-full h-14 sm:h-16 px-6 bg-white/80 dark:bg-background/80 backdrop-blur-sm border font-mono text-sm text-foreground placeholder:text-black/35 dark:placeholder:text-white/20 outline-none focus-visible:outline-none focus-visible:ring-1 transition-all duration-300 disabled:opacity-50 [clip-path:polygon(12px_0,100%_0,100%_calc(100%_-_12px),calc(100%_-_12px)_100%,0_100%,0_12px)] ${
|
| 270 |
-
error
|
| 271 |
-
?
|
| 272 |
-
:
|
| 273 |
}`}
|
| 274 |
name="email"
|
| 275 |
/>
|
|
@@ -282,9 +321,25 @@ export function WaitlistForm() {
|
|
| 282 |
>
|
| 283 |
<span className="relative z-10 flex items-center justify-center gap-2">
|
| 284 |
{isSubmitting && (
|
| 285 |
-
<svg
|
| 286 |
-
|
| 287 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 288 |
</svg>
|
| 289 |
)}
|
| 290 |
{isSubmitting ? t("processing") : t("accessHubapi")}
|
|
@@ -308,12 +363,22 @@ export function WaitlistForm() {
|
|
| 308 |
className="peer h-4 w-4 rounded-sm border border-black/25 dark:border-white/20 bg-white/40 dark:bg-background/40 checked:bg-primary checked:border-primary text-primary focus:ring-1 focus:ring-primary focus:ring-offset-0 outline-none cursor-pointer disabled:opacity-50"
|
| 309 |
/>
|
| 310 |
<div className="absolute inset-0 flex items-center justify-center pointer-events-none opacity-0 peer-checked:opacity-100 transition-opacity text-primary-foreground">
|
| 311 |
-
<svg
|
| 312 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 313 |
</svg>
|
| 314 |
</div>
|
| 315 |
</div>
|
| 316 |
-
<label
|
|
|
|
|
|
|
|
|
|
| 317 |
{t("gdprConsent")}
|
| 318 |
</label>
|
| 319 |
</div>
|
|
@@ -330,10 +395,10 @@ export function WaitlistForm() {
|
|
| 330 |
</p>
|
| 331 |
|
| 332 |
{/* Cyber Ticket Modal */}
|
| 333 |
-
<CyberTicketModal
|
| 334 |
-
isOpen={isTicketOpen}
|
| 335 |
-
onClose={() => setIsTicketOpen(false)}
|
| 336 |
-
email={email}
|
| 337 |
/>
|
| 338 |
</div>
|
| 339 |
);
|
|
|
|
| 7 |
import { registerWaitlist } from "@/app/actions/waitlist";
|
| 8 |
import { useLanguage } from "@/components/LanguageContext";
|
| 9 |
|
| 10 |
+
const SITE_URL = (
|
| 11 |
+
process.env.NEXT_PUBLIC_SITE_URL ??
|
| 12 |
+
"https://darkslategrey-nightingale-132659.hostingersite.com"
|
| 13 |
+
).replace(/\/$/, "");
|
| 14 |
+
|
| 15 |
export function WaitlistForm() {
|
| 16 |
const { t, language } = useLanguage();
|
| 17 |
const [isSubmitting, setIsSubmitting] = useState(false);
|
|
|
|
| 19 |
const [email, setEmail] = useState("");
|
| 20 |
const [consent, setConsent] = useState(false);
|
| 21 |
const [error, setError] = useState<string | null>(null);
|
| 22 |
+
|
| 23 |
// Registration persistent states
|
| 24 |
const [isRegistered, setIsRegistered] = useState(false);
|
| 25 |
const [registeredEmail, setRegisteredEmail] = useState("");
|
|
|
|
| 27 |
|
| 28 |
useEffect(() => {
|
| 29 |
const init = setTimeout(() => {
|
| 30 |
+
const registered =
|
| 31 |
+
localStorage.getItem("hubapi_waitlist_registered") === "true";
|
| 32 |
const savedEmail = localStorage.getItem("hubapi_waitlist_email") || "";
|
| 33 |
if (registered && savedEmail) {
|
| 34 |
setIsRegistered(true);
|
|
|
|
| 60 |
setError(null);
|
| 61 |
|
| 62 |
if (!email) {
|
| 63 |
+
setError(
|
| 64 |
+
language === "ar"
|
| 65 |
+
? "عنوان البريد الإلكتروني مطلوب."
|
| 66 |
+
: "Email address is required.",
|
| 67 |
+
);
|
| 68 |
return;
|
| 69 |
}
|
| 70 |
|
| 71 |
if (!validateEmail(email)) {
|
| 72 |
+
setError(
|
| 73 |
+
language === "ar"
|
| 74 |
+
? "يرجى إدخال عنوان بريد إلكتروني صالح."
|
| 75 |
+
: "Please enter a valid email address.",
|
| 76 |
+
);
|
| 77 |
return;
|
| 78 |
}
|
| 79 |
|
| 80 |
if (!consent) {
|
| 81 |
+
setError(
|
| 82 |
+
language === "ar"
|
| 83 |
+
? "يجب عليك الموافقة على معالجة البيانات للمتابعة."
|
| 84 |
+
: "You must agree to the data processing terms to proceed.",
|
| 85 |
+
);
|
| 86 |
return;
|
| 87 |
}
|
| 88 |
|
| 89 |
setIsSubmitting(true);
|
| 90 |
+
|
| 91 |
try {
|
| 92 |
const formData = new FormData();
|
| 93 |
formData.append("email", email);
|
| 94 |
+
const savedVariant =
|
| 95 |
+
localStorage.getItem("hubapi_hero_variant") || "classic";
|
| 96 |
formData.append("variant", savedVariant);
|
| 97 |
+
|
| 98 |
const result = await registerWaitlist(formData);
|
| 99 |
+
|
| 100 |
if (result.success) {
|
| 101 |
localStorage.setItem("hubapi_waitlist_registered", "true");
|
| 102 |
localStorage.setItem("hubapi_waitlist_email", email);
|
|
|
|
| 104 |
setRegisteredEmail(email);
|
| 105 |
setIsTicketOpen(true);
|
| 106 |
} else {
|
| 107 |
+
setError(
|
| 108 |
+
result.error ||
|
| 109 |
+
(language === "ar"
|
| 110 |
+
? "حدث خطأ غير متوقع. يرجى المحاولة مرة أخرى."
|
| 111 |
+
: "An error occurred. Please try again."),
|
| 112 |
+
);
|
| 113 |
}
|
| 114 |
} catch {
|
| 115 |
+
setError(
|
| 116 |
+
language === "ar"
|
| 117 |
+
? "فشل الاتصال بخدمة قائمة الانتظار."
|
| 118 |
+
: "Failed to connect to waitlist service.",
|
| 119 |
+
);
|
| 120 |
} finally {
|
| 121 |
setIsSubmitting(false);
|
| 122 |
}
|
|
|
|
| 124 |
|
| 125 |
if (isRegistered) {
|
| 126 |
const ticketNo = getTicketNumber(registeredEmail);
|
| 127 |
+
const referralLink = `${SITE_URL}?ref=HUBAPI-${ticketNo.replace(",", "")}`;
|
| 128 |
+
const shareText =
|
| 129 |
+
language === "ar"
|
| 130 |
+
? `لقد حصلت للتو على وصول مبكر إلى HUBAPI @HUBAPI - بوابة الذكاء الاصطناعي العصبية! 🚀\n\nتذكرتي: #${ticketNo}\n\nسجل في قائمة الانتظار هنا:`
|
| 131 |
+
: `I just secured early access to @HUBAPI — the Neural API Gateway & AI Automation Mesh! 🚀\n\nClaimed Ticket: #${ticketNo}\n\nJoin the pre-launch waitlist here:`;
|
| 132 |
+
|
|
|
|
| 133 |
const xShareLink = `https://twitter.com/intent/tweet?text=${encodeURIComponent(shareText)}&url=${encodeURIComponent(referralLink)}`;
|
| 134 |
|
| 135 |
const handleCopyReferral = () => {
|
|
|
|
| 181 |
<div className="absolute top-0 left-0 w-2.5 h-2.5 border-t border-l border-primary/40" />
|
| 182 |
<div className="absolute top-0 right-0 w-2.5 h-2.5 border-t border-r border-primary/40" />
|
| 183 |
<span className="text-[8px] text-muted-foreground/80 tracking-wider uppercase font-mono">
|
| 184 |
+
{t("rank")}
|
| 185 |
+
{" // SYSTEM_RANK"}
|
| 186 |
</span>
|
| 187 |
<span className="text-xl sm:text-2xl font-black text-amber-500 dark:text-amber-400 font-sans tracking-wide text-glow">
|
| 188 |
#{ticketNo}
|
| 189 |
</span>
|
| 190 |
</div>
|
| 191 |
+
|
| 192 |
{/* Referrals Panel */}
|
| 193 |
<div className="relative border border-primary/20 dark:border-primary/30 p-3 sm:p-4 bg-primary/5 rounded-md flex flex-col gap-1 overflow-hidden shadow-[0_0_12px_rgba(255,170,64,0.02)]">
|
| 194 |
{/* Top corner brackets for small panels */}
|
| 195 |
<div className="absolute top-0 left-0 w-2.5 h-2.5 border-t border-l border-primary/40" />
|
| 196 |
<div className="absolute top-0 right-0 w-2.5 h-2.5 border-t border-r border-primary/40" />
|
| 197 |
<span className="text-[8px] text-muted-foreground/80 tracking-wider uppercase font-mono">
|
| 198 |
+
{t("referralsCount")}
|
| 199 |
+
{" // NETWORK_NODE"}
|
| 200 |
</span>
|
| 201 |
<span className="text-xl sm:text-2xl font-black text-indigo-500 dark:text-indigo-400 font-sans tracking-wide text-glow-accent">
|
| 202 |
0
|
|
|
|
| 237 |
onClick={() => setIsTicketOpen(true)}
|
| 238 |
className="flex-1 h-11 bg-amber-500/20 hover:bg-amber-500/30 border border-amber-500/30 text-amber-500 hover:text-amber-400 text-xs font-bold transition-all duration-200 cursor-pointer flex items-center justify-center gap-1.5 [clip-path:polygon(6px_0,100%_0,100%_calc(100%_-_6px),calc(100%_-_6px)_100%,0_100%,0_6px)]"
|
| 239 |
>
|
| 240 |
+
<span>
|
| 241 |
+
{language === "ar" ? "عرض تذكرة الشبكة" : "VIEW TICKET PASS"}
|
| 242 |
+
</span>
|
| 243 |
</button>
|
| 244 |
<a
|
| 245 |
href={xShareLink}
|
|
|
|
| 247 |
rel="noopener noreferrer"
|
| 248 |
className="flex-1 h-11 bg-button-bg hover:bg-button-bg/90 text-button-text text-xs font-bold transition-all duration-200 cursor-pointer flex items-center justify-center gap-1.5 [clip-path:polygon(6px_0,100%_0,100%_calc(100%_-_6px),calc(100%_-_6px)_100%,0_100%,0_6px)] border border-button-border"
|
| 249 |
>
|
| 250 |
+
<svg
|
| 251 |
+
className="w-3.5 h-3.5 fill-current"
|
| 252 |
+
viewBox="0 0 24 24"
|
| 253 |
+
aria-hidden="true"
|
| 254 |
+
>
|
| 255 |
<path d="M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z" />
|
| 256 |
</svg>
|
| 257 |
<span>{t("shareOnX")}</span>
|
|
|
|
| 263 |
onClick={handleReset}
|
| 264 |
className="text-[9px] text-muted-foreground hover:text-foreground transition-colors uppercase cursor-pointer"
|
| 265 |
>
|
| 266 |
+
{language === "ar"
|
| 267 |
+
? "← مغادرة والاشتراك ببريد آخر"
|
| 268 |
+
: "← LEAVE & REGISTER ANOTHER"}
|
| 269 |
</button>
|
| 270 |
</div>
|
| 271 |
</div>
|
| 272 |
|
| 273 |
+
<CyberTicketModal
|
| 274 |
+
isOpen={isTicketOpen}
|
| 275 |
+
onClose={() => setIsTicketOpen(false)}
|
| 276 |
+
email={registeredEmail}
|
| 277 |
/>
|
| 278 |
</div>
|
| 279 |
);
|
|
|
|
| 287 |
noValidate
|
| 288 |
>
|
| 289 |
<div className="relative w-full sm:flex-1 group">
|
| 290 |
+
<div
|
| 291 |
+
className={`absolute -inset-0.5 rounded-lg blur opacity-0 group-hover:opacity-40 group-focus-within:opacity-100 transition duration-500 ${error ? "bg-destructive/45" : "bg-primary/25"}`}
|
| 292 |
+
></div>
|
| 293 |
<label htmlFor="email-input" className="sr-only">
|
| 294 |
Email address for waitlist
|
| 295 |
</label>
|
|
|
|
| 306 |
if (error) setError(null);
|
| 307 |
}}
|
| 308 |
className={`relative w-full h-14 sm:h-16 px-6 bg-white/80 dark:bg-background/80 backdrop-blur-sm border font-mono text-sm text-foreground placeholder:text-black/35 dark:placeholder:text-white/20 outline-none focus-visible:outline-none focus-visible:ring-1 transition-all duration-300 disabled:opacity-50 [clip-path:polygon(12px_0,100%_0,100%_calc(100%_-_12px),calc(100%_-_12px)_100%,0_100%,0_12px)] ${
|
| 309 |
+
error
|
| 310 |
+
? "border-destructive focus-visible:ring-destructive focus-visible:ring-destructive/50"
|
| 311 |
+
: "border-primary/20 dark:border-primary/25 hover:border-primary/45 dark:hover:border-primary/50 focus-visible:ring-primary focus-visible:ring-primary/50 shadow-[0_0_12px_rgba(255,170,64,0.01)] focus:shadow-[0_0_20px_rgba(255,170,64,0.08)]"
|
| 312 |
}`}
|
| 313 |
name="email"
|
| 314 |
/>
|
|
|
|
| 321 |
>
|
| 322 |
<span className="relative z-10 flex items-center justify-center gap-2">
|
| 323 |
{isSubmitting && (
|
| 324 |
+
<svg
|
| 325 |
+
className="animate-spin h-3 w-3 text-current"
|
| 326 |
+
xmlns="http://www.w3.org/2000/svg"
|
| 327 |
+
fill="none"
|
| 328 |
+
viewBox="0 0 24 24"
|
| 329 |
+
>
|
| 330 |
+
<circle
|
| 331 |
+
className="opacity-25"
|
| 332 |
+
cx="12"
|
| 333 |
+
cy="12"
|
| 334 |
+
r="10"
|
| 335 |
+
stroke="currentColor"
|
| 336 |
+
strokeWidth="4"
|
| 337 |
+
></circle>
|
| 338 |
+
<path
|
| 339 |
+
className="opacity-75"
|
| 340 |
+
fill="currentColor"
|
| 341 |
+
d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"
|
| 342 |
+
></path>
|
| 343 |
</svg>
|
| 344 |
)}
|
| 345 |
{isSubmitting ? t("processing") : t("accessHubapi")}
|
|
|
|
| 363 |
className="peer h-4 w-4 rounded-sm border border-black/25 dark:border-white/20 bg-white/40 dark:bg-background/40 checked:bg-primary checked:border-primary text-primary focus:ring-1 focus:ring-primary focus:ring-offset-0 outline-none cursor-pointer disabled:opacity-50"
|
| 364 |
/>
|
| 365 |
<div className="absolute inset-0 flex items-center justify-center pointer-events-none opacity-0 peer-checked:opacity-100 transition-opacity text-primary-foreground">
|
| 366 |
+
<svg
|
| 367 |
+
className="h-2.5 w-2.5 fill-none stroke-current stroke-[3px]"
|
| 368 |
+
viewBox="0 0 24 24"
|
| 369 |
+
>
|
| 370 |
+
<path
|
| 371 |
+
strokeLinecap="round"
|
| 372 |
+
strokeLinejoin="round"
|
| 373 |
+
d="M4.5 12.75l6 6 9-13.5"
|
| 374 |
+
/>
|
| 375 |
</svg>
|
| 376 |
</div>
|
| 377 |
</div>
|
| 378 |
+
<label
|
| 379 |
+
htmlFor="gdpr-consent"
|
| 380 |
+
className="font-mono text-[10px] text-muted-foreground/75 cursor-pointer leading-tight"
|
| 381 |
+
>
|
| 382 |
{t("gdprConsent")}
|
| 383 |
</label>
|
| 384 |
</div>
|
|
|
|
| 395 |
</p>
|
| 396 |
|
| 397 |
{/* Cyber Ticket Modal */}
|
| 398 |
+
<CyberTicketModal
|
| 399 |
+
isOpen={isTicketOpen}
|
| 400 |
+
onClose={() => setIsTicketOpen(false)}
|
| 401 |
+
email={email}
|
| 402 |
/>
|
| 403 |
</div>
|
| 404 |
);
|
data/ecosystem-catalog.ts
CHANGED
|
@@ -5,27 +5,24 @@ export type CatalogEntry = {
|
|
| 5 |
|
| 6 |
export const modelProviderCatalog: CatalogEntry[] = [
|
| 7 |
{ label: "OpenAI", slug: "openai" },
|
| 8 |
-
{ label: "Anthropic
|
| 9 |
-
{ label: "
|
| 10 |
{ label: "Mistral", slug: "mistral" },
|
| 11 |
-
{ label: "Meta
|
| 12 |
{ label: "DeepSeek", slug: "deepseek" },
|
| 13 |
{ label: "Qwen", slug: "qwen" },
|
| 14 |
-
{ label: "
|
| 15 |
{ label: "Moonshot", slug: "moonshot" },
|
| 16 |
];
|
| 17 |
|
| 18 |
export const inferencePlatformCatalog: CatalogEntry[] = [
|
| 19 |
-
{ label: "Groq", slug: "groq" },
|
| 20 |
-
{ label: "Fireworks AI", slug: "fireworks" },
|
| 21 |
{ label: "Alibaba Cloud", slug: "alibabacloud" },
|
| 22 |
{ label: "AWS Cloud", slug: "aws" },
|
| 23 |
-
{ label: "AWS Bedrock", slug: "bedrock" },
|
| 24 |
{ label: "Azure AI", slug: "azureai" },
|
| 25 |
-
{ label: "Google Cloud
|
| 26 |
-
{ label: "Cloudflare
|
| 27 |
{ label: "Hugging Face", slug: "huggingface" },
|
| 28 |
-
|
| 29 |
];
|
| 30 |
|
| 31 |
export const developerEcosystemCatalog: CatalogEntry[] = [
|
|
|
|
| 5 |
|
| 6 |
export const modelProviderCatalog: CatalogEntry[] = [
|
| 7 |
{ label: "OpenAI", slug: "openai" },
|
| 8 |
+
{ label: "Anthropic", slug: "anthropic" },
|
| 9 |
+
{ label: "Gemini", slug: "gemini" },
|
| 10 |
{ label: "Mistral", slug: "mistral" },
|
| 11 |
+
{ label: "Meta", slug: "meta" },
|
| 12 |
{ label: "DeepSeek", slug: "deepseek" },
|
| 13 |
{ label: "Qwen", slug: "qwen" },
|
| 14 |
+
{ label: "Grok", slug: "grok" },
|
| 15 |
{ label: "Moonshot", slug: "moonshot" },
|
| 16 |
];
|
| 17 |
|
| 18 |
export const inferencePlatformCatalog: CatalogEntry[] = [
|
|
|
|
|
|
|
| 19 |
{ label: "Alibaba Cloud", slug: "alibabacloud" },
|
| 20 |
{ label: "AWS Cloud", slug: "aws" },
|
|
|
|
| 21 |
{ label: "Azure AI", slug: "azureai" },
|
| 22 |
+
{ label: "Google Cloud", slug: "googlecloud" },
|
| 23 |
+
{ label: "Cloudflare", slug: "cloudflare" },
|
| 24 |
{ label: "Hugging Face", slug: "huggingface" },
|
| 25 |
+
|
| 26 |
];
|
| 27 |
|
| 28 |
export const developerEcosystemCatalog: CatalogEntry[] = [
|
data/llm-provider-icons.ts
CHANGED
|
@@ -23,9 +23,7 @@ export const secondRowFeaturedSlugs = [
|
|
| 23 |
"mistral",
|
| 24 |
"grok",
|
| 25 |
"qwen",
|
| 26 |
-
"bedrock",
|
| 27 |
"azureai",
|
| 28 |
-
"groq",
|
| 29 |
"moonshot",
|
| 30 |
"adobe",
|
| 31 |
"cloudflare",
|
|
@@ -43,8 +41,6 @@ export function toLobeSvgUrl(slug: string) {
|
|
| 43 |
zai: `${LOBE_ICON_BASE}/zai.svg`,
|
| 44 |
moonshot: `${LOBE_ICON_BASE}/moonshot.svg`,
|
| 45 |
xai: `${LOBE_ICON_BASE}/xai.svg`,
|
| 46 |
-
groq: `${LOBE_ICON_BASE}/groq.svg`,
|
| 47 |
-
fireworks: `${LOBE_ICON_BASE}/fireworks-color.svg`,
|
| 48 |
alibabacloud: `${LOBE_ICON_BASE}/alibabacloud-color.svg`,
|
| 49 |
aws: `${LOBE_ICON_BASE}/aws-color.svg`,
|
| 50 |
ollama: `${LOBE_ICON_BASE}/ollama.svg`,
|
|
@@ -83,13 +79,13 @@ export const providerUrls: Record<string, string> = {
|
|
| 83 |
perplexity: "https://www.perplexity.ai/",
|
| 84 |
huggingface: "https://huggingface.co/",
|
| 85 |
ollama: "https://ollama.com/",
|
| 86 |
-
|
| 87 |
openrouter: "https://openrouter.ai/",
|
| 88 |
azureai: "https://azure.microsoft.com/en-us/solutions/ai",
|
| 89 |
aws: "https://aws.amazon.com/ai/",
|
| 90 |
-
|
| 91 |
nvidia: "https://www.nvidia.com/en-us/ai-data-science/",
|
| 92 |
-
|
| 93 |
cerebras: "https://www.cerebras.net/",
|
| 94 |
deepseek: "https://www.deepseek.com/",
|
| 95 |
qwen: "https://qwenlm.github.io/",
|
|
@@ -105,7 +101,6 @@ export const providerUrls: Record<string, string> = {
|
|
| 105 |
crusoe: "https://crusoe.ai/",
|
| 106 |
baseten: "https://baseten.co/",
|
| 107 |
modal: "https://modal.com/",
|
| 108 |
-
fireworks: "https://fireworks.ai/",
|
| 109 |
deepinfra: "https://deepinfra.com/",
|
| 110 |
fal: "https://fal.ai/",
|
| 111 |
lepton: "https://www.lepton.ai/",
|
|
|
|
| 23 |
"mistral",
|
| 24 |
"grok",
|
| 25 |
"qwen",
|
|
|
|
| 26 |
"azureai",
|
|
|
|
| 27 |
"moonshot",
|
| 28 |
"adobe",
|
| 29 |
"cloudflare",
|
|
|
|
| 41 |
zai: `${LOBE_ICON_BASE}/zai.svg`,
|
| 42 |
moonshot: `${LOBE_ICON_BASE}/moonshot.svg`,
|
| 43 |
xai: `${LOBE_ICON_BASE}/xai.svg`,
|
|
|
|
|
|
|
| 44 |
alibabacloud: `${LOBE_ICON_BASE}/alibabacloud-color.svg`,
|
| 45 |
aws: `${LOBE_ICON_BASE}/aws-color.svg`,
|
| 46 |
ollama: `${LOBE_ICON_BASE}/ollama.svg`,
|
|
|
|
| 79 |
perplexity: "https://www.perplexity.ai/",
|
| 80 |
huggingface: "https://huggingface.co/",
|
| 81 |
ollama: "https://ollama.com/",
|
| 82 |
+
// together removed
|
| 83 |
openrouter: "https://openrouter.ai/",
|
| 84 |
azureai: "https://azure.microsoft.com/en-us/solutions/ai",
|
| 85 |
aws: "https://aws.amazon.com/ai/",
|
| 86 |
+
// bedrock removed
|
| 87 |
nvidia: "https://www.nvidia.com/en-us/ai-data-science/",
|
| 88 |
+
// groq removed
|
| 89 |
cerebras: "https://www.cerebras.net/",
|
| 90 |
deepseek: "https://www.deepseek.com/",
|
| 91 |
qwen: "https://qwenlm.github.io/",
|
|
|
|
| 101 |
crusoe: "https://crusoe.ai/",
|
| 102 |
baseten: "https://baseten.co/",
|
| 103 |
modal: "https://modal.com/",
|
|
|
|
| 104 |
deepinfra: "https://deepinfra.com/",
|
| 105 |
fal: "https://fal.ai/",
|
| 106 |
lepton: "https://www.lepton.ai/",
|
public/icons/bedrock-color.svg
DELETED
public/icons/bedrock-text.svg
DELETED
public/icons/bedrock.svg
DELETED
public/icons/fireworks-color.svg
DELETED
public/icons/fireworks-text.svg
DELETED
public/icons/fireworks.svg
DELETED
public/icons/groq-text.svg
DELETED
public/icons/groq.svg
DELETED
public/icons/xai.svg
CHANGED
|
|
|
|
public/llm.txt
CHANGED
|
@@ -9,7 +9,7 @@
|
|
| 9 |
|
| 10 |
HUBAPI is a state-of-the-art developer platform and API access layer that unifies access, billing, routing, and observability across the Large Language Model ecosystem.
|
| 11 |
|
| 12 |
-
Rather than managing separate accounts, invoices, SDKs, and API keys for OpenAI, Anthropic,
|
| 13 |
|
| 14 |
### Core Product Offerings
|
| 15 |
|
|
|
|
| 9 |
|
| 10 |
HUBAPI is a state-of-the-art developer platform and API access layer that unifies access, billing, routing, and observability across the Large Language Model ecosystem.
|
| 11 |
|
| 12 |
+
Rather than managing separate accounts, invoices, SDKs, and API keys for OpenAI, Anthropic, Gemini, Cohere, Llama, Mistral, DeepSeek, and Qwen, developers can integrate **one key** and access **every model** through a single, OpenAI-compatible endpoint.
|
| 13 |
|
| 14 |
### Core Product Offerings
|
| 15 |
|