deep-learning / index.html
AARIFSHABIR's picture
Add 3 files
af95b51 verified
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>SciVis3D - Interactive Science Visualizer</title>
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
.card-3d {
transform-style: preserve-3d;
transition: all 0.5s ease;
}
.card-3d:hover {
transform: rotateY(15deg) rotateX(10deg) translateY(-5px);
box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
}
.concept-gallery {
perspective: 1000px;
}
.share-btn {
transition: all 0.3s ease;
transform: scale(1);
}
.share-btn:hover {
transform: scale(1.1);
}
.graph-container {
background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}
@media (max-width: 768px) {
.card-3d:hover {
transform: none;
}
}
</style>
</head>
<body class="bg-gray-50 font-sans">
<div class="container mx-auto px-4 py-8">
<!-- App Header -->
<header class="flex justify-between items-center mb-10">
<div class="flex items-center">
<i class="fas fa-atom text-3xl text-blue-500 mr-3"></i>
<h1 class="text-2xl md:text-3xl font-bold text-gray-800">SciVis3D</h1>
</div>
<nav class="hidden md:block">
<ul class="flex space-x-6">
<li><a href="#" class="text-blue-600 font-medium hover:text-blue-800">Home</a></li>
<li><a href="#" class="text-gray-600 hover:text-blue-600">Subjects</a></li>
<li><a href="#" class="text-gray-600 hover:text-blue-600">Library</a></li>
<li><a href="#" class="text-gray-600 hover:text-blue-600">About</a></li>
</ul>
</nav>
<button class="md:hidden text-gray-600">
<i class="fas fa-bars text-xl"></i>
</button>
</header>
<!-- Hero Section -->
<section class="mb-16 bg-gradient-to-r from-blue-50 to-indigo-50 rounded-2xl p-8 md:p-12 shadow-md">
<div class="flex flex-col md:flex-row items-center">
<div class="md:w-1/2 mb-8 md:mb-0">
<h2 class="text-3xl md:text-4xl font-bold text-gray-800 mb-4">Explore Science in 3D</h2>
<p class="text-gray-600 mb-6 text-lg">Visualize complex scientific concepts through interactive 3D models, dynamic graphs, and step-by-step explanations.</p>
<button class="bg-blue-600 hover:bg-blue-700 text-white font-medium py-3 px-6 rounded-full transition duration-300 transform hover:scale-105 shadow-lg">
Start Learning
</button>
</div>
<div class="md:w-1/2 flex justify-center">
<div class="w-full max-w-md h-64 bg-gradient-to-br from-blue-400 to-indigo-500 rounded-2xl shadow-2xl flex items-center justify-center">
<div class="relative w-48 h-48 bg-white bg-opacity-20 rounded-full overflow-hidden">
<div class="absolute w-full h-full flex flex-col justify-center items-center">
<div class="relative w-32 h-32">
<div class="absolute w-12 h-12 bg-yellow-300 rounded-full top-4 left-2 animate-pulse"></div>
<div class="absolute w-8 h-8 bg-blue-300 rounded-full top-16 left-16 animate-ping"></div>
<div class="absolute w-10 h-10 bg-red-300 rounded-full top-12 right-8 animate-pulse"></div>
<div class="absolute w-6 h-6 bg-green-300 rounded-full bottom-8 left-10 animate-ping"></div>
<div class="absolute w-16 h-16 bg-white bg-opacity-30 rounded-full bottom-2 right-6"></div>
</div>
<p class="text-white font-medium mt-4 text-center">Interactive 3D Atom Model</p>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Science Concepts Section -->
<section class="mb-16">
<div class="flex justify-between items-center mb-10">
<h2 class="text-2xl md:text-3xl font-bold text-gray-800">Core Science Concepts</h2>
<a href="#" class="text-blue-600 hover:text-blue-800 font-medium flex items-center">
View All <i class="fas fa-chevron-right ml-2 text-sm"></i>
</a>
</div>
<div class="concept-gallery grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6">
<!-- Physics Concept -->
<div class="card-3d bg-white rounded-xl overflow-hidden shadow-lg transition-all duration-300 hover:shadow-xl">
<div class="relative h-48 bg-gradient-to-br from-purple-500 to-indigo-600 flex items-center justify-center">
<div class="relative w-32 h-32">
<div class="absolute w-12 h-12 bg-yellow-300 rounded-full top-4 left-2"></div>
<div class="absolute w-8 h-8 bg-blue-300 rounded-full top-16 left-16 animate-bounce"></div>
<div class="absolute w-6 h-6 bg-white rounded-full bottom-8 left-10"></div>
</div>
<span class="absolute top-4 left-4 bg-white bg-opacity-20 text-white px-3 py-1 rounded-full text-xs font-medium">Physics</span>
</div>
<div class="p-6">
<h3 class="text-xl font-bold text-gray-800 mb-2">Laws of Motion</h3>
<p class="text-gray-600 mb-4">Explore Newton's three laws through interactive 3D simulations of forces and motion.</p>
<div class="flex justify-between items-center">
<div class="flex space-x-2">
<span class="bg-blue-100 text-blue-800 px-3 py-1 rounded-full text-xs">3D Model</span>
<span class="bg-green-100 text-green-800 px-3 py-1 rounded-full text-xs">Experiments</span>
</div>
<a href="#" class="text-blue-600 hover:text-blue-800">
<i class="fas fa-play-circle"></i>
</a>
</div>
</div>
</div>
<!-- Chemistry Concept -->
<div class="card-3d bg-white rounded-xl overflow-hidden shadow-lg transition-all duration-300 hover:shadow-xl">
<div class="relative h-48 bg-gradient-to-br from-green-500 to-teal-600 flex items-center justify-center">
<div class="relative w-40 h-40">
<div class="absolute w-full h-full border-2 border-white border-opacity-40 rounded-full animate-pulse"></div>
<div class="absolute w-3/4 h-3/4 border-2 border-white border-opacity-30 rounded-full left-1/2 top-1/2 transform -translate-x-1/2 -translate-y-1/2"></div>
<div class="absolute w-1/2 h-1/2 border-2 border-white border-opacity-20 rounded-full left-1/2 top-1/2 transform -translate-x-1/2 -translate-y-1/2"></div>
<div class="absolute w-1/4 h-1/4 bg-white rounded-full left-1/2 top-1/2 transform -translate-x-1/2 -translate-y-1/2 animate-ping"></div>
</div>
<span class="absolute top-4 left-4 bg-white bg-opacity-20 text-white px-3 py-1 rounded-full text-xs font-medium">Chemistry</span>
</div>
<div class="p-6">
<h3 class="text-xl font-bold text-gray-800 mb-2">Atomic Structure</h3>
<p class="text-gray-600 mb-4">Manipulate 3D atom models to understand electron configuration and bonding patterns.</p>
<div class="flex justify-between items-center">
<div class="flex space-x-2">
<span class="bg-blue-100 text-blue-800 px-3 py-1 rounded-full text-xs">Bohr Model</span>
<span class="bg-purple-100 text-purple-800 px-3 py-1 rounded-full text-xs">Orbitals</span>
</div>
<a href="#" class="text-blue-600 hover:text-blue-800">
<i class="fas fa-play-circle"></i>
</a>
</div>
</div>
</div>
<!-- Biology Concept -->
<div class="card-3d bg-white rounded-xl overflow-hidden shadow-lg transition-all duration-300 hover:shadow-xl">
<div class="relative h-48 bg-gradient-to-br from-red-500 to-orange-500 flex items-center justify-center">
<div class="relative w-40 h-40">
<div class="absolute w-32 h-32 bg-white bg-opacity-10 rounded-full border-4 border-white border-opacity-20"></div>
<div class="absolute w-20 h-20 bg-white bg-opacity-10 rounded-full left-12 top-12"></div>
<div class="absolute w-10 h-10 bg-white bg-opacity-20 rounded-full left-8 top-8"></div>
<div class="absolute w-6 h-6 bg-white rounded-full left-20 top-4 animate-ping"></div>
<div class="absolute w-6 h-6 bg-white rounded-full left-6 top-16 animate-ping delay-100"></div>
</div>
<span class="absolute top-4 left-4 bg-white bg-opacity-20 text-white px-3 py-1 rounded-full text-xs font-medium">Biology</span>
</div>
<div class="p-6">
<h3 class="text-xl font-bold text-gray-800 mb-2">Cell Structure</h3>
<p class="text-gray-600 mb-4">Explore organelles in 3D with detailed animations of cellular processes.</p>
<div class="flex justify-between items-center">
<div class="flex space-x-2">
<span class="bg-blue-100 text-blue-800 px-3 py-1 rounded-full text-xs">Plant Cell</span>
<span class="bg-red-100 text-red-800 px-3 py-1 rounded-full text-xs">Animal Cell</span>
</div>
<a href="#" class="text-blue-600 hover:text-blue-800">
<i class="fas fa-play-circle"></i>
</a>
</div>
</div>
</div>
</div>
</section>
<!-- Data Visualization Section -->
<section class="mb-16">
<h2 class="text-2xl md:text-3xl font-bold text-gray-800 mb-6">Scientific Data Visualization</h2>
<div class="grid grid-cols-1 lg:grid-cols-2 gap-8">
<!-- Interactive Graph -->
<div class="bg-white rounded-xl p-6 shadow-lg">
<h3 class="text-xl font-bold text-gray-800 mb-4">Interactive Graph Analysis</h3>
<div class="graph-container rounded-lg h-64 mb-4 relative overflow-hidden">
<div class="absolute bottom-0 left-0 w-full flex items-end justify-evenly px-4" style="height: 90%;">
<div class="w-8 bg-blue-500 rounded-t-lg hover:bg-blue-600 transition-all" style="height: 40%;"></div>
<div class="w-8 bg-green-500 rounded-t-lg hover:bg-green-600 transition-all" style="height: 60%;"></div>
<div class="w-8 bg-yellow-500 rounded-t-lg hover:bg-yellow-600 transition-all" style="height: 75%;"></div>
<div class="w-8 bg-red-500 rounded-t-lg hover:bg-red-600 transition-all" style="height: 85%;"></div>
<div class="w-8 bg-purple-500 rounded-t-lg hover:bg-purple-600 transition-all" style="height: 65%;"></div>
<div class="w-8 bg-indigo-500 rounded-t-lg hover:bg-indigo-600 transition-all" style="height: 50%;"></div>
</div>
<div class="absolute bottom-0 w-full border-t border-gray-300"></div>
<div class="absolute left-0 h-full border-r border-gray-300"></div>
<div class="absolute bottom-4 left-4 text-sm text-gray-600">Control Group</div>
</div>
<div class="flex justify-between items-center">
<div class="flex space-x-2">
<span class="bg-green-100 text-green-800 px-3 py-1 rounded-full text-xs">Bar Chart</span>
<span class="bg-purple-100 text-purple-800 px-3 py-1 rounded-full text-xs">Line Graph</span>
<span class="bg-blue-100 text-blue-800 px-3 py-1 rounded-full text-xs">Scatter Plot</span>
</div>
<button class="text-blue-600 hover:text-blue-800">
<i class="fas fa-sliders-h"></i>
</button>
</div>
</div>
<!-- Patterns and Conclusions -->
<div class="bg-white rounded-xl p-6 shadow-lg">
<h3 class="text-xl font-bold text-gray-800 mb-4">Pattern Recognition & Conclusions</h3>
<div class="relative h-64 mb-4 bg-gradient-to-br from-gray-50 to-gray-100 rounded-lg flex items-center justify-center">
<div class="relative w-48 h-48">
<div class="absolute w-full h-full rounded-full border-2 border-gray-300 border-dashed animate-spin" style="animation-duration: 8s;"></div>
<div class="absolute w-3/4 h-3/4 rounded-full left-1/2 top-1/2 transform -translate-x-1/2 -translate-y-1/2 border-2 border-gray-300 border-dashed animate-spin" style="animation-duration: 6s; animation-direction: reverse;"></div>
<div class="absolute w-1/2 h-1/2 rounded-full left-1/2 top-1/2 transform -translate-x-1/2 -translate-y-1/2 border-2 border-gray-400 border-dashed animate-spin" style="animation-duration: 4s;"></div>
<div class="absolute w-1/4 h-1/4 rounded-full left-1/2 top-1/2 transform -translate-x-1/2 -translate-y-1/2 bg-blue-500 animate-pulse"></div>
</div>
</div>
<div class="bg-blue-50 p-4 rounded-lg">
<h4 class="font-medium text-blue-800 mb-2">Key Observations</h4>
<p class="text-sm text-gray-700">The data shows a clear positive correlation between temperature and reaction rate. As temperature increases by 10°C, reaction rate approximately doubles, following the Arrhenius equation pattern.</p>
</div>
</div>
</div>
</section>
<!-- Sharing Section -->
<section class="bg-indigo-50 rounded-2xl p-8 mb-16">
<div class="flex flex-col md:flex-row items-center">
<div class="md:w-2/3 mb-6 md:mb-0 md:pr-8">
<h2 class="text-2xl md:text-3xl font-bold text-gray-800 mb-4">Share Your Discoveries</h2>
<p class="text-gray-600 mb-6">Found an interesting scientific insight or created a helpful visualization? Share it with your classmates, teachers, or study group directly through WhatsApp or other platforms.</p>
<div class="flex flex-wrap gap-3">
<button id="whatsapp-share" class="share-btn bg-green-500 hover:bg-green-600 text-white px-6 py-3 rounded-full flex items-center font-medium">
<i class="fab fa-whatsapp mr-2 text-xl"></i> Share on WhatsApp
</button>
<button class="share-btn bg-blue-500 hover:bg-blue-600 text-white px-6 py-3 rounded-full flex items-center font-medium">
<i class="fas fa-link mr-2"></i> Copy Link
</button>
<button class="share-btn bg-gray-200 hover:bg-gray-300 text-gray-800 px-6 py-3 rounded-full flex items-center font-medium">
<i class="fas fa-download mr-2"></i> Download Image
</button>
</div>
</div>
<div class="md:w-1/3 flex justify-center">
<div class="relative w-64 h-64">
<div class="absolute w-full h-full bg-white rounded-2xl shadow-lg"></div>
<div class="absolute w-11/12 h-11/12 bg-indigo-100 rounded-xl top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 flex flex-col p-4">
<div class="flex items-center mb-3">
<div class="w-16 h-16 bg-blue-100 rounded-lg flex items-center justify-center">
<i class="fas fa-atom text-blue-500 text-2xl"></i>
</div>
<div class="ml-3">
<h4 class="font-bold text-sm">Chemical Bonds</h4>
<p class="text-xs text-gray-600">Shared from SciVis3D</p>
</div>
</div>
<div class="bg-white rounded-lg flex-1 p-2 mb-2">
<div class="w-3/4 h-3 bg-blue-200 rounded mb-1"></div>
<div class="w-1/2 h-3 bg-blue-200 rounded mb-1"></div>
<div class="w-5/6 h-3 bg-blue-200 rounded"></div>
</div>
<div class="flex justify-between items-center text-xs">
<p class="text-gray-600">4 mins ago</p>
<span class="bg-green-100 text-green-800 px-2 py-1 rounded">New</span>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Footer -->
<footer class="py-8 border-t border-gray-200">
<div class="flex flex-col md:flex-row justify-between items-center">
<div class="mb-4 md:mb-0">
<div class="flex items-center">
<i class="fas fa-atom text-2xl text-blue-500 mr-2"></i>
<span class="text-lg font-bold text-gray-800">SciVis3D</span>
</div>
<p class="text-gray-600 text-sm mt-2">Making science visual and interactive</p>
</div>
<div class="flex space-x-6">
<a href="#" class="text-gray-600 hover:text-blue-600"><i class="fab fa-twitter text-xl"></i></a>
<a href="#" class="text-gray-600 hover:text-blue-600"><i class="fab fa-instagram text-xl"></i></a>
<a href="#" class="text-gray-600 hover:text-blue-600"><i class="fab fa-youtube text-xl"></i></a>
<a href="#" class="text-gray-600 hover:text-blue-600"><i class="fab fa-linkedin text-xl"></i></a>
</div>
</div>
</footer>
</div>
<!-- WhatsApp Share Modal -->
<div id="share-modal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 hidden">
<div class="bg-white rounded-xl p-6 max-w-md w-full">
<div class="flex justify-between items-center mb-4">
<h3 class="text-xl font-bold text-gray-800">Share on WhatsApp</h3>
<button id="close-modal" class="text-gray-500 hover:text-gray-700">
<i class="fas fa-times"></i>
</button>
</div>
<div class="mb-6">
<label class="block text-gray-700 mb-2">Enter phone number or select contact</label>
<div class="flex">
<div class="relative flex-grow">
<select class="appearance-none bg-gray-100 border border-gray-300 rounded-l-lg px-4 py-2 pr-8 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500">
<option>+1</option>
<option>+44</option>
<option>+91</option>
<option>+81</option>
</select>
<div class="pointer-events-none absolute inset-y-0 right-2 flex items-center px-2 text-gray-700">
<i class="fas fa-chevron-down text-xs"></i>
</div>
</div>
<input type="text" class="flex-grow border-t border-r border-b border-gray-300 rounded-r-lg px-4 py-2 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500" placeholder="Phone number">
</div>
</div>
<div class="mb-6">
<label class="block text-gray-700 mb-2">Message (optional)</label>
<textarea class="w-full border border-gray-300 rounded-lg px-4 py-2 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500" rows="3">Check out this science visualization I found on SciVis3D!</textarea>
</div>
<div class="flex justify-end space-x-3">
<button id="cancel-share" class="px-6 py-2 rounded-lg border border-gray-300 text-gray-700 hover:bg-gray-100">Cancel</button>
<button id="confirm-share" class="px-6 py-2 rounded-lg bg-green-500 text-white hover:bg-green-600 flex items-center">
<i class="fab fa-whatsapp mr-2"></i> Share Now
</button>
</div>
</div>
</div>
<script>
// WhatsApp Share Functionality
const whatsappShareBtn = document.getElementById('whatsapp-share');
const shareModal = document.getElementById('share-modal');
const closeModal = document.getElementById('close-modal');
const cancelShare = document.getElementById('cancel-share');
const confirmShare = document.getElementById('confirm-share');
whatsappShareBtn.addEventListener('click', () => {
shareModal.classList.remove('hidden');
});
[closeModal, cancelShare].forEach(btn => {
btn.addEventListener('click', () => {
shareModal.classList.add('hidden');
});
});
confirmShare.addEventListener('click', () => {
// In a real app, this would actually share via WhatsApp API
alert('This would share the content via WhatsApp in a real implementation!');
shareModal.classList.add('hidden');
});
// Add some interactive elements for the graphs
const bars = document.querySelectorAll('.graph-container div[class^="absolute"] > div');
bars.forEach(bar => {
bar.addEventListener('mouseenter', function() {
const height = this.style.height;
this.classList.add('shadow-md');
// Show tooltip
const tooltip = document.createElement('div');
tooltip.className = 'absolute bottom-full mb-2 px-2 py-1 bg-gray-800 text-white text-xs rounded left-1/2 transform -translate-x-1/2';
tooltip.textContent = `Value: ${Math.round(parseInt(height) / 100 * 10)}/10`;
this.appendChild(tooltip);
this.addEventListener('mouseleave', () => {
this.classList.remove('shadow-md');
if (this.lastChild.className.includes('absolute')) {
this.removeChild(this.lastChild);
}
});
});
});
// Mobile menu toggle (would be expanded in a full implementation)
const mobileMenuBtn = document.querySelector('.md\\:hidden');
mobileMenuBtn.addEventListener('click', () => {
alert('Mobile menu would open here in a full implementation!');
});
</script>
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=AARIFSHABIR/deep-learning" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>