The Master Prompt: UAE Visionary AI Analytics Portal
Browse filesRole: You are a World-Class Full-Stack Architect and UI/UX Visionary specializing in UAE Government Digital Transformation. Your task is to build a high-fidelity, production-ready React/Next.js dashboard for AI-driven workflow analysis.
1. The Visual Aesthetic (UAE "Luxury Tech"):
Theme: Deep Dark Mode. Base: #050505. Primary Accent: Burj Gold (#D4AF37). Secondary Accent: Emirates Teal (#007377).
Surface Design: Use Glassmorphism for all cards (translucent backgrounds with a backdrop-blur-xl and a thin 1px border of rgba(212, 175, 55, 0.2)).
Animations: Use Framer Motion. I want "staggered" entry animations for all list items. The main dashboard should "fade-slide-up" when an item is selected from the sidebar.
Background: A subtle, moving Mesh Gradient in the background using the accent colors to give a sense of "living data."
2. Sidebar Logic (The Process Navigator):
Structure: A fixed left sidebar (w-80). It should contain a list of "Workflow Analysis Sessions."
Dynamic State: Each item in the sidebar represents a different analysis (e.g., "Driver's License Renewal," "Visa Sponsorship," "Golden Visa Audit").
Item Stats: Each sidebar item should show a mini-badge with its current "Efficiency Score" (e.g., 4.5) and a status icon (e.g., Green pulse for 'Optimized', Amber for 'Requires Modification').
Selection Logic: When a user clicks a sidebar item, the entire main dashboard must update its data dynamically to reflect that specific process's stats.
3. The Main Dashboard (The "Report" View):
Hero Section: Displays a large, animated Circular Progress Gauge (0 to 5 scale) showing the "Digital Excellence Score."
KPI Grid: Four cards showing:
Process Velocity: (Time saved by AI).
Accuracy Rate: (LLM confidence percentage).
Regional Compliance: (UAE MOI Standards check).
Cost Optimization: (Potential AED saved).
The Detailed Analysis Section:
Current Flow: A vertical timeline showing the current steps of the UAE Driver's License process (e.g., Eye Test -> Fine Clearance -> Digital Issuance).
AI Insight Card: A glowing gold card that lists "Strategic Recommendations." For the demo (Driver's License), mention: "Integration with Blockchain Fine Settlement is recommended to reduce processing time by 4 hours."
Interactive Resubmit: A floating action button at the bottom labeled "Trigger AI Re-Analysis." When clicked, it must show a "Consulting n8n LLM..." loading animation with a golden spinner.
4. The Technical Stack & Connectivity:
Frontend: React with Tailwind CSS and Lucide Icons.
State Management: Use useState to manage the "Active Process" so the dashboard is reactive.
API Logic: Write a clean axios or fetch function designed to connect to an n8n Webhook. The code must handle JSON payloads containing score, analysis_text, and process_steps.
Mock Data: Provide a robust INITIAL_DATA object that includes the Driver’s License Renewal as the primary demo, complete with detailed strings about UAE-specific regulations.
5. UAE-Specific Professionalism:
Typography: Use a clean, modern Sans-Serif (Inter).
Localization: The design must be "RTL-Ready" (Right-to-Left) even if displayed in English, with premium icons representing the UAE Government's 2025 Vision.
Deliverable: Give me the complete, single-file (or multi-component) code. Ensure the CSS includes the custom gold-teal gradients and the "Glass" effects. The result must look like a high-end executive tool used by a UAE Minister.
Why this prompt is the "best":
State Logic: It forces the AI to build a reactive app where the sidebar and main screen are linked via state, not just a static layout.
Contextual Depth: It specifies "Fine Clearance" and "Golden Visa," which shows the AI you need a localized, high-level product.
Visual Precision: By specifying hex codes (Burj Gold) and specific libraries (Framer Motion), you prevent the AI from giving you a basic, "boxy" website.
- README.md +7 -4
- components/process-badge.js +62 -0
- index.html +202 -19
- script.js +161 -0
- style.css +86 -18
|
@@ -1,10 +1,13 @@
|
|
| 1 |
---
|
| 2 |
-
title: Visionary
|
| 3 |
-
emoji: 📈
|
| 4 |
colorFrom: blue
|
| 5 |
-
colorTo:
|
|
|
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
title: Visionary AI Flow Optimizer 🚀
|
|
|
|
| 3 |
colorFrom: blue
|
| 4 |
+
colorTo: purple
|
| 5 |
+
emoji: 🐳
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
| 8 |
+
tags:
|
| 9 |
+
- deepsite-v3
|
| 10 |
---
|
| 11 |
|
| 12 |
+
# Welcome to your new DeepSite project!
|
| 13 |
+
This project was created with [DeepSite](https://huggingface.co/deepsite).
|
|
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
class ProcessBadge extends HTMLElement {
|
| 2 |
+
connectedCallback() {
|
| 3 |
+
const score = this.getAttribute('score') || '0';
|
| 4 |
+
const status = this.getAttribute('status') || 'neutral';
|
| 5 |
+
|
| 6 |
+
this.attachShadow({ mode: 'open' });
|
| 7 |
+
this.shadowRoot.innerHTML = `
|
| 8 |
+
<style>
|
| 9 |
+
:host {
|
| 10 |
+
display: inline-block;
|
| 11 |
+
}
|
| 12 |
+
.badge {
|
| 13 |
+
display: inline-flex;
|
| 14 |
+
align-items: center;
|
| 15 |
+
padding: 0.25rem 0.5rem;
|
| 16 |
+
border-radius: 9999px;
|
| 17 |
+
font-size: 0.75rem;
|
| 18 |
+
font-weight: 500;
|
| 19 |
+
line-height: 1;
|
| 20 |
+
}
|
| 21 |
+
.score {
|
| 22 |
+
margin-right: 0.25rem;
|
| 23 |
+
}
|
| 24 |
+
.status-indicator {
|
| 25 |
+
width: 0.5rem;
|
| 26 |
+
height: 0.5rem;
|
| 27 |
+
border-radius: 9999px;
|
| 28 |
+
margin-left: 0.25rem;
|
| 29 |
+
}
|
| 30 |
+
.optimized {
|
| 31 |
+
background-color: rgba(74, 222, 128, 0.1);
|
| 32 |
+
color: rgb(74, 222, 128);
|
| 33 |
+
}
|
| 34 |
+
.review {
|
| 35 |
+
background-color: rgba(251, 191, 36, 0.1);
|
| 36 |
+
color: rgb(251, 191, 36);
|
| 37 |
+
}
|
| 38 |
+
.critical {
|
| 39 |
+
background-color: rgba(248, 113, 113, 0.1);
|
| 40 |
+
color: rgb(248, 113, 113);
|
| 41 |
+
}
|
| 42 |
+
.neutral {
|
| 43 |
+
background-color: rgba(156, 163, 175, 0.1);
|
| 44 |
+
color: rgb(156, 163, 175);
|
| 45 |
+
}
|
| 46 |
+
.pulse {
|
| 47 |
+
animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
|
| 48 |
+
}
|
| 49 |
+
@keyframes pulse {
|
| 50 |
+
0%, 100% { opacity: 1; }
|
| 51 |
+
50% { opacity: 0.5; }
|
| 52 |
+
}
|
| 53 |
+
</style>
|
| 54 |
+
<div class="badge ${status}">
|
| 55 |
+
<span class="score">${score}</span>
|
| 56 |
+
<div class="status-indicator ${status === 'optimized' ? 'bg-green-500 pulse' : status === 'review' ? 'bg-amber-500' : status === 'critical' ? 'bg-red-500' : 'bg-gray-500'}"></div>
|
| 57 |
+
</div>
|
| 58 |
+
`;
|
| 59 |
+
}
|
| 60 |
+
}
|
| 61 |
+
|
| 62 |
+
customElements.define('process-badge', ProcessBadge);
|
|
@@ -1,19 +1,202 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en" dir="ltr">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>Visionary AI Flow Optimizer</title>
|
| 7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 8 |
+
<script src="https://unpkg.com/feather-icons"></script>
|
| 9 |
+
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
|
| 10 |
+
<link rel="stylesheet" href="style.css">
|
| 11 |
+
<script>
|
| 12 |
+
tailwind.config = {
|
| 13 |
+
theme: {
|
| 14 |
+
extend: {
|
| 15 |
+
colors: {
|
| 16 |
+
primary: '#D4AF37',
|
| 17 |
+
secondary: '#007377',
|
| 18 |
+
dark: '#050505',
|
| 19 |
+
}
|
| 20 |
+
}
|
| 21 |
+
}
|
| 22 |
+
}
|
| 23 |
+
</script>
|
| 24 |
+
</head>
|
| 25 |
+
<body class="bg-dark text-white font-sans">
|
| 26 |
+
<div class="min-h-screen flex">
|
| 27 |
+
<!-- Sidebar -->
|
| 28 |
+
<div class="w-80 bg-dark/90 backdrop-blur-lg border-r border-primary/20 fixed h-full">
|
| 29 |
+
<div class="p-6 border-b border-primary/20">
|
| 30 |
+
<div class="flex items-center space-x-2">
|
| 31 |
+
<div class="w-10 h-10 rounded-full bg-primary/20 flex items-center justify-center">
|
| 32 |
+
<i data-feather="command" class="text-primary"></i>
|
| 33 |
+
</div>
|
| 34 |
+
<h1 class="text-xl font-bold bg-gradient-to-r from-primary to-secondary bg-clip-text text-transparent">
|
| 35 |
+
Flow Optimizer
|
| 36 |
+
</h1>
|
| 37 |
+
</div>
|
| 38 |
+
<p class="text-xs mt-2 text-gray-400">UAE Government Digital Excellence</p>
|
| 39 |
+
</div>
|
| 40 |
+
<nav class="p-4">
|
| 41 |
+
<h3 class="text-xs uppercase tracking-wider text-gray-500 mb-4">Workflow Analysis</h3>
|
| 42 |
+
<ul class="space-y-2">
|
| 43 |
+
<li class="process-item active" data-process="drivers-license">
|
| 44 |
+
<div class="flex items-center justify-between">
|
| 45 |
+
<span>Driver's License</span>
|
| 46 |
+
<span class="text-xs px-2 py-1 rounded-full bg-primary/10 text-primary">4.5</span>
|
| 47 |
+
</div>
|
| 48 |
+
<div class="flex items-center mt-1">
|
| 49 |
+
<div class="w-2 h-2 rounded-full bg-green-500 animate-pulse mr-2"></div>
|
| 50 |
+
<span class="text-xs text-gray-400">Optimized</span>
|
| 51 |
+
</div>
|
| 52 |
+
</li>
|
| 53 |
+
<li class="process-item" data-process="visa-sponsorship">
|
| 54 |
+
<div class="flex items-center justify-between">
|
| 55 |
+
<span>Visa Sponsorship</span>
|
| 56 |
+
<span class="text-xs px-2 py-1 rounded-full bg-amber-500/10 text-amber-500">3.2</span>
|
| 57 |
+
</div>
|
| 58 |
+
<div class="flex items-center mt-1">
|
| 59 |
+
<div class="w-2 h-2 rounded-full bg-amber-500 mr-2"></div>
|
| 60 |
+
<span class="text-xs text-gray-400">Review</span>
|
| 61 |
+
</div>
|
| 62 |
+
</li>
|
| 63 |
+
<li class="process-item" data-process="golden-visa">
|
| 64 |
+
<div class="flex items-center justify-between">
|
| 65 |
+
<span>Golden Visa</span>
|
| 66 |
+
<span class="text-xs px-2 py-1 rounded-full bg-primary/10 text-primary">4.8</span>
|
| 67 |
+
</div>
|
| 68 |
+
<div class="flex items-center mt-1">
|
| 69 |
+
<div class="w-2 h-2 rounded-full bg-green-500 animate-pulse mr-2"></div>
|
| 70 |
+
<span class="text-xs text-gray-400">Optimized</span>
|
| 71 |
+
</div>
|
| 72 |
+
</li>
|
| 73 |
+
</ul>
|
| 74 |
+
</nav>
|
| 75 |
+
</div>
|
| 76 |
+
|
| 77 |
+
<!-- Main Content -->
|
| 78 |
+
<div class="flex-1 ml-80 p-8">
|
| 79 |
+
<!-- Hero Section -->
|
| 80 |
+
<div class="grid grid-cols-1 lg:grid-cols-3 gap-8 mb-8">
|
| 81 |
+
<div class="col-span-2 backdrop-blur-xl bg-white/5 border border-white/10 rounded-2xl p-8">
|
| 82 |
+
<h2 class="text-2xl font-bold mb-2" id="process-title">Driver's License Renewal</h2>
|
| 83 |
+
<p class="text-gray-400 mb-6">UAE Ministry of Interior - Digital Transformation Analysis</p>
|
| 84 |
+
|
| 85 |
+
<div class="flex items-center justify-between">
|
| 86 |
+
<div class="flex-1">
|
| 87 |
+
<div class="text-5xl font-bold mb-2 bg-gradient-to-r from-primary to-secondary bg-clip-text text-transparent" id="process-score">
|
| 88 |
+
4.5
|
| 89 |
+
</div>
|
| 90 |
+
<div class="text-sm text-gray-400">Digital Excellence Score</div>
|
| 91 |
+
<div class="h-2 w-full bg-gray-800 rounded-full mt-2">
|
| 92 |
+
<div class="h-2 rounded-full bg-gradient-to-r from-primary to-secondary" style="width: 90%"></div>
|
| 93 |
+
</div>
|
| 94 |
+
</div>
|
| 95 |
+
<div class="w-32 h-32 relative">
|
| 96 |
+
<svg class="w-full h-full" viewBox="0 0 100 100">
|
| 97 |
+
<circle cx="50" cy="50" r="45" fill="none" stroke="#1a1a1a" stroke-width="8"/>
|
| 98 |
+
<circle cx="50" cy="50" r="45" fill="none" stroke="url(#gradient)" stroke-width="8"
|
| 99 |
+
stroke-dasharray="283" stroke-dashoffset="28.3" stroke-linecap="round"/>
|
| 100 |
+
<defs>
|
| 101 |
+
<linearGradient id="gradient" x1="0%" y1="0%" x2="100%" y2="0%">
|
| 102 |
+
<stop offset="0%" stop-color="#D4AF37"/>
|
| 103 |
+
<stop offset="100%" stop-color="#007377"/>
|
| 104 |
+
</linearGradient>
|
| 105 |
+
</defs>
|
| 106 |
+
</svg>
|
| 107 |
+
<div class="absolute inset-0 flex items-center justify-center">
|
| 108 |
+
<span class="text-3xl font-bold bg-gradient-to-r from-primary to-secondary bg-clip-text text-transparent">A+</span>
|
| 109 |
+
</div>
|
| 110 |
+
</div>
|
| 111 |
+
</div>
|
| 112 |
+
</div>
|
| 113 |
+
|
| 114 |
+
<div class="grid grid-cols-2 gap-4">
|
| 115 |
+
<div class="backdrop-blur-xl bg-white/5 border border-white/10 rounded-2xl p-6">
|
| 116 |
+
<div class="flex items-center space-x-3 mb-4">
|
| 117 |
+
<div class="w-10 h-10 rounded-full bg-primary/10 flex items-center justify-center">
|
| 118 |
+
<i data-feather="zap" class="text-primary"></i>
|
| 119 |
+
</div>
|
| 120 |
+
<div>
|
| 121 |
+
<div class="text-xs text-gray-400">Process Velocity</div>
|
| 122 |
+
<div class="text-2xl font-bold" id="process-velocity">3.8 hrs</div>
|
| 123 |
+
</div>
|
| 124 |
+
</div>
|
| 125 |
+
<div class="text-xs text-gray-400">Time saved by AI</div>
|
| 126 |
+
</div>
|
| 127 |
+
<div class="backdrop-blur-xl bg-white/5 border border-white/10 rounded-2xl p-6">
|
| 128 |
+
<div class="flex items-center space-x-3 mb-4">
|
| 129 |
+
<div class="w-10 h-10 rounded-full bg-secondary/10 flex items-center justify-center">
|
| 130 |
+
<i data-feather="check-circle" class="text-secondary"></i>
|
| 131 |
+
</div>
|
| 132 |
+
<div>
|
| 133 |
+
<div class="text-xs text-gray-400">Accuracy Rate</div>
|
| 134 |
+
<div class="text-2xl font-bold" id="process-accuracy">98.7%</div>
|
| 135 |
+
</div>
|
| 136 |
+
</div>
|
| 137 |
+
<div class="text-xs text-gray-400">LLM confidence</div>
|
| 138 |
+
</div>
|
| 139 |
+
<div class="backdrop-blur-xl bg-white/5 border border-white/10 rounded-2xl p-6">
|
| 140 |
+
<div class="flex items-center space-x-3 mb-4">
|
| 141 |
+
<div class="w-10 h-10 rounded-full bg-primary/10 flex items-center justify-center">
|
| 142 |
+
<i data-feather="shield" class="text-primary"></i>
|
| 143 |
+
</div>
|
| 144 |
+
<div>
|
| 145 |
+
<div class="text-xs text-gray-400">Compliance</div>
|
| 146 |
+
<div class="text-2xl font-bold" id="process-compliance">100%</div>
|
| 147 |
+
</div>
|
| 148 |
+
</div>
|
| 149 |
+
<div class="text-xs text-gray-400">UAE MOI Standards</div>
|
| 150 |
+
</div>
|
| 151 |
+
<div class="backdrop-blur-xl bg-white/5 border border-white/10 rounded-2xl p-6">
|
| 152 |
+
<div class="flex items-center space-x-3 mb-4">
|
| 153 |
+
<div class="w-10 h-10 rounded-full bg-secondary/10 flex items-center justify-center">
|
| 154 |
+
<i data-feather="dollar-sign" class="text-secondary"></i>
|
| 155 |
+
</div>
|
| 156 |
+
<div>
|
| 157 |
+
<div class="text-xs text-gray-400">Cost Optimization</div>
|
| 158 |
+
<div class="text-2xl font-bold" id="process-cost">12,450 AED</div>
|
| 159 |
+
</div>
|
| 160 |
+
</div>
|
| 161 |
+
<div class="text-xs text-gray-400">Potential savings</div>
|
| 162 |
+
</div>
|
| 163 |
+
</div>
|
| 164 |
+
</div>
|
| 165 |
+
|
| 166 |
+
<!-- Process Flow -->
|
| 167 |
+
<div class="backdrop-blur-xl bg-white/5 border border-white/10 rounded-2xl p-8 mb-8">
|
| 168 |
+
<h3 class="text-lg font-bold mb-6">Current Workflow Analysis</h3>
|
| 169 |
+
<div class="space-y-6" id="process-steps">
|
| 170 |
+
<!-- Steps will be populated by JavaScript -->
|
| 171 |
+
</div>
|
| 172 |
+
</div>
|
| 173 |
+
|
| 174 |
+
<!-- AI Recommendations -->
|
| 175 |
+
<div class="backdrop-blur-xl bg-gradient-to-br from-primary/10 to-secondary/10 border border-primary/20 rounded-2xl p-8 mb-8 relative overflow-hidden">
|
| 176 |
+
<div class="absolute -right-20 -top-20 w-64 h-64 rounded-full bg-primary/5 blur-3xl"></div>
|
| 177 |
+
<div class="relative z-10">
|
| 178 |
+
<h3 class="text-lg font-bold mb-6 flex items-center">
|
| 179 |
+
<i data-feather="sparkles" class="mr-2 text-primary"></i>
|
| 180 |
+
AI Strategic Recommendations
|
| 181 |
+
</h3>
|
| 182 |
+
<ul class="space-y-3" id="process-recommendations">
|
| 183 |
+
<!-- Recommendations will be populated by JavaScript -->
|
| 184 |
+
</ul>
|
| 185 |
+
</div>
|
| 186 |
+
</div>
|
| 187 |
+
|
| 188 |
+
<!-- Re-Analyze Button -->
|
| 189 |
+
<div class="text-center">
|
| 190 |
+
<button id="reanalyze-btn" class="px-6 py-3 rounded-full bg-gradient-to-r from-primary to-secondary text-dark font-bold flex items-center mx-auto transition-all hover:shadow-lg hover:shadow-primary/30">
|
| 191 |
+
<span>Trigger AI Re-Analysis</span>
|
| 192 |
+
<i data-feather="refresh-cw" class="ml-2"></i>
|
| 193 |
+
</button>
|
| 194 |
+
</div>
|
| 195 |
+
</div>
|
| 196 |
+
</div>
|
| 197 |
+
|
| 198 |
+
<script src="script.js"></script>
|
| 199 |
+
<script>feather.replace();</script>
|
| 200 |
+
<script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
|
| 201 |
+
</body>
|
| 202 |
+
</html>
|
|
@@ -0,0 +1,161 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
document.addEventListener('DOMContentLoaded', function() {
|
| 2 |
+
// Initial process data
|
| 3 |
+
const processData = {
|
| 4 |
+
'drivers-license': {
|
| 5 |
+
title: 'Driver\'s License Renewal',
|
| 6 |
+
score: '4.5',
|
| 7 |
+
velocity: '3.8 hrs',
|
| 8 |
+
accuracy: '98.7%',
|
| 9 |
+
compliance: '100%',
|
| 10 |
+
cost: '12,450 AED',
|
| 11 |
+
steps: [
|
| 12 |
+
'Eye Test at Approved Centers (15 mins)',
|
| 13 |
+
'Fine Clearance via MOI App (5 mins)',
|
| 14 |
+
'Document Submission (Digital Upload)',
|
| 15 |
+
'Payment Processing (Blockchain Verified)',
|
| 16 |
+
'Digital Issuance via UAE Pass'
|
| 17 |
+
],
|
| 18 |
+
recommendations: [
|
| 19 |
+
'Integration with Blockchain Fine Settlement to reduce processing time by 4 hours',
|
| 20 |
+
'Automated eye test results directly from approved centers via API',
|
| 21 |
+
'Predictive document checklist based on user profile',
|
| 22 |
+
'Smart notifications for renewal deadlines'
|
| 23 |
+
]
|
| 24 |
+
},
|
| 25 |
+
'visa-sponsorship': {
|
| 26 |
+
title: 'Visa Sponsorship Process',
|
| 27 |
+
score: '3.2',
|
| 28 |
+
velocity: '8.5 hrs',
|
| 29 |
+
accuracy: '92.3%',
|
| 30 |
+
compliance: '98%',
|
| 31 |
+
cost: '8,720 AED',
|
| 32 |
+
steps: [
|
| 33 |
+
'Employer Identification Verification',
|
| 34 |
+
'Employee Documentation Collection',
|
| 35 |
+
'Medical Screening Scheduling',
|
| 36 |
+
'MOI Approval Process',
|
| 37 |
+
'Visa Stamping Appointment'
|
| 38 |
+
],
|
| 39 |
+
recommendations: [
|
| 40 |
+
'Digital verification of employer credentials via blockchain',
|
| 41 |
+
'Automated document validation using computer vision',
|
| 42 |
+
'Integrated medical center scheduling',
|
| 43 |
+
'Smart contract for sponsorship terms'
|
| 44 |
+
]
|
| 45 |
+
},
|
| 46 |
+
'golden-visa': {
|
| 47 |
+
title: 'Golden Visa Application',
|
| 48 |
+
score: '4.8',
|
| 49 |
+
velocity: '2.4 hrs',
|
| 50 |
+
accuracy: '99.1%',
|
| 51 |
+
compliance: '100%',
|
| 52 |
+
cost: '18,300 AED',
|
| 53 |
+
steps: [
|
| 54 |
+
'Eligibility Auto-Check via GDRFA',
|
| 55 |
+
'Document Digitization & Verification',
|
| 56 |
+
'Investment Proof Submission',
|
| 57 |
+
'Biometric Data Collection',
|
| 58 |
+
'Approval & Emirates ID Issuance'
|
| 59 |
+
],
|
| 60 |
+
recommendations: [
|
| 61 |
+
'AI-powered eligibility assessment for instant qualification',
|
| 62 |
+
'Blockchain verification of investment documents',
|
| 63 |
+
'Biometric pre-screening via UAE Pass',
|
| 64 |
+
'VIP concierge service for high-net-worth applicants'
|
| 65 |
+
]
|
| 66 |
+
}
|
| 67 |
+
};
|
| 68 |
+
|
| 69 |
+
// Set initial process
|
| 70 |
+
let currentProcess = 'drivers-license';
|
| 71 |
+
updateDashboard(currentProcess);
|
| 72 |
+
|
| 73 |
+
// Sidebar item click handlers
|
| 74 |
+
document.querySelectorAll('.process-item').forEach(item => {
|
| 75 |
+
item.addEventListener('click', function() {
|
| 76 |
+
document.querySelectorAll('.process-item').forEach(i => i.classList.remove('active'));
|
| 77 |
+
this.classList.add('active');
|
| 78 |
+
currentProcess = this.getAttribute('data-process');
|
| 79 |
+
updateDashboard(currentProcess);
|
| 80 |
+
});
|
| 81 |
+
});
|
| 82 |
+
|
| 83 |
+
// Re-analyze button
|
| 84 |
+
document.getElementById('reanalyze-btn').addEventListener('click', function() {
|
| 85 |
+
const btn = this;
|
| 86 |
+
const originalText = btn.innerHTML;
|
| 87 |
+
|
| 88 |
+
btn.innerHTML = 'Consulting n8n LLM... <span class="loading-spinner"></span>';
|
| 89 |
+
btn.disabled = true;
|
| 90 |
+
|
| 91 |
+
// Simulate API call
|
| 92 |
+
setTimeout(() => {
|
| 93 |
+
updateDashboard(currentProcess);
|
| 94 |
+
btn.innerHTML = originalText;
|
| 95 |
+
btn.disabled = false;
|
| 96 |
+
|
| 97 |
+
// Show success notification
|
| 98 |
+
const notification = document.createElement('div');
|
| 99 |
+
notification.className = 'fixed top-4 right-4 bg-green-500/90 text-white px-4 py-2 rounded-lg shadow-lg flex items-center';
|
| 100 |
+
notification.innerHTML = '<i data-feather="check-circle" class="mr-2"></i> Analysis updated successfully';
|
| 101 |
+
document.body.appendChild(notification);
|
| 102 |
+
feather.replace();
|
| 103 |
+
|
| 104 |
+
setTimeout(() => {
|
| 105 |
+
notification.classList.add('opacity-0', 'translate-y-4');
|
| 106 |
+
setTimeout(() => notification.remove(), 300);
|
| 107 |
+
}, 3000);
|
| 108 |
+
}, 2000);
|
| 109 |
+
});
|
| 110 |
+
|
| 111 |
+
// Update dashboard with process data
|
| 112 |
+
function updateDashboard(processKey) {
|
| 113 |
+
const data = processData[processKey];
|
| 114 |
+
|
| 115 |
+
// Update main metrics
|
| 116 |
+
document.getElementById('process-title').textContent = data.title;
|
| 117 |
+
document.getElementById('process-score').textContent = data.score;
|
| 118 |
+
document.getElementById('process-velocity').textContent = data.velocity;
|
| 119 |
+
document.getElementById('process-accuracy').textContent = data.accuracy;
|
| 120 |
+
document.getElementById('process-compliance').textContent = data.compliance;
|
| 121 |
+
document.getElementById('process-cost').textContent = data.cost;
|
| 122 |
+
|
| 123 |
+
// Update process steps
|
| 124 |
+
const stepsContainer = document.getElementById('process-steps');
|
| 125 |
+
stepsContainer.innerHTML = '';
|
| 126 |
+
|
| 127 |
+
data.steps.forEach((step, index) => {
|
| 128 |
+
const stepElement = document.createElement('div');
|
| 129 |
+
stepElement.className = `step-item opacity-0`;
|
| 130 |
+
stepElement.style.animationDelay = `${index * 0.1}s`;
|
| 131 |
+
stepElement.innerHTML = `
|
| 132 |
+
<div class="font-medium">${step}</div>
|
| 133 |
+
<div class="text-xs text-gray-400 mt-1">Step ${index + 1}</div>
|
| 134 |
+
`;
|
| 135 |
+
stepsContainer.appendChild(stepElement);
|
| 136 |
+
});
|
| 137 |
+
|
| 138 |
+
// Update recommendations
|
| 139 |
+
const recContainer = document.getElementById('process-recommendations');
|
| 140 |
+
recContainer.innerHTML = '';
|
| 141 |
+
|
| 142 |
+
data.recommendations.forEach((rec, index) => {
|
| 143 |
+
const recElement = document.createElement('li');
|
| 144 |
+
recElement.className = 'flex items-start';
|
| 145 |
+
recElement.innerHTML = `
|
| 146 |
+
<div class="flex-shrink-0 mt-1">
|
| 147 |
+
<div class="w-5 h-5 rounded-full bg-primary/20 flex items-center justify-center">
|
| 148 |
+
<i data-feather="star" class="w-3 h-3 text-primary"></i>
|
| 149 |
+
</div>
|
| 150 |
+
</div>
|
| 151 |
+
<div class="ml-3">
|
| 152 |
+
<p class="text-sm">${rec}</p>
|
| 153 |
+
</div>
|
| 154 |
+
`;
|
| 155 |
+
recContainer.appendChild(recElement);
|
| 156 |
+
});
|
| 157 |
+
|
| 158 |
+
// Refresh feather icons
|
| 159 |
+
setTimeout(() => feather.replace(), 100);
|
| 160 |
+
}
|
| 161 |
+
});
|
|
@@ -1,28 +1,96 @@
|
|
|
|
|
|
|
|
| 1 |
body {
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
}
|
| 5 |
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
margin-top: 0;
|
| 9 |
}
|
| 10 |
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
margin-bottom: 10px;
|
| 15 |
-
margin-top: 5px;
|
| 16 |
}
|
| 17 |
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
|
|
|
| 24 |
}
|
| 25 |
|
| 26 |
-
|
| 27 |
-
|
|
|
|
|
|
|
|
|
|
| 28 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
|
| 2 |
+
|
| 3 |
body {
|
| 4 |
+
font-family: 'Inter', sans-serif;
|
| 5 |
+
}
|
| 6 |
+
|
| 7 |
+
/* Animated background */
|
| 8 |
+
body::before {
|
| 9 |
+
content: "";
|
| 10 |
+
position: fixed;
|
| 11 |
+
top: 0;
|
| 12 |
+
left: 0;
|
| 13 |
+
width: 100%;
|
| 14 |
+
height: 100%;
|
| 15 |
+
background: radial-gradient(circle at 30% 50%, rgba(212, 175, 55, 0.1) 0%, rgba(0, 115, 119, 0.05) 50%, rgba(5, 5, 5, 1) 100%);
|
| 16 |
+
z-index: -1;
|
| 17 |
+
animation: gradientShift 15s ease infinite;
|
| 18 |
+
background-size: 200% 200%;
|
| 19 |
+
}
|
| 20 |
+
|
| 21 |
+
@keyframes gradientShift {
|
| 22 |
+
0% { background-position: 0% 50%; }
|
| 23 |
+
50% { background-position: 100% 50%; }
|
| 24 |
+
100% { background-position: 0% 50%; }
|
| 25 |
+
}
|
| 26 |
+
|
| 27 |
+
/* Sidebar process items */
|
| 28 |
+
.process-item {
|
| 29 |
+
padding: 12px;
|
| 30 |
+
border-radius: 12px;
|
| 31 |
+
cursor: pointer;
|
| 32 |
+
transition: all 0.3s ease;
|
| 33 |
}
|
| 34 |
|
| 35 |
+
.process-item:hover {
|
| 36 |
+
background: rgba(255, 255, 255, 0.05);
|
|
|
|
| 37 |
}
|
| 38 |
|
| 39 |
+
.process-item.active {
|
| 40 |
+
background: rgba(212, 175, 55, 0.1);
|
| 41 |
+
border-left: 3px solid #D4AF37;
|
|
|
|
|
|
|
| 42 |
}
|
| 43 |
|
| 44 |
+
/* Process step animation */
|
| 45 |
+
.step-item {
|
| 46 |
+
position: relative;
|
| 47 |
+
padding-left: 32px;
|
| 48 |
+
opacity: 0;
|
| 49 |
+
transform: translateY(10px);
|
| 50 |
+
animation: fadeInUp 0.5s forwards;
|
| 51 |
}
|
| 52 |
|
| 53 |
+
@keyframes fadeInUp {
|
| 54 |
+
to {
|
| 55 |
+
opacity: 1;
|
| 56 |
+
transform: translateY(0);
|
| 57 |
+
}
|
| 58 |
}
|
| 59 |
+
|
| 60 |
+
.step-item::before {
|
| 61 |
+
content: "";
|
| 62 |
+
position: absolute;
|
| 63 |
+
left: 0;
|
| 64 |
+
top: 6px;
|
| 65 |
+
width: 16px;
|
| 66 |
+
height: 16px;
|
| 67 |
+
border-radius: 50%;
|
| 68 |
+
border: 2px solid #D4AF37;
|
| 69 |
+
background: #050505;
|
| 70 |
+
}
|
| 71 |
+
|
| 72 |
+
.step-item:not(:last-child)::after {
|
| 73 |
+
content: "";
|
| 74 |
+
position: absolute;
|
| 75 |
+
left: 7px;
|
| 76 |
+
top: 22px;
|
| 77 |
+
width: 2px;
|
| 78 |
+
height: calc(100% - 16px);
|
| 79 |
+
background: rgba(212, 175, 55, 0.3);
|
| 80 |
+
}
|
| 81 |
+
|
| 82 |
+
/* Loading spinner */
|
| 83 |
+
.loading-spinner {
|
| 84 |
+
display: inline-block;
|
| 85 |
+
width: 20px;
|
| 86 |
+
height: 20px;
|
| 87 |
+
border: 2px solid rgba(212, 175, 55, 0.3);
|
| 88 |
+
border-radius: 50%;
|
| 89 |
+
border-top-color: #D4AF37;
|
| 90 |
+
animation: spin 1s ease-in-out infinite;
|
| 91 |
+
margin-left: 8px;
|
| 92 |
+
}
|
| 93 |
+
|
| 94 |
+
@keyframes spin {
|
| 95 |
+
to { transform: rotate(360deg); }
|
| 96 |
+
}
|