deflook / index.html
Deflook's picture
Add 3 files
c99c420 verified
Raw History Blame Contribute Delete
44.7 kB
<!DOCTYPE html>
<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=Poppins:wght@300;400;500;600;700&display=swap');
body {
font-family: 'Poppins', sans-serif;
background-color: #f8f9fa;
}
.basketball-bg {
background: linear-gradient(135deg, #6b21a8 0%, #1e1b4b 100%);
}
.basketball-icon {
color: #f59e0b;
}
.video-thumbnail {
position: relative;
padding-bottom: 56.25%; /* 16:9 aspect ratio */
background-color: #000;
}
.video-thumbnail::before {
content: "";
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 60px;
height: 60px;
background-color: rgba(255, 255, 255, 0.8);
border-radius: 50%;
z-index: 1;
}
.video-thumbnail::after {
content: "\f144";
font-family: "Font Awesome 6 Free";
font-weight: 900;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
color: #6b21a8;
font-size: 24px;
z-index: 2;
}
.progress-ring {
transform: rotate(-90deg);
}
.progress-ring__circle {
transition: stroke-dashoffset 0.5s;
stroke-linecap: round;
}
.chat-bubble {
max-width: 80%;
border-radius: 1rem;
padding: 0.75rem;
margin-bottom: 0.5rem;
}
.chat-bubble.user {
background-color: #6b21a8;
color: white;
margin-left: auto;
border-bottom-right-radius: 0.25rem;
}
.chat-bubble.coach {
background-color: #e9d5ff;
color: #4c1d95;
margin-right: auto;
border-bottom-left-radius: 0.25rem;
}
.tab-active {
border-bottom: 3px solid #6b21a8;
color: #6b21a8;
font-weight: 600;
}
</style>
</head>
<body class="min-h-screen">
<!-- Auth Screens -->
<div id="auth-screen" class="fixed inset-0 z-50 flex flex-col items-center justify-center basketball-bg text-white transition-all duration-300">
<div class="w-full max-w-md px-6 py-8">
<div class="flex flex-col items-center mb-8">
<div class="w-20 h-20 rounded-full bg-white flex items-center justify-center mb-4">
<i class="fas fa-basketball-ball text-4xl basketball-icon"></i>
</div>
<h1 class="text-3xl font-bold">Deflook Academy</h1>
<p class="text-purple-200 mt-2">Elevate your basketball skills</p>
</div>
<!-- Login Form -->
<div id="login-form">
<div class="mb-4">
<label class="block text-purple-100 mb-2">Email</label>
<input type="email" class="w-full px-4 py-3 rounded-lg bg-purple-900 bg-opacity-50 border border-purple-700 focus:outline-none focus:ring-2 focus:ring-purple-500">
</div>
<div class="mb-6">
<label class="block text-purple-100 mb-2">Password</label>
<input type="password" class="w-full px-4 py-3 rounded-lg bg-purple-900 bg-opacity-50 border border-purple-700 focus:outline-none focus:ring-2 focus:ring-purple-500">
</div>
<button class="w-full bg-purple-600 hover:bg-purple-700 text-white font-bold py-3 px-4 rounded-lg transition duration-200 mb-4">
Sign In
</button>
<div class="flex justify-between items-center mb-6">
<div class="flex items-center">
<input type="checkbox" id="remember" class="mr-2">
<label for="remember" class="text-purple-200 text-sm">Remember me</label>
</div>
<button id="forgot-password" class="text-purple-300 text-sm hover:text-white">Forgot password?</button>
</div>
<div class="relative mb-6">
<div class="absolute inset-0 flex items-center">
<div class="w-full border-t border-purple-700"></div>
</div>
<div class="relative flex justify-center text-sm">
<span class="px-2 bg-purple-900 text-purple-300">Or continue with</span>
</div>
</div>
<div class="flex justify-center space-x-4 mb-6">
<button class="w-12 h-12 rounded-full bg-white flex items-center justify-center text-gray-800 hover:bg-gray-100 transition">
<i class="fab fa-google text-xl"></i>
</button>
<button class="w-12 h-12 rounded-full bg-white flex items-center justify-center text-gray-800 hover:bg-gray-100 transition">
<i class="fab fa-apple text-xl"></i>
</button>
</div>
<div class="text-center">
<p class="text-purple-200">Don't have an account? <button id="show-register" class="text-white font-medium hover:underline">Sign up</button></p>
</div>
</div>
<!-- Register Form (hidden by default) -->
<div id="register-form" class="hidden">
<div class="mb-4">
<label class="block text-purple-100 mb-2">Full Name</label>
<input type="text" class="w-full px-4 py-3 rounded-lg bg-purple-900 bg-opacity-50 border border-purple-700 focus:outline-none focus:ring-2 focus:ring-purple-500">
</div>
<div class="mb-4">
<label class="block text-purple-100 mb-2">Email</label>
<input type="email" class="w-full px-4 py-3 rounded-lg bg-purple-900 bg-opacity-50 border border-purple-700 focus:outline-none focus:ring-2 focus:ring-purple-500">
</div>
<div class="mb-4">
<label class="block text-purple-100 mb-2">Password</label>
<input type="password" class="w-full px-4 py-3 rounded-lg bg-purple-900 bg-opacity-50 border border-purple-700 focus:outline-none focus:ring-2 focus:ring-purple-500">
</div>
<div class="mb-6">
<label class="block text-purple-100 mb-2">Account Type</label>
<div class="flex space-x-4">
<label class="flex items-center">
<input type="radio" name="account-type" value="student" class="mr-2" checked>
<span class="text-purple-200">Student</span>
</label>
<label class="flex items-center">
<input type="radio" name="account-type" value="coach" class="mr-2">
<span class="text-purple-200">Coach</span>
</label>
</div>
</div>
<button class="w-full bg-purple-600 hover:bg-purple-700 text-white font-bold py-3 px-4 rounded-lg transition duration-200 mb-4">
Create Account
</button>
<div class="text-center">
<p class="text-purple-200">Already have an account? <button id="show-login" class="text-white font-medium hover:underline">Sign in</button></p>
</div>
</div>
<!-- Forgot Password Form (hidden by default) -->
<div id="forgot-password-form" class="hidden">
<div class="mb-6 text-center">
<h2 class="text-2xl font-bold mb-2">Forgot Password?</h2>
<p class="text-purple-200">Enter your email to receive a reset link</p>
</div>
<div class="mb-6">
<label class="block text-purple-100 mb-2">Email</label>
<input type="email" class="w-full px-4 py-3 rounded-lg bg-purple-900 bg-opacity-50 border border-purple-700 focus:outline-none focus:ring-2 focus:ring-purple-500">
</div>
<button class="w-full bg-purple-600 hover:bg-purple-700 text-white font-bold py-3 px-4 rounded-lg transition duration-200 mb-4">
Send Reset Link
</button>
<div class="text-center">
<button id="back-to-login" class="text-white font-medium hover:underline">Back to Sign In</button>
</div>
</div>
</div>
</div>
<!-- Main App (hidden until login) -->
<div id="app-container" class="hidden">
<!-- Header -->
<header class="basketball-bg text-white p-4 shadow-md">
<div class="flex justify-between items-center">
<div class="flex items-center space-x-3">
<i class="fas fa-basketball-ball text-xl basketball-icon"></i>
<h1 class="text-xl font-bold">Deflook Academy</h1>
</div>
<div class="flex items-center space-x-4">
<button class="relative">
<i class="fas fa-bell text-xl"></i>
<span class="absolute -top-1 -right-1 w-4 h-4 bg-red-500 rounded-full text-xs flex items-center justify-center">3</span>
</button>
<button id="logout-btn">
<i class="fas fa-sign-out-alt text-xl"></i>
</button>
</div>
</div>
</header>
<!-- Main Content -->
<main class="pb-20">
<!-- Student Dashboard -->
<div id="student-dashboard">
<!-- Stats Overview -->
<div class="p-4 bg-white shadow-sm">
<h2 class="text-xl font-bold mb-4 text-gray-800">My Progress</h2>
<div class="grid grid-cols-3 gap-4">
<div class="bg-purple-50 rounded-lg p-3 text-center">
<div class="relative w-16 h-16 mx-auto mb-2">
<svg class="w-full h-full" viewBox="0 0 36 36">
<path
d="M18 2.0845
a 15.9155 15.9155 0 0 1 0 31.831
a 15.9155 15.9155 0 0 1 0 -31.831"
fill="none"
stroke="#e9d5ff"
stroke-width="3"
stroke-dasharray="100, 100"
/>
<path
d="M18 2.0845
a 15.9155 15.9155 0 0 1 0 31.831
a 15.9155 15.9155 0 0 1 0 -31.831"
fill="none"
stroke="#6b21a8"
stroke-width="3"
stroke-dasharray="75, 100"
class="progress-ring__circle"
/>
<text x="18" y="20.5" text-anchor="middle" fill="#6b21a8" font-size="8" font-weight="bold">75%</text>
</svg>
</div>
<p class="text-sm font-medium text-gray-700">Shooting</p>
</div>
<div class="bg-purple-50 rounded-lg p-3 text-center">
<div class="relative w-16 h-16 mx-auto mb-2">
<svg class="w-full h-full" viewBox="0 0 36 36">
<path
d="M18 2.0845
a 15.9155 15.9155 0 0 1 0 31.831
a 15.9155 15.9155 0 0 1 0 -31.831"
fill="none"
stroke="#e9d5ff"
stroke-width="3"
stroke-dasharray="100, 100"
/>
<path
d="M18 2.0845
a 15.9155 15.9155 0 0 1 0 31.831
a 15.9155 15.9155 0 0 1 0 -31.831"
fill="none"
stroke="#6b21a8"
stroke-width="3"
stroke-dasharray="60, 100"
class="progress-ring__circle"
/>
<text x="18" y="20.5" text-anchor="middle" fill="#6b21a8" font-size="8" font-weight="bold">60%</text>
</svg>
</div>
<p class="text-sm font-medium text-gray-700">Dribbling</p>
</div>
<div class="bg-purple-50 rounded-lg p-3 text-center">
<div class="relative w-16 h-16 mx-auto mb-2">
<svg class="w-full h-full" viewBox="0 0 36 36">
<path
d="M18 2.0845
a 15.9155 15.9155 0 0 1 0 31.831
a 15.9155 15.9155 0 0 1 0 -31.831"
fill="none"
stroke="#e9d5ff"
stroke-width="3"
stroke-dasharray="100, 100"
/>
<path
d="M18 2.0845
a 15.9155 15.9155 0 0 1 0 31.831
a 15.9155 15.9155 0 0 1 0 -31.831"
fill="none"
stroke="#6b21a8"
stroke-width="3"
stroke-dasharray="45, 100"
class="progress-ring__circle"
/>
<text x="18" y="20.5" text-anchor="middle" fill="#6b21a8" font-size="8" font-weight="bold">45%</text>
</svg>
</div>
<p class="text-sm font-medium text-gray-700">Defense</p>
</div>
</div>
</div>
<!-- Video Feed -->
<div class="p-4">
<div class="flex justify-between items-center mb-4">
<h2 class="text-xl font-bold text-gray-800">Recent Videos</h2>
<button id="upload-video-btn" class="bg-purple-600 hover:bg-purple-700 text-white px-4 py-2 rounded-lg text-sm font-medium flex items-center">
<i class="fas fa-plus mr-2"></i> New Video
</button>
</div>
<div class="space-y-4">
<!-- Video Item 1 -->
<div class="bg-white rounded-lg shadow overflow-hidden">
<div class="video-thumbnail">
<!-- Thumbnail would be here -->
</div>
<div class="p-3">
<div class="flex justify-between items-start">
<div>
<h3 class="font-medium text-gray-800">Shooting Drills - 3 Pointers</h3>
<p class="text-sm text-gray-500">Uploaded 2 days ago</p>
</div>
<span class="bg-purple-100 text-purple-800 text-xs px-2 py-1 rounded">Shooting</span>
</div>
<div class="mt-3 flex items-center">
<div class="flex items-center mr-4">
<i class="fas fa-star text-yellow-400 mr-1"></i>
<span class="text-sm font-medium">4.5</span>
</div>
<button class="text-purple-600 text-sm font-medium flex items-center">
<i class="fas fa-comment-alt mr-1"></i> View Feedback
</button>
</div>
</div>
</div>
<!-- Video Item 2 -->
<div class="bg-white rounded-lg shadow overflow-hidden">
<div class="video-thumbnail">
<!-- Thumbnail would be here -->
</div>
<div class="p-3">
<div class="flex justify-between items-start">
<div>
<h3 class="font-medium text-gray-800">Crossover Practice</h3>
<p class="text-sm text-gray-500">Uploaded 5 days ago</p>
</div>
<span class="bg-purple-100 text-purple-800 text-xs px-2 py-1 rounded">Dribbling</span>
</div>
<div class="mt-3 flex items-center">
<div class="flex items-center mr-4">
<i class="fas fa-star text-yellow-400 mr-1"></i>
<span class="text-sm font-medium">3.8</span>
</div>
<button class="text-purple-600 text-sm font-medium flex items-center">
<i class="fas fa-comment-alt mr-1"></i> View Feedback
</button>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Coach Dashboard (hidden by default) -->
<div id="coach-dashboard" class="hidden">
<!-- Students List -->
<div class="p-4">
<h2 class="text-xl font-bold mb-4 text-gray-800">My Students</h2>
<div class="bg-white rounded-lg shadow overflow-hidden">
<!-- Student 1 -->
<div class="p-3 border-b border-gray-100 flex items-center">
<div class="w-10 h-10 rounded-full bg-purple-100 flex items-center justify-center mr-3">
<span class="text-purple-800 font-medium">JD</span>
</div>
<div class="flex-1">
<h3 class="font-medium text-gray-800">John Doe</h3>
<p class="text-sm text-gray-500">3 new videos</p>
</div>
<button class="text-purple-600">
<i class="fas fa-chevron-right"></i>
</button>
</div>
<!-- Student 2 -->
<div class="p-3 border-b border-gray-100 flex items-center">
<div class="w-10 h-10 rounded-full bg-purple-100 flex items-center justify-center mr-3">
<span class="text-purple-800 font-medium">AS</span>
</div>
<div class="flex-1">
<h3 class="font-medium text-gray-800">Alex Smith</h3>
<p class="text-sm text-gray-500">1 new video</p>
</div>
<button class="text-purple-600">
<i class="fas fa-chevron-right"></i>
</button>
</div>
<!-- Student 3 -->
<div class="p-3 flex items-center">
<div class="w-10 h-10 rounded-full bg-purple-100 flex items-center justify-center mr-3">
<span class="text-purple-800 font-medium">MJ</span>
</div>
<div class="flex-1">
<h3 class="font-medium text-gray-800">Mike Johnson</h3>
<p class="text-sm text-gray-500">No new videos</p>
</div>
<button class="text-purple-600">
<i class="fas fa-chevron-right"></i>
</button>
</div>
</div>
</div>
<!-- Recent Videos -->
<div class="p-4">
<h2 class="text-xl font-bold mb-4 text-gray-800">Recent Videos to Review</h2>
<div class="space-y-4">
<!-- Video Item 1 -->
<div class="bg-white rounded-lg shadow overflow-hidden">
<div class="video-thumbnail">
<!-- Thumbnail would be here -->
</div>
<div class="p-3">
<div class="flex justify-between items-start mb-2">
<h3 class="font-medium text-gray-800">Shooting Drills - 3 Pointers</h3>
<span class="bg-purple-100 text-purple-800 text-xs px-2 py-1 rounded">Shooting</span>
</div>
<div class="flex items-center text-sm text-gray-500 mb-3">
<span>John Doe</span>
<span class="mx-2">•</span>
<span>2 days ago</span>
</div>
<div class="flex space-x-2">
<button class="flex-1 bg-purple-600 hover:bg-purple-700 text-white py-2 rounded-lg text-sm font-medium">
<i class="fas fa-play mr-1"></i> Watch
</button>
<button class="flex-1 bg-white border border-purple-600 text-purple-600 py-2 rounded-lg text-sm font-medium">
<i class="fas fa-comment-alt mr-1"></i> Feedback
</button>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Video Upload Modal (hidden by default) -->
<div id="upload-modal" class="fixed inset-0 bg-black bg-opacity-50 z-50 flex items-center justify-center hidden">
<div class="bg-white rounded-lg w-full max-w-md mx-4">
<div class="p-4 border-b border-gray-200">
<h3 class="text-lg font-medium text-gray-800">Upload New Video</h3>
</div>
<div class="p-4">
<div class="mb-4">
<label class="block text-gray-700 mb-2">Video Title</label>
<input type="text" class="w-full px-3 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-purple-500">
</div>
<div class="mb-4">
<label class="block text-gray-700 mb-2">Category</label>
<select class="w-full px-3 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-purple-500">
<option>Shooting</option>
<option>Dribbling</option>
<option>Defense</option>
<option>Footwork</option>
<option>Passing</option>
</select>
</div>
<div class="mb-6">
<label class="block text-gray-700 mb-2">Upload Video</label>
<div class="border-2 border-dashed border-gray-300 rounded-lg p-8 text-center cursor-pointer hover:bg-gray-50 transition">
<i class="fas fa-video text-3xl text-gray-400 mb-2"></i>
<p class="text-gray-500">Click to browse or drag & drop</p>
<p class="text-sm text-gray-400 mt-1">MP4, MOV or AVI (max 100MB)</p>
</div>
</div>
<div class="flex space-x-3">
<button id="cancel-upload" class="flex-1 bg-gray-200 hover:bg-gray-300 text-gray-800 py-2 rounded-lg font-medium">
Cancel
</button>
<button class="flex-1 bg-purple-600 hover:bg-purple-700 text-white py-2 rounded-lg font-medium">
Upload
</button>
</div>
</div>
</div>
</div>
<!-- Feedback Modal (hidden by default) -->
<div id="feedback-modal" class="fixed inset-0 bg-black bg-opacity-50 z-50 flex items-center justify-center hidden">
<div class="bg-white rounded-lg w-full max-w-md mx-4 max-h-[80vh] overflow-y-auto">
<div class="p-4 border-b border-gray-200 sticky top-0 bg-white">
<h3 class="text-lg font-medium text-gray-800">Video Feedback</h3>
</div>
<div class="p-4">
<div class="mb-6">
<h4 class="font-medium text-gray-800 mb-2">Shooting Drills - 3 Pointers</h4>
<div class="flex items-center text-sm text-gray-500 mb-4">
<span>Coach Smith</span>
<span class="mx-2">•</span>
<span>2 days ago</span>
</div>
<div class="flex items-center mb-3">
<div class="flex mr-2">
<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 text-yellow-400"></i>
</div>
<span class="text-sm font-medium">5.0</span>
</div>
<div class="bg-purple-50 p-3 rounded-lg">
<p class="text-gray-800">Great improvement on your shooting form! Your elbow is now properly aligned under the ball. Next focus on maintaining consistent follow-through on every shot. Also, try to jump straight up and down to improve accuracy.</p>
</div>
</div>
<div class="mb-6">
<h4 class="font-medium text-gray-800 mb-2">Demonstration Video</h4>
<div class="video-thumbnail mb-3 rounded-lg overflow-hidden">
<!-- Thumbnail would be here -->
</div>
<div class="bg-purple-50 p-3 rounded-lg">
<p class="text-gray-800">Here's a demonstration of proper shooting technique. Notice how I hold the follow-through until the ball reaches the basket. This helps with consistency.</p>
</div>
</div>
<div class="border-t border-gray-200 pt-4">
<h5 class="font-medium text-gray-800 mb-3">Reply to Coach</h5>
<div class="flex space-x-2">
<input type="text" placeholder="Type your message..." class="flex-1 px-3 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-purple-500">
<button class="bg-purple-600 hover:bg-purple-700 text-white px-4 py-2 rounded-lg">
<i class="fas fa-paper-plane"></i>
</button>
</div>
</div>
</div>
</div>
</div>
<!-- Chat Interface (hidden by default) -->
<div id="chat-interface" class="fixed inset-0 bg-white z-50 hidden flex flex-col">
<div class="p-4 border-b border-gray-200 flex items-center">
<button id="back-from-chat" class="mr-3">
<i class="fas fa-arrow-left text-lg"></i>
</button>
<div class="flex items-center">
<div class="w-10 h-10 rounded-full bg-purple-100 flex items-center justify-center mr-3">
<span class="text-purple-800 font-medium">CS</span>
</div>
<div>
<h3 class="font-medium">Coach Smith</h3>
<p class="text-xs text-gray-500">Online</p>
</div>
</div>
</div>
<div class="flex-1 p-4 overflow-y-auto">
<div class="space-y-3">
<!-- Date separator -->
<div class="text-center text-xs text-gray-500 my-4">
<span class="bg-gray-100 px-2 py-1 rounded">Today</span>
</div>
<!-- Coach message -->
<div class="chat-bubble coach">
<p>Hi John! How's the shooting practice going?</p>
<p class="text-xs text-purple-800 mt-1">10:30 AM</p>
</div>
<!-- User message -->
<div class="chat-bubble user">
<p>Going well! I've been working on my follow-through like you suggested.</p>
<p class="text-xs text-purple-200 mt-1">10:32 AM</p>
</div>
<!-- Coach message with video -->
<div class="chat-bubble coach">
<div class="video-thumbnail mb-2 rounded-lg overflow-hidden">
<!-- Thumbnail would be here -->
</div>
<p>Check out this video I made showing the proper technique. Notice the wrist position.</p>
<p class="text-xs text-purple-800 mt-1">10:35 AM</p>
</div>
</div>
</div>
<div class="p-3 border-t border-gray-200 bg-white">
<div class="flex items-center space-x-2">
<button class="text-gray-500 hover:text-gray-700">
<i class="fas fa-paperclip text-lg"></i>
</button>
<input type="text" placeholder="Type a message..." class="flex-1 px-3 py-2 border border-gray-300 rounded-full focus:outline-none focus:ring-2 focus:ring-purple-500">
<button class="text-purple-600 hover:text-purple-800">
<i class="fas fa-paper-plane text-lg"></i>
</button>
</div>
</div>
</div>
</main>
<!-- Bottom Navigation -->
<nav class="fixed bottom-0 left-0 right-0 bg-white shadow-lg border-t border-gray-200">
<div class="flex justify-around">
<button class="tab-active py-3 px-6 flex flex-col items-center text-xs">
<i class="fas fa-home text-lg mb-1"></i>
<span>Home</span>
</button>
<button class="py-3 px-6 flex flex-col items-center text-gray-500 text-xs">
<i class="fas fa-video text-lg mb-1"></i>
<span>Videos</span>
</button>
<button id="open-chat-btn" class="py-3 px-6 flex flex-col items-center text-gray-500 text-xs">
<i class="fas fa-comments text-lg mb-1"></i>
<span>Chat</span>
</button>
<button class="py-3 px-6 flex flex-col items-center text-gray-500 text-xs">
<i class="fas fa-calendar text-lg mb-1"></i>
<span>Schedule</span>
</button>
<button class="py-3 px-6 flex flex-col items-center text-gray-500 text-xs">
<i class="fas fa-user text-lg mb-1"></i>
<span>Profile</span>
</button>
</div>
</nav>
</div>
<script>
// Auth screen toggle functionality
document.getElementById('show-register').addEventListener('click', function() {
document.getElementById('login-form').classList.add('hidden');
document.getElementById('register-form').classList.remove('hidden');
document.getElementById('forgot-password-form').classList.add('hidden');
});
document.getElementById('show-login').addEventListener('click', function() {
document.getElementById('register-form').classList.add('hidden');
document.getElementById('login-form').classList.remove('hidden');
document.getElementById('forgot-password-form').classList.add('hidden');
});
document.getElementById('forgot-password').addEventListener('click', function() {
document.getElementById('login-form').classList.add('hidden');
document.getElementById('register-form').classList.add('hidden');
document.getElementById('forgot-password-form').classList.remove('hidden');
});
document.getElementById('back-to-login').addEventListener('click', function() {
document.getElementById('login-form').classList.remove('hidden');
document.getElementById('forgot-password-form').classList.add('hidden');
});
// Login simulation
document.querySelector('#login-form button').addEventListener('click', function(e) {
e.preventDefault();
// Simulate login
document.getElementById('auth-screen').classList.add('hidden');
document.getElementById('app-container').classList.remove('hidden');
// Show student dashboard by default
document.getElementById('student-dashboard').classList.remove('hidden');
document.getElementById('coach-dashboard').classList.add('hidden');
});
// Register simulation
document.querySelector('#register-form button').addEventListener('click', function(e) {
e.preventDefault();
const accountType = document.querySelector('input[name="account-type"]:checked').value;
// Simulate registration
document.getElementById('auth-screen').classList.add('hidden');
document.getElementById('app-container').classList.remove('hidden');
// Show appropriate dashboard based on account type
if (accountType === 'coach') {
document.getElementById('student-dashboard').classList.add('hidden');
document.getElementById('coach-dashboard').classList.remove('hidden');
} else {
document.getElementById('student-dashboard').classList.remove('hidden');
document.getElementById('coach-dashboard').classList.add('hidden');
}
});
// Logout functionality
document.getElementById('logout-btn').addEventListener('click', function() {
document.getElementById('auth-screen').classList.remove('hidden');
document.getElementById('app-container').classList.add('hidden');
document.getElementById('login-form').classList.remove('hidden');
document.getElementById('register-form').classList.add('hidden');
document.getElementById('forgot-password-form').classList.add('hidden');
});
// Video upload modal
document.getElementById('upload-video-btn').addEventListener('click', function() {
document.getElementById('upload-modal').classList.remove('hidden');
});
document.getElementById('cancel-upload').addEventListener('click', function() {
document.getElementById('upload-modal').classList.add('hidden');
});
// Close modals when clicking outside
document.getElementById('upload-modal').addEventListener('click', function(e) {
if (e.target === this) {
this.classList.add('hidden');
}
});
document.getElementById('feedback-modal').addEventListener('click', function(e) {
if (e.target === this) {
this.classList.add('hidden');
}
});
// View feedback buttons
const viewFeedbackButtons = document.querySelectorAll('[class*="fa-comment-alt"]');
viewFeedbackButtons.forEach(button => {
button.addEventListener('click', function() {
document.getElementById('feedback-modal').classList.remove('hidden');
});
});
// Close feedback modal---
Prompt completo para criação de app de treinador de basquete – Deflook Academy
> Crie um aplicativo mobile (Android e iOS) chamado Deflook Academy, voltado para treinadores de basquete e seus alunos. O app deve ter uma interface esportiva e moderna com paleta de cores em roxo e preto, com elementos temáticos de basquete (bola, cesta, quadra). Utilize uma abordagem responsiva e voltada à usabilidade mobile. A seguir estão os requisitos detalhados:
---
1. Sistema de Cadastro e Login:
Cadastro individual com nome, e-mail, senha e tipo de conta (Aluno ou Treinador).
Login com autenticação segura.
Recuperação de senha.
Suporte a login social (Google, Apple).
---
2. Painel do Aluno:
Tela inicial com feed de vídeos enviados.
Gráficos de desempenho com base nos treinos (barra ou pizza).
Botão para enviar vídeo (gravar na hora ou escolher da galeria).
Categorizar o vídeo: arremesso, drible, defesa, etc.
Acesso ao chat individual com o treinador.
Visualização de feedbacks recebidos.
---
3. Painel do Treinador:
Lista com todos os alunos cadastrados.
Visualização dos vídeos enviados por aluno.
Avaliação dos vídeos com comentários, estrelas ou notas.
Envio de vídeos demonstrativos e mensagens.
Chat individual com cada aluno.
Agenda de treinos presenciais ou virtuais (sincronizável com calendário).
Possibilidade de múltiplos treinadores por aluno (ex: técnico e preparador físico).
---
4. Chat Integrado:
Mensagens em tempo real entre treinador e aluno.
Suporte a texto, vídeo, imagem e áudio.
Notificações de novas mensagens.
---
5. Notificações e Alertas:
Aluno recebe notificação ao receber feedback ou nova mensagem.
Treinador recebe alerta ao receber novo vídeo.
---
6. Design e Interface:
Interface esportiva, moderna, com paleta de roxo, preto e branco.
Layout adaptado para celular (responsivo).
Ícones temáticos de basquete.
---
7. Tecnologia sugerida:
Frontend: React Native ou Flutter.
Backend: Firebase (Auth, Firestore, Storage) ou Supabase.
Armazenamento de vídeo: Firebase Storage ou AWS S3.
---
8. Requisitos Adicionais (opcionais):
Painel web administrativo para treinadores.
Exportação de relatórios de desempenho em PDF.
Suporte futuro a ferramentas de análise de movimento (ex: OpenPose, MediaPipe).
---
9. MVP sugerido (versão mínima viável):
Para o primeiro lançamento e testes iniciais:
Cadastro/Login com autenticação.
Upload e categorização de vídeos.
Chat básico (texto e mídia).
Feedback por comentários.
Notificações básicas.
Feed de vídeos por aluno.
document.querySelector('#feedback-modal .absolute').addEventListener('click', function() {
document.getElementById('feedback-modal').classList.add('hidden');
});
// Chat functionality
document.getElementById('open-chat-btn').addEventListener('click', function() {
document.getElementById('chat-interface').classList.remove('hidden');
});
document.getElementById('back-from-chat').addEventListener('click', function() {
document.getElementById('chat-interface').classList.add('hidden');
});
// Tab switching
const tabs = document.querySelectorAll('nav button');
tabs.forEach(tab => {
tab.addEventListener('click', function() {
tabs.forEach(t => t.classList.remove('tab-active', 'text-purple-600'));
tabs.forEach(t => t.classList.add('text-gray-500'));
this.classList.add('tab-active', 'text-purple-600');
this.classList.remove('text-gray-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=Deflook/deflook" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>