Spaces:
Running
Running
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Relationships - CharacterVerse Nexus</title> | |
| <link rel="icon" type="image/x-icon" href="/static/favicon.ico"> | |
| <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> | |
| <style> | |
| @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap'); | |
| body { | |
| font-family: 'Inter', sans-serif; | |
| } | |
| .sidebar { | |
| transition: all 0.3s ease; | |
| } | |
| @media (max-width: 768px) { | |
| .sidebar { | |
| transform: translateX(-100%); | |
| } | |
| .sidebar.open { | |
| transform: translateX(0); | |
| } | |
| } | |
| .glass-card { | |
| backdrop-filter: blur(16px) saturate(180%); | |
| -webkit-backdrop-filter: blur(16px) saturate(180%); | |
| background-color: rgba(255, 255, 255, 0.75); | |
| border-radius: 12px; | |
| border: 1px solid rgba(209, 213, 219, 0.3); | |
| } | |
| .gradient-text { | |
| background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); | |
| -webkit-background-clip: text; | |
| -webkit-text-fill-color: transparent; | |
| background-clip: text; | |
| } | |
| .relationship-card { | |
| transition: all 0.3s ease; | |
| border: 1px solid rgba(209, 213, 219, 0.3); | |
| } | |
| .relationship-card:hover { | |
| transform: translateY(-5px); | |
| box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); | |
| } | |
| </style> | |
| </head> | |
| <body class="bg-gray-50 min-h-screen"> | |
| <!-- Mobile Menu Button --> | |
| <div class="md:hidden fixed top-4 left-4 z-50"> | |
| <button id="menuToggle" class="bg-white p-2 rounded-lg shadow-lg"> | |
| <i data-feather="menu" class="h-6 w-6 text-gray-700"></i> | |
| </button> | |
| </div> | |
| <!-- Sidebar --> | |
| <div id="sidebar" class="sidebar fixed inset-y-0 left-0 z-40 w-64 bg-white shadow-xl"> | |
| <div class="flex flex-col h-full"> | |
| <!-- Logo --> | |
| <div class="flex items-center justify-center h-16 border-b border-gray-200"> | |
| <i data-feather="users" class="h-8 w-8 text-purple-600"></i> | |
| <span class="ml-2 text-xl font-bold gradient-text">CharacterVerse Nexus</span> | |
| </div> | |
| <!-- Navigation --> | |
| <nav class="flex-1 px-4 py-6 space-y-2"> | |
| <a href="dashboard.html" class="flex items-center px-4 py-3 text-gray-700 hover:bg-gray-100 rounded-lg"> | |
| <i data-feather="home" class="h-5 w-5 mr-3"></i> | |
| Dashboard | |
| </a> | |
| <a href="characters.html" class="flex items-center px-4 py-3 text-gray-700 hover:bg-gray-100 rounded-lg"> | |
| <i data-feather="user" class="h-5 w-5 mr-3"></i> | |
| Characters | |
| </a> | |
| <a href="relationships.html" class="flex items-center px-4 py-3 text-purple-600 bg-purple-50 rounded-lg"> | |
| <i data-feather="git-branch" class="h-5 w-5 mr-3"></i> | |
| Relationships | |
| </a> | |
| <a href="timeline.html" class="flex items-center px-4 py-3 text-gray-700 hover:bg-gray-100 rounded-lg"> | |
| <i data-feather="calendar" class="h-5 w-5 mr-3"></i> | |
| Timeline | |
| </a> | |
| <a href="ai-studio.html" class="flex items-center px-4 py-3 text-gray-700 hover:bg-gray-100 rounded-lg"> | |
| <i data-feather="zap" class="h-5 w-5 mr-3"></i> | |
| AI Studio | |
| </a> | |
| <a href="search.html" class="flex items-center px-4 py-3 text-gray-700 hover:bg-gray-100 rounded-lg"> | |
| <i data-feather="search" class="h-5 w-5 mr-3"></i> | |
| Search | |
| </a> | |
| </nav> | |
| <!-- User Section --> | |
| <div class="border-t border-gray-200 p-4"> | |
| <div class="flex items-center"> | |
| <img src="http://static.photos/people/200x200/1" alt="User" class="h-8 w-8 rounded-full"> | |
| <div class="ml-3"> | |
| <p class="text-sm font-medium text-gray-900">Sarah Writer</p> | |
| <p class="text-xs text-gray-500">sarah@example.com</p> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Main Content --> | |
| <div class="md:ml-64"> | |
| <!-- Header --> | |
| <header class="bg-white shadow-sm border-b border-gray-200"> | |
| <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"> | |
| <div class="flex justify-between items-center h-16"> | |
| <div> | |
| <h1 class="text-2xl font-bold text-gray-900">Relationships</h1> | |
| <p class="text-gray-600">Map and visualize character connections</p> | |
| </div> | |
| <div class="flex items-center space-x-4"> | |
| <button id="addRelationshipBtn" class="bg-purple-600 text-white px-4 py-2 rounded-lg hover:bg-purple-700 transition-colors"> | |
| <i data-feather="git-branch" class="h-4 w-4 inline mr-2"></i> | |
| Add Relationship | |
| </button> | |
| </div> | |
| </div> | |
| </header> | |
| <!-- Main Content Area --> | |
| <main class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8"> | |
| <!-- Relationship Grid --> | |
| <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6"> | |
| <!-- Relationship 1 --> | |
| <div class="relationship-card bg-white rounded-xl p-6 shadow-sm"> | |
| <div class="flex items-center justify-between mb-4"> | |
| <div class="flex items-center"> | |
| <img src="http://static.photos/people/200x200/2" alt="Elara" class="h-10 w-10 rounded-full"> | |
| <div class="ml-3"> | |
| <p class="text-sm font-medium text-gray-900">Elara → Kaelen</p> | |
| </div> | |
| <span class="px-2 py-1 bg-purple-100 text-purple-800 text-xs rounded-full">Mentorship</span> | |
| </div> | |
| <div class="text-sm text-gray-600 mb-3"> | |
| <span class="font-medium">Type:</span> Mentorship<br> | |
| <span class="font-medium">Direction:</span> Bidirectional<br> | |
| <span class="font-medium">Confidence:</span> 0.95 | |
| </div> | |
| <div class="flex justify-between items-center text-sm"> | |
| <span class="text-gray-600">3 sources</span> | |
| <button class="text-purple-600 hover:text-purple-700">View Details</button> | |
| </div> | |
| </div> | |
| <!-- Relationship 2 --> | |
| <div class="relationship-card bg-white rounded-xl p-6 shadow-sm"> | |
| <div class="flex items-center justify-between mb-4"> | |
| <div class="flex items-center"> | |
| <img src="http://static.photos/people/200x200/2" alt="Elara" class="h-10 w-10 rounded-full"> | |
| <div class="ml-3"> | |
| <p class="text-sm font-medium text-gray-900">Kaelen → Malachi</p> | |
| </div> | |
| <span class="px-2 py-1 bg-red-100 text-red-800 text-xs rounded-full">Rivalry</span> | |
| </div> | |
| <div class="text-sm text-gray-600 mb-3"> | |
| <span class="font-medium">Type:</span> Rivalry<br> | |
| <span class="font-medium">Direction:</span> Bidirectional<br> | |
| <span class="font-medium">Confidence:</span> 0.9 | |
| </div> | |
| <div class="flex justify-between items-center text-sm"> | |
| <span class="text-gray-600">4 sources</span> | |
| <button class="text-purple-600 hover:text-purple-700">View Details</button> | |
| </div> | |
| </div> | |
| <!-- Relationship 3 --> | |
| <div class="relationship-card bg-white rounded-xl p-6 shadow-sm"> | |
| <div class="flex items-center justify-between mb-4"> | |
| <div class="flex items-center"> | |
| <img src="http://static.photos/people/200x200/5" alt="Lyra" class="h-10 w-10 rounded-full"> | |
| <div class="ml-3"> | |
| <p class="text-sm font-medium text-gray-900">Lyra → Elara</p> | |
| </div> | |
| <span class="px-2 py-1 bg-green-100 text-green-800 text-xs rounded-full">Friendship</span> | |
| </div> | |
| <div class="text-sm text-gray-600 mb-3"> | |
| <span class="font-medium">Type:</span> Friendship<br> | |
| <span class="font-medium">Direction:</span> Bidirectional<br> | |
| <span class="font-medium">Confidence:</span> 0.85 | |
| </div> | |
| <div class="flex justify-between items-center text-sm"> | |
| <span class="text-gray-600">2 sources</span> | |
| <button class="text-purple-600 hover:text-purple-700">View Details</button> | |
| </div> | |
| </div> | |
| </div> | |
| </main> | |
| </div> | |
| <script> | |
| // Mobile menu toggle | |
| document.getElementById('menuToggle').addEventListener('click', function() { | |
| document.getElementById('sidebar').classList.toggle('open'); | |
| }); | |
| // Add Relationship button | |
| document.getElementById('addRelationshipBtn').addEventListener('click', function() { | |
| const char1 = prompt('Enter first character name:'); | |
| const char2 = prompt('Enter second character name:'); | |
| if (char1 && char2 && char1.trim() && char2.trim()) { | |
| alert(`Relationship between "${char1}" and "${char2}" added successfully!`); | |
| } | |
| }); | |
| // Initialize Feather Icons | |
| feather.replace(); | |
| </script> | |
| </body> | |
| </html> |