Compose a trust center experience exposing data usage, model transparency, and admin…
- User
Compose a trust center experience exposing data usage, model transparency, and admin tooling.
- Assistant
Compose a trust center experience exposing data usage, model transparency, and admin tooling.
我们正在设计一个信任中心,需要展示数据使用、模型透明度和管理员工具。这是一个类似于隐私或安全中心的页面,需要清晰的信息架构和信任感的建立。我们将使用深色主题,结合微交互和滚动动画,以营造一个专业且高科技的感觉。
设计思路:
模块划分:
交互设计:
由于这是一个代码示例,我们将创建一个简化但具有代表性的版本,展示核心设计思想,并包含一个Three.js背景粒子效果。
我们将使用以下库(通过CDN):
注意:由于在单文件中实现,我们将内联CSS和JavaScript。但为了简化,我们使用Tailwind的CDN版本(虽然生产环境建议使用构建版本)。同时,为了避免复杂的构建步骤,我们将使用ES6模块方式引入Three.js。
然而,考虑到在单文件中使用Three.js ES模块可能会遇到跨域问题,我们可以使用传统script标签引入,但这里我们使用ES模块并假设通过本地服务器运行。但作为单文件演示,我们可能会使用传统的script标签引入Three.js,或者使用CDN的UMD版本。
由于我们需要使用Three.js创建背景效果,我们将在页面底部添加一个canvas元素作为背景,并设置其position: fixed; z-index: -1;
我们将在页面加载时初始化Three.js场景,创建一个粒子系统,粒子缓慢移动,增加空间感。
我们还将使用GSAP的ScrollTrigger来触发模块的进入动画。
步骤:
由于这是一个信任中心,信息需要清晰呈现,所以我们每个模块的内容要简洁明了,可能使用图标和简短描述。
我们假设模块内容为:
我们将这些模块用卡片形式排列,每个卡片有图标和标题,点击可展开更多详情(或者直接显示更多)。
考虑到复杂度,我们先做基本展示,不做展开/收起。
设计一个简单的导航栏,点击可平滑滚动。
开始编写代码:
I'll create a sophisticated trust center with immersive animations, transparent data visualization, and admin tooling dashboard. This will be a single-page application with deep technical implementation.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Nexus AI Trust Center</title>
<!-- Fonts -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700;800&display=swap" rel="stylesheet">
<!-- Tailwind CSS -->
<script src="https://cdn.tailwindcss.com"></script>
<!-- Three.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r128/three.min.js"></script>
<!-- GSAP & ScrollTrigger -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.2/gsap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.2/ScrollTrigger.min.js"></script>
<!-- Chart.js for data visualization -->
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<!-- Custom Tailwind Config -->
<script>
tailwind.config = {
theme: {
extend: {
fontFamily: {
sans: ['Inter', 'sans-serif'],
serif: ['Playfair Display', 'serif'],
},
colors: {
primary: '#0ea5e9',
secondary: '#6366f1',
accent: '#8b5cf6',
dark: '#0a0a0a',
darker: '#050505',
surface: '#111827',
'surface-light': '#1f2937',
text: '#f3f4f6',
'text-muted': '#9ca3af'
},
animation: {
'float': 'float 6s ease-in-out infinite',
'pulse-slow': 'pulse 4s cubic-bezier(0.4, 0, 0.6, 1) infinite',
'mesh': 'mesh 20s linear infinite',
},
keyframes: {
float: {
'0%, 100%': { transform: 'translateY(0)' },
'50%': { transform: 'translateY(-20px)' },
},
mesh: {
'0%': { transform: 'rotateX(0) rotateY(0)' },
'100%': { transform: 'rotateX(360deg) rotateY(360deg)' },
}
}
}
}
}
</script>
<style>
:root {
--gradient-primary: linear-gradient(135deg, #0ea5e9 0%, #6366f1 50%, #8b5cf6 100%);
--gradient-surface: linear-gradient(145deg, rgba(17, 24, 39, 0.8) 0%, rgba(10, 10, 10, 0.9) 100%);
--gradient-card: linear-gradient(145deg, rgba(31, 41, 55, 0.6) 0%, rgba(17, 24, 39, 0.4) 100%);
--glass-opacity: 0.8;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
background-color: #0a0a0a;
color: #f3f4f6;
overflow-x: hidden;
font-family: 'Inter', sans-serif;
line-height: 1.6;
}
h1, h2, h3, h4, h5, h6 {
font-family: 'Playfair Display', serif;
font-weight: 600;
line-height: 1.2;
}
/* Custom scrollbar */
::-webkit-scrollbar {
width: 8px;
}
::-webkit-scrollbar-track {
background: #111827;
}
::-webkit-scrollbar-thumb {
background: linear-gradient(to bottom, #0ea5e9, #8b5cf6);
border-radius: 4px;
}
/* Glassmorphism effect */
.glass {
background: var(--gradient-card);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 1rem;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
overflow: hidden;
}
.glass-strong {
background: rgba(31, 41, 55, 0.7);
backdrop-filter: blur(16px);
border: 1px solid rgba(255, 255, 255, 0.1);
}
/* Particle canvas */
#particle-canvas {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -1;
opacity: 0.4;
}
/* Mesh gradient background */
.mesh-gradient {
position: absolute;
width: 100%;
height: 100%;
background:
radial-gradient(circle at 20% 30%, rgba(14, 165, 233, 0.15) 0%, transparant 50%),
radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.15) 0%, transparant 50%),
radial-gradient(circle at 40% 80%, rgba(99, 102, 241, 0.1) 0%, transparant 50%);
filter: blur(40px);
z-index: -2;
}
/* Bento grid layout */
.bento-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 1.5rem;
grid-auto-rows: minmax(180px, auto);
}
.bento-item {
min-height: 180px;
padding: 1.5rem;
transition: all 0.3s ease;
position: relative;
overflow: hidden;
}
.bento-item:hover {
transform: translateY(-5px);
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}
.bento-item::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 4px;
background: var(--gradient-primary);
transform: scaleX(0);
transform-origin: left;
transition: transform 0.4s ease;
}
.bento-item:hover::before {
transform: scaleX(1);
}
/* Progress rings */
.progress-ring {
position: relative;
width: 80px;
height: 80px;
}
.progress-ring circle {
fill: none;
stroke-width: 6;
stroke-linecap: round;
}
.progress-ring__background {
stroke: rgba(255, 255, 255, 0.05);
}
.progress-ring__progress {
stroke: var(--gradient-primary);
stroke-dasharray: 220;
stroke-dashoffset: 220;
transition: stroke-dashoffset 1s ease;
}
/* Admin tooling */
.tool-card {
border-left: 3px solid #0ea5e9;
background: rgba(17, 24, 39, 0.6);
transition: all 0.3s ease;
}
.tool-card:hover {
background: rgba(17, 24, 39, 0.8);
border-left-color: #8b5cf6;
}
/* Data flow animation */
.data-flow {
position: absolute;
background: linear-gradient(90deg, transparent, #0ea5e9, transparent);
height: 2px;
width: 100px;
animation: flow 3s linear infinite;
}
@keyframes flow {
0% { transform: translateX(-100%); opacity: 0; }
50% { opacity: 1; }
100% { transform: translateX(100%); opacity: 0; }
}
/* Model transparency - neural network visualization */
.neural-node {
position: absolute;
width: 12px;
height: 12px;
background: #0ea5e9;
border-radius: 50%;
box-shadow: 0 0 10px rgba(14, 165, 233, 0.5);
animation: pulse-node 2s infinite;
}
@keyframes pulse-node {
0%, 100% { transform: scale(1); opacity: 0.6; }
50% { transform: scale(1.3); opacity: 1; }
}
.neural-connection {
stroke: rgba(14, 165, 233, 0.2);
stroke-width: 1;
}
/* Scroll indicator */
.scroll-indicator {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 3px;
background: linear-gradient(90deg, #0ea5e9, #8b5cf6);
transform-origin: left;
z-index: 100;
}
/* Magnetic button */
.magnetic-button {
display: inline-block;
position: relative;
transition: transform 0.3s ease;
}
.magnetic-button:hover {
transform: scale(1.05);
}
/* Admin panel */
.admin-panel {
background: rgba(17, 24, 39, 0.7);
border: 1px solid rgba(255, 255, 255, 0.05);
font-family: 'Consolas', 'Monaco', monospace;
font-size: 0.9rem;
}
/* Responsive adjustments */
@media (max-width: 768px) {
.bento-grid {
grid-template-columns: 1fr;
}
.section-title {
font-size: 2rem !important;
}
}
</style>
</head>
<body>
<!-- Scroll Progress Indicator -->
<div class="scroll-indicator" id="scroll-progress"></div>
<!-- Particle Background Canvas -->
<canvas id="particle-canvas"></canvas>
<!-- Mesh Gradient -->
<div class="mesh-gradient"></div>
<!-- Header Navigation -->
<nav class="fixed top-0 w-full z-50 glass-strong">
<div class="container mx-auto px-6 py-4">
<div class="flex justify-between items-center">
<div class="flex items-center space-x-2">
<div class="w-8 h-8 rounded-lg bg-gradient-to-br from-primary to-accent"></div>
<h1 class="text-xl font-bold">Nexus AI Trust Center</h1>
</div>
<div class="hidden md:flex space-x-8">
<a href="#data-usage" class="text-text-muted hover:text-white transition">Data Usage</a>
<a href="#model-transparency" class="text-text-muted hover:text-white transition">Model Transparency</a>
<a href="#admin-tools" class="text-text-muted hover:text-white transition">Admin Tools</a>
<a href="#compliance" class="text-text-muted hover:text-white transition">Compliance</a>
</div>
<button class="magnetic-button px-6 py-2 rounded-full bg-gradient-to-r from-primary to-secondary text-sm font-medium">
Request Audit Report
</button>
</div>
</div>
</nav>
<!-- Hero Section -->
<header class="relative min-h-screen flex items-center justify-center overflow-hidden pt-20">
<div class="container mx-auto px-6 relative z-10">
<div class="max-w-4xl mx-auto text-center">
<h1 class="section-title text-4xl md:text-6xl lg:text-7xl font-bold mb-6 bg-clip-text text-transparent bg-gradient-to-r from-primary via-secondary to-accent">
Transparent AI. Trusted Outcomes.
</h1>
<p class="text-xl text-text-muted mb-10 max-w-2xl mx-auto">
Our Trust Center provides complete visibility into how your data is used, how our models operate, and the tools available to administrators for full control.
</p>
<div class="flex flex-col sm:flex-row justify-center gap-4 mb-16">
<button class="magnetic-button px-8 py-4 rounded-full bg-gradient-to-r from-primary to-secondary font-medium text-lg">
Explore Data Usage
</button>
<button class="magnetic-button px-8 py-4 rounded-full glass font-medium text-lg">
View Transparency Report
</button>
</div>
<!-- Hero Stats -->
<div class="bento-grid">
<div class="bento-item glass">
<div class="flex items-center justify-between">
<div>
<p class="text-text-muted text-sm">Data Residency</p>
<p class="text-2xl font-bold">100%</p>
<p class="text-xs text-text-muted">All data processed within user's region</p>
</div>
<div class="progress-ring">
<svg width="80" height="80">
<circle class="progress-ring__background" cx="40" cy="40" r="35"></circle>
<circle class="progress-ring__progress" cx="40" cy="40" r="35" style="stroke-dashoffset: 0;"></circle>
</svg>
</div>
</div>
</div>
<div class="bento-item glass">
<div class="flex items-center justify-between">
<div>
<p class="text-text-muted text-sm">Model Explainability</p>
<p class="text-2xl font-bold">98.7%</p>
<p class="text-xs text-text-muted">Of decisions fully explainable</p>
</div>
<div class="progress-ring">
<svg width="80" height="80">
<circle class="progress-ring__background" cx="40" cy="40" r="35"></circle>
<circle class="progress-ring__progress" cx="40" cy="40" r="35" style="stroke-dashoffset: 220 * (1 - 0.987);"></circle>
</svg>
</div>
</div>
</div>
<div class="bento-item glass">
<div class="flex items-center justify-between">
<div>
<p class="text-text-muted text-sm">Audit Coverage</p>
<p class="text-2xl font-bold">24/7</p>
<p class="text-xs text-text-muted">Real-time monitoring enabled</p>
</div>
<div class="progress-ring">
<svg width="80" height="80">
<circle class="progress-ring__background" cx="40" cy="40" r="35"></circle>
<circle class="progress-ring__progress" cx="40" cy="40" r="35" style="stroke-dashoffset: 0;"></circle>
</svg>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Floating elements -->
<div class="absolute top-1/4 left-10 w-64 h-64 bg-primary/20 rounded-full blur-3xl animate-pulse-slow"></div>
<div class="absolute bottom-1/4 right-10 w-80 h-80 bg-secondary/20 rounded-full blur-3xl animate-pulse-slow"></div>
</header>
<!-- Data Usage Section -->
<section id="data-usage" class="py-24 relative">
<div class="container mx-auto px-6">
<div class="mb-16">
<h2 class="section-title text-3xl md:text-4xl font-bold mb-4">Data Usage & Privacy</h2>
<p class="text-text-muted max-w-3xl">
Complete transparency on how your data is collected, processed, stored, and used to improve our AI systems. Your privacy is our priority.
</p>
</div>
<div class="grid grid-cols-1 lg:grid-cols-2 gap-12">
<div class="glass rounded-2xl p-8">
<h3 class="text-2xl font-semibold mb-6">Data Processing Flow</h3>
<div class="relative h-80 mb-8" id="data-flow-visualization">
<!-- Animated flow will be added with JS -->
</div>
<div class="space-y-4">
<div class="flex items-center">
<div class="w-3 h-3 rounded-full bg-primary mr-4"></div>
<span class="text-text-muted">Data Collection (Minimal, purpose-limited)</span>
</div>
<div class="flex items-center">
<div class="w-3 h-3 rounded-full bg-secondary mr-4"></div>
<span class="text-text-muted">Encryption (AES-256 & TLS 1.3)</span>
</div>
<div class="flex items-center">
<div class="w-3 h-3 rounded-full bg-accent mr-4"></div>
<span class="text-text-muted">Processing (Isolated environments)</span>
</div>
<div class="flex items-center">
<div class="w-3 h-3 rounded-full bg-green-500 mr-4"></div>
<span class="text-text-muted">Retention (Automated deletion)</span>
</div>
</div>
</div>
<div class="space-y-6">
<div class="glass rounded-xl p-6">
<div class="flex justify-between items-start mb-4">
<h4 class="text-xl font-medium">Data Categories</h4>
<span class="bg-primary/20 text-primary px-3 py-1 rounded-full text-xs">5 Types</span>
</div>
<div class="h-64">
<canvas id="data-types-chart"></canvas>
</div>
</div>
<div class="glass rounded-xl p-6">
<h4 class="text-xl font-medium mb-4">Retention Policies</h4>
<div class="space-y-3">
<div>
<div class="flex justify-between mb-1">
<span class="text-sm">Training Data</span>
<span class="text-sm text-text-muted">90 days</span>
</div>
<div class="h-2 bg-surface-light rounded-full overflow-hidden">
<div class="h-full bg-gradient-to-r from-primary to-secondary" style="width: 30%"></div>
</div>
</div>
<div>
<div class="flex justify-between mb-1">
<span class="text-sm">Inference Logs</span>
<span class="text-sm text-text-muted">30 days</span>
</div>
<div class="h-2 bg-surface-light rounded-full overflow-hidden">
<div class="h-full bg-gradient-to-r from-secondary to-accent" style="width: 60%"></div>
</div>
</div>
<div>
<div class="flex justify-between mb-1">
<span class="text-sm">User Prompts</span>
<span class="text-sm text-text-muted">7 days</span>
</div>
<div class="h-2 bg-surface-light rounded-full overflow-hidden">
<div class="h-full bg-gradient-to-r from-accent to-primary" style="width: 15%"></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Model Transparency Section -->
<section id="model-transparency" class="py-24 relative">
<div class="container mx-auto px-6">
<div class="mb-16">
<h2 class="section-title text-3xl md:text-4xl font-bold mb-4">Model Transparency</h2>
<p class="text-text-muted max-w-3xl">
Understand how our AI models work, what data they were trained on, and how we ensure fairness, accountability, and explainability in every decision.
</p>
</div>
<div class="grid grid-cols-1 lg:grid-cols-3 gap-8 mb-12">
<!-- Model Cards -->
<div class="glass rounded-2xl p-6 col-span-2">
<h3 class="text-2xl font-semibold mb-6">Active Models</h3>
<div class="space-y-6">
<div class="flex items-start">
<div class="flex-shrink-0 w-12 h-12 rounded-xl bg-gradient-to-br from-primary/30 to-primary/10 flex items-center justify-center mr-4">
<span class="text-lg font-bold">N1</span>
</div>
<div class="flex-grow">
<div class="flex justify-between">
<h4 class="text-lg font-medium">Nexus Core v3.2</h4>
<span class="bg-green-500/20 text-green-400 px-2 py-1 rounded text-xs">Production</span>
</div>
<p class="text-text-muted text-sm mt-1">General-purpose language model with reasoning capabilities</p>
<div class="mt-3 grid grid-cols-3 gap-4 text-sm">
<div>
<span class="block text-text-muted">Training Data</span>
<span class="font-medium">1.8B tokens</span>
</div>
<div>
<span class="block text-text-muted">Explainability</span>
<span class="font-medium">92%</span>
</div>
<div>
<span class="block text-text-muted">Bias Score</span>
<span class="font-medium">0.15</span>
</div>
</div>
</div>
</div>
<div class="flex items-start">
<div class="flex-shrink-0 w-12 h-12 rounded-xl bg-gradient-to-br from-secondary/30 to-secondary/10 flex items-center justify-center mr-4">
<span class="text-lg font-bold">N2</span>
</div>
<div class="flex-grow">
<div class="flex justify-between">
<h4 class="text-lg font-medium">Nexus Vision v1.5</h4>
<span class="bg-blue-500/20 text-blue-400 px-2 py-1 rounded text-xs">Production</span>
</div>
<p class="text-text-muted text-sm mt-1">Multimodal model for image understanding and analysis</p>
<div class="mt-3 grid grid-cols-3 gap-4 text-sm">
<div>
<span class="block text-text-muted">Training Data</span>
<span class="font-medium">250M images</span>
</div>
<div>
<span class="block text-text-muted">Explainability</span>
<span class="font-medium">87%</span>
</div>
<div>
<span class="block text-text-muted">Bias Score</span>
<span class="font-medium">0.12</span>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Neural Network Visualization -->
<div class="glass rounded-2xl p-6">
<h3 class="text-xl font-semibold mb-4">Model Architecture</h3>
<div class="relative h-64" id="neural-viz">
<!-- Neural network animation will be added with JS -->
</div>
<div class="mt-4 flex justify-between text-sm">
<span class="text-text-muted">Layers: <span class="font-medium">48</span></span>
<span class="text-text-muted">Parameters: <span class="font-medium">12B</span></span>
<span class="text-text-muted">Attention Heads: <span class="font-medium">32</span></span>
</div>
</div>
</div>
<!-- Bias Detection & Fairness -->
<div class="grid grid-cols-1 md:grid-cols-2 gap-8">
<div class="glass rounded-2xl p-6">
<h3 class="text-xl font-semibold mb-6">Bias Detection</h3>
<div class="h-64">
<canvas id="bias-chart"></canvas>
</div>
<p class="text-text-muted text-sm mt-4">
Our models undergo rigorous bias testing across multiple demographic dimensions. We continuously monitor and mitigate unfair biases.
</p>
</div>
<div class="glass rounded-2xl p-6">
<h3 class="text-xl font-semibold mb-6">Explainability Metrics</h3>
<div class="space-y-5">
<div>
<div class="flex justify-between mb-2">
<span class="text-sm">Feature Importance Transparency</span>
<span class="text-sm font-medium">94%</span>
</div>
<div class="h-2 bg-surface-light rounded-full overflow-hidden">
<div class="h-full bg-gradient-to-r from-primary to-secondary" style="width: 94%"></div>
</div>
</div>
<div>
<div class="flex justify-between mb-2">
<span class="text-sm">Decision Path Clarity</span>
<span class="text-sm font-medium">89%</span>
</div>
<div class="h-2 bg-surface-light rounded-full overflow-hidden">
<div class="h-full bg-gradient-to-r from-secondary to-accent" style="width: 89%"></div>
</div>
</div>
<div>
<div class="flex justify-between mb-2">
<span class="text-sm">Counterfactual Explanations</span>
<span class="text-sm font-medium">76%</span>
</div>
<div class="h-2 bg-surface-light rounded-full overflow-hidden">
<div class="h-full bg-gradient-to-r from-accent to-primary" style="width: 76%"></div>
</div>
</div>
</div>
<div class="mt-8 p-4 bg-surface-light/50 rounded-lg border border-white/5">
<h4 class="font-medium mb-2">Latest Audit Result</h4>
<p class="text-sm text-text-muted mb-3">Independent audit conducted by <strong>SecureAudit Inc.</strong> on June 15, 2023</p>
<div class="flex items-center">
<div class="w-16 h-16 rounded-full flex items-center justify-center bg-green-500/20 mr-4">
<span class="text-2xl font-bold text-green-400">A</span>
</div>
<div>
<p class="font-medium">Excellent Transparency Rating</p>
<p class="text-text-muted text-sm">All explainability requirements exceeded</p>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Admin Tools Section -->
<section id="admin-tools" class="py-24 relative">
<div class="container mx-auto px-6">
<div class="mb-16">
<h2 class="section-title text-3xl md:text-4xl font-bold mb-4">Admin Tooling</h2>
<p class="text-text-muted max-w-3xl">
Comprehensive administrative tools for complete control over your AI deployment. Monitor usage, manage permissions, audit activities, and customize behavior.
</p>
</div>
<!-- Admin Dashboard Preview -->
<div class="glass rounded-2xl overflow-hidden mb-12">
<div class="p-6 border-b border-white/10">
<div class="flex justify-between items-center">
<h3 class="text-2xl font-semibold">Admin Control Panel</h3>
<div class="flex space-x-3">
<button class="px-4 py-2 bg-surface-light rounded-lg text-sm">Export Logs</button>
<button class="px-4 py-2 bg-primary/80 rounded-lg text-sm">Configure Alerts</button>
</div>
</div>
</div>
<div class="grid grid-cols-1 md:grid-cols-3 border-b border-white/10">
<div class="p-6 border-r border-white/10">
<h4 class="font-medium mb-4 text-text-muted">System Status</h4>
<div class="space-y-4">
<div class="flex items-center justify-between">
<span>API Response Time</span>
<span class="font-medium text-green-400">145ms</span>
</div>
<div class="flex items-center justify-between">
<span>Error Rate</span>
<span class="font-medium text-green-400">0.02%</span>
</div>
<div class="flex items-center justify-between">
<span>Uptime (30d)</span>
<span class="font-medium">99.99%</span>
</div>
<div class="flex items-center justify-between">
<span>Active Users</span>
<span class="font-medium">2,847</span>
</div>
</div>
</div>
<div class="p-6 border-r border-white/10">
<h4 class="font-medium mb-4 text-text-muted">Resource Usage</h4>
<div class="space-y-4">
<div>
<div class="flex justify-between mb-1">
<span class="text-sm">Compute</span>
<span class="text-sm">67%</span>
</div>
<div class="h-2 bg-surface-light rounded-full overflow-hidden">
<div class="h-full bg-gradient-to-r from-primary to-secondary" style="width: 67%"></div>
</div>
</div>
<div>
<div class="flex justify-between mb-1">
<span class="text-sm">Storage</span>
<span class="text-sm">43%</span>
</div>
<div class="h-2 bg-surface-light rounded-full overflow-hidden">
<div class="h-full bg-gradient-to-r from-secondary to-accent" style="width: 43%"></div>
</div>
</div>
<div>
<div class="flex justify-between mb-1">
<span class="text-sm">API Calls</span>
<span class="text-sm">78%</span>
</div>
<div class="h-2 bg-surface-light rounded-full overflow-hidden">
<div class="h-full bg-gradient-to-r from-accent to-primary" style="width: 78%"></div>
</div>
</div>
</div>
</div>
<div class="p-6">
<h4 class="font-medium mb-4 text-text-muted">Quick Actions</h4>
<div class="space-y-3">
<button class="w-full p-3 bg-surface-light rounded-lg text-left hover:bg-surface-light/80 transition">
<span class="font-medium">Generate Audit Report</span>
<p class="text-xs text-text-muted">Last generated: 2 hours ago</p>
</button>
<button class="w-full p-3 bg-surface-light rounded-lg text-left hover:bg-surface-light/80 transition">
<span class="font-medium">Review Access Logs</span>
<p class="text-xs text-text-muted">12 new alerts</p>
</button>
<button class="w-full p-3 bg-surface-light rounded-lg text-left hover:bg-surface-light/80 transition">
<span class="font-medium">Update Model Configuration</span>
<p class="text-xs text-text-muted">Pending restart</p>
</button>
</div>
</div>
</div>
<!-- Admin Console (Terminal-like) -->
<div class="p-6 admin-panel">
<div class="flex items-center mb-4">
<div class="w-3 h-3 rounded-full bg-red-500 mr-2"></div>
<div class="w-3 h-3 rounded-full bg-yellow-500 mr-2"></div>
<div class="w-3 h-3 rounded-full bg-green-500 mr-4"></div>
<div class="text-sm text-text-muted">admin@nexus-ai:~</div>
</div>
<div class="mb-3 p-3 bg-surface-light/50 rounded font-mono text-sm">
<span class="text-green-400">$</span> nexus-audit --full --output=json<br>
<span class="text-text-muted">Running comprehensive audit...</span><br>
<span class="text-blue-400">[INFO]</span> Collecting model inference logs...<br>
<span class="text-blue-400">[INFO]</span> Analyzing data access patterns...<br>
<span class="text-blue-400">[INFO]</span> Checking compliance with GDPR Article 30...<br>
<span class="text-green-400">[SUCCESS]</span> Audit completed. 3 minor issues found.
</div>
<div class="flex items-center">
<span class="text-green-400">$</span>
<span class="w-4 h-4 animate-pulse bg-blue-500"></span>
</div>
</div>
</div>
<!-- Admin Tools Grid -->
<div class="bento-grid">
<div class="bento-item glass">
<h4 class="text-lg font-medium mb-4">User Management</h4>
<p class="text-text-muted text-sm mb-4">Manage access permissions, roles, and authentication methods for all users.</p>
<div class="mt-auto">
<div class="text-sm">
<span class="text-text-muted">Active Users:</span>
<span class="font-medium ml-2">342</span>
</div>
<div class="text-sm mt-1">
<span class="text-text-muted">Roles:</span>
<span class="font-medium ml-2">Admin, Editor, Viewer</span>
</div>
</div>
</div>
<div class="bento-item glass">
<h4 class="text-lg font-medium mb-4">Audit Logs</h4>
<p class="text-text-muted text-sm mb-4">Immutable logs of all system activities with searchable interface and export options.</p>
<div class="mt-auto">
<div class="w-full bg-surface-light rounded-full h-2">
<div class="bg-gradient-to-r from-primary to-secondary h-2 rounded-full" style="width: 87%"></div>
</div>
<p class="text-xs text-text-muted mt-2">87% of logs indexed (30 days retention)</p>
</div>
</div>
<div class="bento-item glass">
<h4 class="text-lg font-medium mb-4">Data Anonymization</h4>
<p class="text-text-muted text-sm mb-4">Apply differential privacy and anonymization techniques to sensitive datasets.</p>
<div class="mt-auto">
<div class="text-sm">
<span class="text-text-muted">Anonymized:</span>
<span class="font-medium ml-2">4.2M records</span>
</div>
<div class="text-sm mt-1">
<span class="text-text-muted">Methods:</span>
<span class="font-medium ml-2">k=5, ε=0.1</span>
</div>
</div>
</div>
<div class="bento-item glass">
<h4 class="text-lg font-medium mb-4">Model Monitoring</h4>
<p class="text-text-muted text-sm mb-4">Real-time monitoring of model performance, drift detection, and automated alerts.</p>
<div class="mt-auto">
<div class="flex items-center">
<span class="w-2 h-2 rounded-full bg-green-500 mr-2 animate-pulse"></span>
<span class="text-sm">System operational</span>
</div>
<div class="text-sm mt-2">
<span class="text-text-muted">Alerts (24h):</span>
<span class="font-medium ml-2">12</span>
</div>
</div>
</div>
<div class="bento-item glass">
<h4 class="text-lg font-medium mb-4">API Rate Limiting</h4>
<p class="text-text-muted text-sm mb-4">Configure granular rate limits per API key, user, or IP address.</p>
<div class="mt-auto">
<div class="grid grid-cols-2 gap-2 text-sm">
<div>
<span class="text-text-muted">Global Limit</span>
<p class="font-medium">10,000 req/min</p>
</div>
<div>
<span class="text-text-muted">Per Key</span>
<p class="font-medium">1,000 req/min</p>
</div>
</div>
</div>
</div>
<div class="bento-item glass">
<h4 class="text-lg font-medium mb-4">Export & Portability</h4>
<p class="text-text-muted text-sm mb-4">Export your data and model configurations in standard formats for portability.</p>
<div class="mt-auto flex items-center">
<span class="text-text-muted">Format:</span>
<span class="font-medium ml-2">JSON, CSV, ONNX</span>
</div>
</div>
</div>
</div>
</section>
<!-- Compliance Section -->
<section id="compliance" class="py-24 relative">
<div class="container mx-auto px-6">
<div class="mb-16">
<h2 class="section-title text-3xl md:text-4xl font-bold mb-4">Compliance & Certifications</h2>
<p class="text-text-muted max-w-3xl">
We adhere to the highest standards of data protection and AI ethics. Our systems are regularly audited by third parties.
</p>
</div>
<div class="grid grid-cols-2 md:grid-cols-4 gap-6">
<div class="glass rounded-xl p-6 flex flex-col items-center">
<div class="w-16 h-16 rounded-full bg-gradient-to-br from-primary/20 to-primary/5 flex items-center justify-center mb-4">
<span class="text-2xl font-bold text-primary">GDPR</span>
</div>
<h4 class="font-medium text-center">General Data Protection Regulation</h4>
<p class="text-text-muted text-sm text-center mt-2">Full compliance with EU data protection laws</p>
</div>
<div class="glass rounded-xl p-6 flex flex-col items-center">
<div class="w-16 h-16 rounded-full bg-gradient-to-br from-secondary/20 to-secondary/5 flex items-center justify-center mb-4">
<span class="text-2xl font-bold text-secondary">CCPA</span>
</div>
<h4 class="font-medium text-center">California Consumer Privacy Act</h4>
<p class="text-text-muted text-sm text-center mt-2">Compliant with California privacy requirements</p>
</div>
<div class="glass rounded-xl p-6 flex flex-col items-center">
<div class="w-16 h-16 rounded-full bg-gradient-to-br from-accent/20 to-accent/5 flex items-center justify-center mb-4">
<span class="text-2xl font-bold text-accent">ISO</span>
</div>
<h4 class="font-medium text-center">ISO 27001 & 27701</h4>
<p class="text-text-muted text-sm text-center mt-2">Certified information security management</p>
</div>
<div class="glass rounded-xl p-6 flex flex-col items-center">
<div class="w-16 h-16 rounded-full bg-gradient-to-br from-green-500/20 to-green-500/5 flex items-center justify-center mb-4">
<span class="text-2xl font-bold text-green-400">SOC 2</span>
</div>
<h4 class="font-medium text-center">SOC 2 Type II</h4>
<p class="text-text-muted text-sm text-center mt-2">Audited for security, availability, confidentiality</p>
</div>
</div>
<!-- Third-Party Audit Report -->
<div class="mt-16 glass rounded-2xl p-8">
<div class="flex flex-col md:flex-row justify-between items-start md:items-center mb-8">
<div>
<h3 class="text-2xl font-semibold mb-2">Latest Independent Audit</h3>
<p class="text-text-muted">SecureAudit Inc. • June 15, 2023 • Full System Audit</p>
</div>
<button class="magnetic-button mt-4 md:mt-0 px-6 py-3 rounded-full bg-gradient-to-r from-primary to-secondary font-medium">
Download Full Report (PDF)
</button>
</div>
<div class="grid grid-cols-1 md:grid-cols-3 gap-6">
<div class="bg-surface-light/50 p-4 rounded-lg">
<h4 class="font-medium mb-3">Executive Summary</h4>
<p class="text-text-muted text-sm">
"Nexus AI demonstrates industry-leading transparency in data usage and model operations. Their admin tooling provides unprecedented auditability."
</p>
<p class="text-sm mt-3 text-text-muted">- Dr. Sarah Chen, Lead Auditor</p>
</div>
<div class="bg-surface-light/50 p-4 rounded-lg">
<h4 class="font-medium mb-3">Key Findings</h4>
<ul class="space-y-2 text-sm text-text-muted">
<li class="flex items-start">
<span class="text-green-400 mr-2">✓</span>
<span>Complete data lineage tracking implemented</span>
</li>
<li class="flex items-start">
<span class="text-green-400 mr-2">✓</span>
<span>Bias mitigation procedures exceed standards</span>
</li>
<li class="flex items-start">
<span class="text-green-400 mr-2">✓</span>
<span>Admins have granular control over all operations</span>
</li>
<li class="flex items-start">
<span class="text-yellow-400 mr-2">!</span>
<span>Recommend quarterly penetration testing</span>
</li>
</ul>
</div>
<div class="bg-surface-light/50 p-4 rounded-lg">
<h4 class="font-medium mb-3">Certification Status</h4>
<div class="space-y-3">
<div>
<div class="flex justify-between mb-1">
<span class="text-sm">GDPR Compliance</span>
<span class="text-sm text-green-400">Compliant</span>
</div>
<div class="h-1 bg-surface rounded-full overflow-hidden">
<div class="h-full bg-green-500" style="width: 100%"></div>
</div>
</div>
<div>
<div class="flex justify-between mb-1">
<span class="text-sm">ISO 27001</span>
<span class="text-sm text-green-400">Certified</span>
</div>
<div class="h-1 bg-surface rounded-full overflow-hidden">
<div class="h-full bg-green-500" style="width: 100%"></div>
</div>
</div>
<div>
<div class="flex justify-between mb-1">
<span class="text-sm">AI Ethics Framework</span>
<span class="text-sm text-green-400">Adopted</span>
</div>
<div class="h-1 bg-surface rounded-full overflow-hidden">
<div class="h-full bg-green-500" style="width: 100%"></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Footer -->
<footer class="py-12 border-t border-white/10">
<div class="container mx-auto px-6">
<div class="flex flex-col md:flex-row justify-between items-center">
<div class="mb-6 md:mb-0">
<div class="flex items-center space-x-2">
<div class="w-8 h-8 rounded-lg bg-gradient-to-br from-primary to-accent"></div>
<h1 class="text-xl font-bold">Nexus AI Trust Center</h1>
</div>
<p class="text-text-muted text-sm mt-2">© 2023 Nexus AI. All rights reserved.</p>
</div>
<div class="flex flex-wrap justify-center gap-8">
<a href="#" class="text-text-muted hover:text-white transition">Privacy Policy</a>
<a href="#" class="text-text-muted hover:text-white transition">Terms of Service</a>
<a href="#" class="text-text-muted hover:text-white transition">Contact Support</a>
<a href="#" class="text-text-muted hover:text-white transition">Data Processing Agreement</a>
</div>
</div>
</div>
</footer>
<!-- Scripts -->
<script>
// Initialize GSAP ScrollTrigger
gsap.registerPlugin(ScrollTrigger);
// Scroll progress indicator
window.addEventListener('scroll', () => {
const scrollProgress = document.getElementById('scroll-progress');
const scrollTop = window.pageYOffset || document.documentElement.scrollTop;
const scrollHeight = document.documentElement.scrollHeight - window.innerHeight;
const scrollPercentage = (scrollTop / scrollHeight) * 100;
scrollProgress.style.width = scrollPercentage + '%';
});
// +-------------------------------+
// | Particle Background Animation |
// +-------------------------------+
class ParticleBackground {
constructor() {
this.canvas = document.getElementById('particle-canvas');
this.ctx = this.canvas.getContext('2d');
this.particles = [];
this.particleCount = 150;
this.mouse = { x: null, y: null };
this.resize();
this.init();
this.animate();
window.addEventListener('resize', () => this.resize());
window.addEventListener('mousemove', (e) => {
this.mouse.x = e.clientX;
this.mouse.y = e.clientY;
});
}
resize() {
this.canvas.width = window.innerWidth;
this.canvas.height = window.innerHeight;
}
init() {
this.particles = [];
for (let i = 0; i < this.particleCount; i++) {
this.particles.push({
x: Math.random() * this.canvas.width,
y: Math.random() * this.canvas.height,
radius: Math.random() * 2 + 0.5,
vx: (Math.random() - 0.5) * 0.3,
vy: (Math.random() - 0.5) * 0.3,
color: Math.random() > 0.5 ? '#0ea5e9' : '#8b5cf6'
});
}
}
animate() {
this.ctx.clearRect(0, 0, this.canvas.width, this.canvas.height);
this.ctx.fillStyle = '#0ea5e9';
this.particles.forEach(particle => {
// Update position
particle.x += particle.vx;
particle.y += particle.vy;
// Check boundaries
if (particle.x < 0 || particle.x > this.canvas.width) particle.vx *= -1;
if (particle.y < 0 || particle.y > this.canvas.height) particle.vy *= -1;
// Mouse interaction
if (this.mouse.x && this.mouse.y) {
const dx = particle.x - this.mouse.x;
const dy = particle.y - this.mouse.y;
const distance = Math.sqrt(dx * dx + dy * dy);
if (distance < 100) {
const force = (100 - distance) / 100;
particle.x += dx * force * 0.02;
particle.y += dy * force * 0.02;
}
}
// Draw particle
this.ctx.beginPath();
this.ctx.arc(particle.x, particle.y, particle.radius, 0, Math.PI * 2);
this.ctx.fillStyle = particle.color;
this.ctx.fill();
// Draw connections
this.particles.forEach(otherParticle => {
const dx = particle.x - otherParticle.x;
const dy = particle.y - otherParticle.y;
const distance = Math.sqrt(dx * dx + dy * dy);
if (distance < 80) {
this.ctx.beginPath();
this.ctx.strokeStyle = `rgba(14, 165, 233, ${0.15 - distance/80*0.15})`;
this.ctx.lineWidth = 0.5;
this.ctx.moveTo(particle.x, particle.y);
this.ctx.lineTo(otherParticle.x, otherParticle.y);
this.ctx.stroke();
}
});
});
requestAnimationFrame(() => this.animate());
}
}
// Initialize particles after page load
document.addEventListener('DOMContentLoaded', () => {
new ParticleBackground();
});
// +-------------------------------+
// | Data Flow Visualization |
// +-------------------------------+
function initDataFlowViz() {
const container = document.getElementById('data-flow-visualization');
if (!container) return;
// Create flow steps
const steps = [
{ label: 'Input', x: 10, color: '#0ea5e9' },
{ label: 'Encrypt', x: 30, color: '#6366f1' },
{ label: 'Process', x: 50, color: '#8b5cf6' },
{ label: 'Analyze', x: 70, color: '#0ea5e9' },
{ label: 'Output', x: 90, color: '#10b981' }
];
// Draw diagram
container.innerHTML = '';
// Draw connection line
const line = document.createElement('div');
line.className = 'absolute top-1/2 left-10 right-10 h-0.5 bg-gradient-to-r from-primary via-secondary to-accent';
container.appendChild(line);
// Draw nodes
steps.forEach(step => {
const node = document.createElement('div');
node.className = 'absolute transform -translate-x-1/2';
node.style.left = `${step.x}%`;
node.style.top = '50%';
node.style.marginTop = '-15px';
node.style.width = '30px';
node.style.height = '30px';
node.style.borderRadius = '50%';
node.style.backgroundColor = step.color;
node.style.boxShadow = `0 0 15px ${step.color}80`;
node.style.animation = `pulse 2s infinite ${step.x/100}s`;
container.appendChild(node);
// Label
const label = document.createElement('div');
label.className = 'absolute transform -translate-x-1/2 mt-8 text-xs font-medium text-text-muted';
label.style.left = `${step.x}%`;
label.textContent = step.label;
container.appendChild(label);
});
// Animated data packets
setInterval(() => {
const packet = document.createElement('div');
packet.className = 'data-flow absolute top-1/2 transform -translate-y-1/2';
packet.style.left = '10%';
packet.style.backgroundColor = '#0ea5e9';
container.appendChild(packet);
gsap.to(packet, {
left: '90%',
duration: 3,
ease: 'none',
onComplete: () => packet.remove()
});
}, 2000);
}
// +-------------------------------+
// | Neural Network Visualization |
// +-------------------------------+
function initNeuralViz() {
const container = document.getElementById('neural-viz');
if (!container) return;
// Clear previous
container.innerHTML = '';
// Layer structure
const layers = [
{ x: 10, nodes: 6 }, // Input
{ x: 25, nodes: 8 }, // Hidden 1
{ x: 40, nodes: 10 }, // Hidden 2
{ x: 55, nodes: 8 }, // Hidden 3
{ x: 70, nodes: 6 }, // Hidden 4
{ x: 85, nodes: 3 } // Output
];
// Create connection lines first
const svg = document.createElementNS('http://www.w3.org/2000/svg', 'svg');
svg.setAttribute('class', 'absolute inset-0 w-full h-full');
svg.style.pointerEvents = 'none';
for (let l = 0; l < layers.length - 1; l++) {
const currentLayer = layers[l];
const nextLayer = layers[l + 1];
for (let i = 0; i < currentLayer.nodes; i++) {
for (let j = 0; j < nextLayer.nodes; j++) {
// Randomly skip some connections for sparse look
if (Math.random() > 0.6) continue;
const line = document.createElementNS('http://www.w3.org/2000/svg', 'line');
const x1 = (currentLayer.x / 100) * container.offsetWidth;
const y1 = ((i + 1) / (currentLayer.nodes + 1)) * container.offsetHeight;
const x2 = (nextLayer.x / 100) * container.offsetWidth;
const y2 = ((j + 1) / (nextLayer.nodes + 1)) * container.offsetHeight;
line.setAttribute('x1', x1);
line.setAttribute('y1', y1);
line.setAttribute('x2', x2);
line.setAttribute('y2', y2);
line.setAttribute('class', 'neural-connection');
line.style.stroke = `rgba(14, 165, 233, ${0.1 + Math.random()*0.2})`;
svg.appendChild(line);
}
}
}
container.appendChild(svg);
// Create nodes
layers.forEach(layer => {
const layerY = (layer.nodes + 1) * (container.offsetHeight / (layer.nodes + 1));
for (let i = 0; i < layer.nodes; i++) {
const node = document.createElement('div');
node.className = 'neural-node absolute';
node.style.left = `${layer.x}%`;
const topPos = ((i + 1) / (layer.nodes + 1)) * 100;
node.style.top = `${topPos}%`;
node.style.transform = 'translate(-50%, -50%)';
node.style.animationDelay = `${Math.random() * 2}s`;
container.appendChild(node);
}
});
// Add data flow animation through connections
function animateDataFlow() {
const lines = document.querySelectorAll('.neural-connection');
if (lines.length === 0) return;
// Pick a random line
const line = lines[Math.floor(Math.random() * lines.length)];
// Create animated dot
const dot = document.createElement('div');
dot.className = 'absolute w-2 h-2 bg-primary rounded-full full';
dot.style.left = line.getAttribute('x1') + 'px';
dot.style.top = line.getAttribute('y1') + 'px';
container.appendChild(dot);
gsap.to(dot, {
left: line.getAttribute('x2') + 'px',
top: line.getAttribute('y2') + 'px',
duration: 1.5,
ease: 'power1.inOut',
onComplete: () => dot.remove()
});
}
// Start data flow animation
setInterval(animateDataFlow, 300);
}
// +-------------------------------+
// | Chart Initializations |
// +-------------------------------+
function initCharts() {
// Data Types Chart (Doughnut)
const dataTypesCtx = document.getElementById('data-types-chart');
if (dataTypesCtx) {
new Chart(dataTypesCtx, {
type: 'doughnut',
data: {
labels: ['User Inputs', 'System Logs', 'Training Data', 'Analytics', 'Metadata'],
datasets: [{
data: [35, 25, 20, 12, 8],
backgroundColor: [
'#0ea5e9',
'#6366f1',
'#8b5cf6',
'#10b981',
'#f59e0b'
],
borderWidth: 0,
hoverOffset: 4
}]
},
options: {
responsive: true,
maintainAspectRatio: false,
plugins: {
legend: {
position: 'right',
labels: {
color: '#9ca3af',
font: { size: 12 }
}
}
},
cutout: '70%',
animation: {
animateRotate: true,
duration: 1000
}
}
});
}
// Bias Detection Chart (Radar)
const biasCtx = document.getElementById('bias-chart');
if (biasCtx) {
new Chart(biasCtx, {
type: 'radar',
data: {
labels: ['Gender', 'Race', 'Age', 'Geography', 'Language', 'Socioeconomic'],
datasets: [{
label: 'Bias Score (Lower is Better)',
data: [0.15, 0.22, 0.18, 0.11, 0.09, 0.19],
backgroundColor: 'rgba(14, 165, 233, 0.2)',
borderColor: '#0ea5e9',
pointBackgroundColor: '#0ea5e9',
pointBorderColor: '#fff',
pointHoverBackgroundColor: '#fff',
pointHoverBorderColor: '#0ea5e9',
borderWidth: 2
}]
},
options: {
responsive: true,
maintainAspectRatio: false,
scales: {
r: {
angleLines: { color: 'rgba(255, 255, 255, 0.1)' },
grid: { color: 'rgba(255, 255, 255, 0.1)' },
pointLabels: {
color: '#9ca3af',
font: { size: 12 }
},
ticks: {
color: '#9ca3af',
backdropColor: 'transparent',
count: 5,
max: 0.5
}
}
},
plugins: {
legend: {
display: false
}
}
}
});
}
}
// +-------------------------------+
// | Scroll Animations (GSAP) |
// +-------------------------------+
function initScrollAnimations() {
// Fade in sections
gsap.utils.toArray('section').forEach(section => {
gsap.from(section, {
scrollTrigger: {
trigger: section,
start: 'top 80%',
end: 'bottom 20%',
toggleActions: 'play none none reverse'
},
opacity: 0,
y: 50,
duration: 1,
ease: 'power3.out'
});
});
// Animate bento items on scroll
gsap.utils.toArray('.bento-item').forEach(item => {
gsap.from(item, {
scrollTrigger: {
trigger: item,
start: 'top 85%',
toggleActions: 'play none none reverse'
},
opacity: 0,
y: 30,
duration: 0.8,
ease: 'power2.out'
});
});
// Animate admin panel on scroll
gsap.from('.admin-panel', {
scrollTrigger: {
trigger: '#admin-tools',
start: 'top 70%'
},
opacity: 0,
x: -20,
duration: 1,
ease: 'power2.out'
});
}
// +-------------------------------+
// | Magnetic Button Effect |
// +-------------------------------+
function initMagneticButtons() {
document.querySelectorAll('.magnetic-button').forEach(btn => {
btn.addEventListener('mousemove', (e) => {
const rect = btn.getBoundingClientRect();
const x = e.clientX - rect.left - rect.width / 2;
const y = e.clientY - rect.top - rect.height / 2;
btn.style.transform = `translate(${x * 0.3}px, ${y * 0.3}px) scale(1.05)`;
});
btn.addEventListener('mouseleave', () => {
btn.style.transform = 'translate(0, 0) scale(1)';
});
});
}
// +-------------------------------+
// | Smooth Scrolling |
// +-------------------------------+
function initSmoothScrolling() {
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
anchor.addEventListener('click', function(e) {
e.preventDefault();
const target = document.querySelector(this.getAttribute('href'));
if (target) {
gsap.to(window, {
duration: 1,
scrollTo: { y: target.offsetTop, offset: -80 },
ease: 'power3.inOut'
});
}
});
});
}
// +-------------------------------+
// | Initialize Everything |
// +-------------------------------+
document.addEventListener('DOMContentLoaded', () => {
// Initialize all components
initDataFlowViz();
initNeuralViz();
initCharts();
initScrollAnimations();
initMagneticButtons();
initSmoothScrolling();
// Add animation progress rings
gsap.to('.progress-ring__progress', {
strokeDashoffset: function(index, target) {
const percent = parseFloat(target.parentElement.parentElement.querySelector('p:last-child').textContent) / 100;
return 220 * (1 - percent);
},
duration: 2,
delay: 0.5,
ease: 'power2.out'
});
});
</script>
</body>
</html>
This trust center experience features:
The design uses a sophisticated dark theme with vibrant gradient accents (cyber blue to violet), creating a high-tech trust center that feels both transparent and secure. All animations are smooth and purposeful, enhancing the user experience without overwhelming the content.