im8bit's picture
Create a React+Vite website with Material UI that does CRUD for a User and Organization objects
d93d34a verified
Raw History Blame Contribute Delete
3.66 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>User Management | AdminSphere</title>
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://unpkg.com/feather-icons"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<style>
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
:root {
--primary: #6366f1;
--secondary: #8b5cf6;
--dark: #1e293b;
--darker: #0f172a;
}
body {
font-family: 'Inter', sans-serif;
background-color: var(--darker);
color: #e2e8f0;
}
.sidebar {
transition: all 0.3s ease;
}
.card {
background-color: var(--dark);
border-radius: 0.5rem;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
.table-row:hover {
background-color: rgba(99, 102, 241, 0.1);
}
.form-input {
background-color: #1e293b;
border: 1px solid #334155;
border-radius: 0.375rem;
padding: 0.5rem 0.75rem;
color: #e2e8f0;
width: 100%;
}
.form-input:focus {
outline: none;
border-color: #6366f1;
box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}
.modal-overlay {
background-color: rgba(15, 23, 42, 0.8);
}
</style>
</head>
<body class="min-h-screen">
<div id="root" class="flex h-screen overflow-hidden">
<!-- Sidebar (same as index.html) -->
<div class="sidebar w-64 bg-slate-800 border-r border-slate-700 flex flex-col">
<!-- ... same sidebar content as index.html ... -->
</div>
<!-- Main Content -->
<div class="flex-1 flex flex-col overflow-hidden">
<!-- Header (same as index.html) -->
<header class="bg-slate-800 border-b border-slate-700 p-4 flex items-center justify-between">
<!-- ... same header content as index.html ... -->
</header>
<!-- Content -->
<main class="flex-1 overflow-y-auto p-6 bg-slate-900/50">
<div class="flex items-center justify-between mb-6">
<h2 class="text-2xl font-bold">User Management</h2>
<div class="flex space-x-4">
<div class="relative">
<input type="text" placeholder="Search users..." class="form-input pl-10">
<i data-feather="search" class="absolute left-3 top-2.5 text-slate-400"></i>
</div>
<button class="bg-indigo-600 hover:bg-indigo-700 text-white px-4 py-2 rounded-lg flex items-center">
<i data-feather="plus" class="w-4 h-4 mr-2"></i> Add User
</button>
</div>
</div>
<!-- User Table -->
<div class="card p-6 mb-6">
<div class="overflow-x-auto">
<table class="min-w-full divide-y divide-slate-700">
<thead>
<tr>
<th class="px-6 py-3 text-left text-xs font-medium text-slate-400 uppercase tracking-wider cursor-pointer">
<div class="flex items-center">
Name
<i data-feather="chevron-down" class="ml-1 w-4 h-4"></i>
</div>
</th>
<th class="px-6 py-3 text-left text-xs font-medium text-slate-400 uppercase tracking-wider">Email</th>
<th class="px-6 py-3 text-left text-xs font-medium text-slate-400 uppercase tracking-wider">Status</th>
<th class="px-6 py-3 text-left text-xs font-medium text-slate-400
</body>
</html>