Spaces:
Running
Running
Crea una aplicación web con un panel de administración donde pueda gestionar usuarios y suscripciones de servicios de streaming.
be3d75b verified Download users.html from ractivaperu/myspace2026: direct link, hf CLI and curl.
- Browser
- Download file 37.1 kB
-
https://huggingface.co/spaces/ractivaperu/myspace2026/resolve/main/users.html
- Command line
-
hf download hf://spaces/ractivaperu/myspace2026/users.html
-
curl -L -o users.html https://huggingface.co/spaces/ractivaperu/myspace2026/resolve/main/users.html
37.1 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Users Management - StreamAdmin</title> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <link href="https://unpkg.com/aos@2.3.1/dist/aos.css" rel="stylesheet"> | |
| <script src="https://unpkg.com/aos@2.3.1/dist/aos.js"></script> | |
| <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script> | |
| <script src="https://unpkg.com/feather-icons"></script> | |
| <style> | |
| .sidebar { | |
| transition: all 0.3s; | |
| } | |
| .sidebar-mini { | |
| width: 80px; | |
| } | |
| .sidebar-mini .nav-text { | |
| display: none; | |
| } | |
| .sidebar-mini .logo-text { | |
| display: none; | |
| } | |
| .sidebar-mini .nav-item { | |
| justify-content: center; | |
| } | |
| .content-area { | |
| transition: all 0.3s; | |
| } | |
| .content-expanded { | |
| margin-left: 280px; | |
| } | |
| .content-mini { | |
| margin-left: 80px; | |
| } | |
| @media (max-width: 768px) { | |
| .sidebar { | |
| position: fixed; | |
| z-index: 50; | |
| transform: translateX(-100%); | |
| } | |
| .sidebar.active { | |
| transform: translateX(0); | |
| } | |
| .content-area { | |
| margin-left: 0 ; | |
| } | |
| } | |
| .dropdown:hover .dropdown-menu { | |
| display: block; | |
| } | |
| .service-tag { | |
| transition: all 0.2s; | |
| } | |
| .service-tag:hover { | |
| transform: translateY(-2px); | |
| box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); | |
| } | |
| .status-active { | |
| background-color: #D1FAE5; | |
| color: #065F46; | |
| } | |
| .status-expired { | |
| background-color: #FEE2E2; | |
| color: #B91C1C; | |
| } | |
| .status-pending { | |
| background-color: #FEF3C7; | |
| color: #92400E; | |
| } | |
| .status-suspended { | |
| background-color: #E5E7EB; | |
| color: #1F2937; | |
| } | |
| </style> | |
| </head> | |
| <body class="bg-gray-50"> | |
| <!-- Main Layout --> | |
| <div class="flex h-screen overflow-hidden"> | |
| <!-- Sidebar --> | |
| <div id="sidebar" class="sidebar bg-white shadow-lg w-72 fixed h-full flex flex-col"> | |
| <div class="p-4 flex items-center border-b"> | |
| <div class="bg-blue-500 text-white p-2 rounded-lg"> | |
| <i data-feather="tv" class="w-6 h-6"></i> | |
| </div> | |
| <span class="logo-text ml-3 text-xl font-semibold">StreamAdmin</span> | |
| </div> | |
| <div class="flex-1 overflow-y-auto py-4"> | |
| <div class="px-4 mb-8"> | |
| <div class="relative"> | |
| <input type="text" placeholder="Search..." class="w-full pl-10 pr-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500"> | |
| <i data-feather="search" class="absolute left-3 top-2.5 text-gray-400"></i> | |
| </div> | |
| </div> | |
| <nav> | |
| <ul> | |
| <li class="mb-1"> | |
| <a href="index.html" class="nav-item flex items-center px-4 py-3 text-gray-700 hover:bg-blue-50 rounded-lg mx-2"> | |
| <i data-feather="home" class="w-5 h-5"></i> | |
| <span class="nav-text ml-3">Dashboard</span> | |
| </a> | |
| </li> | |
| <li class="mb-1"> | |
| <a href="users.html" class="nav-item flex items-center px-4 py-3 text-blue-600 bg-blue-50 rounded-lg mx-2"> | |
| <i data-feather="users" class="w-5 h-5"></i> | |
| <span class="nav-text ml-3">Users</span> | |
| </a> | |
| </li> | |
| <li class="mb-1"> | |
| <a href="#" class="nav-item flex items-center px-4 py-3 text-gray-700 hover:bg-blue-50 rounded-lg mx-2"> | |
| <i data-feather="layers" class="w-5 h-5"></i> | |
| <span class="nav-text ml-3">Subscriptions</span> | |
| </a> | |
| </li> | |
| <li class="mb-1"> | |
| <a href="#" class="nav-item flex items-center px-4 py-3 text-gray-700 hover:bg-blue-50 rounded-lg mx-2"> | |
| <i data-feather="bar-chart-2" class="w-5 h-5"></i> | |
| <span class="nav-text ml-3">Reports</span> | |
| </a> | |
| </li> | |
| <li class="mb-1"> | |
| <a href="#" class="nav-item flex items-center px-4 py-3 text-gray-700 hover:bg-blue-50 rounded-lg mx-2"> | |
| <i data-feather="settings" class="w-5 h-5"></i> | |
| <span class="nav-text ml-3">Settings</span> | |
| </a> | |
| </li> | |
| </ul> | |
| </nav> | |
| </div> | |
| <div class="p-4 border-t"> | |
| <div class="flex items-center"> | |
| <div class="w-10 h-10 rounded-full bg-gray-200 flex items-center justify-center"> | |
| <i data-feather="user" class="text-gray-600"></i> | |
| </div> | |
| <div class="ml-3"> | |
| <p class="text-sm font-medium">Admin User</p> | |
| <p class="text-xs text-gray-500">Administrator</p> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Main Content --> | |
| <div id="content" class="content-area flex-1 overflow-auto content-expanded"> | |
| <!-- Top Navigation --> | |
| <header class="bg-white shadow-sm py-4 px-6 flex items-center justify-between"> | |
| <div class="flex items-center"> | |
| <button id="sidebarToggle" class="mr-4 text-gray-600 focus:outline-none"> | |
| <i data-feather="menu" class="w-6 h-6"></i> | |
| </button> | |
| <h1 class="text-xl font-semibold text-gray-800">Users Management</h1> | |
| </div> | |
| <div class="flex items-center space-x-4"> | |
| <div class="relative"> | |
| <button class="text-gray-600 focus:outline-none"> | |
| <i data-feather="bell" class="w-6 h-6"></i> | |
| <span class="absolute top-0 right-0 w-2 h-2 bg-red-500 rounded-full"></span> | |
| </button> | |
| </div> | |
| <div class="dropdown relative"> | |
| <button class="flex items-center text-gray-600 focus:outline-none"> | |
| <div class="w-8 h-8 rounded-full bg-gray-200 flex items-center justify-center"> | |
| <i data-feather="user" class="text-gray-600"></i> | |
| </div> | |
| <span class="ml-2 hidden md:inline">Admin</span> | |
| <i data-feather="chevron-down" class="ml-1 w-4 h-4"></i> | |
| </button> | |
| <div class="dropdown-menu absolute right-0 mt-2 w-48 bg-white rounded-md shadow-lg py-1 z-50 hidden"> | |
| <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-blue-50">Profile</a> | |
| <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-blue-50">Settings</a> | |
| <div class="border-t border-gray-100"></div> | |
| <a href="#" id="logoutBtn" class="block px-4 py-2 text-sm text-gray-700 hover:bg-blue-50">Logout</a> | |
| </div> | |
| </div> | |
| </div> | |
| </header> | |
| <!-- Main Content Area --> | |
| <main class="p-6"> | |
| <!-- User Actions --> | |
| <div class="flex flex-col md:flex-row justify-between items-start md:items-center mb-6"> | |
| <div class="mb-4 md:mb-0"> | |
| <h2 class="text-2xl font-bold text-gray-800">All Users</h2> | |
| <p class="text-gray-600">Manage your subscribers and their services</p> | |
| </div> | |
| <div class="flex space-x-3"> | |
| <button id="addUserBtn" class="flex items-center px-4 py-2 bg-blue-500 text-white rounded-lg hover:bg-blue-600 transition"> | |
| <i data-feather="plus" class="w-4 h-4 mr-2"></i> | |
| Add User | |
| </button> | |
| <button class="flex items-center px-4 py-2 bg-white border border-gray-300 text-gray-700 rounded-lg hover:bg-gray-50 transition"> | |
| <i data-feather="download" class="w-4 h-4 mr-2"></i> | |
| Export | |
| </button> | |
| <button class="flex items-center px-4 py-2 bg-white border border-gray-300 text-gray-700 rounded-lg hover:bg-gray-50 transition"> | |
| <i data-feather="filter" class="w-4 h-4 mr-2"></i> | |
| Filter | |
| </button> | |
| </div> | |
| </div> | |
| <!-- Search and Filter --> | |
| <div class="bg-white rounded-lg shadow p-4 mb-6"> | |
| <div class="grid grid-cols-1 md:grid-cols-3 gap-4"> | |
| <div class="relative"> | |
| <input type="text" placeholder="Search by name, email or phone" class="w-full pl-10 pr-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500"> | |
| <i data-feather="search" class="absolute left-3 top-2.5 text-gray-400"></i> | |
| </div> | |
| <div> | |
| <select class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500"> | |
| <option value="">All Status</option> | |
| <option value="active">Active</option> | |
| <option value="expired">Expired</option> | |
| <option value="pending">Pending</option> | |
| <option value="suspended">Suspended</option> | |
| </select> | |
| </div> | |
| <div> | |
| <select class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500"> | |
| <option value="">All Services</option> | |
| <option value="disney">Disney+</option> | |
| <option value="hbo">HBO Max</option> | |
| <option value="prime">Prime Video</option> | |
| <option value="paramount">Paramount+</option> | |
| <option value="bantel">Bantel TV</option> | |
| </select> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Users Table --> | |
| <div class="bg-white rounded-lg shadow overflow-hidden" data-aos="fade-up"> | |
| <div class="overflow-x-auto"> | |
| <table class="min-w-full divide-y divide-gray-200"> | |
| <thead class="bg-gray-50"> | |
| <tr> | |
| <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">User</th> | |
| <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Contact</th> | |
| <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Services</th> | |
| <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Status</th> | |
| <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Actions</th> | |
| </tr> | |
| </thead> | |
| <tbody class="bg-white divide-y divide-gray-200"> | |
| <tr class="hover:bg-gray-50"> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <div class="flex items-center"> | |
| <div class="w-10 h-10 rounded-full bg-gray-200 flex items-center justify-center"> | |
| <i data-feather="user" class="text-gray-600"></i> | |
| </div> | |
| <div class="ml-3"> | |
| <p class="text-sm font-medium text-gray-900">John Doe</p> | |
| <p class="text-xs text-gray-500">ID: USR-001</p> | |
| </div> | |
| </div> | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <p class="text-sm text-gray-900">john@example.com</p> | |
| <p class="text-xs text-gray-500">+1 234 567 890</p> | |
| </td> | |
| <td class="px-6 py-4"> | |
| <div class="flex flex-wrap gap-2"> | |
| <span class="service-tag px-2 py-1 text-xs bg-blue-100 text-blue-800 rounded-full inline-flex items-center"> | |
| <i data-feather="play" class="w-3 h-3 mr-1"></i> | |
| Disney+ | |
| </span> | |
| <span class="service-tag px-2 py-1 text-xs bg-purple-100 text-purple-800 rounded-full inline-flex items-center"> | |
| <i data-feather="play" class="w-3 h-3 mr-1"></i> | |
| HBO Max | |
| </span> | |
| </div> | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <span class="px-2 py-1 text-xs rounded-full status-active">Active</span> | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm font-medium"> | |
| <button class="text-blue-500 hover:text-blue-700 mr-3"> | |
| <i data-feather="edit" class="w-4 h-4"></i> | |
| </button> | |
| <button class="text-gray-500 hover:text-gray-700 mr-3"> | |
| <i data-feather="eye" class="w-4 h-4"></i> | |
| </button> | |
| <button class="text-red-500 hover:text-red-700"> | |
| <i data-feather="trash-2" class="w-4 h-4"></i> | |
| </button> | |
| </td> | |
| </tr> | |
| <tr class="hover:bg-gray-50"> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <div class="flex items-center"> | |
| <div class="w-10 h-10 rounded-full bg-gray-200 flex items-center justify-center"> | |
| <i data-feather="user" class="text-gray-600"></i> | |
| </div> | |
| <div class="ml-3"> | |
| <p class="text-sm font-medium text-gray-900">Jane Smith</p> | |
| <p class="text-xs text-gray-500">ID: USR-002</p> | |
| </div> | |
| </div> | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <p class="text-sm text-gray-900">jane@example.com</p> | |
| <p class="text-xs text-gray-500">+1 345 678 901</p> | |
| </td> | |
| <td class="px-6 py-4"> | |
| <div class="flex flex-wrap gap-2"> | |
| <span class="service-tag px-2 py-1 text-xs bg-yellow-100 text-yellow-800 rounded-full inline-flex items-center"> | |
| <i data-feather="play" class="w-3 h-3 mr-1"></i> | |
| Prime Video | |
| </span> | |
| </div> | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <span class="px-2 py-1 text-xs rounded-full status-pending">Pending</span> | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm font-medium"> | |
| <button class="text-blue-500 hover:text-blue-700 mr-3"> | |
| <i data-feather="edit" class="w-4 h-4"></i> | |
| </button> | |
| <button class="text-gray-500 hover:text-gray-700 mr-3"> | |
| <i data-feather="eye" class="w-4 h-4"></i> | |
| </button> | |
| <button class="text-red-500 hover:text-red-700"> | |
| <i data-feather="trash-2" class="w-4 h-4"></i> | |
| </button> | |
| </td> | |
| </tr> | |
| <tr class="hover:bg-gray-50"> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <div class="flex items-center"> | |
| <div class="w-10 h-10 rounded-full bg-gray-200 flex items-center justify-center"> | |
| <i data-feather="user" class="text-gray-600"></i> | |
| </div> | |
| <div class="ml-3"> | |
| <p class="text-sm font-medium text-gray-900">Robert Johnson</p> | |
| <p class="text-xs text-gray-500">ID: USR-003</p> | |
| </div> | |
| </div> | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <p class="text-sm text-gray-900">robert@example.com</p> | |
| <p class="text-xs text-gray-500">+1 456 789 012</p> | |
| </td> | |
| <td class="px-6 py-4"> | |
| <div class="flex flex-wrap gap-2"> | |
| <span class="service-tag px-2 py-1 text-xs bg-blue-100 text-blue-800 rounded-full inline-flex items-center"> | |
| <i data-feather="play" class="w-3 h-3 mr-1"></i> | |
| Disney+ | |
| </span> | |
| <span class="service-tag px-2 py-1 text-xs bg-red-100 text-red-800 rounded-full inline-flex items-center"> | |
| <i data-feather="play" class="w-3 h-3 mr-1"></i> | |
| Paramount+ | |
| </span> | |
| <span class="service-tag px-2 py-1 text-xs bg-green-100 text-green-800 rounded-full inline-flex items-center"> | |
| <i data-feather="play" class="w-3 h-3 mr-1"></i> | |
| Bantel TV | |
| </span> | |
| </div> | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <span class="px-2 py-1 text-xs rounded-full status-expired">Expired</span> | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm font-medium"> | |
| <button class="text-blue-500 hover:text-blue-700 mr-3"> | |
| <i data-feather="edit" class="w-4 h-4"></i> | |
| </button> | |
| <button class="text-gray-500 hover:text-gray-700 mr-3"> | |
| <i data-feather="eye" class="w-4 h-4"></i> | |
| </button> | |
| <button class="text-red-500 hover:text-red-700"> | |
| <i data-feather="trash-2" class="w-4 h-4"></i> | |
| </button> | |
| </td> | |
| </tr> | |
| <tr class="hover:bg-gray-50"> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <div class="flex items-center"> | |
| <div class="w-10 h-10 rounded-full bg-gray-200 flex items-center justify-center"> | |
| <i data-feather="user" class="text-gray-600"></i> | |
| </div> | |
| <div class="ml-3"> | |
| <p class="text-sm font-medium text-gray-900">Emily Davis</p> | |
| <p class="text-xs text-gray-500">ID: USR-004</p> | |
| </div> | |
| </div> | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <p class="text-sm text-gray-900">emily@example.com</p> | |
| <p class="text-xs text-gray-500">+1 567 890 123</p> | |
| </td> | |
| <td class="px-6 py-4"> | |
| <div class="flex flex-wrap gap-2"> | |
| <span class="service-tag px-2 py-1 text-xs bg-purple-100 text-purple-800 rounded-full inline-flex items-center"> | |
| <i data-feather="play" class="w-3 h-3 mr-1"></i> | |
| HBO Max | |
| </span> | |
| </div> | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <span class="px-2 py-1 text-xs rounded-full status-suspended">Suspended</span> | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm font-medium"> | |
| <button class="text-blue-500 hover:text-blue-700 mr-3"> | |
| <i data-feather="edit" class="w-4 h-4"></i> | |
| </button> | |
| <button class="text-gray-500 hover:text-gray-700 mr-3"> | |
| <i data-feather="eye" class="w-4 h-4"></i> | |
| </button> | |
| <button class="text-red-500 hover:text-red-700"> | |
| <i data-feather="trash-2" class="w-4 h-4"></i> | |
| </button> | |
| </td> | |
| </tr> | |
| <tr class="hover:bg-gray-50"> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <div class="flex items-center"> | |
| <div class="w-10 h-10 rounded-full bg-gray-200 flex items-center justify-center"> | |
| <i data-feather="user" class="text-gray-600"></i> | |
| </div> | |
| <div class="ml-3"> | |
| <p class="text-sm font-medium text-gray-900">Michael Wilson</p> | |
| <p class="text-xs text-gray-500">ID: USR-005</p> | |
| </div> | |
| </div> | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <p class="text-sm text-gray-900">michael@example.com</p> | |
| <p class="text-xs text-gray-500">+1 678 901 234</p> | |
| </td> | |
| <td class="px-6 py-4"> | |
| <div class="flex flex-wrap gap-2"> | |
| <span class="service-tag px-2 py-1 text-xs bg-blue-100 text-blue-800 rounded-full inline-flex items-center"> | |
| <i data-feather="play" class="w-3 h-3 mr-1"></i> | |
| Disney+ | |
| </span> | |
| <span class="service-tag px-2 py-1 text-xs bg-yellow-100 text-yellow-800 rounded-full inline-flex items-center"> | |
| <i data-feather="play" class="w-3 h-3 mr-1"></i> | |
| Prime Video | |
| </span> | |
| </div> | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <span class="px-2 py-1 text-xs rounded-full status-active">Active</span> | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm font-medium"> | |
| <button class="text-blue-500 hover:text-blue-700 mr-3"> | |
| <i data-feather="edit" class="w-4 h-4"></i> | |
| </button> | |
| <button class="text-gray-500 hover:text-gray-700 mr-3"> | |
| <i data-feather="eye" class="w-4 h-4"></i> | |
| </button> | |
| <button class="text-red-500 hover:text-red-700"> | |
| <i data-feather="trash-2" class="w-4 h-4"></i> | |
| </button> | |
| </td> | |
| </tr> | |
| </tbody> | |
| </table> | |
| </div> | |
| <div class="px-6 py-4 border-t flex items-center justify-between"> | |
| <div class="text-sm text-gray-500"> | |
| Showing <span class="font-medium">1</span> to <span class="font-medium">5</span> of <span class="font-medium">24</span> users | |
| </div> | |
| <div class="flex space-x-2"> | |
| <button class="px-3 py-1 border rounded-lg text-gray-500 hover:bg-gray-50"> | |
| <i data-feather="chevron-left" class="w-4 h-4"></i> | |
| </button> | |
| <button class="px-3 py-1 border rounded-lg bg-blue-500 text-white">1</button> | |
| <button class="px-3 py-1 border rounded-lg text-gray-700 hover:bg-gray-50">2</button> | |
| <button class="px-3 py-1 border rounded-lg text-gray-700 hover:bg-gray-50">3</button> | |
| <button class="px-3 py-1 border rounded-lg text-gray-500 hover:bg-gray-50"> | |
| <i data-feather="chevron-right" class="w-4 h-4"></i> | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </main> | |
| </div> | |
| </div> | |
| <!-- Add User Modal --> | |
| <div id="addUserModal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 hidden"> | |
| <div class="bg-white rounded-lg shadow-xl p-6 w-full max-w-2xl" data-aos="zoom-in"> | |
| <div class="flex justify-between items-center mb-6"> | |
| <h2 class="text-xl font-bold text-gray-800">Add New User</h2> | |
| <button id="closeAddUserModal" class="text-gray-500 hover:text-gray-700"> | |
| <i data-feather="x" class="w-6 h-6"></i> | |
| </button> | |
| </div> | |
| <form> | |
| <div class="grid grid-cols-1 md:grid-cols-2 gap-6 mb-6"> | |
| <div> | |
| <label for="firstName" class="block text-gray-700 mb-2">First Name</label> | |
| <input type="text" id="firstName" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500"> | |
| </div> | |
| <div> | |
| <label for="lastName" class="block text-gray-700 mb-2">Last Name</label> | |
| <input type="text" id="lastName" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500"> | |
| </div> | |
| <div> | |
| <label for="email" class="block text-gray-700 mb-2">Email</label> | |
| <input type="email" id="email" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500"> | |
| </div> | |
| <div> | |
| <label for="phone" class="block text-gray-700 mb-2">Phone Number</label> | |
| <input type="tel" id="phone" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500"> | |
| </div> | |
| <div> | |
| <label for="status" class="block text-gray-700 mb-2">Status</label> | |
| <select id="status" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500"> | |
| <option value="active">Active</option> | |
| <option value="pending">Pending</option> | |
| <option value="suspended">Suspended</option> | |
| </select> | |
| </div> | |
| <div> | |
| <label for="whatsapp" class="block text-gray-700 mb-2">WhatsApp</label> | |
| <input type="tel" id="whatsapp" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500"> | |
| </div> | |
| </div> | |
| <div class="mb-6"> | |
| <label class="block text-gray-700 mb-2">Streaming Services</label> | |
| <div class="grid grid-cols-2 md:grid-cols-3 gap-3"> | |
| <label class="flex items-center"> | |
| <input type="checkbox" class="rounded text-blue-500"> | |
| <span class="ml-2 text-gray-700">Disney+</span> | |
| </label> | |
| <label class="flex items-center"> | |
| <input type="checkbox" class="rounded text-blue-500"> | |
| <span class="ml-2 text-gray-700">HBO Max</span> | |
| </label> | |
| <label class="flex items-center"> | |
| <input type="checkbox" class="rounded text-blue-500"> | |
| <span class="ml-2 text-gray-700">Prime Video</span> | |
| </label> | |
| <label class="flex items-center"> | |
| <input type="checkbox" class="rounded text-blue-500"> | |
| <span class="ml-2 text-gray-700">Paramount+</span> | |
| </label> | |
| <label class="flex items-center"> | |
| <input type="checkbox" class="rounded text-blue-500"> | |
| <span class="ml-2 text-gray-700">Bantel TV</span> | |
| </label> | |
| </div> | |
| </div> | |
| <div class="grid grid-cols-1 md:grid-cols-2 gap-6 mb-6"> | |
| <div> | |
| <label for="startDate" class="block text-gray-700 mb-2">Subscription Start Date</label> | |
| <input type="date" id="startDate" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500"> | |
| </div> | |
| <div> | |
| <label for="endDate" class="block text-gray-700 mb-2">Subscription End Date</label> | |
| <input type="date" id="endDate" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500"> | |
| </div> | |
| </div> | |
| <div class="flex justify-end space-x-3"> | |
| <button type="button" id="cancelAddUser" class="px-4 py-2 border border-gray-300 text-gray-700 rounded-lg hover:bg-gray-50">Cancel</button> | |
| <button type="submit" class="px-4 py-2 bg-blue-500 text-white rounded-lg hover:bg-blue-600">Save User</button> | |
| </div> | |
| </form> | |
| </div> | |
| </div> | |
| <script> | |
| // Initialize AOS | |
| AOS.init({ | |
| duration: 800, | |
| easing: 'ease-in-out', | |
| once: true | |
| }); | |
| // Initialize Feather Icons | |
| feather.replace(); | |
| // Sidebar toggle | |
| document.getElementById('sidebarToggle').addEventListener('click', function() { | |
| const sidebar = document.getElementById('sidebar'); | |
| const content = document.getElementById('content'); | |
| if (window.innerWidth > 768) { | |
| sidebar.classList.toggle('sidebar-mini'); | |
| content.classList.toggle('content-expanded'); | |
| content.classList.toggle('content-mini'); | |
| } else { | |
| sidebar.classList.toggle('active'); | |
| } | |
| }); | |
| // Add User Modal | |
| const addUserBtn = document.getElementById('addUserBtn'); | |
| const addUserModal = document.getElementById('addUserModal'); | |
| const closeAddUserModal = document.getElementById('closeAddUserModal'); | |
| const cancelAddUser = document.getElementById('cancelAddUser'); | |
| addUserBtn.addEventListener('click', function() { | |
| addUserModal.classList.remove('hidden'); | |
| }); | |
| closeAddUserModal.addEventListener('click', function() { | |
| addUserModal.classList.add('hidden'); | |
| }); | |
| cancelAddUser.addEventListener('click', function() { | |
| addUserModal.classList.add('hidden'); | |
| }); | |
| // Logout functionality | |
| document.getElementById('logoutBtn').addEventListener('click', function(e) { | |
| e.preventDefault(); | |
| window.location.href = 'index.html'; | |
| }); | |
| </script> | |
| </body> | |
| </html> | |