feat: upgrade to genuine MetaTrader 5 WebTerminal, implement Hermes Bangla Voice Engine, and integrate official Aura Trade SVG and PWA App Icons

This commit is contained in:
2026-10-23 02:11:28 +06:00
parent 8ee3a30b24
commit 55018c343c
14 changed files with 313 additions and 37 deletions
Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 42 KiB

+128
View File
@@ -0,0 +1,128 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="100%" height="100%">
<defs>
<!-- Background Outer Glow -->
<filter id="auraGlow" x="-20%" y="-20%" width="140%" height="140%">
<feGaussianBlur stdDeviation="16" result="blur" />
<feComposite in="SourceGraphic" in2="blur" operator="over" />
</filter>
<filter id="neonPulse" x="-30%" y="-30%" width="160%" height="160%">
<feGaussianBlur stdDeviation="8" result="blur1" />
<feGaussianBlur stdDeviation="20" result="blur2" />
<feMerge>
<feMergeNode in="blur2" />
<feMergeNode in="blur1" />
<feMergeNode in="SourceGraphic" />
</feMerge>
</filter>
<!-- Gradients -->
<linearGradient id="shieldBorder" x1="0%" y1="0%" x2="100%" y2="100%">
<stop offset="0%" stop-color="#00f5ff" />
<stop offset="50%" stop-color="#0080ff" />
<stop offset="100%" stop-color="#00ffaa" />
</linearGradient>
<linearGradient id="shieldGlowBorder" x1="0%" y1="0%" x2="0%" y2="100%">
<stop offset="0%" stop-color="#00f5ff" stop-opacity="0.9" />
<stop offset="50%" stop-color="#0077ff" stop-opacity="0.5" />
<stop offset="100%" stop-color="#00e59b" stop-opacity="0.9" />
</linearGradient>
<linearGradient id="shieldFill" x1="0%" y1="0%" x2="0%" y2="100%">
<stop offset="0%" stop-color="#041226" stop-opacity="0.8" />
<stop offset="100%" stop-color="#010612" stop-opacity="0.95" />
</linearGradient>
<linearGradient id="barGrad1" x1="0%" y1="100%" x2="0%" y2="0%">
<stop offset="0%" stop-color="#00b4d8" />
<stop offset="100%" stop-color="#00f59b" />
</linearGradient>
<linearGradient id="barGrad2" x1="0%" y1="100%" x2="0%" y2="0%">
<stop offset="0%" stop-color="#0077b6" />
<stop offset="100%" stop-color="#00ffcc" />
</linearGradient>
<linearGradient id="barGrad3" x1="0%" y1="100%" x2="0%" y2="0%">
<stop offset="0%" stop-color="#023e8a" />
<stop offset="100%" stop-color="#00f59b" />
</linearGradient>
<linearGradient id="letterALeft" x1="0%" y1="0%" x2="100%" y2="100%">
<stop offset="0%" stop-color="#00f5ff" />
<stop offset="60%" stop-color="#0077b6" />
<stop offset="100%" stop-color="#03045e" />
</linearGradient>
<linearGradient id="letterARight" x1="0%" y1="0%" x2="100%" y2="100%">
<stop offset="0%" stop-color="#00b4d8" />
<stop offset="50%" stop-color="#00509d" />
<stop offset="100%" stop-color="#00296b" />
</linearGradient>
<linearGradient id="swooshGrad" x1="0%" y1="100%" x2="100%" y2="0%">
<stop offset="0%" stop-color="#0077b6" />
<stop offset="60%" stop-color="#00e5ff" />
<stop offset="100%" stop-color="#00ffaa" />
</linearGradient>
<linearGradient id="squircleBorder" x1="0%" y1="0%" x2="100%" y2="100%">
<stop offset="0%" stop-color="#00f5ff" stop-opacity="0.8" />
<stop offset="100%" stop-color="#00f59b" stop-opacity="0.8" />
</linearGradient>
</defs>
<!-- 1. Squircle App Icon Container -->
<rect x="16" y="16" width="480" height="480" rx="108" ry="108" fill="#040814" stroke="url(#squircleBorder)" stroke-width="4" filter="url(#auraGlow)" />
<rect x="20" y="20" width="472" height="472" rx="104" ry="104" fill="#040814" />
<!-- Background Ambient Glow Behind Shield -->
<circle cx="256" cy="256" r="140" fill="#00e5ff" opacity="0.12" filter="url(#auraGlow)" />
<circle cx="280" cy="280" r="100" fill="#00f59b" opacity="0.1" filter="url(#auraGlow)" />
<!-- 2. Outer Protective Hexagonal Shield Frame -->
<path d="M 256 80 L 396 148 L 396 308 L 256 424 L 116 308 L 116 148 Z"
fill="url(#shieldFill)"
stroke="url(#shieldGlowBorder)"
stroke-width="14"
stroke-linejoin="round"
filter="url(#neonPulse)" />
<!-- Inner Shield Inset Accent -->
<path d="M 256 104 L 376 162 L 376 298 L 256 398 L 136 298 L 136 162 Z"
fill="none"
stroke="#00e5ff"
stroke-width="2"
stroke-opacity="0.3"
stroke-linejoin="round" />
<!-- 3. Dynamic Rising Quant Candlestick Bars (Bottom Interior of A) -->
<!-- Bar 1 (Left Low) -->
<path d="M 176 364 L 210 342 L 210 398 L 176 384 Z" fill="url(#barGrad1)" />
<!-- Bar 2 (Center Medium) -->
<path d="M 218 336 L 252 308 L 252 402 L 218 392 Z" fill="url(#barGrad2)" />
<!-- Bar 3 (Right High) -->
<path d="M 260 302 L 294 272 L 294 380 L 260 388 Z" fill="url(#barGrad3)" />
<!-- 4. The Apex Glyph "A" -->
<!-- Right Leg of A -->
<path d="M 256 132 L 302 188 L 412 376 L 352 384 L 302 298 L 256 220 Z"
fill="url(#letterARight)"
filter="url(#auraGlow)" />
<!-- Left Leg of A -->
<path d="M 256 132 L 140 348 L 194 376 L 256 264 L 256 132 Z"
fill="url(#letterALeft)" />
<!-- Sharp Diamond Apex Facet -->
<polygon points="256,132 294,204 256,236 218,204" fill="#00f5ff" opacity="0.9" />
<!-- 5. Futuristic Upward Momentum Trajectory Swoosh -->
<path d="M 124 374 Q 220 310 316 238 L 316 260 Q 220 334 146 394 Z"
fill="url(#swooshGrad)"
filter="url(#neonPulse)" />
<!-- Leading Aerodynamic Fin Accent -->
<path d="M 292 238 L 332 254 L 300 274 Z" fill="#00ffcc" />
</svg>

