File size: 12,080 Bytes
c03103d | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Library - CanvasCrafter Studio</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; }
.gradient-bg { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.glass-effect { backdrop-filter: blur(10px); background: rgba(255, 255, 255, 0.1); }
.hover-scale { transition: all 0.3s ease; }
.hover-scale:hover { transform: scale(1.05); }
</style>
</head>
<body class="min-h-screen gradient-bg">
<!-- Navigation -->
<nav class="glass-effect border-b border-white/20">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="flex justify-between h-16 items-center">
<div class="flex items-center">
<i data-feather="image" class="text-white w-8 h-8 mr-3"></i>
<span class="text-white text-xl font-bold">CanvasCrafter Studio</span>
</div>
<div class="hidden md:flex space-x-8">
<a href="index.html" class="text-white/80 hover:text-white transition-colors">Home</a>
<a href="templates.html" class="text-white/80 hover:text-white transition-colors">Templates</a>
<a href="editor.html" class="text-white/80 hover:text-white transition-colors">Editor</a>
<a href="library.html" class="text-white font-semibold">Library</a>
</div>
<button class="bg-white/20 text-white px-4 py-2 rounded-lg hover:bg-white/30 transition-colors">
My Account
</button>
</div>
</div>
</nav>
<!-- Library Content -->
<section class="py-12 px-4">
<div class="max-w-7xl mx-auto">
<h1 class="text-4xl font-bold text-white text-center mb-4">My Library</h1>
<p class="text-white/70 text-center mb-12 max-w-2xl mx-auto">
Access your Jellyfin media library and browse through your collection of movies, TV shows, and more.
Select any item to start creating custom posters.
</p>
<!-- Jellyfin Connection Status -->
<div class="glass-effect rounded-2xl p-6 mb-8">
<div class="flex items-center justify-between">
<div class="flex items-center">
<div class="w-3 h-3 bg-green-400 rounded-full mr-3 animate-pulse"></div>
<span class="text-white font-medium">Connected to Jellyfin Server</span>
</div>
<button class="text-white/60 hover:text-white transition-colors">
<i data-feather="settings" class="w-5 h-5"></i>
</button>
</div>
</div>
<!-- Library Tabs -->
<div class="flex flex-wrap gap-4 justify-center mb-12">
<button class="glass-effect text-white px-6 py-3 rounded-xl font-medium hover-scale active">Movies</button>
<button class="glass-effect text-white/60 px-6 py-3 rounded-xl font-medium hover-scale">TV Shows</button>
<button class="glass-effect text-white/60 px-6 py-3 rounded-xl font-medium hover-scale">Anime</button>
<button class="glass-effect text-white/60 px-6 py-3 rounded-xl font-medium hover-scale">Collections</button>
</div>
<!-- Media Grid -->
<div class="grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 xl:grid-cols-6 gap-6">
<!-- Media Item 1 -->
<div class="hover-scale cursor-pointer">
<div class="aspect-[2/3] bg-white/10 rounded-xl mb-2 overflow-hidden">
<img src="http://static.photos/movie/200x300/101" alt="Movie Poster" class="w-full h-full object-cover">
</div>
<h3 class="text-white text-sm font-medium truncate">Inception</h3>
<p class="text-white/60 text-xs">2010 • Sci-Fi</p>
</div>
<!-- Media Item 2 -->
<div class="hover-scale cursor-pointer">
<div class="aspect-[2/3] bg-white/10 rounded-xl mb-2 overflow-hidden">
<img src="http://static.photos/movie/200x300/102" alt="Movie Poster" class="w-full h-full object-cover">
</div>
<h3 class="text-white text-sm font-medium truncate">The Dark Knight</h3>
<p class="text-white/60 text-xs">2008 • Action</p>
</div>
<!-- Media Item 3 -->
<div class="hover-scale cursor-pointer">
<div class="aspect-[2/3] bg-white/10 rounded-xl mb-2 overflow-hidden">
<img src="http://static.photos/movie/200x300/103" alt="Movie Poster" class="w-full h-full object-cover">
</div>
<h3 class="text-white text-sm font-medium truncate">Interstellar</h3>
<p class="text-white/60 text-xs">2014 • Drama</p>
</div>
<!-- Media Item 4 -->
<div class="hover-scale cursor-pointer">
<div class="aspect-[2/3] bg-white/10 rounded-xl mb-2 overflow-hidden">
<img src="http://static.photos/movie/200x300/104" alt="Movie Poster" class="w-full h-full object-cover">
</div>
<h3 class="text-white text-sm font-medium truncate">The Matrix</h3>
<p class="text-white/60 text-xs">1999 • Sci-Fi</p>
</div>
<!-- Media Item 5 -->
<div class="hover-scale cursor-pointer">
<div class="aspect-[2/3] bg-white/10 rounded-xl mb-2 overflow-hidden">
<img src="http://static.photos/movie/200x300/105" alt="Movie Poster" class="w-full h-full object-cover">
</div>
<h3 class="text-white text-sm font-medium truncate">Blade Runner 2049</h3>
<p class="text-white/60 text-xs">2017 • Sci-Fi</p>
</div>
<!-- Media Item 6 -->
<div class="hover-scale cursor-pointer">
<div class="aspect-[2/3] bg-white/10 rounded-xl mb-2 overflow-hidden">
<img src="http://static.photos/movie/200x300/106" alt="Movie Poster" class="w-full h-full object-cover">
</div>
<h3 class="text-white text-sm font-medium truncate">Pulp Fiction</h3>
<p class="text-white/60 text-xs">1994 • Crime</p>
</div>
<!-- Media Item 7 -->
<div class="hover-scale cursor-pointer">
<div class="aspect-[2/3] bg-white/10 rounded-xl mb-2 overflow-hidden">
<img src="http://static.photos/movie/200x300/107" alt="Movie Poster" class="w-full h-full object-cover">
</div>
<h3 class="text-white text-sm font-medium truncate">The Shawshank Redemption</h3>
<p class="text-white/60 text-xs">1994 • Drama</p>
</div>
<!-- Media Item 8 -->
<div class="hover-scale cursor-pointer">
<div class="aspect-[2/3] bg-white/10 rounded-xl mb-2 overflow-hidden">
<img src="http://static.photos/movie/200x300/108" alt="Movie Poster" class="w-full h-full object-cover">
</div>
<h3 class="text-white text-sm font-medium truncate">Fight Club</h3>
<p class="text-white/60 text-xs">1999 • Drama</p>
</div>
<!-- Media Item 9 -->
<div class="hover-scale cursor-pointer">
<div class="aspect-[2/3] bg-white/10 rounded-xl mb-2 overflow-hidden">
<img src="http://static.photos/movie/200x300/109" alt="Movie Poster" class="w-full h-full object-cover">
</div>
<h3 class="text-white text-sm font-medium truncate">Goodfellas</h3>
<p class="text-white/60 text-xs">1990 • Crime</p>
</div>
<!-- Media Item 10 -->
<div class="hover-scale cursor-pointer">
<div class="aspect-[2/3] bg-white/10 rounded-xl mb-2 overflow-hidden">
<img src="http://static.photos/movie/200x300/110" alt="Movie Poster" class="w-full h-full object-cover">
</div>
<h3 class="text-white text-sm font-medium truncate">The Godfather</h3>
<p class="text-white/60 text-xs">1972 • Crime</p>
</div>
<!-- Media Item 11 -->
<div class="hover-scale cursor-pointer">
<div class="aspect-[2/3] bg-white/10 rounded-xl mb-2 overflow-hidden">
<img src="http://static.photos/movie/200x300/111" alt="Movie Poster" class="w-full h-full object-cover">
</div>
<h3 class="text-white text-sm font-medium truncate">Forrest Gump</h3>
<p class="text-white/60 text-xs">1994 • Drama</p>
</div>
<!-- Media Item 12 -->
<div class="hover-scale cursor-pointer">
<div class="aspect-[2/3] bg-white/10 rounded-xl mb-2 overflow-hidden">
<img src="http://static.photos/movie/200x300/112" alt="Movie Poster" class="w-full h-full object-cover">
</div>
<h3 class="text-white text-sm font-medium truncate">The Prestige</h3>
<p class="text-white/60 text-xs">2006 • Mystery</p>
</div>
</div>
<!-- Load More -->
<div class="flex justify-center mt-12">
<button class="glass-effect text-white px-8 py-3 rounded-xl font-medium hover-scale">
Load More Media
</button>
</div>
</div>
</section>
<script>
feather.replace();
// Media item selection
document.querySelectorAll('.hover-scale').forEach(item => {
item.addEventListener('click', function() {
// Get media title
const title = this.querySelector('h3').textContent;
// Add selection effect
this.style.transform = 'scale(0.95)';
setTimeout(() => {
this.style.transform = '';
// Navigate to editor with selected media
window.location.href = `editor.html?media=${encodeURIComponent(title)}`;
}, 200);
});
});
// Tab switching
document.querySelectorAll('.glass-effect').forEach(button => {
button.addEventListener('click', function() {
// Remove active class from all tabs
document.querySelectorAll('.glass-effect').forEach(tab => {
tab.classList.remove('active', 'text-white');
tab.classList.add('text-white/60');
});
// Add active class to clicked tab
this.classList.add('active', 'text-white');
this.classList.remove('text-white/60');
});
});
</script>
</body>
</html> |