The user wants a capstone project marketplace with sponsor scoring. This is an interesting project that combines:
I'll use a dark theme with gold/amber accents for a premium feel.
html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Capitol - Capstone Project Marketplace</title>
<script src="https://cdn.tailwindcss.com"></script>
<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=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">
<script type="importmap">
{
"imports": {
"three": "https://unpkg.com/three@0.160.0/build/three.module.js",
"three/addons/": "https://unpkg.com/three@0.160.0/examples/jsm/"
}
}
</script>
<style>
:root {
--bg: #0a0a0f;
--bg-elevated: #12121a;
--fg: #f5f5f7;
--muted: #6b7280;
--accent: #f59e0b;
--accent-dim: rgba(245, 158, 11, 0.15);
--card: rgba(18, 18, 26, 0.8);
--border: rgba(255, 255, 255, 0.08);
--success: #10b981;
--glass: rgba(255, 255, 255, 0.03);
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html {
scroll-behavior: smooth;
}
body {
font-family: 'Inter', sans-serif;
background: var(--bg);
color: var(--fg);
overflow-x: hidden;
line-height: 1.6;
}
h1, h2, h3, h4, h5, h6 {
font-family: 'Space Grotesk', sans-serif;
}
#canvas-container {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 0;
pointer-events: none;
}
.glass-card {
background: var(--card);
backdrop-filter: blur(20px);
border: 1px solid var(--border);
border-radius: 16px;
}
.accent-glow {
box-shadow: 0 0 40px rgba(245, 158, 11, 0.2);
}
.progress-bar {
background: linear-gradient(90deg, var(--accent) 0%, #fbbf24 100%);
border-radius: 100px;
height: 6px;
transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-primary {
background: var(--accent);
color: var(--bg);
font-weight: 600;
padding: 12px 24px;
border-radius: 10px;
border: none;
cursor: pointer;
transition: all 0.3s ease;
font-family: 'Space Grotesk', sans-serif;
}
.btn-primary:hover {
transform: translateY(-2px);
box-shadow: 0 8px 30px rgba(245, 158, 11, 0.3);
}
.btn-primary:active {
transform: translateY(0);
}
.btn-secondary {
background: transparent;
color: var(--fg);
font-weight: 500;
padding: 12px 24px;
border-radius: 10px;
border: 1px solid var(--border);
cursor: pointer;
transition: all 0.3s ease;
font-family: 'Space Grotesk', sans-serif;
}
.btn-secondary:hover {
background: var(--glass);
border-color: var(--accent);
}
.tag {
background: var(--accent-dim);
color: var(--accent);
padding: 4px 12px;
border-radius: 100px;
font-size: 12px;
font-weight: 500;
}
.category-tag {
background: var(--glass);
color: var(--muted);
padding: 6px 14px;
border-radius: 8px;
font-size: 13px;
border: 1px solid var(--border);
cursor: pointer;
transition: all 0.2s ease;
}
.category-tag:hover,
.category-tag.active {
background: var(--accent-dim);
color: var(--accent);
border-color: var(--accent);
}
.score-badge {
background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
color: var(--bg);
font-weight: 700;
padding: 4px 10px;
border-radius: 6px;
font-size: 14px;
font-family: 'Space Grotesk', sans-serif;
}
.tier-gold { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }
.tier-silver { background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%); }
.tier-bronze { background: linear-gradient(135deg, #d97706 0%, #92400e 100%); }
.project-card {
transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.project-card:hover {
transform: translateY(-8px);
border-color: rgba(245, 158, 11, 0.3);
}
.stat-number {
font-family: 'Space Grotesk', sans-serif;
font-weight: 700;
font-size: 48px;
background: linear-gradient(135deg, var(--fg) 0%, var(--muted) 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.modal-overlay {
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.8);
backdrop-filter: blur(8px);
z-index: 100;
display: flex;
align-items: center;
justify-content: center;
opacity: 0;
visibility: hidden;
transition: all 0.3s ease;
}
.modal-overlay.active {
opacity: 1;
visibility: visible;
}
.modal-content {
max-width: 600px;
width: 90%;
max-height: 90vh;
overflow-y: auto;
transform: scale(0.9) translateY(20px);
transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-overlay.active .modal-content {
transform: scale(1) translateY(0);
}
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(30px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.5; }
}
.animate-in {
animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
opacity: 0;
}
.search-input {
background: var(--bg-elevated);
border: 1px solid var(--border);
border-radius: 10px;
padding: 12px 16px 12px 44px;
color: var(--fg);
width: 100%;
font-size: 14px;
transition: all 0.2s ease;
}
.search-input:focus {
outline: none;
border-color: var(--accent);
box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}
.search-input::placeholder {
color: var(--muted);
}
::-webkit-scrollbar {
width: 8px;
}
::-webkit-scrollbar-track {
background: var(--bg);
}
::-webkit-scrollbar-thumb {
background: var(--border);
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background: var(--muted);
}
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
}
}
@media (max-width: 768px) {
.stat-number {
font-size: 32px;
}
}
</style>
</head>
<body>
<div id="canvas-container"></div>
<div class="relative z-10">
<!-- Navigation -->
<nav class="fixed top-0 left-0 right-0 z-50 glass-card mx-4 mt-4 px-6 py-4 rounded-2xl">
<div class="flex items-center justify-between">
<div class="flex items-center gap-2">
<svg class="w-8 h-8 text-amber-500" viewBox="0 0 32 32" fill="none">
<path d="M16 2L4 10v12l12 8 12-8V10L16 2z" stroke="currentColor" stroke-width="2" fill="none"/>
<path d="M16 12l-6 4v6l6 4 6-4v-6l-6-4z" fill="currentColor"/>
</svg>
<span class="text-xl font-bold tracking-tight" style="font-family: 'Space Grotesk'">Capitol</span>
</div>
<div class="hidden md:flex items-center gap-8">
<a href="#projects" class="text-sm text-gray-400 hover:text-white transition-colors">Projects</a>
<a href="#sponsors" class="text-sm text-gray-400 hover:text-white transition-colors">Sponsors</a>
<a href="#stats" class="text-sm text-gray-400 hover:text-white transition-colors">Dashboard</a>
</div>
<div class="flex items-center gap-3">
<button class="btn-secondary text-sm py-2 px-4">Sign In</button>
<button class="btn-primary text-sm py-2 px-4">Submit Project</button>
</div>
</div>
</nav>
<!-- Hero Section -->
<section class="min-h-screen flex items-center justify-center px-4 pt-24">
<div class="text-center max-w-4xl mx-auto">
<div class="animate-in" style="animation-delay: 0.1s">
<span class="tag mb-6 inline-block">Where Innovation Meets Investment</span>
</div>
<h1 class="text-5xl md:text-7xl font-bold mb-6 leading-tight animate-in" style="animation-delay: 0.2s; font-family: 'Space Grotesk'">
Fund the Future of<br/>
<span class="text-amber-500">Student Innovation</span>
</h1>
<p class="text-lg md:text-xl text-gray-400 mb-10 max-w-2xl mx-auto animate-in" style="animation-delay: 0.3s">
Connect with brilliant capstone projects from top universities. Sponsor groundbreaking research and earn recognition through our transparent scoring system.
</p>
<div class="flex flex-col sm:flex-row gap-4 justify-center animate-in" style="animation-delay: 0.4s">
<button class="btn-primary text-base" onclick="scrollToSection('projects')">
Browse Projects
</button>
<button class="btn-secondary text-base" onclick="scrollToSection('sponsors')">
View Top Sponsors
</button>
</div>
<div class="mt-16 grid grid-cols-3 gap-8 max-w-lg mx-auto animate-in" style="animation-delay: 0.5s">
<div>
<div class="text-3xl font-bold text-amber-500" style="font-family: 'Space Grotesk'">247</div>
<div class="text-sm text-gray-500">Active Projects</div>
</div>
<div>
<div class="text-3xl font-bold text-amber-500" style="font-family: 'Space Grotesk'">$1.2M</div>
<div class="text-sm text-gray-500">Total Funded</div>
</div>
<div>
<div class="text-3xl font-bold text-amber-500" style="font-family: 'Space Grotesk'">89</div>
<div class="text-sm text-gray-500">Sponsors</div>
</div>
</div>
</div>
</section>
<!-- Stats Dashboard -->
<section id="stats" class="py-20 px-4">
<div class="max-w-6xl mx-auto">
<div class="grid md:grid-cols-4 gap-6">
<div class="glass-card p-6 animate-in" style="animation-delay: 0.1s">
<div class="flex items-center gap-3 mb-4">
<div class="w-10 h-10 rounded-lg bg-amber-500/20 flex items-center justify-center">
<svg class="w-5 h-5 text-amber-500" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"/>
</svg>
</div>
<span class="text-sm text-gray-400">Total Projects</span>
</div>
<div class="stat-number" data-target="247">0</div>
</div>
<div class="glass-card p-6 animate-in" style="animation-delay: 0.2s">
<div class="flex items-center gap-3 mb-4">
<div class="w-10 h-10 rounded-lg bg-emerald-500/20 flex items-center justify-center">
<svg class="w-5 h-5 text-emerald-500" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8c-1.657 0-3 .895-3 2s1.343 2 3 2 3 .895 3 2-1.343 2-3 2m0-8c1.11 0 2.08.402 2.599 1M12 8V7m0 1v8m0 0v1m0-1c-1.11 0-2.08-.402-2.599-1M21 12a9 9 0 11-18 0 9 9 0 0118 0z"/>
</svg>
</div>
<span class="text-sm text-gray-400">Funding Deployed</span>
</div>
<div class="stat-number">$0</div>
</div>
<div class="glass-card p-6 animate-in" style="animation-delay: 0.3s">
<div class="flex items-center gap-3 mb-4">
<div class="w-10 h-10 rounded-lg bg-blue-500/20 flex items-center justify-center">
<svg class="w-5 h-5 text-blue-500" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0zm6 3a2 2 0 11-4 0 2 2 0 014 0zM7 10a2 2 0 11-4 0 2 2 0 014 0z"/>
</svg>
</div>
<span class="text-sm text-gray-400">Active Sponsors</span>
</div>
<div class="stat-number" data-target="89">0</div>
</div>
<div class="glass-card p-6 animate-in" style="animation-delay: 0.4s">
<div class="flex items-center gap-3 mb-4">
<div class="w-10 h-10 rounded-lg bg-rose-500/20 flex items-center justify-center">
<svg class="w-5 h-5 text-rose-500" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4.318 6.318a4.5 4.5 0 000 6.364L12 20.364l7.682-7.682a4.5 4.5 0 00-6.364-6.364L12 7.636l-1.318-1.318a4.5 4.5 0 00-6.364 0z"/>
</svg>
</div>
<span class="text-sm text-gray-400">Success Rate</span>
</div>
<div class="stat-number">0%</div>
</div>
</div>
</div>
</section>
<!-- Projects Section -->
<section id="projects" class="py-20 px-4">
<div class="max-w-6xl mx-auto">
<div class="flex flex-col md:flex-row md:items-center justify-between mb-10 gap-4">
<div>
<h2 class="text-3xl md:text-4xl font-bold mb-2" style="font-family: 'Space Grotesk'">Featured Projects</h2>
<p class="text-gray-400">Discover innovative capstone projects seeking sponsorship</p>
</div>
<div class="flex items-center gap-3">
<div class="relative">
<svg class="w-5 h-5 absolute left-3 top-1/2 -translate-y-1/2 text-gray-500" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"/>
</svg>
<input type="text" id="searchInput" class="search-input w-64" placeholder="Search projects...">
</div>
</div>
</div>
<!-- Category Filter -->
<div class="flex flex-wrap gap-2 mb-8" id="categoryFilter">
<button class="category-tag active" data-category="all">All Projects</button>
<button class="category-tag" data-category="ai">AI / ML</button>
<button class="category-tag" data-category="health">Healthcare</button>
<button class="category-tag" data-category="sustainability">Sustainability</button>
<button class="category-tag" data-category="fintech">Fintech</button>
<button class="category-tag" data-category="education">Education</button>
</div>
<!-- Projects Grid -->
<div class="grid md:grid-cols-2 lg:grid-cols-3 gap-6" id="projectsGrid">
<!-- Projects will be rendered here -->
</div>
</div>
</section>
<!-- Sponsor Leaderboard -->
<section id="sponsors" class="py-20 px-4 bg-gradient-to-b from-transparent via-amber-950/10 to-transparent">
<div class="max-w-6xl mx-auto">
<div class="text-center mb-12">
<h2 class="text-3xl md:text-4xl font-bold mb-4" style="font-family: 'Space Grotesk'">Sponsor Leaderboard</h2>
<p class="text-gray-400 max-w-2xl mx-auto">
Our scoring algorithm evaluates sponsors based on funding amount, project success rate, consistency, and community impact
</p>
</div>
<div class="glass-card p-6 mb-8">
<h3 class="text-sm font-semibold text-gray-400 mb-4 uppercase tracking-wider">Scoring Factors</h3>
<div class="grid md:grid-cols-4 gap-4">
<div class="p-4 rounded-lg bg-white/5">
<div class="text-amber-500 font-bold text-lg mb-1">40%</div>
<div class="text-sm text-gray-300">Total Funding</div>
</div>
<div class="p-4 rounded-lg bg-white/5">
<div class="text-emerald-500 font-bold text-lg mb-1">30%</div>
<div class="text-sm text-gray-300">Project Success</div>
</div>
<div class="p-4 rounded-lg bg-white/5">
<div class="text-blue-500 font-bold text-lg mb-1">20%</div>
<div class="text-sm text-gray-300">Consistency</div>
</div>
<div class="p-4 rounded-lg bg-white/5">
<div class="text-rose-500 font-bold text-lg mb-1">10%</div>
<div class="text-sm text-gray-300">Mentorship</div>
</div>
</div>
</div>
<div class="space-y-4" id="sponsorList">
<!-- Sponsors will be rendered here -->
</div>
</div>
</section>
<!-- Footer -->
<footer class="py-12 px-4 border-t border-white/10">
<div class="max-w-6xl mx-auto flex flex-col md:flex-row justify-between items-center gap-4">
<div class="flex items-center gap-2">
<svg class="w-6 h-6 text-amber-500" viewBox="0 0 32 32" fill="none">
<path d="M16 2L4 10v12l12 8 12-8V10L16 2z" stroke="currentColor" stroke-width="2" fill="none"/>
<path d="M16 12l-6 4v6l6 4 6-4v-6l-6-4z" fill="currentColor"/>
</svg>
<span class="font-bold" style="font-family: 'Space Grotesk'">Capitol</span>
</div>
<div class="text-sm text-gray-500">Empowering student innovation through strategic sponsorship</div>
<div class="flex gap-6">
<a href="#" class="text-gray-400 hover:text-white transition-colors">Terms</a>
<a href="#" class="text-gray-400 hover:text-white transition-colors">Privacy</a>
<a href="#" class="text-gray-400 hover:text-white transition-colors">Contact</a>
</div>
</div>
</footer>
</div>
<!-- Project Modal -->
<div class="modal-overlay" id="projectModal">
<div class="modal-content glass-card p-8">
<div class="flex justify-between items-start mb-6">
<div>
<span class="tag mb-2 inline-block" id="modalCategory">Category</span>
<h3 class="text-2xl font-bold" id="modalTitle" style="font-family: 'Space Grotesk'">Project Title</h3>
</div>
<button onclick="closeModal()" class="text-gray-400 hover:text-white transition-colors">
<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"/>
</svg>
</button>
</div>
<p class="text-gray-300 mb-6" id="modalDescription">Project description goes here...</p>
<div class="grid grid-cols-2 gap-4 mb-6">
<div class="p-4 rounded-lg bg-white/5">
<div class="text-sm text-gray-400 mb-1">Team</div>
<div class="font-semibold" id="modalTeam">Team Name</div>
</div>
<div class="p-4 rounded-lg bg-white/5">
<div class="text-sm text-gray-400 mb-1">University</div>
<div class="font-semibold" id="modalUniversity">University Name</div>
</div>
</div>
<div class="mb-6">
<div class="flex justify-between text-sm mb-2">
<span class="text-gray-400">Funding Progress</span>
<span id="modalProgress">0%</span>
</div>
<div class="w-full h-2 bg-white/10 rounded-full overflow-hidden">
<div class="progress-bar" id="modalProgressBar" style="width: 0%"></div>
</div>
<div class="flex justify-between text-sm mt-2">
<span class="text-amber-500 font-semibold" id="modalRaised">$0 raised</span>
<span class="text-gray-400" id="modalGoal">Goal: $0</span>
</div>
</div>
<div class="flex gap-3">
<button class="btn-primary flex-1">Sponsor This Project</button>
<button class="btn-secondary" onclick="closeModal()">Close</button>
</div>
</div>
</div>
<script type="module">
import * as THREE from 'three';
// ==================== DATA ====================
const projects = [
{
id: 1,
title: "NeuralPath AI",
description: "Revolutionary brain-computer interface for paralyzed patients using advanced neural networks and real-time signal processing.",
category: "ai",
team: "NeuroTech Squad",
university: "MIT",
raised: 45000,
goal: 60000,
sponsors: 12,
image: "https://images.unsplash.com/photo-1559757175-5700dde675bc?w=400"
},
{
id: 2,
title: "CleanWater IoT",
description: "Low-cost water quality monitoring system for developing regions using IoT sensors and machine learning prediction models.",
category: "sustainability",
team: "AquaSolution",
university: "Stanford",
raised: 28000,
goal: 35000,
sponsors: 8,
image: "https://images.unsplash.com/photo-1581093458791-9f3c3250a8b0?w=400"
},
{
id: 3,
title: "MediScan Pro",
description: "Portable diagnostic device using computer vision to detect early-stage skin cancer with 98% accuracy.",
category: "health",
team: "DermaTech",
university: "Johns Hopkins",
raised: 72000,
goal: 80000,
sponsors: 15,
image: "https://images.unsplash.com/photo-1576091160399-112ba8d25d1f?w=400"
},
{
id: 4,
title: "EduVerse VR",
description: "Immersive VR platform for interactive chemistry education, allowing students to manipulate molecules in 3D space.",
category: "education",
team: "Virtual Scholars",
university: "Carnegie Mellon",
raised: 18000,
goal: 40000,
sponsors: 6,
image: "https://images.unsplash.com/photo-1617854818583-09e7f077a156?w=400"
},
{
id: 5,
title: "CryptoFolio",
description: "Decentralized portfolio management system with AI-driven risk assessment and automated rebalancing.",
category: "fintech",
team: "BlockChain Bros",
university: "UC Berkeley",
raised: 55000,
goal: 55000,
sponsors: 22,
image: "https://images.unsplash.com/photo-1639762681485-074b7f938ba0?w=400"
},
{
id: 6,
title: "AgriBot Swarm",
description: "Autonomous drone swarm system for precision agriculture, reducing pesticide use by 60% while increasing yields.",
category: "sustainability",
team: "FarmFuture",
university: "Cornell",
raised: 33000,
goal: 50000,
sponsors: 9,
image: "https://images.unsplash.com/photo-1574943320219-553eb213f72d?w=400"
},
{
id: 7,
title: "SignLanguage AI",
description: "Real-time sign language translation system using deep learning, bridging communication gaps for the deaf community.",
category: "ai",
team: "InclusiveAI",
university: "Georgia Tech",
raised: 41000,
goal: 45000,
sponsors: 18,
image: "https://images.unsplash.com/photo-1516534775068-ba3e7458af70?w=400"
},
{
id: 8,
title: "HeartRhythm Monitor",
description: "Wearable ECG monitor with predictive analytics for early detection of cardiac arrhythmias.",
category: "health",
team: "CardioGuard",
university: "Harvard",
raised: 67000,
goal: 90000,
sponsors: 14,
image: "https://images.unsplash.com/photo-1559757148-5c350d0d3c56?w=400"
},
{
id: 9,
title: "MicroLend Platform",
description: "Blockchain-based microfinance platform connecting lenders with entrepreneurs in underserved communities.",
category: "fintech",
team: "EqualOpp",
university: "Columbia",
raised: 38000,
goal: 60000,
sponsors: 11,
image: "https://images.unsplash.com/photo-1559526324-4b87b5e36e44?w=400"
}
];
const sponsors = [
{
id: 1,
name: "TechVentures Capital",
avatar: "TV",
score: 9850,
tier: "gold",
projectsFunded: 34,
totalFunded: 520000,
successRate: 94,
badges: ["Top Funder", "Mentor", "Early Bird"]
},
{
id: 2,
name: "FutureForward Foundation",
avatar: "FF",
score: 8720,
tier: "gold",
projectsFunded: 28,
totalFunded: 445000,
successRate: 89,
badges: ["Consistent", "Impact Maker"]
},
{
id: 3,
name: "Innovate Labs",
avatar: "IL",
score: 7640,
tier: "silver",
projectsFunded: 22,
totalFunded: 380000,
successRate: 86,
badges: ["Rising Star", "Tech Focus"]
},
{
id: 4,
name: "Green Horizon Fund",
avatar: "GH",
score: 6890,
tier: "silver",
projectsFunded: 18,
totalFunded: 290000,
successRate: 92,
badges: ["Sustainability Champion"]
},
{
id: 5,
name: "DataDriven Partners",
avatar: "DD",
score: 5920,
tier: "silver",
projectsFunded: 15,
totalFunded: 210000,
successRate: 80,
badges: ["AI Enthusiast"]
},
{
id: 6,
name: "HealthTech Angels",
avatar: "HT",
score: 5180,
tier: "bronze",
projectsFunded: 12,
totalFunded: 175000,
successRate: 83,
badges: ["Healthcare Focus"]
},
{
id: 7,
name: "EduVentures",
avatar: "EV",
score: 4350,
tier: "bronze",
projectsFunded: 9,
totalFunded: 120000,
successRate: 78,
badges: ["Education Advocate"]
},
{
id: 8,
name: "StartSmart Collective",
avatar: "SS",
score: 3890,
tier: "bronze",
projectsFunded: 7,
totalFunded: 95000,
successRate: 85,
badges: ["Newcomer"]
}
];
// ==================== THREE.JS BACKGROUND ====================
let scene, camera, renderer, particles;
let mouseX = 0, mouseY = 0;
const particleCount = 800;
function initThree() {
const container = document.getElementById('canvas-container');
scene = new THREE.Scene();
camera = new THREE.PerspectiveCamera(75, window.innerWidth / window.innerHeight, 0.1, 1000);
camera.position.z = 50;
renderer = new THREE.WebGLRenderer({
antialias: true,
alpha: true
});
renderer.setSize(window.innerWidth, window.innerHeight);
renderer.setPixelRatio(Math.min(window.devicePixelRatio, 2));
container.appendChild(renderer.domElement);
// Create particles
const geometry = new THREE.BufferGeometry();
const positions = new Float32Array(particleCount * 3);
const colors = new Float32Array(particleCount * 3);
const sizes = new Float32Array(particleCount);
const amberColor = new THREE.Color(0xf59e0b);
const whiteColor = new THREE.Color(0xffffff);
for (let i = 0; i < particleCount; i++) {
positions[i * 3] = (Math.random() - 0.5) * 100;
positions[i * 3 + 1] = (Math.random() - 0.5) * 100;
positions[i * 3 + 2] = (Math.random() - 0.5) * 100;
const mixFactor = Math.random();
const color = amberColor.clone().lerp(whiteColor, mixFactor * 0.8);
colors[i * 3] = color.r;
colors[i * 3 + 1] = color.g;
colors[i * 3 + 2] = color.b;
sizes[i] = Math.random() * 2 + 0.5;
}
geometry.setAttribute('position', new THREE.BufferAttribute(positions, 3));
geometry.setAttribute('color', new THREE.BufferAttribute(colors, 3));
geometry.setAttribute('size', new THREE.BufferAttribute(sizes, 1));
const material = new THREE.PointsMaterial({
size: 1.5,
vertexColors: true,
transparent: true,
opacity: 0.6,
sizeAttenuation: true
});
particles = new THREE.Points(geometry, material);
scene.add(particles);
// Add ambient light glow
const ambientLight = new THREE.AmbientLight(0xf59e0b, 0.3);
scene.add(ambientLight);
document.addEventListener('mousemove', onMouseMove);
window.addEventListener('resize', onWindowResize);
animate();
}
function onMouseMove(event) {
mouseX = (event.clientX / window.innerWidth) * 2 - 1;
mouseY = -(event.clientY / window.innerHeight) * 2 + 1;
}
function onWindowResize() {
camera.aspect = window.innerWidth / window.innerHeight;
camera.updateProjectionMatrix();
renderer.setSize(window.innerWidth, window.innerHeight);
}
function animate() {
requestAnimationFrame(animate);
if (particles) {
particles.rotation.x += 0.0003;
particles.rotation.y += 0.0005;
// Mouse interaction
particles.rotation.x += mouseY * 0.0002;
particles.rotation.y += mouseX * 0.0002;
}
renderer.render(scene, camera);
}
// ==================== RENDER FUNCTIONS ====================
function renderProjects(filter = 'all') {
const grid = document.getElementById('projectsGrid');
const searchInput = document.getElementById('searchInput');
const searchTerm = searchInput.value.toLowerCase();
const filtered = projects.filter(p => {
const matchesCategory = filter === 'all' || p.category === filter;
const matchesSearch = p.title.toLowerCase().includes(searchTerm) ||
p.description.toLowerCase().includes(searchTerm) ||
p.team.toLowerCase().includes(searchTerm);
return matchesCategory && matchesSearch;
});
grid.innerHTML = filtered.map((project, index) => {
const progress = Math.round((project.raised / project.goal) * 100);
return `
<div class="project-card glass-card p-6 cursor-pointer animate-in"
style="animation-delay: ${index * 0.1}s"
onclick="openProjectModal(${project.id})">
<div class="flex items-start justify-between mb-4">
<span class="tag">${getCategoryLabel(project.category)}</span>
<span class="text-sm text-gray-400">${project.sponsors} sponsors</span>
</div>
<h3 class="text-xl font-bold mb-2" style="font-family: 'Space Grotesk'">${project.title}</h3>
<p class="text-sm text-gray-400 mb-4 line-clamp-2">${project.description}</p>
<div class="flex items-center gap-2 mb-4">
<div class="w-8 h-8 rounded-full bg-amber-500/20 flex items-center justify-center text-xs font-bold text-amber-500">
${project.team.substring(0, 2).toUpperCase()}
</div>
<div>
<div class="text-sm font-medium">${project.team}</div>
<div class="text-xs text-gray-500">${project.university}</div>
</div>
</div>
<div class="mb-2">
<div class="flex justify-between text-sm mb-1">
<span class="text-amber-500 font-semibold">$${project.raised.toLocaleString()}</span>
<span class="text-gray-400">${progress}%</span>
</div>
<div class="w-full h-1.5 bg-white/10 rounded-full overflow-hidden">
<div class="progress-bar" style="width: ${progress}%"></div>
</div>
</div>
<div class="text-xs text-gray-500">Goal: $${project.goal.toLocaleString()}</div>
</div>
`;
}).join('');
}
function renderSponsors() {
const list = document.getElementById('sponsorList');
list.innerHTML = sponsors.map((sponsor, index) => `
<div class="glass-card p-6 flex flex-col md:flex-row md:items-center gap-4 animate-in"
style="animation-delay: ${index * 0.1}s">
<div class="flex items-center gap-4 flex-1">
<div class="text-2xl font-bold text-gray-600 w-8">${index + 1}</div>
<div class="w-12 h-12 rounded-xl bg-gradient-to-br from-amber-500/20 to-amber-600/20 flex items-center justify-center text-lg font-bold text-amber-500">
${sponsor.avatar}
</div>
<div class="flex-1">
<div class="flex items-center gap-2">
<h4 class="font-semibold">${sponsor.name}</h4>
${index < 3 ? `<span class="score-badge tier-${sponsor.tier} text-xs">${sponsor.tier.toUpperCase()}</span>` : ''}
</div>
<div class="flex flex-wrap gap-2 mt-1">
${sponsor.badges.map(badge => `<span class="text-xs text-gray-500 bg-white/5 px-2 py-0.5 rounded">${badge}</span>`).join('')}
</div>
</div>
</div>
<div class="flex items-center gap-6 md:gap-8">
<div class="text-center">
<div class="text-xs text-gray-500 mb-1">Score</div>
<div class="text-xl font-bold text-amber-500" style="font-family: 'Space Grotesk'">${sponsor.score.toLocaleString()}</div>
</div>
<div class="text-center">
<div class="text-xs text-gray-500 mb-1">Funded</div>
<div class="text-lg font-semibold">${sponsor.projectsFunded}</div>
</div>
<div class="text-center">
<div class="text-xs text-gray-500 mb-1">Total</div>
<div class="text-lg font-semibold">$${(sponsor.totalFunded / 1000).toFixed(0)}K</div>
</div>
<div class="text-center">
<div class="text-xs text-gray-500 mb-1">Success</div>
<div class="text-lg font-semibold text-emerald-500">${sponsor.successRate}%</div>
</div>
</div>
</div>
`).join('');
}
function getCategoryLabel(category) {
const labels = {
ai: 'AI / ML',
health: 'Healthcare',
sustainability: 'Sustainability',
fintech: 'Fintech',
education: 'Education'
};
return labels[category] || category;
}
// ==================== MODAL FUNCTIONS ====================
window.openProjectModal = function(projectId) {
const project = projects.find(p => p.id === projectId);
if (!project) return;
const progress = Math.round((project.raised / project.goal) * 100);
document.getElementById('modalCategory').textContent = getCategoryLabel(project.category);
document.getElementById('modalTitle').textContent = project.title;
document.getElementById('modalDescription').textContent = project.description;
document.getElementById('modalTeam').textContent = project.team;
document.getElementById('modalUniversity').textContent = project.university;
document.getElementById('modalProgress').textContent = `${progress}%`;
document.getElementById('modalRaised').textContent = `$${project.raised.toLocaleString()} raised`;
document.getElementById('modalGoal').textContent = `Goal: $${project.goal.toLocaleString()}`;
const progressBar = document.getElementById('modalProgressBar');
progressBar.style.width = '0%';
setTimeout(() => {
progressBar.style.width = `${progress}%`;
}, 100);
document.getElementById('projectModal').classList.add('active');
document.body.style.overflow = 'hidden';
};
window.closeModal = function() {
document.getElementById('projectModal').classList.remove('active');
document.body.style.overflow = '';
};
// ==================== INTERSECTION OBSERVER ====================
function setupScrollAnimations() {
const observer = new IntersectionObserver((entries) => {
entries.forEach(entry => {
if (entry.isIntersecting) {
entry.target.classList.add('animate-in');
}
});
}, { threshold: 0.1 });
document.querySelectorAll('.animate-in').forEach(el => {
observer.observe(el);
});
}
// ==================== STATS COUNTER ====================
function animateStats() {
const stats = document.querySelectorAll('.stat-number');
const observer = new IntersectionObserver((entries) => {
entries.forEach(entry => {
if (entry.isIntersecting) {
const target = entry.target;
const text = target.textContent;
if (text.includes('$')) {
animateValue(target, 0, 1.2, 2000, val => `$${val.toFixed(1)}M`);
} else if (text.includes('%')) {
animateValue(target, 0, 87, 2000, val => `${Math.round(val)}%`);
} else {
const targetVal = parseInt(target.dataset.target) || parseInt(text);
animateValue(target, 0, targetVal, 2000, val => Math.round(val).toLocaleString());
}
observer.unobserve(target);
}
});
}, { threshold: 0.5 });
stats.forEach(stat => observer.observe(stat));
}
function animateValue(element, start, end, duration, formatter) {
const startTime = performance.now();
function update(currentTime) {
const elapsed = currentTime - startTime;
const progress = Math.min(elapsed / duration, 1);
const eased = 1 - Math.pow(1 - progress, 3);
const current = start + (end - start) * eased;
element.textContent = formatter(current);
if (progress < 1) {
requestAnimationFrame(update);
}
}
requestAnimationFrame(update);
}
// ==================== SCROLL FUNCTION ====================
window.scrollToSection = function(sectionId) {
const section = document.getElementById(sectionId);
if (section) {
section.scrollIntoView({ behavior: 'smooth' });
}
};
// ==================== CATEGORY FILTER ====================
function setupCategoryFilter() {
const filterContainer = document.getElementById('categoryFilter');
const buttons = filterContainer.querySelectorAll('.category-tag');
buttons.forEach(btn => {
btn.addEventListener('click', () => {
buttons.forEach(b => b.classList.remove('active'));
btn.classList.add('active');
renderProjects(btn.dataset.category);
});
});
}
// ==================== SEARCH ====================
function setupSearch() {
const searchInput = document.getElementById('searchInput');
let debounceTimer;
searchInput.addEventListener('input', () => {
clearTimeout(debounceTimer);
debounceTimer = setTimeout(() => {
const activeCategory = document.querySelector('.category-tag.active').dataset.category;
renderProjects(activeCategory);
}, 300);
});
}
// ==================== MODAL CLOSE ON OUTSIDE CLICK ====================
document.getElementById('projectModal').addEventListener('click', (e) => {
if (e.target === document.getElementById('projectModal')) {
closeModal();
}
});
// ==================== KEYBOARD NAVIGATION ====================
document.addEventListener('keydown', (e) => {
if (e.key === 'Escape') {
closeModal();
}
});
// ==================== INIT ====================
function init() {
initThree();
renderProjects();
renderSponsors();
setupCategoryFilter();
setupSearch();
setupScrollAnimations();
animateStats();
}
init();
</script>
</body>
</html>