sportloop / index.html
BJK74's picture
when i click on the 'create team' button nothing happens. Add in the functionality so the user is able to create a new team - Follow Up Deployment
8449cf5 verified
Raw History Blame Contribute Delete
40.9 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>SportLoop - Team Management Made Fun</title>
<!-- Rest of your existing HTML content -->
<<<<<<< SEARCH
=======
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>SportLoop - Team Management Made Fun</title>
<script src="https://cdn.tailwindcss.com"></script>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Bungee&display=swap" rel="stylesheet">
<style>
.bungee {
font-family: 'Bungee', cursive;
}
.inter {
font-family: 'Inter', sans-serif;
}
.floating-btn {
box-shadow: 0 4px 14px 0 rgba(255, 107, 53, 0.4);
}
.rsvp-in {
transition: all 0.2s ease;
}
.rsvp-in:hover {
transform: translateY(-2px);
}
.attendance-checkbox:checked + .checkmark {
background-color: #00C2FF;
border-color: #00C2FF;
}
.attendance-checkbox:checked + .checkmark:after {
display: block;
}
.checkmark:after {
content: "";
position: absolute;
display: none;
left: 7px;
top: 3px;
width: 5px;
height: 10px;
border: solid white;
border-width: 0 2px 2px 0;
transform: rotate(45deg);
}
.event-card:hover {
transform: translateY(-4px);
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
.tab-active {
border-bottom: 3px solid #FF6B35;
}
</style>
</head>
<body class="bg-slate-50 inter">
<!-- Navigation -->
<nav class="bg-white shadow-sm">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="flex justify-between h-16">
<div class="flex items-center">
<div class="flex-shrink-0 flex items-center">
<span class="bungee text-2xl text-[#FF6B35]">SportLoop</span>
</div>
</div>
<div class="hidden md:ml-6 md:flex md:items-center md:space-x-8">
<a href="#" class="text-gray-900 inline-flex items-center px-1 pt-1 border-b-2 border-[#00C2FF] text-sm font-medium">Dashboard</a>
<a href="#" class="text-gray-500 hover:text-gray-700 inline-flex items-center px-1 pt-1 border-b-2 border-transparent hover:border-gray-300 text-sm font-medium">Teams</a>
<a href="#" class="text-gray-500 hover:text-gray-700 inline-flex items-center px-1 pt-1 border-b-2 border-transparent hover:border-gray-300 text-sm font-medium">Schedule</a>
<a href="#" class="text-gray-500 hover:text-gray-700 inline-flex items-center px-1 pt-1 border-b-2 border-transparent hover:border-gray-300 text-sm font-medium">Billing</a>
</div>
<div class="hidden md:ml-6 md:flex md:items-center">
<div class="ml-3 relative">
<div>
<button type="button" class="bg-white rounded-full flex text-sm focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-[#00C2FF]" id="user-menu" aria-expanded="false" aria-haspopup="true">
<span class="sr-only">Open user menu</span>
<img class="h-8 w-8 rounded-full" src="https://images.unsplash.com/photo-1472099645785-5658abf4ff4e?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80" alt="">
</button>
</div>
</div>
</div>
<div class="-mr-2 flex items-center md:hidden">
<button type="button" class="bg-white inline-flex items-center justify-center p-2 rounded-md text-gray-400 hover:text-gray-500 hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-[#00C2FF]" aria-expanded="false">
<span class="sr-only">Open main menu</span>
<svg class="block h-6 w-6" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16M4 18h16" />
</svg>
</button>
</div>
</div>
</div>
</nav>
<!-- Mobile Bottom Nav -->
<div class="md:hidden fixed bottom-0 left-0 right-0 bg-white shadow-lg flex justify-around items-center h-16 z-10">
<a href="#" class="flex flex-col items-center text-[#00C2FF]">
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6" />
</svg>
<span class="text-xs mt-1">Home</span>
</a>
<a href="#" class="flex flex-col items-center text-gray-500">
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z" />
</svg>
<span class="text-xs mt-1">Schedule</span>
</a>
<button class="bg-[#00C2FF] text-white rounded-full p-3 -mt-8 floating-btn">
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 6v6m0 0v6m0-6h6m-6 0H6" />
</svg>
</button>
<a href="#" class="flex flex-col items-center text-gray-500">
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z" />
</svg>
<span class="text-xs mt-1">Chat</span>
</a>
<a href="#" class="flex flex-col items-center text-gray-500">
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z" />
</svg>
<span class="text-xs mt-1">Profile</span>
</a>
</div>
<!-- Main Content -->
<main class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8">
<!-- Club Header -->
<div class="flex flex-col md:flex-row justify-between items-start md:items-center mb-8">
<div class="flex items-center mb-4 md:mb-0">
<div class="mr-4">
<div class="w-16 h-16 rounded-full bg-[#00C2FF] flex items-center justify-center text-white font-bold text-2xl">SC</div>
</div>
<div>
<h1 class="text-2xl font-bold text-gray-900">Soccer Club</h1>
<p class="text-gray-500">2 teams • 24 members</p>
</div>
</div>
<div class="flex space-x-3">
<button class="px-4 py-2 border border-gray-300 rounded-md text-sm font-medium text-gray-700 bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-[#00C2FF]">
Invite Members
</button>
<button class="px-4 py-2 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-[#00C2FF] hover:bg-[#00a8e0] focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-[#00C2FF]">
Create Team
</button>
</div>
</div>
<!-- Teams Grid -->
<div class="mb-10">
<h2 class="text-lg font-medium text-gray-900 mb-4">Your Teams</h2>
<div class="grid grid-cols-1 gap-5 sm:grid-cols-2 lg:grid-cols-3">
<!-- Team Card 1 -->
<div class="bg-white overflow-hidden shadow rounded-lg">
<div class="px-4 py-5 sm:p-6">
<div class="flex items-center">
<div class="flex-shrink-0 bg-[#FF6B35] rounded-md p-3">
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6 text-white" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z" />
</svg>
</div>
<div class="ml-5 w-0 flex-1">
<dt class="text-sm font-medium text-gray-500 truncate">
U12 Boys
</dt>
<dd class="flex items-baseline">
<div class="text-2xl font-semibold text-gray-900">
12
</div>
<div class="ml-2 flex items-baseline text-sm font-semibold text-green-600">
<span class="sr-only">Members</span>
</div>
</dd>
</div>
</div>
<div class="mt-4">
<div class="flex items-center text-sm text-gray-500">
<svg xmlns="http://www.w3.org/2000/svg" class="flex-shrink-0 mr-1.5 h-5 w-5 text-gray-400" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z" />
</svg>
Next: Sat, Oct 15 • 10:00 AM
</div>
</div>
</div>
<div class="bg-gray-50 px-4 py-4 sm:px-6">
<div class="text-sm">
<a href="#" class="font-medium text-[#FF6B35] hover:text-[#e05a2b]">View team<span class="sr-only"> U12 Boys stats</span></a>
</div>
</div>
</div>
<!-- Team Card 2 -->
<div class="bg-white overflow-hidden shadow rounded-lg">
<div class="px-4 py-5 sm:p-6">
<div class="flex items-center">
<div class="flex-shrink-0 bg-[#FF5F6D] rounded-md p-3">
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6 text-white" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z" />
</svg>
</div>
<div class="ml-5 w-0 flex-1">
<dt class="text-sm font-medium text-gray-500 truncate">
U14 Girls
</dt>
<dd class="flex items-baseline">
<div class="text-2xl font-semibold text-gray-900">
12
</div>
<div class="ml-2 flex items-baseline text-sm font-semibold text-green-600">
<span class="sr-only">Members</span>
</div>
</dd>
</div>
</div>
<div class="mt-4">
<div class="flex items-center text-sm text-gray-500">
<svg xmlns="http://www.w3.org/2000/svg" class="flex-shrink-0 mr-1.5 h-5 w-5 text-gray-400" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z" />
</svg>
Next: Sun, Oct 16 • 2:00 PM
</div>
</div>
</div>
<div class="bg-gray-50 px-4 py-4 sm:px-6">
<div class="text-sm">
<a href="#" class="font-medium text-[#00C2FF] hover:text-[#00a8e0]">View team<span class="sr-only"> U14 Girls stats</span></a>
</div>
</div>
</div>
<!-- Create New Team Card -->
<div class="bg-white overflow-hidden shadow rounded-lg border-2 border-dashed border-gray-300 hover:border-[#00C2FF] transition-colors duration-200">
<div class="px-4 py-5 sm:p-6 h-full flex flex-col items-center justify-center">
<svg xmlns="http://www.w3.org/2000/svg" class="h-12 w-12 text-gray-400" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 6v6m0 0v6m0-6h6m-6 0H6" />
</svg>
<h3 class="mt-2 text-sm font-medium text-gray-900">Create new team</h3>
<p class="mt-1 text-sm text-gray-500">Get started by creating a new team.</p>
<button class="mt-4 inline-flex items-center px-4 py-2 border border-transparent shadow-sm text-sm font-medium rounded-md text-white bg-[#00C2FF] hover:bg-[#00a8e0] focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-[#00C2FF]">
Add Team
</button>
</div>
</div>
</div>
</div>
<!-- Team Schedule Section -->
<div class="mb-10">
<div class="flex justify-between items-center mb-4">
<h2 class="text-lg font-medium text-gray-900">Upcoming Events</h2>
<div class="flex space-x-3">
<button class="px-3 py-1 border border-gray-300 rounded-md text-sm font-medium text-gray-700 bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-[#00C2FF]">
Today
</button>
<button class="px-3 py-1 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-[#00C2FF] hover:bg-[#00a8e0] focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-[#00C2FF]">
Create Event
</button>
</div>
</div>
<div class="bg-white shadow overflow-hidden sm:rounded-md">
<ul class="divide-y divide-gray-200">
<!-- Event 1 -->
<li class="event-card transition-all duration-300">
<div class="px-4 py-4 sm:px-6">
<div class="flex items-center justify-between">
<p class="text-sm font-medium text-[#FF6B35] truncate">
Practice Session
</p>
<div class="ml-2 flex-shrink-0 flex">
<p class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">
U12 Boys
</p>
</div>
</div>
<div class="mt-2 sm:flex sm:justify-between">
<div class="sm:flex">
<p class="flex items-center text-sm text-gray-500">
<svg xmlns="http://www.w3.org/2000/svg" class="flex-shrink-0 mr-1.5 h-5 w-5 text-gray-400" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z" />
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 11a3 3 0 11-6 0 3 3 0 016 0z" />
</svg>
Central Park Field #3
</p>
</div>
<div class="mt-2 flex items-center text-sm text-gray-500 sm:mt-0">
<svg xmlns="http://www.w3.org/2000/svg" class="flex-shrink-0 mr-1.5 h-5 w-5 text-gray-400" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z" />
</svg>
<p>
<time datetime="2022-10-15T10:00:00">Oct 15, 2022</time>
<span class="mx-1">•</span>
<time datetime="2022-10-15T12:00:00">10:00 AM–12:00 PM</time>
</p>
</div>
</div>
<div class="mt-4 flex justify-between items-center">
<div class="flex -space-x-2 overflow-hidden">
<img class="inline-block h-8 w-8 rounded-full ring-2 ring-white" src="https://images.unsplash.com/photo-1491528323818-fdd1faba62cc?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80" alt="">
<img class="inline-block h-8 w-8 rounded-full ring-2 ring-white" src="https://images.unsplash.com/photo-1550525811-e5869dd03032?ixlib=rb-1.2.1&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80" alt="">
<img class="inline-block h-8 w-8 rounded-full ring-2 ring-white" src="https://images.unsplash.com/photo-1500648767791-00dcc994a43e?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2.25&w=256&h=256&q=80" alt="">
<span class="inline-flex items-center justify-center h-8 w-8 rounded-full ring-2 ring-white bg-gray-300">
<span class="text-xs font-medium leading-none text-gray-700">+5</span>
</span>
</div>
<div class="flex space-x-2">
<button class="px-3 py-1 border border-gray-300 rounded-md text-sm font-medium text-gray-700 bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-[#00C2FF]">
Details
</button>
<button class="px-3 py-1 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-[#00C2FF] hover:bg-[#00a8e0] focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-[#00C2FF]">
RSVP
</button>
</div>
</div>
</div>
</li>
<!-- Event 2 -->
<li class="event-card transition-all duration-300">
<div class="px-4 py-4 sm:px-6">
<div class="flex items-center justify-between">
<p class="text-sm font-medium text-[#00C2FF] truncate">
League Game
</p>
<div class="ml-2 flex-shrink-0 flex">
<p class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-[#FF5F6D] text-white">
U14 Girls
</p>
</div>
</div>
<div class="mt-2 sm:flex sm:justify-between">
<div class="sm:flex">
<p class="flex items-center text-sm text-gray-500">
<svg xmlns="http://www.w3.org/2000/svg" class="flex-shrink-0 mr-1.5 h-5 w-5 text-gray-400" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z" />
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 11a3 3 0 11-6 0 3 3 0 016 0z" />
</svg>
Riverside Stadium
</p>
</div>
<div class="mt-2 flex items-center text-sm text-gray-500 sm:mt-0">
<svg xmlns="http://www.w3.org/2000/svg" class="flex-shrink-0 mr-1.5 h-5 w-5 text-gray-400" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z" />
</svg>
<p>
<time datetime="2022-10-16T14:00:00">Oct 16, 2022</time>
<span class="mx-1">•</span>
<time datetime="2022-10-16T16:00:00">2:00 PM–4:00 PM</time>
</p>
</div>
</div>
<div class="mt-4 flex justify-between items-center">
<div class="flex -space-x-2 overflow-hidden">
<img class="inline-block h-8 w-8 rounded-full ring-2 ring-white" src="https://images.unsplash.com/photo-1506794778202-cad84cf45f1d?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80" alt="">
<img class="inline-block h-8 w-8 rounded-full ring-2 ring-white" src="https://images.unsplash.com/photo-1517841905240-472988babdf9?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80" alt="">
<span class="inline-flex items-center justify-center h-8 w-8 rounded-full ring-2 ring-white bg-gray-300">
<span class="text-xs font-medium leading-none text-gray-700">+10</span>
</span>
</div>
<div class="flex space-x-2">
<button class="px-3 py-1 border border-gray-300 rounded-md text-sm font-medium text-gray-700 bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-[#00C2FF]">
Details
</button>
<button class="px-3 py-1 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-[#00C2FF] hover:bg-[#00a8e0] focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-[#00C2FF]">
RSVP
</button>
</div>
</div>
</div>
</li>
</ul>
</div>
</div>
<!-- Event Modal (hidden by default) -->
<div id="eventModal" class="fixed z-10 inset-0 overflow-y-auto hidden" aria-labelledby="modal-title" role="dialog" aria-modal="true">
<div class="flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0">
<div class="fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity" aria-hidden="true"></div>
<span class="hidden sm:inline-block sm:align-middle sm:h-screen" aria-hidden="true">&#8203;</span>
<div class="inline-block align-bottom bg-white rounded-lg px-4 pt-5 pb-4 text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-lg sm:w-full sm:p-6">
<div>
<div class="mt-3 text-center sm:mt-5">
<h3 class="text-lg leading-6 font-medium text-gray-900" id="modal-title">
Practice Session
</h3>
<div class="mt-2">
<div class="flex items-center justify-center text-sm text-gray-500">
<svg xmlns="http://www.w3.org/2000/svg" class="flex-shrink-0 mr-1.5 h-5 w-5 text-gray-400" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z" />
</svg>
<p>
Sat, Oct 15 • 10:00 AM - 12:00 PM
</p>
</div>
<div class="mt-2 flex items-center justify-center text-sm text-gray-500">
<svg xmlns="http://www.w3.org/2000/svg" class="flex-shrink-0 mr-1.5 h-5 w-5 text-gray-400" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z" />
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 11a3 3 0 11-6 0 3 3 0 016 0z" />
</svg>
Central Park Field #3
</div>
<div class="mt-4 text-left">
<p class="text-sm text-gray-500">
Bring cleats, shin guards, and water. We'll be working on passing drills and set pieces.
</p>
</div>
</div>
</div>
</div>
<div class="mt-5 sm:mt-6">
<h4 class="text-sm font-medium text-gray-700 mb-2">Your RSVP</h4>
<div class="grid grid-cols-3 gap-3">
<button class="rsvp-in px-4 py-2 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-green-500 hover:bg-green-600 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-green-500">
I'm In
</button>
<button class="px-4 py-2 border border-gray-300 rounded-md shadow-sm text-sm font-medium text-gray-700 bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-[#00C2FF]">
Maybe
</button>
<button class="px-4 py-2 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-[#FF5F6D] hover:bg-[#e05562] focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-[#FF5F6D]">
Can't Go
</button>
</div>
<div class="mt-4">
<h4 class="text-sm font-medium text-gray-700 mb-2">Attendance (Coaches Only)</h4>
<div class="space-y-2">
<div class="flex items-center">
<label class="container relative block cursor-pointer">
<input type="checkbox" class="attendance-checkbox absolute opacity-0 h-0 w-0">
<span class="checkmark absolute top-0 left-0 h-6 w-6 bg-white border-2 border-gray-300 rounded"></span>
</label>
<span class="ml-8 text-sm text-gray-700">Alex Johnson</span>
</div>
<div class="flex items-center">
<label class="container relative block cursor-pointer">
<input type="checkbox" class="attendance-checkbox absolute opacity-0 h-0 w-0">
<span class="checkmark absolute top-0 left-0 h-6 w-6 bg-white border-2 border-gray-300 rounded"></span>
</label>
<span class="ml-8 text-sm text-gray-700">Sam Wilson</span>
</div>
<div class="flex items-center">
<label class="container relative block cursor-pointer">
<input type="checkbox" class="attendance-checkbox absolute opacity-0 h-0 w-0">
<span class="checkmark absolute top-0 left-0 h-6 w-6 bg-white border-2 border-gray-300 rounded"></span>
</label>
<span class="ml-8 text-sm text-gray-700">Jamie Smith</span>
</div>
</div>
</div>
</div>
<div class="mt-5 sm:mt-6 sm:grid sm:grid-cols-2 sm:gap-3 sm:grid-flow-row-dense">
<button type="button" class="w-full inline-flex justify-center rounded-md border border-transparent shadow-sm px-4 py-2 bg-[#FF6B35] text-base font-medium text-white hover:bg-[#e05a2b] focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-[#FF6B35] sm:col-start-2 sm:text-sm">
Save
</button>
<button type="button" class="mt-3 w-full inline-flex justify-center rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-[#00C2FF] sm:mt-0 sm:col-start-1 sm:text-sm">
Cancel
</button>
</div>
</div>
</div>
</div>
</main>
<!-- Team Creation Modal -->
<div id="teamModal" class="fixed z-10 inset-0 overflow-y-auto hidden" aria-labelledby="modal-title" role="dialog" aria-modal="true">
<div class="flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0">
<div class="fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity" aria-hidden="true"></div>
<span class="hidden sm:inline-block sm:align-middle sm:h-screen" aria-hidden="true">&#8203;</span>
<div class="inline-block align-bottom bg-white rounded-lg px-4 pt-5 pb-4 text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-lg sm:w-full sm:p-6">
<div>
<div class="mt-3 text-center sm:mt-5">
<h3 class="text-lg leading-6 font-medium text-gray-900" id="modal-title">
Create New Team
</h3>
<div class="mt-4">
<form id="teamForm">
<div class="mb-4">
<label for="teamName" class="block text-sm font-medium text-gray-700 text-left">Team Name</label>
<input type="text" id="teamName" name="teamName" class="mt-1 focus:ring-[#00C2FF] focus:border-[#00C2FF] block w-full shadow-sm sm:text-sm border-gray-300 rounded-md p-2 border">
</div>
<div class="mb-4">
<label for="teamAge" class="block text-sm font-medium text-gray-700 text-left">Age Group</label>
<select id="teamAge" name="teamAge" class="mt-1 block w-full pl-3 pr-10 py-2 text-base border-gray-300 focus:outline-none focus:ring-[#00C2FF] focus:border-[#00C2FF] sm:text-sm rounded-md">
<option>U8</option>
<option>U10</option>
<option>U12</option>
<option>U14</option>
<option>U16</option>
<option>U18</option>
</select>
</div>
<div class="mb-4">
<label for="teamGender" class="block text-sm font-medium text-gray-700 text-left">Gender</label>
<select id="teamGender" name="teamGender" class="mt-1 block w-full pl-3 pr-10 py-2 text-base border-gray-300 focus:outline-none focus:ring-[#00C2FF] focus:border-[#00C2FF] sm:text-sm rounded-md">
<option>Boys</option>
<option>Girls</option>
<option>Co-ed</option>
</select>
</div>
</form>
</div>
</div>
</div>
<div class="mt-5 sm:mt-6 sm:grid sm:grid-cols-2 sm:gap-3 sm:grid-flow-row-dense">
<button type="button" id="saveTeam" class="w-full inline-flex justify-center rounded-md border border-transparent shadow-sm px-4 py-2 bg-[#00C2FF] text-base font-medium text-white hover:bg-[#00a8e0] focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-[#00C2FF] sm:col-start-2 sm:text-sm">
Create Team
</button>
<button type="button" id="cancelTeam" class="mt-3 w-full inline-flex justify-center rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-[#00C2FF] sm:mt-0 sm:col-start-1 sm:text-sm">
Cancel
</button>
</div>
</div>
</div>
</div>
<script>
// Simple JavaScript for demo purposes
document.addEventListener('DOMContentLoaded', function() {
// Team creation functionality
document.querySelectorAll('button').forEach(button => {
if (button.textContent.includes('Create Team') || button.textContent.includes('Add Team')) {
button.addEventListener('click', function() {
document.getElementById('teamModal').classList.remove('hidden');
});
}
});
document.getElementById('cancelTeam').addEventListener('click', function() {
document.getElementById('teamModal').classList.add('hidden');
});
document.getElementById('saveTeam').addEventListener('click', function() {
const teamName = document.getElementById('teamName').value;
const teamAge = document.getElementById('teamAge').value;
const teamGender = document.getElementById('teamGender').value;
if (!teamName) {
alert('Please enter a team name');
return;
}
// Here you would normally make an API call to save the team
// For demo purposes, we'll just show an alert
alert(`Team "${teamName}" (${teamAge} ${teamGender}) created successfully!`);
// Reset form and close modal
document.getElementById('teamForm').reset();
document.getElementById('teamModal').classList.add('hidden');
// In a real app, you would refresh the team list or add the new team to the UI
});
// Toggle attendance checkboxes
const checkboxes = document.querySelectorAll('.attendance-checkbox');
checkboxes.forEach(checkbox => {
checkbox.addEventListener('change', function() {
const checkmark = this.nextElementSibling;
if (this.checked) {
checkmark.style.backgroundColor = '#FF6B35';
checkmark.style.borderColor = '#FF6B35';
} else {
checkmark.style.backgroundColor = 'white';
checkmark.style.borderColor = '#D1D5DB';
}
});
});
// Show event modal when RSVP button is clicked
document.querySelectorAll('button').forEach(button => {
if (button.textContent.includes('RSVP')) {
button.addEventListener('click', function() {
document.getElementById('eventModal').classList.remove('hidden');
});
}
});
// Hide modal when cancel button is clicked
document.querySelectorAll('button').forEach(button => {
if (button.textContent.includes('Cancel')) {
button.addEventListener('click', function() {
document.getElementById('eventModal').classList.add('hidden');
});
}
});
// Mobile menu toggle would go here
});
</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=BJK74/sportloop" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>