After

Width:  |  Height:  |  Size: 5.2 KiB

@@ -0,0 +1,61 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 680 160" width="100%" height="100%">
<defs>
<linearGradient id="logoShieldGrad" x1="0%" y1="0%" x2="100%" y2="100%">
<stop offset="0%" stop-color="#00f5ff" />
<stop offset="50%" stop-color="#0080ff" />
<stop offset="100%" stop-color="#00ffaa" />
</linearGradient>
<linearGradient id="tradeTextGrad" x1="0%" y1="0%" x2="100%" y2="0%">
<stop offset="0%" stop-color="#00e5ff" />
<stop offset="100%" stop-color="#00ffaa" />
</linearGradient>
<linearGradient id="auraSwoosh" x1="0%" y1="0%" x2="100%" y2="100%">
<stop offset="0%" stop-color="#00f5ff" />
<stop offset="100%" stop-color="#0077b6" />
</linearGradient>
</defs>
<!-- Left Icon: Shield A Emblem (scaled & translated) -->
<g transform="translate(10, 8) scale(0.28)">
<!-- Outer Shield -->
<path d="M 256 40 L 416 118 L 416 308 L 256 444 L 96 308 L 96 118 Z"
fill="#061224"
stroke="url(#logoShieldGrad)"
stroke-width="18"
stroke-linejoin="round" />
<!-- Rising Quant Candlestick Bars -->
<path d="M 166 364 L 204 338 L 204 404 L 166 388 Z" fill="#00b4d8" />
<path d="M 212 332 L 250 300 L 250 410 L 212 398 Z" fill="#00e5ff" />
<path d="M 258 294 L 296 262 L 296 386 L 258 396 Z" fill="#00ffaa" />
<!-- Letter A Silhouette -->
<path d="M 256 100 L 126 348 L 186 378 L 256 254 Z" fill="#0096c7" />
<path d="M 256 100 L 386 348 L 326 378 L 256 254 Z" fill="#023e8a" />
<polygon points="256,100 298,178 256,214 214,178" fill="#00f5ff" />
<!-- Trajectory Swoosh -->
<path d="M 110 380 Q 220 304 326 230 L 326 256 Q 220 330 134 402 Z" fill="url(#tradeTextGrad)" />
</g>
<!-- Typography: Aura Trade -->
<!-- "Aura" (Institutional Dark Tech Navy with Cyan Accent) -->
<text x="165" y="105" font-family="'Inter', 'Montserrat', -apple-system, sans-serif" font-size="78" font-weight="900" fill="#0d1b2a" letter-spacing="-2">
Aura
</text>
<text x="165" y="105" font-family="'Inter', 'Montserrat', -apple-system, sans-serif" font-size="78" font-weight="900" fill="#ffffff" letter-spacing="-2">
Aura
</text>
<!-- Stylized Cyan Accent on first A of Aura -->
<path d="M 172 82 Q 186 68 200 80" stroke="#00f5ff" stroke-width="4" stroke-linecap="round" fill="none" />
<!-- "Trade" (Vibrant Neon Cyan/Teal Gradient) -->
<text x="360" y="105" font-family="'Inter', 'Montserrat', -apple-system, sans-serif" font-size="78" font-weight="900" fill="url(#tradeTextGrad)" letter-spacing="-1">
Trade
</text>
<!-- Subtitle Tagline -->
<text x="170" y="132" font-family="'JetBrains Mono', monospace" font-size="14" font-weight="700" fill="#00e5ff" letter-spacing="4">
INSTITUTIONAL QUANT TERMINAL
</text>
</svg>

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 581 B

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 252 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.5 KiB

