Download index.html from Deflook/def: direct link, hf CLI and curl.
- Browser
- Download file 56.7 kB
-
https://huggingface.co/spaces/Deflook/def/resolve/main/index.html
- Command line
-
hf download hf://spaces/Deflook/def/index.html
-
curl -L -o index.html https://huggingface.co/spaces/Deflook/def/resolve/main/index.html
56.7 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Deflook Academy - Basketball Training</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> | |
| @import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Montserrat:wght@400;600;700&display=swap'); | |
| body { | |
| font-family: 'Montserrat', sans-serif; | |
| background-color: #f8f9fa; | |
| } | |
| .logo-text { | |
| font-family: 'Bebas Neue', cursive; | |
| } | |
| .bg-court { | |
| background-image: url('https://images.unsplash.com/photo-1540747913346-19e32dc3e97e?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1600&q=80'); | |
| background-size: cover; | |
| background-position: center; | |
| filter: blur(2px); | |
| } | |
| .video-thumbnail { | |
| transition: transform 0.3s ease; | |
| } | |
| .video-thumbnail:hover { | |
| transform: scale(1.03); | |
| } | |
| .floating-btn { | |
| box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4); | |
| } | |
| .chat-bubble { | |
| max-width: 80%; | |
| } | |
| .progress-bar { | |
| transition: width 0.5s ease; | |
| } | |
| .sidebar { | |
| transition: transform 0.3s ease; | |
| } | |
| @media (max-width: 768px) { | |
| .sidebar { | |
| transform: translateX(-100%); | |
| position: fixed; | |
| z-index: 50; | |
| height: 100vh; | |
| top: 0; | |
| left: 0; | |
| } | |
| .sidebar.open { | |
| transform: translateX(0); | |
| } | |
| } | |
| .tab-content { | |
| display: none; | |
| } | |
| .tab-content.active { | |
| display: block; | |
| } | |
| .nav-tab { | |
| transition: all 0.3s ease; | |
| } | |
| .nav-tab.active { | |
| background-color: #f97316; | |
| color: white; | |
| } | |
| </style> | |
| </head> | |
| <body class="min-h-screen"> | |
| <!-- Login Screen --> | |
| <div id="login-screen" class="fixed inset-0 flex items-center justify-center bg-gray-900 bg-opacity-90 z-50"> | |
| <div class="relative w-full max-w-md mx-4 overflow-hidden rounded-xl shadow-2xl"> | |
| <div class="absolute inset-0 bg-court"></div> | |
| <div class="relative bg-white bg-opacity-90 backdrop-blur-sm p-8"> | |
| <div class="flex flex-col items-center mb-8"> | |
| <div class="flex items-center justify-center w-16 h-16 bg-orange-500 rounded-full mb-4"> | |
| <i class="fas fa-basketball-ball text-white text-2xl"></i> | |
| </div> | |
| <h1 class="logo-text text-4xl text-orange-500">Deflook Academy</h1> | |
| <p class="text-gray-600 mt-2">Train smarter, play better</p> | |
| </div> | |
| <div class="flex border-b border-gray-200 mb-6"> | |
| <button id="student-tab" class="nav-tab flex-1 py-2 px-4 text-center font-medium active">Student</button> | |
| <button id="coach-tab" class="nav-tab flex-1 py-2 px-4 text-center font-medium">Coach</button> | |
| </div> | |
| <!-- Student Login Form --> | |
| <form id="student-form" class="space-y-4 tab-content active"> | |
| <div> | |
| <label for="student-email" class="block text-sm font-medium text-gray-700">Email</label> | |
| <input type="email" id="student-email" class="mt-1 block w-full px-4 py-2 border border-gray-300 rounded-md focus:ring-orange-500 focus:border-orange-500"> | |
| </div> | |
| <div> | |
| <label for="student-password" class="block text-sm font-medium text-gray-700">Password</label> | |
| <input type="password" id="student-password" class="mt-1 block w-full px-4 py-2 border border-gray-300 rounded-md focus:ring-orange-500 focus:border-orange-500"> | |
| </div> | |
| <div class="flex items-center justify-between"> | |
| <div class="flex items-center"> | |
| <input id="remember-me" name="remember-me" type="checkbox" class="h-4 w-4 text-orange-500 focus:ring-orange-500 border-gray-300 rounded"> | |
| <label for="remember-me" class="ml-2 block text-sm text-gray-700">Remember me</label> | |
| </div> | |
| <div class="text-sm"> | |
| <a href="#" class="font-medium text-orange-500 hover:text-orange-600">Forgot password?</a> | |
| </div> | |
| </div> | |
| <div> | |
| <button type="submit" class="w-full flex justify-center py-2 px-4 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-orange-500 hover:bg-orange-600 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-orange-500"> | |
| Sign in as Student | |
| </button> | |
| </div> | |
| </form> | |
| <!-- Coach Login Form --> | |
| <form id="coach-form" class="space-y-4 tab-content"> | |
| <div> | |
| <label for="coach-email" class="block text-sm font-medium text-gray-700">Coach Email</label> | |
| <input type="email" id="coach-email" class="mt-1 block w-full px-4 py-2 border border-gray-300 rounded-md focus:ring-orange-500 focus:border-orange-500"> | |
| </div> | |
| <div> | |
| <label for="coach-password" class="block text-sm font-medium text-gray-700">Password</label> | |
| <input type="password" id="coach-password" class="mt-1 block w-full px-4 py-2 border border-gray-300 rounded-md focus:ring-orange-500 focus:border-orange-500"> | |
| </div> | |
| <div class="flex items-center justify-between"> | |
| <div class="flex items-center"> | |
| <input id="remember-coach" name="remember-coach" type="checkbox" class="h-4 w-4 text-orange-500 focus:ring-orange-500 border-gray-300 rounded"> | |
| <label for="remember-coach" class="ml-2 block text-sm text-gray-700">Remember me</label> | |
| </div> | |
| <div class="text-sm"> | |
| <a href="#" class="font-medium text-orange-500 hover:text-orange-600">Forgot password?</a> | |
| </div> | |
| </div> | |
| <div> | |
| <button type="submit" class="w-full flex justify-center py-2 px-4 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-orange-500 hover:bg-orange-600 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-orange-500"> | |
| Sign in as Coach | |
| </button> | |
| </div> | |
| </form> | |
| <div class="mt-6 text-center"> | |
| <p class="text-sm text-gray-600"> | |
| Don't have an account? | |
| <a href="#" class="font-medium text-orange-500 hover:text-orange-600">Sign up</a> | |
| </p> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Student Dashboard (Hidden by default) --> | |
| <div id="student-dashboard" class="hidden"> | |
| <div class="flex h-screen overflow-hidden"> | |
| <!-- Sidebar --> | |
| <div id="sidebar" class="sidebar bg-white w-64 border-r border-gray-200 flex flex-col"> | |
| <div class="flex items-center justify-between p-4 border-b border-gray-200"> | |
| <div class="flex items-center"> | |
| <div class="w-10 h-10 bg-orange-500 rounded-full flex items-center justify-center mr-3"> | |
| <i class="fas fa-basketball-ball text-white"></i> | |
| </div> | |
| <span class="logo-text text-xl text-orange-500">Deflook Academy</span> | |
| </div> | |
| <button id="close-sidebar" class="md:hidden text-gray-500 hover:text-gray-700"> | |
| <i class="fas fa-times"></i> | |
| </button> | |
| </div> | |
| <div class="p-4 border-b border-gray-200"> | |
| <div class="flex items-center"> | |
| <div class="w-12 h-12 bg-orange-100 rounded-full flex items-center justify-center mr-3"> | |
| <i class="fas fa-user text-orange-500"></i> | |
| </div> | |
| <div> | |
| <p class="font-semibold">John Player</p> | |
| <p class="text-xs text-gray-500">Student</p> | |
| </div> | |
| </div> | |
| </div> | |
| <nav class="flex-1 overflow-y-auto p-4 space-y-2"> | |
| <a href="#" class="flex items-center p-2 text-orange-600 bg-orange-50 rounded-lg"> | |
| <i class="fas fa-video mr-3"></i> | |
| <span>My Videos</span> | |
| </a> | |
| <a href="#" class="flex items-center p-2 text-gray-600 hover:bg-gray-100 rounded-lg"> | |
| <i class="fas fa-comments mr-3"></i> | |
| <span>Messages</span> | |
| <span class="ml-auto bg-orange-500 text-white text-xs px-2 py-1 rounded-full">3</span> | |
| </a> | |
| <a href="#" class="flex items-center p-2 text-gray-600 hover:bg-gray-100 rounded-lg"> | |
| <i class="fas fa-user-tie mr-3"></i> | |
| <span>My Coach</span> | |
| </a> | |
| <a href="#" class="flex items-center p-2 text-gray-600 hover:bg-gray-100 rounded-lg"> | |
| <i class="fas fa-chart-line mr-3"></i> | |
| <span>Statistics</span> | |
| </a> | |
| <a href="#" class="flex items-center p-2 text-gray-600 hover:bg-gray-100 rounded-lg"> | |
| <i class="fas fa-calendar-alt mr-3"></i> | |
| <span>Schedule</span> | |
| </a> | |
| </nav> | |
| <div class="p-4 border-t border-gray-200"> | |
| <a href="#" class="flex items-center p-2 text-gray-600 hover:bg-gray-100 rounded-lg"> | |
| <i class="fas fa-sign-out-alt mr-3"></i> | |
| <span>Logout</span> | |
| </a> | |
| </div> | |
| </div> | |
| <!-- Main Content --> | |
| <div class="flex-1 overflow-auto"> | |
| <div class="sticky top-0 z-10 bg-white border-b border-gray-200 p-4 flex items-center justify-between"> | |
| <button id="menu-button" class="md:hidden text-gray-500 hover:text-gray-700"> | |
| <i class="fas fa-bars"></i> | |
| </button> | |
| <h1 class="text-xl font-semibold text-gray-800">My Videos</h1> | |
| <div class="flex items-center space-x-4"> | |
| <button class="text-gray-500 hover:text-gray-700"> | |
| <i class="fas fa-bell"></i> | |
| </button> | |
| <div class="w-8 h-8 bg-orange-100 rounded-full flex items-center justify-center"> | |
| <i class="fas fa-user text-orange-500"></i> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="p-4"> | |
| <!-- Performance Summary --> | |
| <div class="bg-white rounded-xl shadow-sm p-4 mb-6"> | |
| <h2 class="text-lg font-semibold mb-4">My Performance</h2> | |
| <div class="flex items-center justify-between mb-4"> | |
| <div> | |
| <p class="text-sm text-gray-500">Overall Rating</p> | |
| <div class="flex items-center mt-1"> | |
| <div class="flex"> | |
| <i class="fas fa-star text-yellow-400"></i> | |
| <i class="fas fa-star text-yellow-400"></i> | |
| <i class="fas fa-star text-yellow-400"></i> | |
| <i class="fas fa-star text-yellow-400"></i> | |
| <i class="fas fa-star-half-alt text-yellow-400"></i> | |
| </div> | |
| <span class="ml-2 text-sm font-medium">4.5/5</span> | |
| </div> | |
| </div> | |
| <div> | |
| <p class="text-sm text-gray-500">Videos Analyzed</p> | |
| <p class="text-lg font-semibold mt-1">12</p> | |
| </div> | |
| <div> | |
| <p class="text-sm text-gray-500">Last Feedback</p> | |
| <p class="text-sm font-medium mt-1">2 days ago</p> | |
| </div> | |
| </div> | |
| <div class="space-y-3"> | |
| <div> | |
| <div class="flex justify-between text-sm mb-1"> | |
| <span>Shooting</span> | |
| <span>3.8/5</span> | |
| </div> | |
| <div class="w-full bg-gray-200 rounded-full h-2"> | |
| <div class="bg-orange-500 h-2 rounded-full" style="width: 76%"></div> | |
| </div> | |
| </div> | |
| <div> | |
| <div class="flex justify-between text-sm mb-1"> | |
| <span>Dribbling</span> | |
| <span>4.2/5</span> | |
| </div> | |
| <div class="w-full bg-gray-200 rounded-full h-2"> | |
| <div class="bg-orange-500 h-2 rounded-full" style="width: 84%"></div> | |
| </div> | |
| </div> | |
| <div> | |
| <div class="flex justify-between text-sm mb-1"> | |
| <span>Defense</span> | |
| <span>4.0/5</span> | |
| </div> | |
| <div class="w-full bg-gray-200 rounded-full h-2"> | |
| <div class="bg-orange-500 h-2 rounded-full" style="width: 80%"></div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Video List --> | |
| <h2 class="text-lg font-semibold mb-4">Recent Videos</h2> | |
| <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4"> | |
| <!-- Video Card 1 --> | |
| <div class="bg-white rounded-xl shadow-sm overflow-hidden video-thumbnail"> | |
| <div class="relative pt-[56.25%] bg-gray-200"> | |
| <img src="https://images.unsplash.com/photo-1543357481-d3ea3eb3d120?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=800&q=80" class="absolute inset-0 w-full h-full object-cover"> | |
| <div class="absolute bottom-0 left-0 right-0 bg-gradient-to-t from-black to-transparent p-4"> | |
| <span class="bg-orange-500 text-white text-xs px-2 py-1 rounded">Shooting</span> | |
| </div> | |
| <div class="absolute top-2 right-2 bg-black bg-opacity-70 text-white text-xs px-2 py-1 rounded"> | |
| 2:45 | |
| </div> | |
| </div> | |
| <div class="p-4"> | |
| <div class="flex justify-between items-start"> | |
| <h3 class="font-medium">Free Throw Practice</h3> | |
| <div class="flex items-center text-yellow-400"> | |
| <i class="fas fa-star"></i> | |
| <span class="ml-1 text-gray-700 text-sm">4.2</span> | |
| </div> | |
| </div> | |
| <p class="text-sm text-gray-500 mt-1">Jun 15, 2023</p> | |
| <div class="flex justify-between items-center mt-3"> | |
| <div class="flex space-x-2"> | |
| <span class="bg-orange-100 text-orange-800 text-xs px-2 py-1 rounded-full">Coach Feedback</span> | |
| </div> | |
| <button class="text-orange-500 hover:text-orange-700"> | |
| <i class="fas fa-ellipsis-v"></i> | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Video Card 2 --> | |
| <div class="bg-white rounded-xl shadow-sm overflow-hidden video-thumbnail"> | |
| <div class="relative pt-[56.25%] bg-gray-200"> | |
| <img src="https://images.unsplash.com/photo-1519861531473-9200262188bf?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=800&q=80" class="absolute inset-0 w-full h-full object-cover"> | |
| <div class="absolute bottom-0 left-0 right-0 bg-gradient-to-t from-black to-transparent p-4"> | |
| <span class="bg-blue-500 text-white text-xs px-2 py-1 rounded">Dribbling</span> | |
| </div> | |
| <div class="absolute top-2 right-2 bg-black bg-opacity-70 text-white text-xs px-2 py-1 rounded"> | |
| 1:32 | |
| </div> | |
| </div> | |
| <div class="p-4"> | |
| <div class="flex justify-between items-start"> | |
| <h3 class="font-medium">Crossover Drills</h3> | |
| <div class="flex items-center text-yellow-400"> | |
| <i class="fas fa-star"></i> | |
| <span class="ml-1 text-gray-700 text-sm">4.5</span> | |
| </div> | |
| </div> | |
| <p class="text-sm text-gray-500 mt-1">Jun 12, 2023</p> | |
| <div class="flex justify-between items-center mt-3"> | |
| <div class="flex space-x-2"> | |
| <span class="bg-green-100 text-green-800 text-xs px-2 py-1 rounded-full">Improved</span> | |
| </div> | |
| <button class="text-orange-500 hover:text-orange-700"> | |
| <i class="fas fa-ellipsis-v"></i> | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Video Card 3 --> | |
| <div class="bg-white rounded-xl shadow-sm overflow-hidden video-thumbnail"> | |
| <div class="relative pt-[56.25%] bg-gray-200"> | |
| <img src="https://images.unsplash.com/photo-1574629810360-7efbbe195018?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=800&q=80" class="absolute inset-0 w-full h-full object-cover"> | |
| <div class="absolute bottom-0 left-0 right-0 bg-gradient-to-t from-black to-transparent p-4"> | |
| <span class="bg-purple-500 text-white text-xs px-2 py-1 rounded">Defense</span> | |
| </div> | |
| <div class="absolute top-2 right-2 bg-black bg-opacity-70 text-white text-xs px-2 py-1 rounded"> | |
| 3:21 | |
| </div> | |
| </div> | |
| <div class="p-4"> | |
| <div class="flex justify-between items-start"> | |
| <h3 class="font-medium">Defensive Stance</h3> | |
| <div class="flex items-center text-yellow-400"> | |
| <i class="fas fa-star"></i> | |
| <span class="ml-1 text-gray-700 text-sm">3.9</span> | |
| </div> | |
| </div> | |
| <p class="text-sm text-gray-500 mt-1">Jun 8, 2023</p> | |
| <div class="flex justify-between items-center mt-3"> | |
| <div class="flex space-x-2"> | |
| <span class="bg-orange-100 text-orange-800 text-xs px-2 py-1 rounded-full">Needs Work</span> | |
| </div> | |
| <button class="text-orange-500 hover:text-orange-700"> | |
| <i class="fas fa-ellipsis-v"></i> | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Floating Action Button --> | |
| <button id="upload-btn" class="fixed bottom-8 right-8 w-14 h-14 bg-orange-500 text-white rounded-full flex items-center justify-center shadow-lg floating-btn hover:bg-orange-600 transition-colors"> | |
| <i class="fas fa-plus text-xl"></i> | |
| </button> | |
| </div> | |
| <!-- Coach Dashboard (Hidden by default) --> | |
| <div id="coach-dashboard" class="hidden"> | |
| <div class="flex h-screen overflow-hidden"> | |
| <!-- Sidebar --> | |
| <div id="coach-sidebar" class="sidebar bg-white w-64 border-r border-gray-200 flex flex-col"> | |
| <div class="flex items-center justify-between p-4 border-b border-gray-200"> | |
| <div class="flex items-center"> | |
| <div class="w-10 h-10 bg-orange-500 rounded-full flex items-center justify-center mr-3"> | |
| <i class="fas fa-basketball-ball text-white"></i> | |
| </div> | |
| <span class="logo-text text-xl text-orange-500">Deflook Academy</span> | |
| </div> | |
| <button id="close-coach-sidebar" class="md:hidden text-gray-500 hover:text-gray-700"> | |
| <i class="fas fa-times"></i> | |
| </button> | |
| </div> | |
| <div class="p-4 border-b border-gray-200"> | |
| <div class="flex items-center"> | |
| <div class="w-12 h-12 bg-orange-100 rounded-full flex items-center justify-center mr-3"> | |
| <i class="fas fa-user-tie text-orange-500"></i> | |
| </div> | |
| <div> | |
| <p class="font-semibold">Coach Williams</p> | |
| <p class="text-xs text-gray-500">Head Coach</p> | |
| </div> | |
| </div> | |
| </div> | |
| <nav class="flex-1 overflow-y-auto p-4 space-y-2"> | |
| <a href="#" class="flex items-center p-2 text-orange-600 bg-orange-50 rounded-lg"> | |
| <i class="fas fa-users mr-3"></i> | |
| <span>My Players</span> | |
| </a> | |
| <a href="#" class="flex items-center p-2 text-gray-600 hover:bg-gray-100 rounded-lg"> | |
| <i class="fas fa-video mr-3"></i> | |
| <span>Review Videos</span> | |
| <span class="ml-auto bg-orange-500 text-white text-xs px-2 py-1 rounded-full">5</span> | |
| </a> | |
| <a href="#" class="flex items-center p-2 text-gray-600 hover:bg-gray-100 rounded-lg"> | |
| <i class="fas fa-comments mr-3"></i> | |
| <span>Messages</span> | |
| </a> | |
| <a href="#" class="flex items-center p-2 text-gray-600 hover:bg-gray-100 rounded-lg"> | |
| <i class="fas fa-chart-line mr-3"></i> | |
| <span>Performance</span> | |
| </a> | |
| <a href="#" class="flex items-center p-2 text-gray-600 hover:bg-gray-100 rounded-lg"> | |
| <i class="fas fa-calendar-alt mr-3"></i> | |
| <span>Schedule</span> | |
| </a> | |
| <a href="#" class="flex items-center p-2 text-gray-600 hover:bg-gray-100 rounded-lg"> | |
| <i class="fas fa-clipboard-list mr-3"></i> | |
| <span>Training Plans</span> | |
| </a> | |
| </nav> | |
| <div class="p-4 border-t border-gray-200"> | |
| <a href="#" class="flex items-center p-2 text-gray-600 hover:bg-gray-100 rounded-lg"> | |
| <i class="fas fa-sign-out-alt mr-3"></i> | |
| <span>Logout</span> | |
| </a> | |
| </div> | |
| </div> | |
| <!-- Main Content --> | |
| <div class="flex-1 overflow-auto"> | |
| <div class="sticky top-0 z-10 bg-white border-b border-gray-200 p-4 flex items-center justify-between"> | |
| <button id="coach-menu-button" class="md:hidden text-gray-500 hover:text-gray-700"> | |
| <i class="fas fa-bars"></i> | |
| </button> | |
| <h1 class="text-xl font-semibold text-gray-800">My Players</h1> | |
| <div class="flex items-center space-x-4"> | |
| <button class="text-gray-500 hover:text-gray-700"> | |
| <i class="fas fa-bell"></i> | |
| </button> | |
| <div class="w-8 h-8 bg-orange-100 rounded-full flex items-center justify-center"> | |
| <i class="fas fa-user-tie text-orange-500"></i> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="p-4"> | |
| <!-- Stats Overview --> | |
| <div class="bg-white rounded-xl shadow-sm p-4 mb-6"> | |
| <h2 class="text-lg font-semibold mb-4">Team Overview</h2> | |
| <div class="grid grid-cols-1 md:grid-cols-3 gap-4 mb-6"> | |
| <div class="bg-orange-50 p-4 rounded-lg"> | |
| <p class="text-sm text-gray-500">Total Players</p> | |
| <p class="text-2xl font-bold text-orange-600">12</p> | |
| </div> | |
| <div class="bg-blue-50 p-4 rounded-lg"> | |
| <p class="text-sm text-gray-500">Videos to Review</p> | |
| <p class="text-2xl font-bold text-blue-600">5</p> | |
| </div> | |
| <div class="bg-green-50 p-4 rounded-lg"> | |
| <p class="text-sm text-gray-500">Avg. Rating</p> | |
| <p class="text-2xl font-bold text-green-600">4.2/5</p> | |
| </div> | |
| </div> | |
| <div class="space-y-3"> | |
| <div> | |
| <div class="flex justify-between text-sm mb-1"> | |
| <span>Team Shooting Avg.</span> | |
| <span>4.0/5</span> | |
| </div> | |
| <div class="w-full bg-gray-200 rounded-full h-2"> | |
| <div class="bg-orange-500 h-2 rounded-full" style="width: 80%"></div> | |
| </div> | |
| </div> | |
| <div> | |
| <div class="flex justify-between text-sm mb-1"> | |
| <span>Team Dribbling Avg.</span> | |
| <span>3.8/5</span> | |
| </div> | |
| <div class="w-full bg-gray-200 rounded-full h-2"> | |
| <div class="bg-orange-500 h-2 rounded-full" style="width: 76%"></div> | |
| </div> | |
| </div> | |
| <div> | |
| <div class="flex justify-between text-sm mb-1"> | |
| <span>Team Defense Avg.</span> | |
| <span>4.1/5</span> | |
| </div> | |
| <div class="w-full bg-gray-200 rounded-full h-2"> | |
| <div class="bg-orange-500 h-2 rounded-full" style="width: 82%"></div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Player List --> | |
| <h2 class="text-lg font-semibold mb-4">My Players</h2> | |
| <div class="bg-white rounded-xl shadow-sm overflow-hidden"> | |
| <div class="grid grid-cols-12 bg-gray-50 p-4 border-b border-gray-200 font-medium text-sm"> | |
| <div class="col-span-4">Player</div> | |
| <div class="col-span-2">Last Video</div> | |
| <div class="col-span-2">Rating</div> | |
| <div class="col-span-2">Progress</div> | |
| <div class="col-span-2">Actions</div> | |
| </div> | |
| <!-- Player 1 --> | |
| <div class="grid grid-cols-12 p-4 border-b border-gray-200 items-center hover:bg-gray-50"> | |
| <div class="col-span-4 flex items-center"> | |
| <div class="w-10 h-10 bg-orange-100 rounded-full flex items-center justify-center mr-3"> | |
| <i class="fas fa-user text-orange-500"></i> | |
| </div> | |
| <div> | |
| <p class="font-medium">John Player</p> | |
| <p class="text-xs text-gray-500">Point Guard</p> | |
| </div> | |
| </div> | |
| <div class="col-span-2 text-sm">2 days ago</div> | |
| <div class="col-span-2"> | |
| <div class="flex items-center text-yellow-400"> | |
| <i class="fas fa-star"></i> | |
| <span class="ml-1 text-gray-700">4.2</span> | |
| </div> | |
| </div> | |
| <div class="col-span-2"> | |
| <div class="w-full bg-gray-200 rounded-full h-1.5"> | |
| <div class="bg-green-500 h-1.5 rounded-full" style="width: 75%"></div> | |
| </div> | |
| </div> | |
| <div class="col-span-2 flex space-x-2"> | |
| <button class="w-8 h-8 bg-blue-100 text-blue-600 rounded-full flex items-center justify-center hover:bg-blue-200"> | |
| <i class="fas fa-comment-alt text-sm"></i> | |
| </button> | |
| <button class="w-8 h-8 bg-orange-100 text-orange-600 rounded-full flex items-center justify-center hover:bg-orange-200"> | |
| <i class="fas fa-video text-sm"></i> | |
| </button> | |
| </div> | |
| </div> | |
| <!-- Player 2 --> | |
| <div class="grid grid-cols-12 p-4 border-b border-gray-200 items-center hover:bg-gray-50"> | |
| <div class="col-span-4 flex items-center"> | |
| <div class="w-10 h-10 bg-blue-100 rounded-full flex items-center justify-center mr-3"> | |
| <i class="fas fa-user text-blue-500"></i> | |
| </div> | |
| <div> | |
| <p class="font-medium">Mike Johnson</p> | |
| <p class="text-xs text-gray-500">Shooting Guard</p> | |
| </div> | |
| </div> | |
| <div class="col-span-2 text-sm">1 day ago</div> | |
| <div class="col-span-2"> | |
| <div class="flex items-center text-yellow-400"> | |
| <i class="fas fa-star"></i> | |
| <span class="ml-1 text-gray-700">4.5</span> | |
| </div> | |
| </div> | |
| <div class="col-span-2"> | |
| <div class="w-full bg-gray-200 rounded-full h-1.5"> | |
| <div class="bg-green-500 h-1.5 rounded-full" style="width: 85%"></div> | |
| </div> | |
| </div> | |
| <div class="col-span-2 flex space-x-2"> | |
| <button class="w-8 h-8 bg-blue-100 text-blue-600 rounded-full flex items-center justify-center hover:bg-blue-200"> | |
| <i class="fas fa-comment-alt text-sm"></i> | |
| </button> | |
| <button class="w-8 h-8 bg-orange-100 text-orange-600 rounded-full flex items-center justify-center hover:bg-orange-200"> | |
| <i class="fas fa-video text-sm"></i> | |
| </button> | |
| </div> | |
| </div> | |
| <!-- Player 3 --> | |
| <div class="grid grid-cols-12 p-4 border-b border-gray-200 items-center hover:bg-gray-50"> | |
| <div class="col-span-4 flex items-center"> | |
| <div class="w-10 h-10 bg-purple-100 rounded-full flex items-center justify-center mr-3"> | |
| <i class="fas fa-user text-purple-500"></i> | |
| </div> | |
| <div> | |
| <p class="font-medium">Sarah Davis</p> | |
| <p class="text-xs text-gray-500">Center</p> | |
| </div> | |
| </div> | |
| <div class="col-span-2 text-sm">3 days ago</div> | |
| <div class="col-span-2"> | |
| <div class="flex items-center text-yellow-400"> | |
| <i class="fas fa-star"></i> | |
| <span class="ml-1 text-gray-700">3.9</span> | |
| </div> | |
| </div> | |
| <div class="col-span-2"> | |
| <div class="w-full bg-gray-200 rounded-full h-1.5"> | |
| <div class="bg-yellow-500 h-1.5 rounded-full" style="width: 65%"></div> | |
| </div> | |
| </div> | |
| <div class="col-span-2 flex space-x-2"> | |
| <button class="w-8 h-8 bg-blue-100 text-blue-600 rounded-full flex items-center justify-center hover:bg-blue-200"> | |
| <i class="fas fa-comment-alt text-sm"></i> | |
| </button> | |
| <button class="w-8 h-8 bg-orange-100 text-orange-600 rounded-full flex items-center justify-center hover:bg-orange-200"> | |
| <i class="fas fa-video text-sm"></i> | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Pending Videos --> | |
| <h2 class="text-lg font-semibold mt-8 mb-4">Videos to Review</h2> | |
| <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4"> | |
| <!-- Video 1 --> | |
| <div class="bg-white rounded-xl shadow-sm overflow-hidden video-thumbnail"> | |
| <div class="relative pt-[56.25%] bg-gray-200"> | |
| <img src="https://images.unsplash.com/photo-1543357481-d3ea3eb3d120?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=800&q=80" class="absolute inset-0 w-full h-full object-cover"> | |
| <div class="absolute bottom-0 left-0 right-0 bg-gradient-to-t from-black to-transparent p-4"> | |
| <span class="bg-orange-500 text-white text-xs px-2 py-1 rounded">Shooting</span> | |
| </div> | |
| <div class="absolute top-2 right-2 bg-black bg-opacity-70 text-white text-xs px-2 py-1 rounded"> | |
| 2:45 | |
| </div> | |
| </div> | |
| <div class="p-4"> | |
| <div class="flex items-center mb-3"> | |
| <div class="w-8 h-8 bg-orange-100 rounded-full flex items-center justify-center mr-2"> | |
| <i class="fas fa-user text-orange-500 text-sm"></i> | |
| </div> | |
| <p class="font-medium">John Player</p> | |
| </div> | |
| <p class="text-sm text-gray-500 mb-3">"Working on my free throw consistency"</p> | |
| <div class="flex justify-between items-center"> | |
| <button class="px-3 py-1 bg-orange-500 text-white text-sm rounded-md hover:bg-orange-600"> | |
| Review Now | |
| </button> | |
| <button class="text-gray-500 hover:text-orange-500"> | |
| <i class="fas fa-ellipsis-v"></i> | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Video 2 --> | |
| <div class="bg-white rounded-xl shadow-sm overflow-hidden video-thumbnail"> | |
| <div class="relative pt-[56.25%] bg-gray-200"> | |
| <img src="https://images.unsplash.com/photo-1519861531473-9200262188bf?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=800&q=80" class="absolute inset-0 w-full h-full object-cover"> | |
| <div class="absolute bottom-0 left-0 right-0 bg-gradient-to-t from-black to-transparent p-4"> | |
| <span class="bg-blue-500 text-white text-xs px-2 py-1 rounded">Dribbling</span> | |
| </div> | |
| <div class="absolute top-2 right-2 bg-black bg-opacity-70 text-white text-xs px-2 py-1 rounded"> | |
| 1:32 | |
| </div> | |
| </div> | |
| <div class="p-4"> | |
| <div class="flex items-center mb-3"> | |
| <div class="w-8 h-8 bg-blue-100 rounded-full flex items-center justify-center mr-2"> | |
| <i class="fas fa-user text-blue-500 text-sm"></i> | |
| </div> | |
| <p class="font-medium">Mike Johnson</p> | |
| </div> | |
| <p class="text-sm text-gray-500 mb-3">"Practicing crossover moves"</p> | |
| <div class="flex justify-between items-center"> | |
| <button class="px-3 py-1 bg-orange-500 text-white text-sm rounded-md hover:bg-orange-600"> | |
| Review Now | |
| </button> | |
| <button class="text-gray-500 hover:text-orange-500"> | |
| <i class="fas fa-ellipsis-v"></i> | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Upload Video Modal --> | |
| <div id="upload-modal" class="hidden fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 p-4"> | |
| <div class="bg-white rounded-xl max-w-md w-full max-h-[90vh] overflow-y-auto"> | |
| <div class="p-4 border-b border-gray-200 flex justify-between items-center"> | |
| <h3 class="text-lg font-semibold">Upload Training Video</h3> | |
| <button id="close-upload-modal" class="text-gray-500 hover:text-gray-700"> | |
| <i class="fas fa-times"></i> | |
| </button> | |
| </div> | |
| <div class="p-4"> | |
| <div class="border-2 border-dashed border-gray-300 rounded-xl p-8 text-center mb-4"> | |
| <div class="mx-auto w-16 h-16 bg-orange-100 rounded-full flex items-center justify-center mb-4"> | |
| <i class="fas fa-cloud-upload-alt text-orange-500 text-2xl"></i> | |
| </div> | |
| <p class="text-sm text-gray-500 mb-2">Drag & drop your video file here</p> | |
| <p class="text-xs text-gray-400 mb-4">or</p> | |
| <button class="px-4 py-2 bg-orange-500 text-white rounded-md hover:bg-orange-600"> | |
| Browse Files | |
| </button> | |
| </div> | |
| <div class="mb-4"> | |
| <label class="block text-sm font-medium text-gray-700 mb-1">Training Type</label> | |
| <select class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-orange-500 focus:border-orange-500"> | |
| <option>Select type</option> | |
| <option>Shooting</option> | |
| <option>Dribbling</option> | |
| <option>Defense</option> | |
| <option>Passing</option> | |
| <option>Footwork</option> | |
| </select> | |
| </div> | |
| <div class="mb-4"> | |
| <label class="block text-sm font-medium text-gray-700 mb-1">Notes for Coach</label> | |
| <textarea rows="3" class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-orange-500 focus:border-orange-500" placeholder="What should I focus on improving in this video?"></textarea> | |
| </div> | |
| <div class="mb-4"> | |
| <label class="block text-sm font-medium text-gray-700 mb-1">Upload Progress</label> | |
| <div class="w-full bg-gray-200 rounded-full h-2.5"> | |
| <div id="progress-bar" class="bg-orange-500 h-2.5 rounded-full progress-bar" style="width: 0%"></div> | |
| </div> | |
| <p id="progress-text" class="text-xs text-gray-500 mt-1">0% uploaded</p> | |
| </div> | |
| <button id="start-upload" class="w-full py-2 px-4 bg-orange-500 text-white rounded-md hover:bg-orange-600 disabled:opacity-50" disabled> | |
| Upload Video | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Chat Screen (Hidden by default) --> | |
| <div id="chat-screen" class="hidden fixed inset-0 bg-white z-50 flex flex-col"> | |
| <div class="border-b border-gray-200 p-4 flex items-center"> | |
| <button id="back-to-dashboard" class="mr-4 text-gray-500 hover:text-gray-700"> | |
| <i class="fas fa-arrow-left"></i> | |
| </button> | |
| <div class="flex items-center"> | |
| <div class="w-10 h-10 bg-orange-100 rounded-full flex items-center justify-center mr-3"> | |
| <i class="fas fa-user-tie text-orange-500"></i> | |
| </div> | |
| <div> | |
| <p class="font-semibold">Coach Williams</p> | |
| <p class="text-xs text-green-500 flex items-center"> | |
| <span class="w-2 h-2 bg-green-500 rounded-full mr-1"></span> | |
| Online | |
| </p> | |
| </div> | |
| </div> | |
| <button class="ml-auto text-gray-500 hover:text-gray-700"> | |
| <i class="fas fa-phone"></i> | |
| </button> | |
| </div> | |
| <div class="flex-1 overflow-y-auto p-4 space-y-4"> | |
| <!-- Coach Message --> | |
| <div class="flex items-start"> | |
| <div class="w-8 h-8 bg-orange-100 rounded-full flex items-center justify-center mr-3"> | |
| <i class="fas fa-user-tie text-orange-500 text-sm"></i> | |
| </div> | |
| <div class="bg-gray-100 rounded-xl p-3 chat-bubble"> | |
| <p>Hey John, I reviewed your latest shooting video. Your form is improving!</p> | |
| <p class="text-xs text-gray-500 mt-2">10:30 AM</p> | |
| </div> | |
| </div> | |
| <!-- User Message --> | |
| <div class="flex items-start justify-end"> | |
| <div class="bg-orange-500 text-white rounded-xl p-3 chat-bubble"> | |
| <p>Thanks Coach! I've been working on keeping my elbow in.</p> | |
| <p class="text-xs text-orange-100 mt-2">10:32 AM</p> | |
| </div> | |
| </div> | |
| <!-- Coach Message with Video --> | |
| <div class="flex items-start"> | |
| <div class="w-8 h-8 bg-orange-100 rounded-full flex items-center justify-center mr-3"> | |
| <i class="fas fa-user-tie text-orange-500 text-sm"></i> | |
| </div> | |
| <div class="bg-gray-100 rounded-xl p-3 chat-bubble"> | |
| <div class="relative pt-[56.25%] bg-gray-200 rounded-lg mb-2"> | |
| <img src="https://images.unsplash.com/photo-1543357481-d3ea3eb3d120?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=800&q=80" class="absolute inset-0 w-full h-full object-cover rounded-lg"> | |
| <div class="absolute top-2 right-2 bg-black bg-opacity-70 text-white text-xs px-2 py-1 rounded"> | |
| 0:45 | |
| </div> | |
| <div class="absolute inset-0 flex items-center justify-center"> | |
| <div class="w-12 h-12 bg-white bg-opacity-80 rounded-full flex items-center justify-center"> | |
| <i class="fas fa-play text-orange-500"></i> | |
| </div> | |
| </div> | |
| </div> | |
| <p>Check this clip from your video. Notice how your follow-through could be more consistent.</p> | |
| <p class="text-xs text-gray-500 mt-2">10:33 AM</p> | |
| <div class="flex items-center mt-2"> | |
| <button class="text-gray-500 hover:text-orange-500 mr-3"> | |
| <i class="far fa-thumbs-up"></i> | |
| </button> | |
| <button class="text-gray-500 hover:text-orange-500"> | |
| <i class="far fa-bookmark"></i> | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- User Message --> | |
| <div class="flex items-start justify-end"> | |
| <div class="bg-orange-500 text-white rounded-xl p-3 chat-bubble"> | |
| <p>I see what you mean. I'll focus on that in my next session.</p> | |
| <p class="text-xs text-orange-100 mt-2">10:35 AM</p> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="border-t border-gray-200 p-4"> | |
| <div class="flex items-center"> | |
| <button class="text-gray-500 hover:text-orange-500 mr-2"> | |
| <i class="fas fa-paperclip"></i> | |
| </button> | |
| <button class="text-gray-500 hover:text-orange-500 mr-3"> | |
| <i class="fas fa-camera"></i> | |
| </button> | |
| <input type="text" placeholder="Type a message..." class="flex-1 px-4 py-2 border border-gray-300 rounded-full focus:outline-none focus:ring-orange-500 focus:border-orange-500"> | |
| <button class="ml-3 w-10 h-10 bg-orange-500 text-white rounded-full flex items-center justify-center hover:bg-orange-600"> | |
| <i class="fas fa-paper-plane"></i> | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| <script> | |
| // Toggle between student and coach login forms | |
| document.getElementById('student-tab').addEventListener('click', function() { | |
| document.getElementById('student-form').classList.add('active'); | |
| document.getElementById('coach-form').classList.remove('active'); | |
| document.getElementById('student-tab').classList.add('active'); | |
| document.getElementById('coach-tab').classList.remove('active'); | |
| }); | |
| document.getElementById('coach-tab').addEventListener('click', function() { | |
| document.getElementById('coach-form').classList.add('active'); | |
| document.getElementById('student-form').classList.remove('active'); | |
| document.getElementById('coach-tab').classList.add('active'); | |
| document.getElementById('student-tab').classList.remove('active'); | |
| }); | |
| // Simulate student login | |
| document.getElementById('student-form').addEventListener('submit', function(e) { | |
| e.preventDefault(); | |
| document.getElementById('login-screen').classList.add('hidden'); | |
| document.getElementById('student-dashboard').classList.remove('hidden'); | |
| // Simulate loading | |
| setTimeout(() => { | |
| document.getElementById('progress-bar').style.width = '100%'; | |
| document.getElementById('progress-text').textContent = '100% uploaded'; | |
| document.getElementById('start-upload').textContent = 'Upload Complete'; | |
| document.getElementById('start-upload').disabled = true; | |
| // Close modal after 2 seconds | |
| setTimeout(() => { | |
| document.getElementById('upload-modal').classList.add('hidden'); | |
| }, 2000); | |
| }, 3000); | |
| }); | |
| // Simulate coach login | |
| document.getElementById('coach-form').addEventListener('submit', function(e) { | |
| e.preventDefault(); | |
| document.getElementById('login-screen').classList.add('hidden'); | |
| document.getElementById('coach-dashboard').classList.remove('hidden'); | |
| }); | |
| // Toggle sidebar on mobile (student) | |
| document.getElementById('menu-button').addEventListener('click', function() { | |
| document.getElementById('sidebar').classList.add('open'); | |
| }); | |
| document.getElementById('close-sidebar').addEventListener('click', function() { | |
| document.getElementById('sidebar').classList.remove('open'); | |
| }); | |
| // Toggle sidebar on mobile (coach) | |
| document.getElementById('coach-menu-button').addEventListener('click', function() { | |
| document.getElementById('coach-sidebar').classList.add('open'); | |
| }); | |
| document.getElementById('close-coach-sidebar').addEventListener('click', function() { | |
| document.getElementById('coach-sidebar').classList.remove('open'); | |
| }); | |
| // Open upload modal | |
| document.getElementById('upload-btn').addEventListener('click', function() { | |
| document.getElementById('upload-modal').classList.remove('hidden'); | |
| }); | |
| // Close upload modal | |
| document.getElementById('close-upload-modal').addEventListener('click', function() { | |
| document.getElementById('upload-modal').classList.add('hidden'); | |
| }); | |
| // Simulate upload progress | |
| document.getElementById('start-upload').addEventListener('click', function() { | |
| this.disabled = true; | |
| this.textContent = 'Uploading...'; | |
| let progress = 0; | |
| const interval = setInterval(() => { | |
| progress += Math.random() * 10; | |
| if (progress > 100) progress = 100; | |
| document.getElementById('progress-bar').style.width = `${progress}%`; | |
| document.getElementById('progress-text').textContent = `${Math.round(progress)}% uploaded`; | |
| if (progress === 100) { | |
| clearInterval(interval); | |
| document.getElementById('start-upload').textContent = 'Upload Complete'; | |
| } | |
| }, 300); | |
| }); | |
| // Open chat screen (for demo purposes) | |
| document.querySelectorAll('a')[1].addEventListener('click', function(e) { | |
| e.preventDefault(); | |
| document.getElementById('student-dashboard').classList.add('hidden'); | |
| document.getElementById('chat-screen').classList.remove('hidden'); | |
| }); | |
| // Back to dashboard from chat | |
| document.getElementById('back-to-dashboard').addEventListener('click', function() { | |
| document.getElementById('chat-screen').classList.add('hidden'); | |
| document.getElementById('student-dashboard').classList.remove('hidden'); | |
| }); | |
| </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=Deflook/def" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body> | |
| </html> |