|
|
<!DOCTYPE html> |
|
|
<html lang="en"> |
|
|
<head> |
|
|
<meta charset="UTF-8"> |
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0"> |
|
|
<title>DataViz Liquid Glass Studio</title> |
|
|
<link rel="icon" type="image/x-icon" href="/static/favicon.ico"> |
|
|
<link rel="stylesheet" href="style.css"> |
|
|
<script src="https://cdn.tailwindcss.com"></script> |
|
|
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script> |
|
|
<script src="https://unpkg.com/feather-icons"></script> |
|
|
<script src="https://cdn.jsdelivr.net/npm/vanta@latest/dist/vanta.globe.min.js"></script> |
|
|
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script> |
|
|
</head> |
|
|
<body class="min-h-screen bg-gradient-to-br from-slate-900 via-purple-900 to-slate-900"> |
|
|
<custom-navbar></custom-navbar> |
|
|
|
|
|
<main class="container mx-auto px-4 py-8"> |
|
|
|
|
|
<section class="text-center mb-12"> |
|
|
<h1 class="text-5xl md:text-7xl font-bold bg-gradient-to-r from-cyan-400 to-purple-400 bg-clip-text text-transparent mb-6"> |
|
|
Liquid Glass DataViz |
|
|
</h1> |
|
|
<p class="text-xl text-gray-300 mb-8 max-w-3xl mx-auto"> |
|
|
Transform your CSV data into stunning interactive visualizations with our liquid glass interface |
|
|
</p> |
|
|
</section> |
|
|
|
|
|
|
|
|
<section class="glass-card p-8 mb-12"> |
|
|
<div class="text-center mb-8"> |
|
|
<i data-feather="upload-cloud" class="w-16 h-16 text-cyan-400 mx-auto mb-4"></i> |
|
|
<h2 class="text-3xl font-bold text-white mb-4">Upload Your CSV</h2> |
|
|
<p class="text-gray-300">Drag and drop your CSV file or click to browse</p> |
|
|
</div> |
|
|
|
|
|
<div class="border-2 border-dashed border-cyan-400/30 rounded-2xl p-12 text-center transition-all duration-300 hover:border-cyan-400/60 hover:bg-cyan-400/5" id="dropZone"> |
|
|
<input type="file" id="csvFile" accept=".csv" class="hidden"> |
|
|
<div class="space-y-4"> |
|
|
<i data-feather="file-text" class="w-12 h-12 text-cyan-400 mx-auto"></i> |
|
|
<p class="text-gray-300">Drop your CSV file here or <span class="text-cyan-400 cursor-pointer" onclick="document.getElementById('csvFile').click()">browse files</span></p> |
|
|
<p class="text-sm text-gray-500">Supports files up to 10MB</p> |
|
|
</div> |
|
|
</div> |
|
|
</section> |
|
|
|
|
|
|
|
|
<section class="glass-card p-8 mb-12 hidden" id="previewSection"> |
|
|
<div class="flex justify-between items-center mb-6"> |
|
|
<h2 class="text-3xl font-bold text-white">Data Preview</h2> |
|
|
<button id="generateViz" class="bg-gradient-to-r from-cyan-500 to-purple-500 text-white px-8 py-3 rounded-full font-semibold hover:shadow-2xl hover:shadow-cyan-500/25 transition-all duration-300"> |
|
|
Generate Visualizations |
|
|
</button> |
|
|
</div> |
|
|
<div class="overflow-x-auto"> |
|
|
<table class="w-full text-white" id="dataTable"> |
|
|
<thead class="bg-cyan-500/20"> |
|
|
<tr id="tableHeaders"></tr> |
|
|
</thead> |
|
|
<tbody id="tableBody" class="divide-y divide-gray-700"></tbody> |
|
|
</table> |
|
|
</div> |
|
|
</section> |
|
|
|
|
|
|
|
|
<section class="glass-card p-8 hidden" id="vizGallery"> |
|
|
<h2 class="text-3xl font-bold text-white mb-8 text-center">Your Visualizations</h2> |
|
|
<div class="grid grid-cols-1 lg:grid-cols-2 gap-8" id="chartContainer"> |
|
|
|
|
|
</div> |
|
|
</section> |
|
|
</main> |
|
|
|
|
|
<custom-footer></custom-footer> |
|
|
|
|
|
|
|
|
<div id="vantaBackground" class="fixed top-0 left-0 w-full h-full -z-10"></div> |
|
|
|
|
|
<script src="components/navbar.js"></script> |
|
|
<script src="components/footer.js"></script> |
|
|
<script src="script.js"></script> |
|
|
<script> |
|
|
feather.replace(); |
|
|
|
|
|
|
|
|
VANTA.GLOBE({ |
|
|
el: "#vantaBackground", |
|
|
mouseControls: true, |
|
|
touchControls: true, |
|
|
gyroControls: false, |
|
|
minHeight: 200.00, |
|
|
minWidth: 200.00, |
|
|
scale: 1.00, |
|
|
scaleMobile: 1.00, |
|
|
color: 0x00ffff, |
|
|
backgroundColor: 0x0f172a, |
|
|
size: 1.00 |
|
|
}); |
|
|
</script> |
|
|
<script src="https://huggingface.co/deepsite/deepsite-badge.js"></script> |
|
|
</body> |
|
|
</html> |