fix(mobile): resolve horizontal scrolling overflow and fix swipe button height & visibility

This commit is contained in:
Adam Eehan committed 2026-11-11 09:30:13 +05:30
1 parent 5b80930c3f
commit fadd1d93e4
1 file changed
+106 -82
+106 -82
View File
@@ -1,8 +1,8 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en" class="scroll-smooth"> <html lang="en" class="scroll-smooth" style="width: 100%; max-width: 100%; overflow-x: hidden;">
<head> <head>
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<title>AIRA AI REST API Console | Aira Group of Technology</title> <title>AIRA AI REST API Console | Aira Group of Technology</title>
<link rel="icon" type="image/png" href="assets/logo.png" /> <link rel="icon" type="image/png" href="assets/logo.png" />
<script src="https://cdn.tailwindcss.com"></script> <script src="https://cdn.tailwindcss.com"></script>
@@ -12,11 +12,18 @@
<script src="https://checkout.razorpay.com/v1/checkout.js"></script> <script src="https://checkout.razorpay.com/v1/checkout.js"></script>
<style> <style>
body { *, *::before, *::after {
font-family: 'Inter', sans-serif; box-sizing: border-box;
}
html, body {
width: 100%;
max-width: 100%;
overflow-x: hidden !important;
margin: 0;
padding: 0;
background-color: #050b18; background-color: #050b18;
color: #ffffff; color: #ffffff;
overflow-x: hidden; font-family: 'Inter', sans-serif;
} }
.font-mono { .font-mono {
font-family: 'JetBrains Mono', monospace; font-family: 'JetBrains Mono', monospace;
@@ -24,83 +31,80 @@
.hero-glow { .hero-glow {
background: radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.18) 0%, transparent 60%); background: radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.18) 0%, transparent 60%);
} }
@keyframes pulseGlow { /* Prevent iOS & Android bounce scroll shifting */
0%, 100% { opacity: 0.4; } body {
50% { opacity: 0.8; } position: relative;
}
.animate-glow {
animation: pulseGlow 4s ease-in-out infinite;
} }
</style> </style>
</head> </head>
<body class="min-h-screen flex flex-col justify-between antialiased selection:bg-blue-600 selection:text-white"> <body class="min-h-screen flex flex-col justify-between antialiased selection:bg-blue-600 selection:text-white w-full overflow-x-hidden">
<!-- Top Navigation Bar --> <!-- Top Navigation Bar -->
<header class="sticky top-0 z-40 bg-[#050b18]/90 backdrop-blur-md border-b border-slate-800/80"> <header class="sticky top-0 z-40 bg-[#050b18]/95 backdrop-blur-md border-b border-slate-800/80 w-full">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 h-16 flex items-center justify-between"> <div class="max-w-7xl mx-auto px-3.5 sm:px-6 lg:px-8 h-16 flex items-center justify-between w-full">
<!-- Brand Logo --> <!-- Brand Logo -->
<a href="/" class="flex items-center gap-3 group"> <a href="/" class="flex items-center gap-2.5 sm:gap-3 group">
<img src="assets/logo.png" alt="Aira Group Official Logo" class="w-9 h-9 rounded-xl shadow-md object-contain transition-transform group-hover:scale-105" /> <img src="assets/logo.png" alt="Aira Group Official Logo" class="w-8 h-8 sm:w-9 sm:h-9 rounded-xl shadow-md object-contain transition-transform group-hover:scale-105" />
<div class="flex items-center gap-2"> <div class="flex items-center gap-1.5 sm:gap-2">
<span class="text-xl font-bold tracking-tight text-white">Aira<span class="text-blue-500 font-light">Group</span></span> <span class="text-lg sm:text-xl font-bold tracking-tight text-white">Aira<span class="text-blue-500 font-light">Group</span></span>
<span class="text-[10px] font-bold bg-blue-500/20 text-cyan-400 border border-cyan-500/30 px-2 py-0.5 rounded-full uppercase tracking-wider">REST API</span> <span class="text-[9px] sm:text-[10px] font-bold bg-blue-500/20 text-cyan-400 border border-cyan-500/30 px-2 py-0.5 rounded-full uppercase tracking-wider">REST API</span>
</div> </div>
</a> </a>
<!-- Right Nav Buttons --> <!-- Right Nav Buttons -->
<div class="flex items-center gap-3 sm:gap-4"> <div class="flex items-center gap-2.5 sm:gap-4">
<div class="hidden sm:flex items-center gap-1.5 text-xs font-mono text-emerald-400 bg-emerald-500/10 border border-emerald-500/20 px-2.5 py-1 rounded-full"> <div class="hidden sm:flex items-center gap-1.5 text-xs font-mono text-emerald-400 bg-emerald-500/10 border border-emerald-500/20 px-2.5 py-1 rounded-full">
<span class="w-2 h-2 rounded-full bg-emerald-400 animate-pulse"></span> <span class="w-2 h-2 rounded-full bg-emerald-400 animate-pulse"></span>
<span>99.9% Uptime</span> <span>99.9% Uptime</span>
</div> </div>
<a href="/" class="text-xs font-semibold text-slate-300 hover:text-white bg-slate-800/80 hover:bg-slate-700/80 border border-slate-700 px-3.5 py-2 rounded-xl transition flex items-center gap-1.5"> <a href="/" class="text-xs font-semibold text-slate-300 hover:text-white bg-slate-800/80 hover:bg-slate-700/80 border border-slate-700 px-3 py-1.5 sm:px-3.5 sm:py-2 rounded-xl transition flex items-center gap-1.5">
<i class="fas fa-arrow-left text-xs"></i> <span>Main Website</span> <i class="fas fa-arrow-left text-[11px]"></i> <span>Main Website</span>
</a> </a>
</div> </div>
</div> </div>
</header> </header>
<!-- Main Container --> <!-- Main Container -->
<main class="flex-grow hero-glow relative z-10 py-6 sm:py-12"> <main class="flex-grow hero-glow relative z-10 py-5 sm:py-10 w-full overflow-hidden">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"> <div class="max-w-7xl mx-auto px-3.5 sm:px-6 lg:px-8 w-full min-w-0">
<!-- Page Hero Header --> <!-- Page Hero Header -->
<div class="text-center max-w-3xl mx-auto mb-8 sm:mb-12"> <div class="text-center max-w-3xl mx-auto mb-6 sm:mb-10 w-full px-2">
<div class="inline-flex items-center gap-2 px-3 py-1 rounded-full text-[11px] font-bold tracking-widest uppercase bg-blue-500/10 text-cyan-400 border border-cyan-500/30 mb-3 shadow-sm"> <div class="inline-flex items-center gap-1.5 sm:gap-2 px-3 py-1 rounded-full text-[10px] sm:text-[11px] font-bold tracking-widest uppercase bg-blue-500/10 text-cyan-400 border border-cyan-500/30 mb-2.5 shadow-sm">
<i class="fas fa-microchip text-[10px]"></i> Sovereign Neural API Gateway &bull; OpenAI Compatible <i class="fas fa-microchip text-[10px]"></i> Sovereign RESTful Gateway &bull; OpenAI Spec
</div> </div>
<h1 class="text-2xl sm:text-4xl lg:text-5xl font-extrabold tracking-tight text-white"> <h1 class="text-2xl sm:text-4xl lg:text-5xl font-extrabold tracking-tight text-white break-words">
AIRA AI <span class="bg-gradient-to-r from-blue-400 via-cyan-300 to-indigo-300 bg-clip-text text-transparent">Developer Console</span> AIRA AI <span class="bg-gradient-to-r from-blue-400 via-cyan-300 to-indigo-300 bg-clip-text text-transparent">Developer Console</span>
</h1> </h1>
<p class="text-slate-300 text-xs sm:text-base mt-2 sm:mt-3 leading-relaxed max-w-2xl mx-auto font-light"> <p class="text-slate-300 text-xs sm:text-sm mt-1.5 sm:mt-2.5 leading-relaxed max-w-2xl mx-auto font-light">
Provision direct token-stream credentials for Aira Sovereign AI models. Instant free community access with verified email OTP, or monthly flagship subscription. Provision direct token-stream credentials for Aira Sovereign AI models. Instant free community access with verified email OTP, or monthly flagship subscription.
</p> </p>
</div> </div>
<!-- Main Layout: Form FIRST on mobile (order-1), Docs SECOND on mobile (order-2) --> <!-- Main Layout: Form FIRST on mobile (order-1), Docs SECOND on mobile (order-2) -->
<div class="grid lg:grid-cols-12 gap-6 sm:gap-8 items-start"> <div class="grid lg:grid-cols-12 gap-5 sm:gap-8 items-start w-full min-w-0">
<!-- PROVISIONING FORM CARD (lg:col-span-7, order-1 so mobile users see it immediately!) --> <!-- PROVISIONING FORM CARD (lg:col-span-7, order-1) -->
<div class="lg:col-span-7 order-1"> <div class="lg:col-span-7 order-1 w-full min-w-0">
<div class="bg-gradient-to-b from-slate-900/95 via-slate-900 to-[#071126] border border-blue-500/30 rounded-2xl sm:rounded-3xl p-5 sm:p-8 shadow-2xl backdrop-blur-md relative overflow-hidden"> <div class="bg-gradient-to-b from-slate-900/95 via-slate-900 to-[#071126] border border-blue-500/30 rounded-2xl sm:rounded-3xl p-4 sm:p-7 shadow-2xl backdrop-blur-md relative overflow-hidden w-full">
<div class="flex items-center justify-between mb-5 pb-3 border-b border-slate-800"> <div class="flex items-center justify-between mb-4 pb-3 border-b border-slate-800">
<div> <div>
<h2 class="text-lg sm:text-xl font-bold text-white flex items-center gap-2"> <h2 class="text-base sm:text-lg font-bold text-white flex items-center gap-2">
<i class="fas fa-key text-blue-400 text-base"></i> Provision API Credentials <i class="fas fa-key text-blue-400 text-sm sm:text-base"></i> Provision API Credentials
</h2> </h2>
<p class="text-[11px] sm:text-xs text-slate-400 mt-0.5">Instant key issuance with cryptographic OTP verification</p> <p class="text-[11px] text-slate-400 mt-0.5">Instant key issuance with cryptographic OTP verification</p>
</div> </div>
<span class="inline-flex items-center gap-1.5 text-[10px] font-bold text-blue-400 bg-blue-500/10 border border-blue-500/30 px-2 py-0.5 rounded-full uppercase"> <span class="inline-flex items-center gap-1 text-[10px] font-bold text-blue-400 bg-blue-500/10 border border-blue-500/30 px-2 py-0.5 rounded-full uppercase flex-shrink-0">
<i class="fas fa-shield-halved text-[9px]"></i> Secure <i class="fas fa-shield-halved text-[9px]"></i> Secure
</span> </span>
</div> </div>
<!-- Form --> <!-- Form -->
<form id="aira-api-form" onsubmit="return false;" class="space-y-4"> <form id="aira-api-form" onsubmit="return false;" class="space-y-3.5 w-full">
<!-- 1. API Key Name --> <!-- 1. API Key Name -->
<div> <div class="w-full">
<label class="block text-xs font-semibold uppercase tracking-wider text-slate-300 mb-1"> <label class="block text-xs font-semibold uppercase tracking-wider text-slate-300 mb-1">
1. API Key Name 1. API Key Name
</label> </label>
@@ -113,8 +117,8 @@
</div> </div>
<!-- 2. Model & 3. Expiry in 2 cols --> <!-- 2. Model & 3. Expiry in 2 cols -->
<div class="grid grid-cols-1 sm:grid-cols-2 gap-3"> <div class="grid grid-cols-1 sm:grid-cols-2 gap-3 w-full">
<div> <div class="w-full">
<label class="block text-xs font-semibold uppercase tracking-wider text-slate-300 mb-1"> <label class="block text-xs font-semibold uppercase tracking-wider text-slate-300 mb-1">
2. Select Model 2. Select Model
</label> </label>
@@ -135,7 +139,7 @@
</select> </select>
</div> </div>
<div> <div class="w-full">
<label class="block text-xs font-semibold uppercase tracking-wider text-slate-300 mb-1"> <label class="block text-xs font-semibold uppercase tracking-wider text-slate-300 mb-1">
3. Key Expiration 3. Key Expiration
</label> </label>
@@ -152,17 +156,17 @@
</div> </div>
<!-- 4. Developer Email with Side-by-Side "Verify Email" Button --> <!-- 4. Developer Email with Side-by-Side "Verify Email" Button -->
<div> <div class="w-full">
<div class="flex items-center justify-between mb-1"> <div class="flex items-center justify-between mb-1">
<label class="block text-xs font-semibold uppercase tracking-wider text-slate-300"> <label class="block text-xs font-semibold uppercase tracking-wider text-slate-300">
4. Developer Email &amp; Verification 4. Developer Email &amp; Verification
</label> </label>
<span id="api-verified-status" class="text-[10px] font-semibold text-slate-400"> <span id="api-verified-status" class="text-[10px] font-semibold text-slate-400">
OTP required for key issuance OTP required
</span> </span>
</div> </div>
<div class="flex gap-2"> <div class="flex gap-2 w-full">
<input <input
type="email" type="email"
id="api-email" id="api-email"
@@ -173,22 +177,22 @@
type="button" type="button"
id="api-verify-btn" id="api-verify-btn"
onclick="sendApiOtp()" onclick="sendApiOtp()"
class="px-4 py-2.5 sm:py-3 bg-blue-600 hover:bg-blue-500 text-white font-bold text-xs rounded-xl shadow-md transition-all flex items-center gap-1.5 whitespace-nowrap active:scale-95 flex-shrink-0" class="px-3.5 py-2.5 sm:py-3 bg-blue-600 hover:bg-blue-500 text-white font-bold text-xs rounded-xl shadow-md transition-all flex items-center justify-center gap-1.5 whitespace-nowrap active:scale-95 flex-shrink-0"
> >
<i class="fas fa-paper-plane text-xs"></i> <span>Verify Email</span> <i class="fas fa-paper-plane text-xs"></i> <span>Verify Email</span>
</button> </button>
</div> </div>
<!-- Inline OTP Drawer (Slides down on OTP dispatch) --> <!-- Inline OTP Drawer (Slides down on OTP dispatch) -->
<div id="api-otp-container" class="hidden mt-3 p-3.5 bg-blue-950/40 border border-blue-500/40 rounded-xl animate-fade-in space-y-2"> <div id="api-otp-container" class="hidden mt-2.5 p-3 bg-blue-950/40 border border-blue-500/40 rounded-xl animate-fade-in space-y-2 w-full">
<div class="flex items-center justify-between text-[11px] text-slate-200"> <div class="flex items-center justify-between text-[11px] text-slate-200">
<span class="flex items-center gap-1"> <span class="flex items-center gap-1">
<i class="fas fa-envelope text-cyan-400"></i> Code sent via <strong class="text-white">noreply@airaaigroup.in</strong>: <i class="fas fa-envelope text-cyan-400"></i> Enter OTP sent via <strong class="text-white">noreply@airaaigroup.in</strong>:
</span> </span>
<span id="api-otp-countdown" class="font-mono text-amber-300 font-bold text-xs">10:00</span> <span id="api-otp-countdown" class="font-mono text-amber-300 font-bold text-xs">10:00</span>
</div> </div>
<div class="flex gap-2"> <div class="flex gap-2 w-full">
<input <input
type="text" type="text"
id="api-otp-input" id="api-otp-input"
@@ -200,14 +204,14 @@
type="button" type="button"
id="api-otp-confirm-btn" id="api-otp-confirm-btn"
onclick="verifyApiOtp()" onclick="verifyApiOtp()"
class="px-4 py-2 bg-emerald-600 hover:bg-emerald-500 text-white font-bold text-xs rounded-xl transition flex items-center gap-1.5 active:scale-95" class="px-4 py-2 bg-emerald-600 hover:bg-emerald-500 text-white font-bold text-xs rounded-xl transition flex items-center gap-1.5 active:scale-95 flex-shrink-0"
> >
<i class="fas fa-check text-xs"></i> Confirm <i class="fas fa-check text-xs"></i> Confirm
</button> </button>
<button <button
type="button" type="button"
onclick="sendApiOtp()" onclick="sendApiOtp()"
class="px-2 py-2 text-slate-400 hover:text-white text-xs underline transition" class="px-2 py-2 text-slate-400 hover:text-white text-xs underline transition flex-shrink-0"
> >
Resend Resend
</button> </button>
@@ -217,40 +221,56 @@
</div> </div>
<!-- 5. Dynamic Pricing & Tier Status Banner --> <!-- 5. Dynamic Pricing & Tier Status Banner -->
<div id="api-tier-banner" class="p-3 rounded-xl bg-slate-950/70 border border-slate-800 text-xs flex items-center justify-between transition-all"> <div id="api-tier-banner" class="p-3 rounded-xl bg-slate-950/70 border border-slate-800 text-xs flex items-center justify-between transition-all w-full">
<div class="flex items-center gap-2.5"> <div class="flex items-center gap-2.5 min-w-0">
<div id="api-tier-icon" class="w-7 h-7 rounded-lg bg-emerald-500/20 text-emerald-400 flex items-center justify-center font-bold text-xs flex-shrink-0"> <div id="api-tier-icon" class="w-7 h-7 rounded-lg bg-emerald-500/20 text-emerald-400 flex items-center justify-center font-bold text-xs flex-shrink-0">
<i class="fas fa-bolt"></i> <i class="fas fa-bolt"></i>
</div> </div>
<div> <div class="min-w-0">
<div id="api-tier-name" class="font-bold text-white text-xs">Free Community Access</div> <div id="api-tier-name" class="font-bold text-white text-xs truncate">Free Community Access</div>
<div id="api-tier-desc" class="text-[10px] text-slate-400">Zero cost &bull; Instant API key generation</div> <div id="api-tier-desc" class="text-[10px] text-slate-400 truncate">Zero cost &bull; Instant API key generation</div>
</div> </div>
</div> </div>
<div id="api-tier-price" class="text-right"> <div id="api-tier-price" class="text-right flex-shrink-0 pl-2">
<span class="text-sm font-extrabold text-emerald-400 font-mono">&#8377;0</span> <span class="text-sm font-extrabold text-emerald-400 font-mono">&#8377;0</span>
<span class="text-[10px] text-slate-400 block">Forever Free</span> <span class="text-[10px] text-slate-400 block">Forever Free</span>
</div> </div>
</div> </div>
<!-- 6. SLIDE / SWIPE TO UNLOCK & GENERATE KEY WIDGET --> <!-- 6. SLIDE / SWIPE TO UNLOCK & GENERATE KEY WIDGET (ROCK SOLID FIXED HEIGHT) -->
<div class="pt-1"> <div class="pt-2 w-full">
<div id="api-slider" class="relative h-13 sm:h-14 bg-white/10 border border-white/20 rounded-full overflow-hidden select-none touch-none cursor-pointer py-1"> <div
<div id="api-fill" class="absolute left-0 top-0 h-full w-0 bg-gradient-to-r from-blue-600 via-cyan-500 to-emerald-500 rounded-full"></div> id="api-slider"
<div id="api-slider-text" class="absolute inset-0 flex items-center justify-center text-[11px] sm:text-xs font-bold tracking-widest text-slate-200 pointer-events-none uppercase transition-opacity px-4 text-center"> class="relative bg-white/10 border border-white/20 rounded-full overflow-hidden select-none touch-none cursor-pointer w-full"
style="height: 56px; min-height: 56px;"
>
<div
id="api-fill"
class="absolute left-0 top-0 h-full w-0 bg-gradient-to-r from-blue-600 via-cyan-500 to-emerald-500 rounded-full"
style="height: 100%;"
></div>
<div
id="api-slider-text"
class="absolute inset-0 flex items-center justify-center text-xs font-bold tracking-widest text-slate-200 pointer-events-none uppercase transition-opacity px-6 text-center select-none"
style="z-index: 5;"
>
Slide to Generate Free API Key <span class="ml-2">&rarr;</span> Slide to Generate Free API Key <span class="ml-2">&rarr;</span>
</div> </div>
<div id="api-thumb" class="absolute left-1 top-1 w-11 h-11 sm:w-12 sm:h-12 bg-white text-[#0a2342] rounded-full shadow-lg flex items-center justify-center font-bold text-sm cursor-grab active:cursor-grabbing z-10 transition-transform"> <div
id="api-thumb"
class="absolute bg-white text-[#0a2342] rounded-full shadow-xl flex items-center justify-center font-bold text-sm cursor-grab active:cursor-grabbing transition-transform"
style="width: 48px; height: 48px; top: 4px; left: 4px; z-index: 10;"
>
<i class="fas fa-arrow-right text-xs"></i> <i class="fas fa-arrow-right text-xs"></i>
</div> </div>
</div> </div>
<p class="text-[10px] sm:text-[11px] text-slate-400 text-center mt-1.5 select-none"> <p class="text-[10px] sm:text-[11px] text-slate-400 text-center mt-2 select-none">
Drag the button to the right to verify credentials and provision your API key Drag the button to the right to verify credentials and provision your API key
</p> </p>
</div> </div>
<!-- 7. Key Reveal Box --> <!-- 7. Key Reveal Box -->
<div id="api-result-box" class="hidden mt-4 p-4 sm:p-5 bg-gradient-to-br from-emerald-950/60 via-slate-900 to-slate-950 border border-emerald-500/50 rounded-2xl animate-fade-in space-y-2.5"> <div id="api-result-box" class="hidden mt-4 p-4 sm:p-5 bg-gradient-to-br from-emerald-950/60 via-slate-900 to-slate-950 border border-emerald-500/50 rounded-2xl animate-fade-in space-y-2.5 w-full">
<div class="flex items-center justify-between"> <div class="flex items-center justify-between">
<div class="flex items-center gap-2"> <div class="flex items-center gap-2">
<span class="w-2.5 h-2.5 rounded-full bg-emerald-400 animate-pulse"></span> <span class="w-2.5 h-2.5 rounded-full bg-emerald-400 animate-pulse"></span>
@@ -259,7 +279,7 @@
<span id="api-result-tier-pill" class="text-[9px] sm:text-[10px] font-bold uppercase bg-emerald-500/20 text-emerald-300 border border-emerald-500/40 px-2 py-0.5 rounded-full">Active</span> <span id="api-result-tier-pill" class="text-[9px] sm:text-[10px] font-bold uppercase bg-emerald-500/20 text-emerald-300 border border-emerald-500/40 px-2 py-0.5 rounded-full">Active</span>
</div> </div>
<div class="relative bg-slate-950 border border-emerald-500/40 rounded-xl p-2.5 sm:p-3 flex items-center justify-between gap-2 font-mono text-xs text-emerald-300"> <div class="relative bg-slate-950 border border-emerald-500/40 rounded-xl p-2.5 sm:p-3 flex items-center justify-between gap-2 font-mono text-xs text-emerald-300 w-full">
<span id="api-generated-key-display" class="truncate select-all font-bold text-[11px] sm:text-xs"></span> <span id="api-generated-key-display" class="truncate select-all font-bold text-[11px] sm:text-xs"></span>
<button <button
type="button" type="button"
@@ -283,10 +303,10 @@
</div> </div>
</div> </div>
<!-- SPECS & CODE SAMPLES (lg:col-span-5, order-2 on mobile, clean and scrollable) --> <!-- SPECS & CODE SAMPLES (lg:col-span-5, order-2) -->
<div class="lg:col-span-5 order-2 space-y-5"> <div class="lg:col-span-5 order-2 space-y-4 sm:space-y-5 w-full min-w-0">
<!-- Base Endpoint Card --> <!-- Base Endpoint Card -->
<div class="bg-slate-900/80 border border-slate-800 rounded-2xl p-5 shadow-xl backdrop-blur-sm"> <div class="bg-slate-900/80 border border-slate-800 rounded-2xl p-4 sm:p-5 shadow-xl backdrop-blur-sm w-full min-w-0 overflow-hidden">
<div class="flex items-center justify-between mb-3 pb-2 border-b border-slate-800"> <div class="flex items-center justify-between mb-3 pb-2 border-b border-slate-800">
<span class="text-xs font-bold tracking-wider uppercase text-cyan-400 flex items-center gap-1.5"> <span class="text-xs font-bold tracking-wider uppercase text-cyan-400 flex items-center gap-1.5">
<i class="fas fa-network-wired text-xs"></i> Base Endpoint <i class="fas fa-network-wired text-xs"></i> Base Endpoint
@@ -295,13 +315,13 @@
<span class="w-1.5 h-1.5 rounded-full bg-emerald-400 animate-pulse"></span> REST v1 <span class="w-1.5 h-1.5 rounded-full bg-emerald-400 animate-pulse"></span> REST v1
</span> </span>
</div> </div>
<div class="bg-slate-950 rounded-xl p-2.5 border border-slate-800 font-mono text-xs text-blue-300 flex items-center justify-between gap-2"> <div class="bg-slate-950 rounded-xl p-2.5 border border-slate-800 font-mono text-xs text-blue-300 flex items-center justify-between gap-2 w-full min-w-0">
<span class="truncate text-[11px] sm:text-xs">https://airaai-8ibs.onrender.com/v1</span> <span class="truncate text-[11px] sm:text-xs">https://airaai-8ibs.onrender.com/v1</span>
<button type="button" onclick="navigator.clipboard.writeText('https://airaai-8ibs.onrender.com/v1'); alert('Endpoint copied to clipboard!');" class="text-slate-400 hover:text-white transition text-xs p-1" title="Copy Endpoint"> <button type="button" onclick="navigator.clipboard.writeText('https://airaai-8ibs.onrender.com/v1'); alert('Endpoint copied to clipboard!');" class="text-slate-400 hover:text-white transition text-xs p-1 flex-shrink-0" title="Copy Endpoint">
<i class="far fa-copy"></i> <i class="far fa-copy"></i>
</button> </button>
</div> </div>
<div class="grid grid-cols-2 gap-2.5 mt-3 text-xs"> <div class="grid grid-cols-2 gap-2.5 mt-3 text-xs w-full">
<div class="p-2 rounded-lg bg-slate-950/60 border border-slate-800/80"> <div class="p-2 rounded-lg bg-slate-950/60 border border-slate-800/80">
<div class="text-slate-400 text-[10px] uppercase font-semibold">Latency</div> <div class="text-slate-400 text-[10px] uppercase font-semibold">Latency</div>
<div class="text-white font-bold font-mono mt-0.5">&lt;50ms TTFT</div> <div class="text-white font-bold font-mono mt-0.5">&lt;50ms TTFT</div>
@@ -314,16 +334,16 @@
</div> </div>
<!-- cURL Quickstart Card --> <!-- cURL Quickstart Card -->
<div class="bg-slate-900/80 border border-slate-800 rounded-2xl p-5 shadow-xl backdrop-blur-sm"> <div class="bg-slate-900/80 border border-slate-800 rounded-2xl p-4 sm:p-5 shadow-xl backdrop-blur-sm w-full min-w-0 overflow-hidden">
<div class="flex items-center justify-between mb-2.5"> <div class="flex items-center justify-between mb-2.5">
<span class="text-xs font-bold text-slate-300 uppercase tracking-wider flex items-center gap-1.5"> <span class="text-xs font-bold text-slate-300 uppercase tracking-wider flex items-center gap-1.5">
<i class="fas fa-terminal text-blue-400 text-xs"></i> cURL Quick Start <i class="fas fa-terminal text-blue-400 text-xs"></i> cURL Quick Start
</span> </span>
<button type="button" onclick="copyApiCurlCode()" id="copy-curl-btn" class="text-xs text-cyan-400 hover:text-cyan-300 font-semibold inline-flex items-center gap-1 transition"> <button type="button" onclick="copyApiCurlCode()" id="copy-curl-btn" class="text-xs text-cyan-400 hover:text-cyan-300 font-semibold inline-flex items-center gap-1 transition flex-shrink-0">
<i class="far fa-copy"></i> Copy <i class="far fa-copy"></i> Copy
</button> </button>
</div> </div>
<pre id="api-curl-sample" class="bg-slate-950 border border-slate-800 rounded-xl p-3 sm:p-4 font-mono text-[11px] text-slate-300 overflow-x-auto leading-relaxed select-all">curl https://airaai-8ibs.onrender.com/v1/chat/completions \ <pre id="api-curl-sample" class="bg-slate-950 border border-slate-800 rounded-xl p-3 sm:p-4 font-mono text-[11px] text-slate-300 overflow-x-auto leading-relaxed select-all w-full max-w-full">curl https://airaai-8ibs.onrender.com/v1/chat/completions \
-H "Authorization: Bearer airaaixak..." \ -H "Authorization: Bearer airaaixak..." \
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \
-d '{ -d '{
@@ -335,11 +355,11 @@
</div> </div>
<!-- Available Models Overview --> <!-- Available Models Overview -->
<div class="bg-slate-900/80 border border-slate-800 rounded-2xl p-5 shadow-xl backdrop-blur-sm"> <div class="bg-slate-900/80 border border-slate-800 rounded-2xl p-4 sm:p-5 shadow-xl backdrop-blur-sm w-full min-w-0 overflow-hidden">
<h3 class="text-xs font-bold text-slate-300 uppercase tracking-wider mb-3 flex items-center gap-1.5"> <h3 class="text-xs font-bold text-slate-300 uppercase tracking-wider mb-3 flex items-center gap-1.5">
<i class="fas fa-layer-group text-blue-400 text-xs"></i> Neural Models Available <i class="fas fa-layer-group text-blue-400 text-xs"></i> Neural Models Available
</h3> </h3>
<div class="space-y-2"> <div class="space-y-2 w-full">
<div class="p-2.5 rounded-xl bg-slate-950 border border-slate-800/80 flex items-center justify-between"> <div class="p-2.5 rounded-xl bg-slate-950 border border-slate-800/80 flex items-center justify-between">
<div> <div>
<div class="font-bold text-white text-xs">Aira Flash 1.5 &amp; Flash Lite</div> <div class="font-bold text-white text-xs">Aira Flash 1.5 &amp; Flash Lite</div>
@@ -377,7 +397,7 @@
</main> </main>
<!-- Razorpay / UPI Modal for Paid Flagship Models --> <!-- Razorpay / UPI Modal for Paid Flagship Models -->
<div id="api-payment-modal" class="fixed inset-0 z-50 flex items-center justify-center hidden bg-black/80 backdrop-blur-sm p-4 transition-all duration-300"> <div id="api-payment-modal" class="fixed inset-0 z-50 flex items-center justify-center hidden bg-black/80 backdrop-blur-sm p-4 transition-all duration-300 w-full overflow-x-hidden">
<div class="bg-slate-900 border border-blue-500/40 rounded-3xl w-full max-w-md shadow-2xl overflow-hidden text-white animate-scale max-h-[90vh] overflow-y-auto"> <div class="bg-slate-900 border border-blue-500/40 rounded-3xl w-full max-w-md shadow-2xl overflow-hidden text-white animate-scale max-h-[90vh] overflow-y-auto">
<!-- Modal Header --> <!-- Modal Header -->
<div class="bg-gradient-to-r from-blue-700 via-[#0a2342] to-slate-900 p-4 sm:p-5 flex items-center justify-between border-b border-blue-500/20"> <div class="bg-gradient-to-r from-blue-700 via-[#0a2342] to-slate-900 p-4 sm:p-5 flex items-center justify-between border-b border-blue-500/20">
@@ -396,7 +416,7 @@
</div> </div>
<!-- Modal Body --> <!-- Modal Body -->
<div class="p-5 space-y-4"> <div class="p-4 sm:p-5 space-y-3.5">
<div class="bg-slate-950 p-3.5 rounded-2xl border border-slate-800 flex items-center justify-between"> <div class="bg-slate-950 p-3.5 rounded-2xl border border-slate-800 flex items-center justify-between">
<div> <div>
<span class="text-[10px] text-slate-400 block uppercase font-semibold">Monthly Subscription</span> <span class="text-[10px] text-slate-400 block uppercase font-semibold">Monthly Subscription</span>
@@ -465,7 +485,7 @@
</div> </div>
<!-- Footer --> <!-- Footer -->
<footer class="bg-[#030712] border-t border-slate-800/80 py-6 text-center text-xs text-slate-500"> <footer class="bg-[#030712] border-t border-slate-800/80 py-6 text-center text-xs text-slate-500 w-full overflow-hidden">
<div class="max-w-7xl mx-auto px-4 flex flex-col sm:flex-row items-center justify-between gap-3"> <div class="max-w-7xl mx-auto px-4 flex flex-col sm:flex-row items-center justify-between gap-3">
<div> <div>
&copy; 2026 <strong>Aira Group of Technology</strong>. All sovereign rights reserved. &copy; 2026 <strong>Aira Group of Technology</strong>. All sovereign rights reserved.
@@ -636,7 +656,7 @@
} }
} }
// 3. Slide to Unlock Widget // 3. Slide to Unlock Widget (Rock-Solid Touch & Mouse Tracking)
(function initApiSlider() { (function initApiSlider() {
const slider = document.getElementById('api-slider'); const slider = document.getElementById('api-slider');
const thumb = document.getElementById('api-thumb'); const thumb = document.getElementById('api-thumb');
@@ -687,6 +707,10 @@
thumb.style.left = '4px'; thumb.style.left = '4px';
fill.style.width = '0px'; fill.style.width = '0px';
text.style.opacity = '1'; text.style.opacity = '1';
setTimeout(() => {
thumb.style.transition = '';
fill.style.transition = '';
}, 300);
} }
// Mouse events // Mouse events