After

Width:  |  Height:  |  Size: 252 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 581 B

After

Width:  |  Height:  |  Size: 7.7 KiB

@@ -139,13 +139,51 @@ export const HermesAgentChatDrawer: React.FC<HermesAgentChatDrawerProps> = ({
}
};
// Find Best Matching Native Bengali Voice for Hermes Speech Synthesis
const getBengaliVoice = (): SpeechSynthesisVoice | null => {
if (typeof window === "undefined" || !("speechSynthesis" in window)) return null;
const voices = window.speechSynthesis.getVoices();
// 1. Exact Bengali Locale (bn-BD, bn-IN, or language tagged 'bn')
let voice = voices.find(
(v) =>
v.lang.toLowerCase().startsWith("bn") ||
v.name.toLowerCase().includes("bangla") ||
v.name.toLowerCase().includes("bengali")
);
if (voice) return voice;
// 2. High-quality Hindi / Indian subcontinent voices with natural phonetics
voice = voices.find(
(v) =>
v.lang.toLowerCase().includes("hi") ||
v.lang.toLowerCase() === "en-in"
);
if (voice) return voice;
// 3. Fallback
return voices.find((v) => v.default) || (voices.length > 0 ? voices[0] : null);
};
const speakText = (text: string) => {
if (!audioEnabled || typeof window === "undefined" || !("speechSynthesis" in window)) return;
try {
window.speechSynthesis.cancel();
const utterance = new SpeechSynthesisUtterance(text);
utterance.rate = 1.05;
utterance.pitch = 1.0;
// Clean markdown, raw code symbols, and numbers into pleasant spoken Bengali copy
const cleanText = text
.replace(/[*#_`~>]/g, "")
.replace(/https?:\/\/\S+/g, "")
.replace(/•/g, ",")
.replace(/\|/g, ",")
.trim();
const utterance = new SpeechSynthesisUtterance(cleanText);
const bnVoice = getBengaliVoice();
if (bnVoice) {
utterance.voice = bnVoice;
utterance.lang = bnVoice.lang || "bn-BD";
} else {
utterance.lang = "bn-BD";
}
utterance.rate = 0.95; // Natural measured pace for clear Bengali comprehension
utterance.pitch = 1.05; // Friendly, intelligent tone
window.speechSynthesis.speak(utterance);
} catch (e) {
console.warn("TTS error:", e);
@@ -547,7 +585,25 @@ export const HermesAgentChatDrawer: React.FC<HermesAgentChatDrawerProps> = ({
</div>
)}
<span className="text-[9px] text-gray-500 block text-right mt-1">{msg.timestamp}</span>
{/* Message Footer with Bangla Voice Trigger */}
<div className="flex items-center justify-between mt-2 pt-1.5 border-t border-gray-800/40 text-[9px]">
{msg.sender === "hermes" ? (
<button
onClick={() => {
soundFX.playClick();
speakText(msg.text);
}}
title="হার্মেসের বাংলা ভয়েস শুনুন (Replay Bangla Voice)"
className="text-cyan-400 hover:text-cyan-300 flex items-center gap-1 font-bold transition px-1.5 py-0.5 rounded bg-cyan-950/40 hover:bg-cyan-900/60 border border-cyan-500/20 active:scale-95"
>
<Volume2 className="w-2.5 h-2.5 text-cyan-400" />
<span>ভয়েস শুনুন</span>
</button>
) : (
<span className="text-gray-500 font-mono">YOU</span>
)}
<span className="text-gray-500 font-mono">{msg.timestamp}</span>
</div>
</div>
</div>
))}
@@ -1,7 +1,7 @@
"use client";
import React, { useState } from "react";
import { ExternalLink, ShieldCheck, RefreshCw, KeyRound, Server } from "lucide-react";
import { ExternalLink, ShieldCheck, RefreshCw, KeyRound, Server, Copy, Check, Sparkles } from "lucide-react";
import { soundFX } from "@/lib/soundEffects";
interface ExnessWebTerminalChartProps {
@@ -17,9 +17,19 @@ export const ExnessWebTerminalChart: React.FC<ExnessWebTerminalChartProps> = ({
}) => {
const [iframeKey, setIframeKey] = useState(0);
const [isLoading, setIsLoading] = useState(true);
const [copiedField, setCopiedField] = useState<string | null>(null);
// Official MetaQuotes / Exness WebTerminal Embed URL
const terminalUrl = `https://metatraderweb.app/trade?servers=${server}&trade_server=${server}&login=${accountId}&startup_mode=open_account&lang=en&save_password=off`;
// Modern Official MetaQuotes MetaTrader 5 (MT5) WebTerminal Engine
const terminalUrl = "https://web.metatrader.app/terminal?lang=en";
const handleCopy = (text: string, fieldName: string) => {
soundFX.playClick();
if (typeof navigator !== "undefined" && navigator.clipboard) {
navigator.clipboard.writeText(text);
setCopiedField(fieldName);
setTimeout(() => setCopiedField(null), 2000);
}
};
const handleRefresh = () => {
soundFX.playClick();
@@ -29,31 +39,49 @@ export const ExnessWebTerminalChart: React.FC<ExnessWebTerminalChartProps> = ({
const handleOpenExternal = () => {
soundFX.playClick();
window.open(terminalUrl, "_blank", "noopener,noreferrer");
window.open("https://my.exness.com/webterminal/", "_blank", "noopener,noreferrer");
};
return (
<div className="flex flex-col h-full w-full bg-[#050914] rounded-xl overflow-hidden relative border border-[#14233d]">
{/* Exness Header Strip */}
<div className="bg-[#081224] border-b border-[#14233d] px-3 py-1.5 flex items-center justify-between text-xs font-mono select-none">
{/* Exness MT5 Dedicated Top Strip */}
<div className="bg-[#081224] border-b border-[#14233d] px-3 py-1.5 flex items-center justify-between text-xs font-mono select-none flex-wrap gap-2">
<div className="flex items-center gap-2">
<div className="w-2 h-2 rounded-full bg-amber-400 animate-pulse" />
<span className="font-bold text-amber-400 flex items-center gap-1 text-[11px]">
<Server className="w-3 h-3 text-amber-400" />
EXNESS MT5 REALTERMINAL
<div className="w-2 h-2 rounded-full bg-emerald-400 animate-pulse shadow-sm shadow-emerald-400/50" />
<span className="font-bold text-gray-100 flex items-center gap-1.5 text-[11px]">
<Server className="w-3.5 h-3.5 text-cyan-400" />
<span>EXNESS MT5 WEBSUITE</span>
</span>
<span className="text-gray-400 text-[10px] hidden sm:inline">
&bull; Server: <strong className="text-gray-200">{server}</strong>
</span>
<span className="text-gray-400 text-[10px] hidden sm:inline">
&bull; Login: <strong className="text-cyan-300">#{accountId}</strong>
<span className="text-[9px] px-1.5 py-0.2 rounded bg-cyan-950/80 border border-cyan-500/40 text-cyan-300 font-bold">
MT5 ENGINE
</span>
</div>
<div className="flex items-center gap-2">
{/* 1-Click Fast Copy Credentials Helper */}
<div className="flex items-center gap-1.5 text-[10px]">
<button
onClick={() => handleCopy(server, "server")}
title="Click to copy server name"
className="px-2 py-0.5 rounded bg-[#050914] hover:bg-[#0b172a] border border-[#182e52] hover:border-cyan-500/40 text-gray-300 flex items-center gap-1 transition"
>
<span className="text-gray-500">Server:</span>
<strong className="text-amber-300 font-mono">{server}</strong>
{copiedField === "server" ? <Check className="w-2.5 h-2.5 text-emerald-400" /> : <Copy className="w-2.5 h-2.5 text-gray-400" />}
</button>
<button
onClick={() => handleCopy(accountId, "login")}
title="Click to copy login account number"
className="px-2 py-0.5 rounded bg-[#050914] hover:bg-[#0b172a] border border-[#182e52] hover:border-cyan-500/40 text-gray-300 flex items-center gap-1 transition"
>
<span className="text-gray-500">Login:</span>
<strong className="text-cyan-300 font-mono">#{accountId}</strong>
{copiedField === "login" ? <Check className="w-2.5 h-2.5 text-emerald-400" /> : <Copy className="w-2.5 h-2.5 text-gray-400" />}
</button>
<button
onClick={handleRefresh}
title="Reload Exness WebTerminal"
title="Reload MT5 WebTerminal"
className="p-1 rounded bg-[#0b172a] hover:bg-[#122240] border border-[#182e52] text-gray-300 transition"
>
<RefreshCw className="w-3 h-3 text-cyan-400" />
@@ -61,24 +89,24 @@ export const ExnessWebTerminalChart: React.FC<ExnessWebTerminalChartProps> = ({
<button
onClick={handleOpenExternal}
title="Open in full external window"
className="px-2 py-1 rounded bg-[#0b172a] hover:bg-[#122240] border border-[#182e52] text-gray-200 text-[10px] flex items-center gap-1 transition"
title="Launch Exness Official WebTerminal in new tab"
className="px-2 py-0.5 rounded bg-gradient-to-r from-amber-600 to-yellow-600 hover:from-amber-500 hover:to-yellow-500 text-black font-bold text-[10px] flex items-center gap-1 transition shadow-sm active:scale-95"
>
<ExternalLink className="w-2.5 h-2.5 text-amber-400" />
<span className="hidden sm:inline">POPUP</span>
<ExternalLink className="w-2.5 h-2.5 text-black" />
<span>EXNESS TERMINAL</span>
</button>
</div>
</div>
{/* Embedded MetaQuotes MT5 WebTerminal */}
{/* Embedded Official MetaTrader 5 (MT5) WebTerminal */}
<div className="flex-1 w-full h-full relative">
<iframe
key={iframeKey}
src={terminalUrl}
title="Exness MT5 Real WebTerminal"
title="MetaTrader 5 Real WebTerminal"
className="w-full h-full border-0"
style={{ minHeight: "450px" }}
allow="fullscreen; clipboard-write"
allow="fullscreen; clipboard-write; clipboard-read"
sandbox="allow-scripts allow-same-origin allow-popups allow-forms allow-modals"
onLoad={() => setIsLoading(false)}
/>
+10 -3
View File
@@ -155,12 +155,19 @@ export const TitanHeader: React.FC<TitanHeaderProps> = ({
{/* 1. Brand & Broker Connection (Left) */}
<div className="flex items-center gap-3 shrink-0">
<div className="flex items-center gap-2">
<div className="w-8 h-8 rounded-lg bg-gradient-to-br from-cyan-400 via-sky-600 to-blue-700 flex items-center justify-center font-black text-black text-sm shadow-lg shadow-cyan-500/20 border border-cyan-300/40">
AQ
<div className="w-8 h-8 rounded-lg overflow-hidden flex items-center justify-center shadow-lg shadow-cyan-500/30 border border-cyan-400/40 bg-[#040814] shrink-0 p-0.5">
<img
src="/assets/aura_trade_icon.svg"
alt="Aura Trade Emblem"
className="w-full h-full object-contain"
/>
</div>
<div>
<div className="flex items-center gap-1.5">
<span className="font-extrabold tracking-wider text-gray-100 text-sm font-hud">AURATRADE</span>
<span className="font-extrabold tracking-wider text-gray-100 text-sm font-hud flex items-center">
<span>AURA</span>
<span className="text-transparent bg-clip-text bg-gradient-to-r from-cyan-400 to-emerald-400 ml-0.5">TRADE</span>
</span>
<span className="text-[9px] font-mono px-1.5 py-0.5 rounded bg-cyan-950/70 border border-cyan-500/30 text-cyan-400 font-bold">
TITAN V2
</span>
@@ -63,12 +63,8 @@ export const InstallAppModal: React.FC<InstallAppModalProps> = ({
{/* Modal Header */}
<div className="flex items-center gap-3 mb-4">
<div className="w-12 h-12 rounded-xl bg-gradient-to-br from-cyan-500/20 to-amber-500/20 border border-cyan-500/40 flex items-center justify-center shadow-lg shadow-cyan-500/10">
{activeTab === "apple" ? (
<Apple className="w-6 h-6 text-amber-400" />
) : (
<Laptop className="w-6 h-6 text-cyan-400" />
)}
<div className="w-12 h-12 rounded-xl overflow-hidden border border-cyan-400/40 flex items-center justify-center shadow-lg shadow-cyan-500/20 bg-[#040814] shrink-0 p-1">
<img src="/assets/aura_trade_icon.svg" alt="Aura Trade App" className="w-full h-full object-contain" />
</div>
<div>
<div className="flex items-center gap-2">