Spaces:
Running
Running
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Fantasy Gridiron Guru | NFL Lineup Builder</title> | |
| <link rel="stylesheet" href="style.css"> | |
| <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> | |
| <script src="components/navbar.js"></script> | |
| <script src="components/player-card.js"></script> | |
| <script src="components/lineup-slot.js"></script> | |
| </head> | |
| <body class="bg-gray-100"> | |
| <custom-navbar></custom-navbar> | |
| <main class="container mx-auto px-4 py-8"> | |
| <div class="grid grid-cols-1 lg:grid-cols-3 gap-8"> | |
| <!-- Player Pool Section --> | |
| <div class="lg:col-span-2"> | |
| <div class="bg-white rounded-xl shadow-md p-6 mb-6"> | |
| <div class="flex justify-between items-center mb-6"> | |
| <h2 class="text-2xl font-bold text-gray-800">Player Pool</h2> | |
| <div class="flex space-x-2"> | |
| <div class="relative"> | |
| <select class="appearance-none bg-gray-100 border border-gray-300 rounded-lg py-2 px-4 pr-8 text-gray-700 leading-tight focus:outline-none focus:bg-white focus:border-blue-500"> | |
| <option>All Positions</option> | |
| <option>QB</option> | |
| <option>RB</option> | |
| <option>WR</option> | |
| <option>TE</option> | |
| <option>DST</option> | |
| </select> | |
| <div class="pointer-events-none absolute inset-y-0 right-0 flex items-center px-2 text-gray-700"> | |
| <i data-feather="chevron-down" class="w-4 h-4"></i> | |
| </div> | |
| </div> | |
| <div class="relative"> | |
| <input type="text" placeholder="Search players..." class="bg-gray-100 border border-gray-300 rounded-lg py-2 px-4 pr-8 text-gray-700 leading-tight focus:outline-none focus:bg-white focus:border-blue-500"> | |
| <i data-feather="search" class="absolute right-3 top-2.5 text-gray-500"></i> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4" id="player-pool"> | |
| <!-- Player cards will be dynamically inserted here --> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Lineup Builder Section --> | |
| <div class="lg:col-span-1"> | |
| <div class="bg-white rounded-xl shadow-md p-6 sticky top-4"> | |
| <div class="flex justify-between items-center mb-6"> | |
| <h2 class="text-2xl font-bold text-gray-800">Your Lineup</h2> | |
| <span class="text-sm font-medium bg-blue-100 text-blue-800 py-1 px-3 rounded-full">$50,000</span> | |
| </div> | |
| <div class="space-y-4 mb-6"> | |
| <custom-lineup-slot position="QB"></custom-lineup-slot> | |
| <custom-lineup-slot position="RB"></custom-lineup-slot> | |
| <custom-lineup-slot position="RB"></custom-lineup-slot> | |
| <custom-lineup-slot position="WR"></custom-lineup-slot> | |
| <custom-lineup-slot position="WR"></custom-lineup-slot> | |
| <custom-lineup-slot position="WR"></custom-lineup-slot> | |
| <custom-lineup-slot position="TE"></custom-lineup-slot> | |
| <custom-lineup-slot position="FLEX"></custom-lineup-slot> | |
| <custom-lineup-slot position="DST"></custom-lineup-slot> | |
| </div> | |
| <div class="bg-gray-50 rounded-lg p-4 mb-6"> | |
| <div class="flex justify-between mb-2"> | |
| <span class="text-gray-600">Salary Used:</span> | |
| <span class="font-medium">$0</span> | |
| </div> | |
| <div class="flex justify-between mb-2"> | |
| <span class="text-gray-600">Remaining:</span> | |
| <span class="font-medium text-green-600">$50,000</span> | |
| </div> | |
| <div class="w-full bg-gray-200 rounded-full h-2.5"> | |
| <div class="bg-green-500 h-2.5 rounded-full" style="width: 100%"></div> | |
| </div> | |
| </div> | |
| <button class="w-full bg-blue-600 hover:bg-blue-700 text-white font-bold py-3 px-4 rounded-lg transition duration-200 flex items-center justify-center"> | |
| <i data-feather="save" class="mr-2"></i> | |
| Save Lineup | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </main> | |
| <script src="script.js"></script> | |
| <script> | |
| feather.replace(); | |
| // Load sample players (in a real app, this would come from an API) | |
| document.addEventListener('DOMContentLoaded', () => { | |
| const playerPool = document.getElementById('player-pool'); | |
| const samplePlayers = [ | |
| { id: 1, name: 'Patrick Mahomes', team: 'KC', position: 'QB', salary: 8000, fppg: 24.5, image: 'http://static.photos/sport/200x200/1' }, | |
| { id: 2, name: 'Christian McCaffrey', team: 'SF', position: 'RB', salary: 9500, fppg: 28.1, image: 'http://static.photos/sport/200x200/2' }, | |
| { id: 3, name: 'Justin Jefferson', team: 'MIN', position: 'WR', salary: 9000, fppg: 22.7, image: 'http://static.photos/sport/200x200/3' }, | |
| { id: 4, name: 'Travis Kelce', team: 'KC', position: 'TE', salary: 8500, fppg: 20.3, image: 'http://static.photos/sport/200x200/4' }, | |
| { id: 5, name: 'Josh Allen', team: 'BUF', position: 'QB', salary: 8500, fppg: 26.2, image: 'http://static.photos/sport/200x200/5' }, | |
| { id: 6, name: 'Tyreek Hill', team: 'MIA', position: 'WR', salary: 9200, fppg: 25.8, image: 'http://static.photos/sport/200x200/6' }, | |
| { id: 7, name: 'Saquon Barkley', team: 'NYG', position: 'RB', salary: 8200, fppg: 19.7, image: 'http://static.photos/sport/200x200/7' }, | |
| { id: 8, name: 'Davante Adams', team: 'LV', position: 'WR', salary: 8800, fppg: 21.4, image: 'http://static.photos/sport/200x200/8' }, | |
| { id: 9, name: 'San Francisco 49ers', team: 'SF', position: 'DST', salary: 3800, fppg: 9.2, image: 'http://static.photos/sport/200x200/9' } | |
| ]; | |
| samplePlayers.forEach(player => { | |
| const playerCard = document.createElement('custom-player-card'); | |
| playerCard.setAttribute('name', player.name); | |
| playerCard.setAttribute('team', player.team); | |
| playerCard.setAttribute('position', player.position); | |
| playerCard.setAttribute('salary', player.salary); | |
| playerCard.setAttribute('fppg', player.fppg); | |
| playerCard.setAttribute('image', player.image); | |
| playerPool.appendChild(playerCard); | |
| }); | |
| }); | |
| </script> | |
| <script src="https://huggingface.co/deepsite/deepsite-badge.js"></script> | |
| </body> | |
| </html> |