Spaces:
Running
Running
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Dashboard | CrispData</title> | |
| <link rel="icon" type="image/x-icon" href="/static/favicon.ico"> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <link href="https://unpkg.com/[email protected]/dist/aos.css" rel="stylesheet"> | |
| <script src="https://unpkg.com/[email protected]/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> | |
| <script src="https://cdn.jsdelivr.net/npm/chart.js"></script> | |
| <style> | |
| .sidebar { | |
| transition: all 0.3s ease; | |
| } | |
| .sidebar.collapsed { | |
| width: 5rem; | |
| } | |
| .sidebar.collapsed .sidebar-item-text { | |
| display: none; | |
| } | |
| .sidebar.collapsed .sidebar-header-text { | |
| display: none; | |
| } | |
| .sidebar.collapsed .sidebar-item { | |
| justify-content: center; | |
| } | |
| .content-card:hover { | |
| transform: translateY(-5px); | |
| box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); | |
| } | |
| .progress-bar { | |
| height: 0.5rem; | |
| border-radius: 0.25rem; | |
| background-color: #e5e7eb; | |
| } | |
| .progress-bar-fill { | |
| height: 100%; | |
| border-radius: 0.25rem; | |
| background-color: #6366f1; | |
| transition: width 0.3s ease; | |
| } | |
| </style> | |
| </head> | |
| <body class="bg-gray-50 font-sans antialiased"> | |
| <div class="flex h-screen overflow-hidden"> | |
| <!-- Sidebar --> | |
| <div class="sidebar bg-white shadow-md w-64 flex-shrink-0 flex flex-col"> | |
| <div class="flex items-center justify-between p-4 border-b"> | |
| <div class="flex items-center"> | |
| <i data-feather="layers" class="h-8 w-8 text-indigo-600"></i> | |
| <span class="sidebar-header-text ml-2 text-xl font-bold text-gray-900">CrispData</span> | |
| </div> | |
| <button id="sidebar-toggle" class="text-gray-500 hover:text-gray-700 focus:outline-none"> | |
| <i data-feather="chevron-left"></i> | |
| </button> | |
| </div> | |
| <div class="flex-1 overflow-y-auto"> | |
| <nav class="px-2 py-4"> | |
| <div class="space-y-1"> | |
| <a href="#" class="sidebar-item bg-indigo-50 text-indigo-700 group flex items-center px-3 py-2 text-sm font-medium rounded-md"> | |
| <i data-feather="home" class="text-indigo-500 flex-shrink-0 h-6 w-6"></i> | |
| <span class="sidebar-item-text ml-3">Dashboard</span> | |
| </a> | |
| <a href="#" class="sidebar-item text-gray-600 hover:bg-gray-50 hover:text-gray-900 group flex items-center px-3 py-2 text-sm font-medium rounded-md"> | |
| <i data-feather="upload" class="text-gray-400 group-hover:text-gray-500 flex-shrink-0 h-6 w-6"></i> | |
| <span class="sidebar-item-text ml-3">Upload Content</span> | |
| </a> | |
| <a href="#" class="sidebar-item text-gray-600 hover:bg-gray-50 hover:text-gray-900 group flex items-center px-3 py-2 text-sm font-medium rounded-md"> | |
| <i data-feather="folder" class="text-gray-400 group-hover:text-gray-500 flex-shrink-0 h-6 w-6"></i> | |
| <span class="sidebar-item-text ml-3">Content Library</span> | |
| </a> | |
| <a href="#" class="sidebar-item text-gray-600 hover:bg-gray-50 hover:text-gray-900 group flex items-center px-3 py-2 text-sm font-medium rounded-md"> | |
| <i data-feather="bar-chart-2" class="text-gray-400 group-hover:text-gray-500 flex-shrink-0 h-6 w-6"></i> | |
| <span class="sidebar-item-text ml-3">Analytics</span> | |
| </a> | |
| <a href="#" class="sidebar-item text-gray-600 hover:bg-gray-50 hover:text-gray-900 group flex items-center px-3 py-2 text-sm font-medium rounded-md"> | |
| <i data-feather="users" class="text-gray-400 group-hover:text-gray-500 flex-shrink-0 h-6 w-6"></i> | |
| <span class="sidebar-item-text ml-3">Audience</span> | |
| </a> | |
| <a href="#" class="sidebar-item text-gray-600 hover:bg-gray-50 hover:text-gray-900 group flex items-center px-3 py-2 text-sm font-medium rounded-md"> | |
| <i data-feather="settings" class="text-gray-400 group-hover:text-gray-500 flex-shrink-0 h-6 w-6"></i> | |
| <span class="sidebar-item-text ml-3">Settings</span> | |
| </a> | |
| </div> | |
| <div class="mt-8"> | |
| <h3 class="sidebar-header-text px-3 text-xs font-semibold text-gray-500 uppercase tracking-wider"> | |
| Content Types | |
| </h3> | |
| <div class="mt-1 space-y-1"> | |
| <a href="#" class="sidebar-item text-gray-600 hover:bg-gray-50 hover:text-gray-900 group flex items-center px-3 py-2 text-sm font-medium rounded-md"> | |
| <i data-feather="music" class="text-gray-400 group-hover:text-gray-500 flex-shrink-0 h-6 w-6"></i> | |
| <span class="sidebar-item-text ml-3">Music</span> | |
| </a> | |
| <a href="#" class="sidebar-item text-gray-600 hover:bg-gray-50 hover:text-gray-900 group flex items-center px-3 py-2 text-sm font-medium rounded-md"> | |
| <i data-feather="film" class="text-gray-400 group-hover:text-gray-500 flex-shrink-0 h-6 w-6"></i> | |
| <span class="sidebar-item-text ml-3">Videos</span> | |
| </a> | |
| <a href="#" class="sidebar-item text-gray-600 hover:bg-gray-50 hover:text-gray-900 group flex items-center px-3 py-2 text-sm font-medium rounded-md"> | |
| <i data-feather="edit-3" class="text-gray-400 group-hover:text-gray-500 flex-shrink-0 h-6 w-6"></i> | |
| <span class="sidebar-item-text ml-3">Blogs</span> | |
| </a> | |
| <a href="#" class="sidebar-item text-gray-600 hover:bg-gray-50 hover:text-gray-900 group flex items-center px-3 py-2 text-sm font-medium rounded-md"> | |
| <i data-feather="mic" class="text-gray-400 group-hover:text-gray-500 flex-shrink-0 h-6 w-6"></i> | |
| <span class="sidebar-item-text ml-3">Voice Overs</span> | |
| </a> | |
| </div> | |
| </div> | |
| </nav> | |
| </div> | |
| <div class="p-4 border-t"> | |
| <div class="flex items-center"> | |
| <img class="h-9 w-9 rounded-full" src="http://static.photos/people/200x200/42" alt="User avatar"> | |
| <div class="ml-3 sidebar-header-text"> | |
| <p class="text-sm font-medium text-gray-700">John Doe</p> | |
| <p class="text-xs font-medium text-gray-500">View profile</p> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Main content --> | |
| <div class="flex-1 overflow-auto"> | |
| <!-- Top navigation --> | |
| <header class="bg-white shadow-sm"> | |
| <div class="px-4 sm:px-6 lg:px-8"> | |
| <div class="flex justify-between h-16"> | |
| <div class="flex"> | |
| <!-- Mobile menu button --> | |
| <button type="button" class="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-indigo-500 lg:hidden"> | |
| <span class="sr-only">Open sidebar</span> | |
| <i data-feather="menu"></i> | |
| </button> | |
| <!-- Search bar --> | |
| <div class="flex-1 flex items-center justify-center px-2 lg:ml-6 lg:justify-end"> | |
| <div class="max-w-lg w-full lg:max-w-xs"> | |
| <label for="search" class="sr-only">Search</label> | |
| <div class="relative"> | |
| <div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none"> | |
| <i data-feather="search" class="h-5 w-5 text-gray-400"></i> | |
| </div> | |
| <input id="search" name="search" class="block w-full pl-10 pr-3 py-2 border border-gray-300 rounded-md leading-5 bg-white placeholder-gray-500 focus:outline-none focus:placeholder-gray-400 focus:ring-1 focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm" placeholder="Search" type="search"> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="flex items-center"> | |
| <button type="button" class="bg-white p-1 rounded-full text-gray-400 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500"> | |
| <span class="sr-only">View notifications</span> | |
| <i data-feather="bell"></i> | |
| </button> | |
| <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-indigo-500" 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="http://static.photos/people/200x200/42" alt="User avatar"> | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </header> | |
| <!-- Main content area --> | |
| <main class="py-6 px-4 sm:px-6 lg:px-8"> | |
| <div class="mb-6"> | |
| <h1 class="text-2xl font-bold text-gray-900">Dashboard</h1> | |
| <p class="mt-1 text-sm text-gray-500">Welcome back! Here's what's happening with your content.</p> | |
| </div> | |
| <!-- Stats cards --> | |
| <div class="grid grid-cols-1 gap-5 sm:grid-cols-2 lg:grid-cols-4 mb-8"> | |
| <div class="bg-white overflow-hidden shadow rounded-lg content-card transition-all duration-300 ease-in-out" data-aos="fade-up"> | |
| <div class="px-4 py-5 sm:p-6"> | |
| <div class="flex items-center"> | |
| <div class="flex-shrink-0 bg-indigo-100 rounded-md p-3"> | |
| <i data-feather="eye" class="h-6 w-6 text-indigo-600"></i> | |
| </div> | |
| <div class="ml-5 w-0 flex-1"> | |
| <dt class="text-sm font-medium text-gray-500 truncate">Total Views</dt> | |
| <dd class="flex items-baseline"> | |
| <div class="text-2xl font-semibold text-gray-900">24,573</div> | |
| <div class="ml-2 flex items-baseline text-sm font-semibold text-green-600"> | |
| <i data-feather="trending-up" class="h-4 w-4"></i> | |
| <span class="sr-only">Increased by</span> | |
| 12% | |
| </div> | |
| </dd> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="bg-white overflow-hidden shadow rounded-lg content-card transition-all duration-300 ease-in-out" data-aos="fade-up" data-aos-delay="100"> | |
| <div class="px-4 py-5 sm:p-6"> | |
| <div class="flex items-center"> | |
| <div class="flex-shrink-0 bg-green-100 rounded-md p-3"> | |
| <i data-feather="play" class="h-6 w-6 text-green-600"></i> | |
| </div> | |
| <div class="ml-5 w-0 flex-1"> | |
| <dt class="text-sm font-medium text-gray-500 truncate">Total Plays</dt> | |
| <dd class="flex items-baseline"> | |
| <div class="text-2xl font-semibold text-gray-900">15,892</div> | |
| <div class="ml-2 flex items-baseline text-sm font-semibold text-green-600"> | |
| <i data-feather="trending-up" class="h-4 w-4"></i> | |
| <span class="sr-only">Increased by</span> | |
| 8% | |
| </div> | |
| </dd> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="bg-white overflow-hidden shadow rounded-lg content-card transition-all duration-300 ease-in-out" data-aos="fade-up" data-aos-delay="200"> | |
| <div class="px-4 py-5 sm:p-6"> | |
| <div class="flex items-center"> | |
| <div class="flex-shrink-0 bg-blue-100 rounded-md p-3"> | |
| <i data-feather="download" class="h-6 w-6 text-blue-600"></i> | |
| </div> | |
| <div class="ml-5 w-0 flex-1"> | |
| <dt class="text-sm font-medium text-gray-500 truncate">Downloads</dt> | |
| <dd class="flex items-baseline"> | |
| <div class="text-2xl font-semibold text-gray-900">3,245</div> | |
| <div class="ml-2 flex items-baseline text-sm font-semibold text-green-600"> | |
| <i data-feather="trending-up" class="h-4 w-4"></i> | |
| <span class="sr-only">Increased by</span> | |
| 5% | |
| </div> | |
| </dd> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="bg-white overflow-hidden shadow rounded-lg content-card transition-all duration-300 ease-in-out" data-aos="fade-up" data-aos-delay="300"> | |
| <div class="px-4 py-5 sm:p-6"> | |
| <div class="flex items-center"> | |
| <div class="flex-shrink-0 bg-purple-100 rounded-md p-3"> | |
| <i data-feather="users" class="h-6 w-6 text-purple-600"></i> | |
| </div> | |
| <div class="ml-5 w-0 flex-1"> | |
| <dt class="text-sm font-medium text-gray-500 truncate">New Followers</dt> | |
| <dd class="flex items-baseline"> | |
| <div class="text-2xl font-semibold text-gray-900">1,234</div> | |
| <div class="ml-2 flex items-baseline text-sm font-semibold text-green-600"> | |
| <i data-feather="trending-up" class="h-4 w-4"></i> | |
| <span class="sr-only">Increased by</span> | |
| 20% | |
| </div> | |
| </dd> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Charts row --> | |
| <div class="grid grid-cols-1 lg:grid-cols-2 gap-6 mb-8"> | |
| <!-- Engagement chart --> | |
| <div class="bg-white shadow rounded-lg p-6 content-card transition-all duration-300 ease-in-out" data-aos="fade-up"> | |
| <div class="flex items-center justify-between mb-4"> | |
| <h2 class="text-lg font-medium text-gray-900">Engagement Overview</h2> | |
| <div class="relative"> | |
| <select class="appearance-none bg-white border border-gray-300 rounded-md pl-3 pr-8 py-1 text-sm focus:outline-none focus:ring-1 focus:ring-indigo-500 focus:border-indigo-500"> | |
| <option>Last 7 days</option> | |
| <option>Last 30 days</option> | |
| <option>Last 90 days</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="h-4 w-4"></i> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="h-64"> | |
| <canvas id="engagementChart"></canvas> | |
| </div> | |
| </div> | |
| <!-- Content distribution chart --> | |
| <div class="bg-white shadow rounded-lg p-6 content-card transition-all duration-300 ease-in-out" data-aos="fade-up" data-aos-delay="100"> | |
| <div class="flex items-center justify-between mb-4"> | |
| <h2 class="text-lg font-medium text-gray-900">Content Distribution</h2> | |
| <div class="relative"> | |
| <select class="appearance-none bg-white border border-gray-300 rounded-md pl-3 pr-8 py-1 text-sm focus:outline-none focus:ring-1 focus:ring-indigo-500 focus:border-indigo-500"> | |
| <option>By Type</option> | |
| <option>By Views</option> | |
| <option>By Plays</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="h-4 w-4"></i> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="h-64"> | |
| <canvas id="contentChart"></canvas> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Recent activity and storage --> | |
| <div class="grid grid-cols-1 lg:grid-cols-3 gap-6 mb-8"> | |
| <!-- Recent activity --> | |
| <div class="bg-white shadow rounded-lg lg:col-span-2 content-card transition-all duration-300 ease-in-out" data-aos="fade-up"> | |
| <div class="px-6 py-5 border-b border-gray-200"> | |
| <h2 class="text-lg font-medium text-gray-900">Recent Activity</h2> | |
| </div> | |
| <div class="divide-y divide-gray-200"> | |
| <div class="px-6 py-4"> | |
| <div class="flex items-center"> | |
| <img class="h-10 w-10 rounded-full" src="http://static.photos/people/200x200/1" alt="User avatar"> | |
| <div class="ml-4"> | |
| <p class="text-sm font-medium text-gray-900">Sarah Johnson</p> | |
| <p class="text-sm text-gray-500">Uploaded a new music track</p> | |
| </div> | |
| <div class="ml-auto text-sm text-gray-500"> | |
| <time datetime="2023-05-16">2h ago</time> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="px-6 py-4"> | |
| <div class="flex items-center"> | |
| <img class="h-10 w-10 rounded-full" src="http://static.photos/people/200x200/2" alt="User avatar"> | |
| <div class="ml-4"> | |
| <p class="text-sm font-medium text-gray-900">Mike Chen</p> | |
| <p class="text-sm text-gray-500">Published a new video</p> | |
| </div> | |
| <div class="ml-auto text-sm text-gray-500"> | |
| <time datetime="2023-05-15">1d ago</time> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="px-6 py-4"> | |
| <div class="flex items-center"> | |
| <img class="h-10 w-10 rounded-full" src="http://static.photos/people/200x200/3" alt="User avatar"> | |
| <div class="ml-4"> | |
| <p class="text-sm font-medium text-gray-900">Alex Morgan</p> | |
| <p class="text-sm text-gray-500">Published a new blog post</p> | |
| </div> | |
| <div class="ml-auto text-sm text-gray-500"> | |
| <time datetime="2023-05-14">2d ago</time> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="px-6 py-4"> | |
| <div class="flex items-center"> | |
| <img class="h-10 w-10 rounded-full" src="http://static.photos/people/200x200/4" alt="User avatar"> | |
| <div class="ml-4"> | |
| <p class="text-sm font-medium text-gray-900">Emma Wilson</p> | |
| <p class="text-sm text-gray-500">Uploaded a new voice over</p> | |
| </div> | |
| <div class="ml-auto text-sm text-gray-500"> | |
| <time datetime="2023-05-12">4d ago</time> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="px-6 py-4 text-center"> | |
| <a href="#" class="text-sm font-medium text-indigo-600 hover:text-indigo-500">View all activity</a> | |
| </div> | |
| </div> | |
| <!-- Storage usage --> | |
| <div class="bg-white shadow rounded-lg content-card transition-all duration-300 ease-in-out" data-aos="fade-up" data-aos-delay="100"> | |
| <div class="px-6 py-5 border-b border-gray-200"> | |
| <h2 class="text-lg font-medium text-gray-900">Storage Usage</h2> | |
| </div> | |
| <div class="px-6 py-4"> | |
| <div class="flex items-center justify-between mb-2"> | |
| <span class="text-sm font-medium text-gray-900">Total Storage</span> | |
| <span class="text-sm text-gray-500">15.8 GB of 50 GB used</span> | |
| </div> | |
| <div class="progress-bar mb-4"> | |
| <div class="progress-bar-fill" style="width: 31.6%"></div> | |
| </div> | |
| <div class="space-y-4"> | |
| <div> | |
| <div class="flex items-center justify-between mb-1"> | |
| <div class="flex items-center"> | |
| <i data-feather="music" class="h-4 w-4 text-indigo-500 mr-2"></i> | |
| <span class="text-sm font-medium text-gray-900">Music</span> | |
| </div> | |
| <span class="text-sm text-gray-500">6.2 GB</span> | |
| </div> | |
| <div class="progress-bar"> | |
| <div class="progress-bar-fill bg-indigo-500" style="width: 39.2%"></div> | |
| </div> | |
| </div> | |
| <div> | |
| <div class="flex items-center justify-between mb-1"> | |
| <div class="flex items-center"> | |
| <i data-feather="film" class="h-4 w-4 text-blue-500 mr-2"></i> | |
| <span class="text-sm font-medium text-gray-900">Videos</span> | |
| </div> | |
| <span class="text-sm text-gray-500">7.5 GB</span> | |
| </div> | |
| <div class="progress-bar"> | |
| <div class="progress-bar-fill bg-blue-500" style="width: 47.5%"></div> | |
| </div> | |
| </div> | |
| <div> | |
| <div class="flex items-center justify-between mb-1"> | |
| <div class="flex items-center"> | |
| <i data-feather="edit-3" class="h-4 w-4 text-green-500 mr-2"></i> | |
| <span class="text-sm font-medium text-gray-900">Blogs</span> | |
| </div> | |
| <span class="text-sm text-gray-500">0.8 GB</span> | |
| </div> | |
| <div class="progress-bar"> | |
| <div class="progress-bar-fill bg-green-500" style="width: 5.1%"></div> | |
| </div> | |
| </div> | |
| <div> | |
| <div class="flex items-center justify-between mb-1"> | |
| <div class="flex items-center"> | |
| <i data-feather="mic" class="h-4 w-4 text-purple-500 mr-2"></i> | |
| <span class="text-sm font-medium text-gray-900">Voice Overs</span> | |
| </div> | |
| <span class="text-sm text-gray-500">1.3 GB</span> | |
| </div> | |
| <div class="progress-bar"> | |
| <div class="progress-bar-fill bg-purple-500" style="width: 8.2%"></div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="px-6 py-4 bg-gray-50 rounded-b-lg"> | |
| <a href="#" class="w-full inline-flex justify-center items-center px-4 py-2 border border-transparent text-sm font-medium rounded-md shadow-sm text-white bg-indigo-600 hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500"> | |
| Upgrade Storage | |
| </a> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Recent content --> | |
| <div class="bg-white shadow rounded-lg overflow-hidden content-card transition-all duration-300 ease-in-out" data-aos="fade-up"> | |
| <div class="px-6 py-5 border-b border-gray-200 flex items-center justify-between"> | |
| <h2 class="text-lg font-medium text-gray-900">Recent Content</h2> | |
| <a href="#" class="text-sm font-medium text-indigo-600 hover:text-indigo-500">View all</a> | |
| </div> | |
| <div class="divide-y divide-gray-200"> | |
| <div class="px-6 py-4"> | |
| <div class="flex items-center"> | |
| <div class="flex-shrink-0 h-10 w-10 rounded-md bg-indigo-100 flex items-center justify-center"> | |
| <i data-feather="music" class="h-5 w-5 text-indigo-600"></i> | |
| </div> | |
| <div class="ml-4"> | |
| <p class="text-sm font-medium text-gray-900">Summer Vibes</p> | |
| <p class="text-sm text-gray-500">Music • Published 2 days ago</p> | |
| </div> | |
| <div class="ml-auto flex space-x-2"> | |
| <span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-green-100 text-green-800"> | |
| 1,245 plays | |
| </span> | |
| <span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-blue-100 text-blue-800"> | |
| 324 downloads | |
| </span> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="px-6 py-4"> | |
| <div class="flex items-center"> | |
| <div class="flex-shrink-0 h-10 w-10 rounded-md bg-blue-100 flex items-center justify-center"> | |
| <i data-feather="film" class="h-5 w-5 text-blue-600"></i> | |
| </div> | |
| <div class="ml-4"> | |
| <p class="text-sm font-medium text-gray-900">Tech Review: New Gadgets</p> | |
| <p class="text-sm text-gray-500">Video • Published 4 days ago</p> | |
| </div> | |
| <div class="ml-auto flex space-x-2"> | |
| <span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-green-100 text-green-800"> | |
| 3,456 views | |
| </span> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="px-6 py-4"> | |
| <div class="flex items-center"> | |
| <div class="flex-shrink-0 h-10 w-10 rounded-md bg-green-100 flex items-center justify-center"> | |
| <i data-feather="edit-3" class="h-5 w-5 text-green-600"></i> | |
| </div> | |
| <div class="ml-4"> | |
| <p class="text-sm font-medium text-gray-900">The Future of Remote Work</p> | |
| <p class="text-sm text-gray-500">Blog • Published 1 week ago</p> | |
| </div> | |
| <div class="ml-auto flex space-x-2"> | |
| <span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-green-100 text-green-800"> | |
| 1,789 reads | |
| </span> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="px-6 py-4"> | |
| <div class="flex items-center"> | |
| <div class="flex-shrink-0 h-10 w-10 rounded-md bg-purple-100 flex items-center justify-center"> | |
| <i data-feather="mic" class="h-5 w-5 text-purple-600"></i> | |
| </div> | |
| <div class="ml-4"> | |
| <p class="text-sm font-medium text-gray-900">Podcast Intro Voiceover</p> | |
| <p class="text-sm text-gray-500">Voice Over • Published 2 weeks ago</p> | |
| </div> | |
| <div class="ml-auto flex space-x-2"> | |
| <span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-green-100 text-green-800"> | |
| 876 plays | |
| </span> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </main> | |
| </div> | |
| </div> | |
| <script> | |
| document.addEventListener('DOMContentLoaded', function() { | |
| // Initialize AOS | |
| AOS.init({ | |
| duration: 800, | |
| easing: 'ease-in-out', | |
| once: true | |
| }); | |
| // Initialize Feather Icons | |
| feather.replace(); | |
| // Sidebar toggle | |
| const sidebarToggle = document.getElementById('sidebar-toggle'); | |
| const sidebar = document.querySelector('.sidebar'); | |
| sidebarToggle.addEventListener('click', function() { | |
| sidebar.classList.toggle('collapsed'); | |
| const icon = sidebarToggle.querySelector('i'); | |
| if (sidebar.classList.contains('collapsed')) { | |
| feather.replace(icon, 'chevron-right'); | |
| } else { | |
| feather.replace(icon, 'chevron-left'); | |
| } | |
| }); | |
| // Mobile menu toggle | |
| const mobileMenuButton = document.querySelector('[aria-controls="mobile-menu"]'); | |
| const mobileMenu = document.getElementById('mobile-menu'); | |
| if (mobileMenuButton) { | |
| mobileMenuButton.addEventListener('click', function() { | |
| const expanded = this.getAttribute('aria-expanded') === 'true'; | |
| this.setAttribute('aria-expanded', !expanded); | |
| mobileMenu.classList.toggle('hidden'); | |
| }); | |
| } | |
| // Charts | |
| const engagementCtx = document.getElementById('engagementChart').getContext('2d'); | |
| const engagementChart = new Chart(engagementCtx, { | |
| type: 'line', | |
| data: { | |
| labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul'], | |
| datasets: [ | |
| { | |
| label: 'Views', | |
| data: [4500, 5200, 4800, 5900, 6200, 7000, 7500], | |
| borderColor: '#6366F1', | |
| backgroundColor: 'rgba(99, 102, 241, 0.05)', | |
| tension: 0.3, | |
| fill: true | |
| }, | |
| { | |
| label: 'Plays', | |
| data: [3200, 3800, 3500, 4200, 4500, 5000, 5300], | |
| borderColor: '#10B981', | |
| backgroundColor: 'rgba(16, 185, 129, 0.05)', | |
| tension: 0.3, | |
| fill: true | |
| } | |
| ] | |
| }, | |
| options: { | |
| responsive: true, | |
| maintainAspectRatio: false, | |
| plugins: { | |
| legend: { | |
| position: 'top', | |
| } | |
| }, | |
| scales: { | |
| y: { | |
| beginAtZero: true | |
| } | |
| } | |
| } | |
| }); | |
| const contentCtx = document.getElementById('contentChart').getContext('2d'); | |
| const contentChart = new Chart(contentCtx, { | |
| type: 'doughnut', | |
| data: { | |
| labels: ['Music', 'Videos', 'Blogs', 'Voice Overs'], | |
| datasets: [{ | |
| data: [35, 40, 15, 10], | |
| backgroundColor: [ | |
| '#6366F1', | |
| '#3B82F6', | |
| '#10B981', | |
| '#8B5CF6' | |
| ], | |
| borderWidth: 0 | |
| }] | |
| }, | |
| options: { | |
| responsive: true, | |
| maintainAspectRatio: false, | |
| plugins: { | |
| legend: { | |
| position: 'right', | |
| } | |
| }, | |
| cutout: '70%' | |
| } | |
| }); | |
| }); | |
| </script> | |
| </body> | |
| </html> | |