Spaces:
Running

pddf / index.html
div988's picture
Add 3 files
152eeb6 verified
Raw History Blame Contribute Delete
57.1 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>NexusPDF - AI Document Analysis</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">
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap" rel="stylesheet">
<style>
:root {
--primary-bg: #0a0a0a;
--secondary-bg: #1a1a1a;
--accent-blue: #00a8ff;
--accent-cyan: #00f5d4;
--accent-purple: #9d4edd;
--text-primary: #f8f8f8;
--text-secondary: #b0b0b0;
}
body {
font-family: 'Poppins', sans-serif;
background-color: var(--primary-bg);
color: var(--text-primary);
}
.glow-effect {
box-shadow: 0 0 15px rgba(0, 168, 255, 0.3);
}
.glow-effect:hover {
box-shadow: 0 0 20px rgba(0, 168, 255, 0.5);
}
.gradient-text {
background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan));
-webkit-background-clip: text;
background-clip: text;
color: transparent;
}
.pdf-card {
transition: all 0.3s ease;
border-left: 3px solid transparent;
}
.pdf-card:hover {
transform: translateY(-3px);
border-left: 3px solid var(--accent-blue);
background-color: rgba(26, 26, 26, 0.7);
}
.pdf-card.active {
background-color: var(--secondary-bg);
border-left: 3px solid var(--accent-blue);
}
.tab-content {
display: none;
animation: fadeIn 0.4s ease;
}
.tab-content.active {
display: block;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(10px); }
to { opacity: 1; transform: translateY(0); }
}
.dropzone {
border: 2px dashed #333;
transition: all 0.3s ease;
}
.dropzone.active {
border-color: var(--accent-blue);
background-color: rgba(0, 168, 255, 0.05);
}
.chat-message {
max-width: 80%;
margin-bottom: 1rem;
padding: 0.75rem 1rem;
border-radius: 1rem;
animation: messageIn 0.3s ease;
}
@keyframes messageIn {
from { opacity: 0; transform: translateY(10px); }
to { opacity: 1; transform: translateY(0); }
}
.user-message {
background: linear-gradient(135deg, #0077b6, #00b4d8);
color: white;
margin-left: auto;
border-bottom-right-radius: 0.25rem;
}
.ai-message {
background-color: #1e1e1e;
margin-right: auto;
border-bottom-left-radius: 0.25rem;
border: 1px solid #333;
}
.mind-map-container {
height: 500px;
background-color: #121212;
border-radius: 0.5rem;
position: relative;
overflow: hidden;
border: 1px solid #333;
}
.node {
position: absolute;
padding: 0.75rem 1.25rem;
border-radius: 0.5rem;
background-color: #1a1a1a;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
cursor: pointer;
transition: all 0.3s ease;
border: 1px solid #333;
font-size: 0.9rem;
}
.node:hover {
transform: scale(1.05);
box-shadow: 0 0 15px rgba(0, 168, 255, 0.2);
}
.connection {
position: absolute;
height: 2px;
background: linear-gradient(90deg, #00a8ff, #00f5d4);
transform-origin: left center;
z-index: -1;
}
.flashcard {
perspective: 1000px;
height: 250px;
}
.flashcard-inner {
position: relative;
width: 100%;
height: 100%;
transition: transform 0.6s;
transform-style: preserve-3d;
}
.flashcard.flipped .flashcard-inner {
transform: rotateY(180deg);
}
.flashcard-front, .flashcard-back {
position: absolute;
width: 100%;
height: 100%;
backface-visibility: hidden;
border-radius: 0.5rem;
padding: 1.5rem;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.flashcard-front {
background: linear-gradient(135deg, #1a1a1a, #252525);
border: 1px solid #333;
}
.flashcard-back {
background: linear-gradient(135deg, #252525, #1a1a1a);
transform: rotateY(180deg);
border: 1px solid var(--accent-blue);
}
.pdf-preview {
height: 600px;
background-color: #1a1a1a;
border-radius: 0.5rem;
border: 1px solid #333;
overflow: hidden;
}
.pdf-thumbnail {
transition: all 0.3s ease;
border: 1px solid transparent;
}
.pdf-thumbnail:hover {
border-color: var(--accent-blue);
transform: translateY(-3px);
}
.pdf-thumbnail.active {
border-color: var(--accent-blue);
background-color: rgba(0, 168, 255, 0.1);
}
.scrollbar-hide::-webkit-scrollbar {
display: none;
}
.scrollbar-hide {
-ms-overflow-style: none;
scrollbar-width: none;
}
</style>
</head>
<body class="min-h-screen">
<div class="container mx-auto px-4 py-8">
<!-- Header -->
<header class="flex justify-between items-center mb-12">
<div class="flex items-center space-x-3">
<div class="w-10 h-10 rounded-full bg-gradient-to-br from-blue-500 to-cyan-400 flex items-center justify-center">
<i class="fas fa-brain text-white"></i>
</div>
<h1 class="text-3xl font-bold">
<span class="gradient-text">Nexus</span><span>PDF</span>
</h1>
</div>
<div class="flex items-center space-x-4">
<button class="px-5 py-2.5 rounded-full bg-gradient-to-r from-blue-500 to-cyan-400 text-white font-medium hover:opacity-90 transition-all duration-300 glow-effect">
<i class="fas fa-user mr-2"></i>Sign In
</button>
</div>
</header>
<!-- Main Content -->
<div class="grid grid-cols-1 lg:grid-cols-5 gap-8">
<!-- Sidebar -->
<div class="lg:col-span-1 bg-[#1a1a1a] rounded-xl p-5 h-fit sticky top-4 border border-[#333]">
<h2 class="text-xl font-semibold mb-6 flex items-center">
<i class="fas fa-folder-open mr-3 text-blue-400"></i>
My Documents
</h2>
<!-- Upload Section -->
<div id="dropzone" class="dropzone rounded-xl p-6 mb-6 text-center cursor-pointer bg-[#121212]">
<div class="w-12 h-12 mx-auto mb-4 rounded-full bg-[#00a8ff10] flex items-center justify-center">
<i class="fas fa-cloud-upload-alt text-2xl text-blue-400"></i>
</div>
<p class="text-gray-300 mb-2">Drag & drop PDF files here</p>
<p class="text-sm text-gray-500 mb-4">or</p>
<input type="file" id="fileInput" class="hidden" accept=".pdf" multiple>
<label for="fileInput" class="px-4 py-2.5 bg-gradient-to-r from-blue-500 to-cyan-400 text-white rounded-full text-sm font-medium inline-block hover:opacity-90 transition">
<i class="fas fa-file-pdf mr-2"></i>Select Files
</label>
</div>
<!-- Document List -->
<div class="space-y-3 max-h-[500px] overflow-y-auto scrollbar-hide">
<div class="pdf-card active p-4 rounded-lg cursor-pointer flex items-start">
<div class="w-10 h-10 rounded-md bg-[#0077b610] flex items-center justify-center mr-3">
<i class="fas fa-file-pdf text-red-400"></i>
</div>
<div>
<h3 class="font-medium">Introduction to AI.pdf</h3>
<p class="text-xs text-gray-400 mt-1">2 days ago • 4.2 MB</p>
<div class="flex flex-wrap gap-1 mt-2">
<span class="px-2 py-0.5 bg-[#0077b620] text-blue-300 rounded-full text-[10px]">AI</span>
<span class="px-2 py-0.5 bg-[#00b4d820] text-cyan-300 rounded-full text-[10px]">ML</span>
</div>
</div>
</div>
<div class="pdf-card p-4 rounded-lg cursor-pointer flex items-start">
<div class="w-10 h-10 rounded-md bg-[#9d4edd10] flex items-center justify-center mr-3">
<i class="fas fa-file-pdf text-purple-400"></i>
</div>
<div>
<h3 class="font-medium">Neural Networks.pdf</h3>
<p class="text-xs text-gray-400 mt-1">1 day ago • 3.8 MB</p>
<div class="flex flex-wrap gap-1 mt-2">
<span class="px-2 py-0.5 bg-[#9d4edd20] text-purple-300 rounded-full text-[10px]">DL</span>
<span class="px-2 py-0.5 bg-[#00b4d820] text-cyan-300 rounded-full text-[10px]">NN</span>
</div>
</div>
</div>
<div class="pdf-card p-4 rounded-lg cursor-pointer flex items-start">
<div class="w-10 h-10 rounded-md bg-[#00a8ff10] flex items-center justify-center mr-3">
<i class="fas fa-file-pdf text-blue-400"></i>
</div>
<div>
<h3 class="font-medium">Data Science.pdf</h3>
<p class="text-xs text-gray-400 mt-1">3 hours ago • 5.1 MB</p>
<div class="flex flex-wrap gap-1 mt-2">
<span class="px-2 py-0.5 bg-[#00a8ff20] text-blue-300 rounded-full text-[10px]">DS</span>
<span class="px-2 py-0.5 bg-[#00f5d420] text-cyan-300 rounded-full text-[10px]">Stats</span>
</div>
</div>
</div>
<div class="pdf-card p-4 rounded-lg cursor-pointer flex items-start">
<div class="w-10 h-10 rounded-md bg-[#f7258510] flex items-center justify-center mr-3">
<i class="fas fa-file-pdf text-pink-400"></i>
</div>
<div>
<h3 class="font-medium">Python Basics.pdf</h3>
<p class="text-xs text-gray-400 mt-1">1 week ago • 2.7 MB</p>
<div class="flex flex-wrap gap-1 mt-2">
<span class="px-2 py-0.5 bg-[#f7258520] text-pink-300 rounded-full text-[10px]">Python</span>
<span class="px-2 py-0.5 bg-[#7209b720] text-purple-300 rounded-full text-[10px]">Coding</span>
</div>
</div>
</div>
</div>
</div>
<!-- Main Panel -->
<div class="lg:col-span-4 space-y-6">
<!-- PDF Preview Section -->
<div class="bg-[#1a1a1a] rounded-xl shadow-lg p-6 border border-[#333]">
<div class="flex justify-between items-center mb-6">
<div>
<h2 class="text-2xl font-bold">Introduction to AI.pdf</h2>
<p class="text-sm text-gray-400">Uploaded 2 days ago • 24 pages</p>
</div>
<div class="flex space-x-3">
<button class="w-10 h-10 rounded-full bg-[#252525] flex items-center justify-center border border-[#333] hover:bg-[#333] transition">
<i class="fas fa-download text-blue-400"></i>
</button>
<button class="w-10 h-10 rounded-full bg-[#252525] flex items-center justify-center border border-[#333] hover:bg-[#333] transition">
<i class="fas fa-share-alt text-purple-400"></i>
</button>
<button class="w-10 h-10 rounded-full bg-[#252525] flex items-center justify-center border border-[#333] hover:bg-[#333] transition">
<i class="fas fa-ellipsis-h text-gray-400"></i>
</button>
</div>
</div>
<!-- PDF Thumbnail Navigation -->
<div class="flex space-x-3 mb-6 overflow-x-auto pb-2 scrollbar-hide">
<div class="pdf-thumbnail active w-16 h-20 bg-[#121212] rounded-md flex items-center justify-center cursor-pointer border border-blue-400">
<i class="fas fa-file-pdf text-red-400 text-xl"></i>
</div>
<div class="pdf-thumbnail w-16 h-20 bg-[#121212] rounded-md flex items-center justify-center cursor-pointer">
<span class="text-gray-400 font-medium">1</span>
</div>
<div class="pdf-thumbnail w-16 h-20 bg-[#121212] rounded-md flex items-center justify-center cursor-pointer">
<span class="text-gray-400 font-medium">2</span>
</div>
<div class="pdf-thumbnail w-16 h-20 bg-[#121212] rounded-md flex items-center justify-center cursor-pointer">
<span class="text-gray-400 font-medium">3</span>
</div>
<div class="pdf-thumbnail w-16 h-20 bg-[#121212] rounded-md flex items-center justify-center cursor-pointer">
<span class="text-gray-400 font-medium">4</span>
</div>
<div class="pdf-thumbnail w-16 h-20 bg-[#121212] rounded-md flex items-center justify-center cursor-pointer">
<span class="text-gray-400 font-medium">5</span>
</div>
<div class="w-16 h-20 flex items-center justify-center">
<span class="text-gray-500">...</span>
</div>
<div class="pdf-thumbnail w-16 h-20 bg-[#121212] rounded-md flex items-center justify-center cursor-pointer">
<span class="text-gray-400 font-medium">24</span>
</div>
</div>
<!-- PDF Content -->
<div class="pdf-preview rounded-lg mb-6 flex items-center justify-center">
<div class="text-center p-8 max-w-md">
<div class="w-16 h-16 mx-auto mb-6 rounded-full bg-[#00a8ff10] flex items-center justify-center">
<i class="fas fa-file-pdf text-blue-400 text-2xl"></i>
</div>
<h3 class="text-xl font-semibold mb-2">Introduction to Artificial Intelligence</h3>
<p class="text-gray-400 mb-4">This PDF contains 24 pages of comprehensive information about AI fundamentals, history, and applications.</p>
<button class="px-4 py-2 bg-gradient-to-r from-blue-500 to-cyan-400 text-white rounded-full text-sm font-medium inline-block hover:opacity-90 transition">
<i class="fas fa-eye mr-2"></i>View Full Document
</button>
</div>
</div>
<!-- Document Tags -->
<div class="flex flex-wrap gap-2 mb-6">
<span class="px-3 py-1 bg-[#0077b620] text-blue-300 rounded-full text-sm">Artificial Intelligence</span>
<span class="px-3 py-1 bg-[#00b4d820] text-cyan-300 rounded-full text-sm">Machine Learning</span>
<span class="px-3 py-1 bg-[#9d4edd20] text-purple-300 rounded-full text-sm">Deep Learning</span>
<span class="px-3 py-1 bg-[#00f5d420] text-teal-300 rounded-full text-sm">Neural Networks</span>
</div>
<!-- Document Summary -->
<div class="mb-6">
<h3 class="font-semibold text-gray-200 mb-3 flex items-center">
<i class="fas fa-robot text-blue-400 mr-2"></i>
AI Summary
</h3>
<div class="bg-[#121212] p-4 rounded-lg border border-[#333]">
<p class="text-gray-300">
This document provides a comprehensive introduction to artificial intelligence, covering its history from the Dartmouth Conference to modern deep learning breakthroughs. Key topics include symbolic AI, machine learning paradigms (supervised, unsupervised, reinforcement), neural network architectures, and ethical considerations in AI development. The text also explores real-world applications across healthcare, finance, and autonomous systems.
</p>
</div>
</div>
<!-- Navigation Tabs -->
<div class="flex space-x-1 border-b border-[#333]">
<button class="tab-btn px-4 py-2.5 font-medium text-blue-400 border-b-2 border-blue-400 flex items-center" data-tab="chat">
<i class="fas fa-comment-dots mr-2"></i> Chat
</button>
<button class="tab-btn px-4 py-2.5 font-medium text-gray-400 hover:text-gray-200 flex items-center" data-tab="quiz">
<i class="fas fa-question-circle mr-2"></i> Quiz
</button>
<button class="tab-btn px-4 py-2.5 font-medium text-gray-400 hover:text-gray-200 flex items-center" data-tab="mindmap">
<i class="fas fa-project-diagram mr-2"></i> Mind Map
</button>
<button class="tab-btn px-4 py-2.5 font-medium text-gray-400 hover:text-gray-200 flex items-center" data-tab="flashcards">
<i class="fas fa-layer-group mr-2"></i> Flashcards
</button>
<button class="tab-btn px-4 py-2.5 font-medium text-gray-400 hover:text-gray-200 flex items-center" data-tab="notes">
<i class="fas fa-sticky-note mr-2"></i> Notes
</button>
</div>
</div>
<!-- Tab Contents -->
<div class="bg-[#1a1a1a] rounded-xl shadow-lg p-6 border border-[#333]">
<!-- Chat with AI Tab -->
<div id="chat" class="tab-content active">
<div class="flex justify-between items-center mb-6">
<h3 class="text-lg font-semibold flex items-center">
<i class="fas fa-comment-dots text-blue-400 mr-2"></i>
Chat with AI about this document
</h3>
<button class="px-3 py-1 bg-[#252525] text-gray-300 rounded-md text-sm hover:bg-[#333] transition border border-[#333]">
<i class="fas fa-redo mr-1"></i> New Chat
</button>
</div>
<div id="chat-container" class="h-96 overflow-y-auto mb-4 p-4 bg-[#121212] rounded-lg border border-[#333]">
<div class="chat-message ai-message">
<div class="flex items-start mb-1">
<div class="w-6 h-6 rounded-full bg-gradient-to-br from-blue-500 to-cyan-400 flex items-center justify-center mr-2">
<i class="fas fa-robot text-white text-xs"></i>
</div>
<span class="font-medium text-blue-400">NexusAI</span>
</div>
<p>Hello! I'm your AI assistant for this document. I can answer questions about "Introduction to AI.pdf". What would you like to know?</p>
</div>
<div class="chat-message user-message">
<p>What are the main types of AI discussed in this document?</p>
</div>
<div class="chat-message ai-message">
<div class="flex items-start mb-1">
<div class="w-6 h-6 rounded-full bg-gradient-to-br from-blue-500 to-cyan-400 flex items-center justify-center mr-2">
<i class="fas fa-robot text-white text-xs"></i>
</div>
<span class="font-medium text-blue-400">NexusAI</span>
</div>
<p>The document discusses three main types of AI: </p>
<ol class="list-decimal pl-5 mt-2 space-y-1">
<li><span class="font-medium">Narrow AI</span> - Specialized in one task (e.g., facial recognition)</li>
<li><span class="font-medium">General AI</span> - Human-level intelligence across domains</li>
<li><span class="font-medium">Superintelligent AI</span> - Exceeds human cognitive abilities</li>
</ol>
<p class="mt-2">The focus is primarily on current Narrow AI applications like speech recognition and recommendation systems.</p>
</div>
</div>
<div class="flex">
<input type="text" placeholder="Ask a question about this document..." class="flex-grow px-4 py-3 bg-[#121212] border border-[#333] rounded-l-lg focus:outline-none focus:ring-1 focus:ring-blue-500 text-gray-200">
<button class="px-5 bg-gradient-to-r from-blue-500 to-cyan-400 text-white rounded-r-lg hover:opacity-90 transition">
<i class="fas fa-paper-plane"></i>
</button>
</div>
</div>
<!-- Generate Quiz Tab -->
<div id="quiz" class="tab-content">
<div class="flex justify-between items-center mb-6">
<h3 class="text-lg font-semibold flex items-center">
<i class="fas fa-question-circle text-purple-400 mr-2"></i>
Generate Quiz from Document
</h3>
<div class="flex space-x-2">
<button class="px-3 py-1 bg-[#252525] text-gray-300 rounded-md text-sm hover:bg-[#333] transition border border-[#333]">
<i class="fas fa-cog mr-1"></i> Settings
</button>
<button class="px-3 py-1 bg-gradient-to-r from-purple-500 to-blue-500 text-white rounded-md text-sm hover:opacity-90 transition">
<i class="fas fa-sync-alt mr-1"></i> Regenerate
</button>
</div>
</div>
<div class="mb-6">
<label class="block text-sm font-medium text-gray-300 mb-2">Quiz Type</label>
<div class="flex flex-wrap gap-2">
<button class="px-3 py-1 bg-gradient-to-r from-blue-500 to-cyan-400 text-white rounded-full text-sm">Multiple Choice</button>
<button class="px-3 py-1 bg-[#252525] text-gray-300 rounded-full text-sm hover:bg-[#333] transition border border-[#333]">True/False</button>
<button class="px-3 py-1 bg-[#252525] text-gray-300 rounded-full text-sm hover:bg-[#333] transition border border-[#333]">Fill in the Blank</button>
<button class="px-3 py-1 bg-[#252525] text-gray-300 rounded-full text-sm hover:bg-[#333] transition border border-[#333]">Short Answer</button>
</div>
</div>
<div class="mb-6">
<label class="block text-sm font-medium text-gray-300 mb-2">Difficulty</label>
<div class="flex flex-wrap gap-2">
<button class="px-3 py-1 bg-[#252525] text-gray-300 rounded-full text-sm hover:bg-[#333] transition border border-[#333]">Easy</button>
<button class="px-3 py-1 bg-gradient-to-r from-green-500 to-teal-400 text-white rounded-full text-sm">Medium</button>
<button class="px-3 py-1 bg-[#252525] text-gray-300 rounded-full text-sm hover:bg-[#333] transition border border-[#333]">Hard</button>
</div>
</div>
<div class="space-y-6">
<!-- Question 1 -->
<div class="p-4 bg-[#121212] border border-[#333] rounded-lg">
<p class="font-medium mb-3 text-gray-200">1. What is the Turing Test used for in AI?</p>
<div class="grid grid-cols-1 md:grid-cols-2 gap-2">
<div class="quiz-option p-3 bg-[#1a1a1a] border border-[#333] rounded-md text-gray-300 hover:border-blue-400 transition">
A. Measuring computer processing speed
</div>
<div class="quiz-option p-3 bg-gradient-to-r from-blue-500 to-cyan-400 text-white rounded-md border border-blue-400">
B. Determining a machine's ability to exhibit intelligent behavior
</div>
<div class="quiz-option p-3 bg-[#1a1a1a] border border-[#333] rounded-md text-gray-300 hover:border-blue-400 transition">
C. Testing computer memory capacity
</div>
<div class="quiz-option p-3 bg-[#1a1a1a] border border-[#333] rounded-md text-gray-300 hover:border-blue-400 transition">
D. Evaluating network bandwidth
</div>
</div>
<div class="mt-3 text-sm text-green-400 bg-[#00a8ff10] p-2 rounded-md">
<i class="fas fa-check-circle mr-1"></i> Correct! The Turing Test evaluates a machine's ability to exhibit behavior indistinguishable from a human.
</div>
</div>
<!-- Question 2 -->
<div class="p-4 bg-[#121212] border border-[#333] rounded-lg">
<p class="font-medium mb-3 text-gray-200">2. Which of these is NOT a machine learning technique mentioned in the document?</p>
<div class="grid grid-cols-1 md:grid-cols-2 gap-2">
<div class="quiz-option p-3 bg-[#1a1a1a] border border-[#333] rounded-md text-gray-300 hover:border-blue-400 transition">
A. Supervised learning
</div>
<div class="quiz-option p-3 bg-[#1a1a1a] border border-[#333] rounded-md text-gray-300 hover:border-blue-400 transition">
B. Unsupervised learning
</div>
<div class="quiz-option p-3 bg-[#1a1a1a] border border-[#333] rounded-md text-gray-300 hover:border-blue-400 transition">
C. Quantum learning
</div>
<div class="quiz-option p-3 bg-[#1a1a1a] border border-[#333] rounded-md text-gray-300 hover:border-blue-400 transition">
D. Reinforcement learning
</div>
</div>
</div>
</div>
<div class="mt-6 flex justify-between">
<button class="px-4 py-2 bg-[#252525] text-gray-300 rounded-lg hover:bg-[#333] transition border border-[#333]">
<i class="fas fa-chevron-left mr-2"></i> Previous
</button>
<div class="flex space-x-2">
<button class="px-4 py-2 bg-gradient-to-r from-blue-500 to-cyan-400 text-white rounded-lg hover:opacity-90 transition">
Submit Answers
</button>
<button class="px-4 py-2 bg-gradient-to-r from-purple-500 to-pink-500 text-white rounded-lg hover:opacity-90 transition">
<i class="fas fa-download mr-2"></i> Export Quiz
</button>
</div>
</div>
</div>
<!-- Mind Map Tab -->
<div id="mindmap" class="tab-content">
<div class="flex justify-between items-center mb-6">
<h3 class="text-lg font-semibold flex items-center">
<i class="fas fa-project-diagram text-purple-400 mr-2"></i>
Document Mind Map
</h3>
<div class="flex space-x-2">
<button class="px-3 py-1 bg-[#252525] text-gray-300 rounded-md text-sm hover:bg-[#333] transition border border-[#333]">
<i class="fas fa-cog mr-1"></i> Layout
</button>
<button class="px-3 py-1 bg-gradient-to-r from-purple-500 to-blue-500 text-white rounded-md text-sm hover:opacity-90 transition">
<i class="fas fa-sync-alt mr-1"></i> Regenerate
</button>
</div>
</div>
<div class="mind-map-container">
<!-- Central Node -->
<div class="node" style="top: 50%; left: 50%; transform: translate(-50%, -50%); background: linear-gradient(135deg, #0077b6, #00b4d8); color: white; font-weight: 500;">
Artificial Intelligence
</div>
<!-- First Level Nodes -->
<div class="node" style="top: 30%; left: 30%; background: linear-gradient(135deg, #9d4edd, #7b2cbf); color: white; font-weight: 500;">
Machine Learning
</div>
<div class="node" style="top: 30%; left: 70%; background: linear-gradient(135deg, #00f5d4, #00bbf9); color: white; font-weight: 500;">
Neural Networks
</div>
<div class="node" style="top: 70%; left: 30%; background: linear-gradient(135deg, #f8961e, #f3722c); color: white; font-weight: 500;">
Applications
</div>
<div class="node" style="top: 70%; left: 70%; background: linear-gradient(135deg, #7209b7, #560bad); color: white; font-weight: 500;">
Ethics
</div>
<!-- Second Level Nodes -->
<div class="node" style="top: 15%; left: 15%;">
Supervised Learning
</div>
<div class="node" style="top: 15%; left: 45%;">
Unsupervised Learning
</div>
<div class="node" style="top: 45%; left: 15%;">
Reinforcement Learning
</div>
<div class="node" style="top: 15%; left: 85%;">
CNN
</div>
<div class="node" style="top: 45%; left: 85%;">
RNN
</div>
<div class="node" style="top: 85%; left: 15%;">
Healthcare
</div>
<div class="node" style="top: 85%; left: 45%;">
Autonomous Vehicles
</div>
<div class="node" style="top: 85%; left: 85%;">
Bias
</div>
</div>
<div class="mt-4 flex justify-end">
<button class="px-4 py-2 bg-gradient-to-r from-purple-500 to-blue-500 text-white rounded-lg hover:opacity-90 transition">
<i class="fas fa-download mr-2"></i> Export Image
</button>
</div>
</div>
<!-- Flashcards Tab -->
<div id="flashcards" class="tab-content">
<div class="flex justify-between items-center mb-6">
<h3 class="text-lg font-semibold flex items-center">
<i class="fas fa-layer-group text-cyan-400 mr-2"></i>
Document Flashcards
</h3>
<div class="flex space-x-2">
<button class="px-3 py-1 bg-[#252525] text-gray-300 rounded-md text-sm hover:bg-[#333] transition border border-[#333]">
<i class="fas fa-cog mr-1"></i> Settings
</button>
<button class="px-3 py-1 bg-gradient-to-r from-cyan-500 to-blue-500 text-white rounded-md text-sm hover:opacity-90 transition">
<i class="fas fa-sync-alt mr-1"></i> Regenerate
</button>
</div>
</div>
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4">
<!-- Flashcard 1 -->
<div class="flashcard">
<div class="flashcard-inner">
<div class="flashcard-front">
<p class="text-lg font-medium text-center text-gray-200 mb-4">What is the definition of Artificial Intelligence?</p>
<button class="px-3 py-1 bg-gradient-to-r from-blue-500 to-cyan-400 text-white rounded-md text-sm hover:opacity-90 transition">
Show Answer
</button>
</div>
<div class="flashcard-back">
<p class="text-gray-300 text-center mb-4">The simulation of human intelligence processes by machines, especially computer systems, including learning, reasoning, and self-correction.</p>
<button class="px-3 py-1 bg-[#252525] text-gray-300 rounded-md text-sm hover:bg-[#333] transition border border-[#333]">
Show Question
</button>
</div>
</div>
</div>
<!-- Flashcard 2 -->
<div class="flashcard">
<div class="flashcard-inner">
<div class="flashcard-front">
<p class="text-lg font-medium text-center text-gray-200 mb-4">What are the three types of machine learning?</p>
<button class="px-3 py-1 bg-gradient-to-r from-blue-500 to-cyan-400 text-white rounded-md text-sm hover:opacity-90 transition">
Show Answer
</button>
</div>
<div class="flashcard-back">
<p class="text-gray-300 text-center mb-4">
<span class="block font-medium">1. Supervised Learning</span>
<span class="block font-medium">2. Unsupervised Learning</span>
<span class="block font-medium">3. Reinforcement Learning</span>
</p>
<button class="px-3 py-1 bg-[#252525] text-gray-300 rounded-md text-sm hover:bg-[#333] transition border border-[#333]">
Show Question
</button>
</div>
</div>
</div>
<!-- Flashcard 3 -->
<div class="flashcard">
<div class="flashcard-inner">
<div class="flashcard-front">
<p class="text-lg font-medium text-center text-gray-200 mb-4">What is backpropagation in neural networks?</p>
<button class="px-3 py-1 bg-gradient-to-r from-blue-500 to-cyan-400 text-white rounded-md text-sm hover:opacity-90 transition">
Show Answer
</button>
</div>
<div class="flashcard-back">
<p class="text-gray-300 text-center mb-4">A method used in artificial neural networks to calculate the gradient of the loss function with respect to the weights, used to update the weights during training.</p>
<button class="px-3 py-1 bg-[#252525] text-gray-300 rounded-md text-sm hover:bg-[#333] transition border border-[#333]">
Show Question
</button>
</div>
</div>
</div>
</div>
<div class="mt-6 flex justify-between">
<button class="px-4 py-2 bg-[#252525] text-gray-300 rounded-lg hover:bg-[#333] transition border border-[#333]">
<i class="fas fa-chevron-left mr-2"></i> Previous
</button>
<button class="px-4 py-2 bg-gradient-to-r from-cyan-500 to-blue-500 text-white rounded-lg hover:opacity-90 transition">
<i class="fas fa-download mr-2"></i> Export Flashcards
</button>
</div>
</div>
<!-- Notes Tab -->
<div id="notes" class="tab-content">
<div class="flex justify-between items-center mb-6">
<h3 class="text-lg font-semibold flex items-center">
<i class="fas fa-sticky-note text-yellow-400 mr-2"></i>
Document Notes
</h3>
<div class="flex space-x-2">
<button class="px-3 py-1 bg-gradient-to-r from-yellow-500 to-orange-500 text-white rounded-md text-sm hover:opacity-90 transition">
<i class="fas fa-plus mr-1"></i> Add Note
</button>
</div>
</div>
<div class="space-y-4">
<!-- Note 1 -->
<div class="p-4 bg-[#121212] border border-yellow-400/20 rounded-lg">
<div class="flex justify-between items-start mb-2">
<h4 class="font-medium text-yellow-400 flex items-center">
<i class="fas fa-lightbulb mr-2"></i>
Key Concepts
</h4>
<div class="flex space-x-2">
<button class="p-1 text-yellow-400 hover:text-yellow-300">
<i class="fas fa-edit"></i>
</button>
<button class="p-1 text-yellow-400 hover:text-yellow-300">
<i class="fas fa-trash"></i>
</button>
</div>
</div>
<p class="text-gray-300">
<span class="block mb-1">- AI involves machines performing tasks that typically require human intelligence</span>
<span class="block mb-1">- Machine learning is a subset of AI focused on pattern recognition</span>
<span class="block">- Neural networks are inspired by biological neurons</span>
</p>
<p class="text-xs text-yellow-400/70 mt-3">Created: 2 days ago</p>
</div>
<!-- Note 2 -->
<div class="p-4 bg-[#121212] border border-blue-400/20 rounded-lg">
<div class="flex justify-between items-start mb-2">
<h4 class="font-medium text-blue-400 flex items-center">
<i class="fas fa-brain mr-2"></i>
Ethical Considerations
</h4>
<div class="flex space-x-2">
<button class="p-1 text-blue-400 hover:text-blue-300">
<i class="fas fa-edit"></i>
</button>
<button class="p-1 text-blue-400 hover:text-blue-300">
<i class="fas fa-trash"></i>
</button>
</div>
</div>
<p class="text-gray-300">
<span class="block mb-1">- Bias in training data can lead to discriminatory AI systems</span>
<span class="block mb-1">- Privacy concerns with data collection</span>
<span class="block">- Job displacement due to automation</span>
</p>
<p class="text-xs text-blue-400/70 mt-3">Created: 1 day ago</p>
</div>
<!-- Note 3 -->
<div class="p-4 bg-[#121212] border border-purple-400/20 rounded-lg">
<div class="flex justify-between items-start mb-2">
<h4 class="font-medium text-purple-400 flex items-center">
<i class="fas fa-chart-line mr-2"></i>
Future Trends
</h4>
<div class="flex space-x-2">
<button class="p-1 text-purple-400 hover:text-purple-300">
<i class="fas fa-edit"></i>
</button>
<button class="p-1 text-purple-400 hover:text-purple-300">
<i class="fas fa-trash"></i>
</button>
</div>
</div>
<p class="text-gray-300">
<span class="block mb-1">- Explainable AI for better transparency</span>
<span class="block mb-1">- AI-assisted healthcare diagnostics</span>
<span class="block">- More sophisticated natural language processing</span>
</p>
<p class="text-xs text-purple-400/70 mt-3">Created: Today</p>
</div>
</div>
<div class="mt-6">
<button class="px-4 py-2 bg-gradient-to-r from-purple-500 to-blue-500 text-white rounded-lg hover:opacity-90 transition">
<i class="fas fa-download mr-2"></i> Export Notes
</button>
</div>
</div>
</div>
</div>
</div>
</div>
<script>
// Tab switching functionality
document.querySelectorAll('.tab-btn').forEach(button => {
button.addEventListener('click', () => {
// Remove active class from all buttons and tabs
document.querySelectorAll('.tab-btn').forEach(btn => {
btn.classList.remove('text-blue-400', 'border-blue-400');
btn.classList.add('text-gray-400', 'hover:text-gray-200');
});
document.querySelectorAll('.tab-content').forEach(tab => {
tab.classList.remove('active');
});
// Add active class to clicked button and corresponding tab
const tabId = button.getAttribute('data-tab');
button.classList.remove('text-gray-400', 'hover:text-gray-200');
// Set appropriate color based on tab
if(tabId === 'chat') {
button.classList.add('text-blue-400', 'border-blue-400');
} else if(tabId === 'quiz') {
button.classList.add('text-purple-400', 'border-purple-400');
} else if(tabId === 'mindmap') {
button.classList.add('text-purple-400', 'border-purple-400');
} else if(tabId === 'flashcards') {
button.classList.add('text-cyan-400', 'border-cyan-400');
} else if(tabId === 'notes') {
button.classList.add('text-yellow-400', 'border-yellow-400');
}
document.getElementById(tabId).classList.add('active');
});
});
// File upload dropzone functionality
const dropzone = document.getElementById('dropzone');
const fileInput = document.getElementById('fileInput');
dropzone.addEventListener('click', () => fileInput.click());
fileInput.addEventListener('change', () => {
if (fileInput.files.length > 0) {
alert(`Successfully selected ${fileInput.files.length} file(s)`);
}
});
['dragenter', 'dragover', 'dragleave', 'drop'].forEach(eventName => {
dropzone.addEventListener(eventName, preventDefaults, false);
});
function preventDefaults(e) {
e.preventDefault();
e.stopPropagation();
}
['dragenter', 'dragover'].forEach(eventName => {
dropzone.addEventListener(eventName, highlight, false);
});
['dragleave', 'drop'].forEach(eventName => {
dropzone.addEventListener(eventName, unhighlight, false);
});
function highlight() {
dropzone.classList.add('active');
}
function unhighlight() {
dropzone.classList.remove('active');
}
dropzone.addEventListener('drop', handleDrop, false);
function handleDrop(e) {
const dt = e.dataTransfer;
const files = dt.files;
fileInput.files = files;
if (files.length > 0) {
alert(`Successfully dropped ${files.length} file(s)`);
}
}
// Quiz option selection
document.querySelectorAll('.quiz-option').forEach(option => {
option.addEventListener('click', () => {
// Remove selected class from all options in this question
const questionDiv = option.closest('.bg-[#121212]');
questionDiv.querySelectorAll('.quiz-option').forEach(opt => {
opt.classList.remove('bg-gradient-to-r', 'from-blue-500', 'to-cyan-400', 'text-white', 'border-blue-400');
opt.classList.add('bg-[#1a1a1a]', 'text-gray-300', 'border-[#333]');
});
// Add selected class to clicked option
option.classList.remove('bg-[#1a1a1a]', 'text-gray-300', 'border-[#333]');
option.classList.add('bg-gradient-to-r', 'from-blue-500', 'to-cyan-400', 'text-white', 'border-blue-400');
});
});
// Flashcard flip functionality
document.querySelectorAll('.flashcard').forEach(card => {
card.addEventListener('click', () => {
card.classList.toggle('flipped');
});
});
// PDF thumbnail selection
document.querySelectorAll('.pdf-thumbnail').forEach(thumb => {
thumb.addEventListener('click', () => {
document.querySelectorAll('.pdf-thumbnail').forEach(t => {
t.classList.remove('active', 'border-blue-400');
});
thumb.classList.add('active', 'border-blue-400');
});
});
// PDF card selection in sidebar
document.querySelectorAll('.pdf-card').forEach(card => {
card.addEventListener('click', () => {
document.querySelectorAll('.pdf-card').forEach(c => {
c.classList.remove('active');
});
card.classList.add('active');
});
});
// Simulate mind map connections (would be better with a proper library)
setTimeout(() => {
const mindMap = document.querySelector('.mind-map-container');
const nodes = document.querySelectorAll('.node');
// Clear existing connections
document.querySelectorAll('.connection').forEach(conn => conn.remove());
// This is a simplified version - a real implementation would use a proper library
nodes.forEach(node => {
if (!node.style.transform.includes('translate(-50%, -50%)')) {
const line = document.createElement('div');
line.classList.add('connection');
const rect1 = mindMap.querySelector('.node').getBoundingClientRect();
const rect2 = node.getBoundingClientRect();
const x1 = rect1.left + rect1.width / 2;
const y1 = rect1.top + rect1.height / 2;
const x2 = rect2.left + rect2.width / 2;
const y2 = rect2.top + rect2.height / 2;
const length = Math.sqrt(Math.pow(x2 - x1, 2) + Math.pow(y2 - y1, 2));
const angle = Math.atan2(y2 - y1, x2 - x1) * 180 / Math.PI;
line.style.width = `${length}px`;
line.style.left = `${x1 - mindMap.getBoundingClientRect().left}px`;
line.style.top = `${y1 - mindMap.getBoundingClientRect().top}px`;
line.style.transform = `rotate(${angle}deg)`;
mindMap.appendChild(line);
}
});
}, 500);
</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=div988/pddf" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>