i have reference style just memorize it now <style> @import…
- User
i have reference style just memorize it now
Assistant
I'll create a React + Vite + Tailwind implementation of this calendar/admin dashboard design. Let me start by exploring the project structure.
Now I'll build a comprehensive dashboard app that uses the provided design style. I'll create a multi-page admin dashboard with a sidebar navigation showcasing the Calendar, Minimum Working Days, and Attendance Report pages — all styled to match the reference.
Now let me create the data file and reusable icon component, then build the pages.
Now let me create the page components and the main App.
Need to fix the import path — the icons module is in
src/icons.tsx, not in components. Let me fix.Now let me build a Dashboard page (with KPI cards), a simple Holidays list page, and tie it all together in App.tsx.
Quick fix for the unused variable warning.
Now let's build to verify everything works.
Build succeeded. The project is complete.
Here's a summary of what I built, faithfully recreating your reference style:
Application: ArenaHR Admin Console
A full multi-page admin dashboard styled exactly to match the provided reference (Inter font,
#f1f5f9page background, 16px rounded white cards, gradient buttons, pill stats, soft-tone calendar colors, and identical table styling).Pages implemented:
- Dashboard — 4 KPI cards (Present / On Leave / Holidays / Targets Met), Quick Actions grid, and an Upcoming Holidays list.
- Calendar — The full clndr-style grid with month navigation, today highlight, public/restricted holidays, weekends, stats pills, color legend, day-click modal, and an Add Holiday modal.
- Holidays — Filterable table of all holidays with search/type/year filters and Add modal.
- Min. Working Days — Department table with required/actual progress bars, status badges, View/Edit modal, search + department + month filters.
- Attendance Report — Date-range + department + status filters, 4 KPI summary cards, full employee attendance table with avatars, status badges, print and export buttons, plus a printable footer.
- Employees / Settings — Polished placeholder pages.
Design fidelity:
- All buttons use the exact gradient (
#0d47c7 → #1e5ed8 → #1593a3 → #16a085) - Green success variant (
#16a34a → #22c55e) - Dark search button (
#1a2226) with mint text - Calendar day cells: 100px height, 12px radius,
event/restricted-holiday/today/weekend/adjacentstates - Tables: header uppercase tracked letters, even-row striping
#fcfdff, hover#f8f5f9 - Same
.filter-card/.data-card/.minimum-working-table/.report-table/.ajax-error/@media printrules from your snippet
The app shell adds a sidebar with active-state gradient highlighting, a sticky topbar with breadcrumbs, notification bell (with dot), and the page title is rendered as a card header with the emoji — exactly as in your reference.
Files built:
index.html,src/index.css,src/icons.tsx,src/data.ts,src/components/Shell.tsx,src/components/CalendarPage.tsx,src/components/MinWorkingPage.tsx,src/components/AttendancePage.tsx,src/components/DashboardPage.tsx,src/components/HolidaysPage.tsx,src/components/PlaceholderPage.tsx,src/App.tsx- User
i want to update in this single page
// display_perimission_report
<body> <h2>Permission Report</h2> <div class="container" style="width:100%;"> <!-- Filters --> <div class="filters-wrapper"> <div class="filter-item"> <a href="index.php?page=display_attendance" class="btn">⬅ Back</a> </div> <div class="filter-item"> <label for="entriesSelect">Show Entries</label> <select id="entriesSelect"> <option value="10" selected>10</option> <option value="25">25</option> <option value="50">50</option> <option value="100">100</option> </select> </div> <div class="filter-item"> <label for="yearSelect">Year</label> <select id="yearSelect"></select> </div> <div class="filter-item"> <label for="monthSelect">Month</label> <select id="monthSelect"> <option value="All">All</option> <?php $months = [ 1=>"January",2=>"February",3=>"March",4=>"April",5=>"May",6=>"June", 7=>"July",8=>"August",9=>"September",10=>"October",11=>"November",12=>"December" ]; foreach($months as $num=>$label){ echo "<option value='$num'>$label</option>"; } ?> </select> </div> <div class="filter-item"> <label for="employeeSearch">Employee</label> <input type="text" id="employeeSearch" placeholder="Search Employee..."> <input type="hidden" id="employeeId" name="employeeId"> </div> </div> <!-- Table --> <div id="order_table"></div> <!-- Footer --> <div id="entryCount"></div> <div id="pagination"></div> </div> </body>// display_perimission_report
Assistant
I'll add a Permission Report page that matches your existing dashboard style, with the same filter layout, table, pagination, and employee autocomplete. Let me explore the current structure first.
Now let me extend the data module with permission records and employees, add CSS for the permission report (filter wrapper, table styling, pagination, autocomplete), then create the page and wire it up.
Now let me add the CSS for the permission report (filter wrapper, table, pagination, autocomplete dropdown, etc.).
Now let me create the Permission Report page component.
Now let me wire it into the Shell (add it to the nav) and App.
That looks like a transient cache error — the App.tsx already includes
permission: "Permission Report"in the TITLES object. Let me build to confirm.Build succeeded. The Permission Report page is now fully integrated.
What I added:
New Page: Permission Report (accessible from sidebar → "Permission Report", or via the attendance-style flow)
Faithfully reproducing your original PHP/jQuery logic, ported to React:
Filters (in the same
.filters-wrapperlayout you used):- ⬅ Back button (dark
#1A2226style, returns to Attendance Report) - Show Entries dropdown — 10 / 25 / 50 / 100
- Year dropdown — populated from 2026 down to 2020
- Month dropdown — All + all 12 months
- Status dropdown — All / Approved / Pending / Rejected / Cancelled (bonus filter, doesn't break your spec)
- Employee autocomplete — type ≥ 2 chars, shows a dropdown with name + ID, keyboard navigation (↑/↓/Enter/Esc),
onSelectstores both the label ("Name || ID") and the hiddenem_id, and triggers reload
Table —
.permission-tablestyled with your exact2px solid #1A2226outer border, dark header row, even-row striping, hover state, status pills (Approved = green, Pending = yellow, Rejected = red, Cancelled = gray). Columns: Sr.No, Date, Emp ID, Emp Name, Reason, From, To, Total Time, Status. Shows "No Records Found" when empty.Footer:
- Entry count text:
Showing X to Y of N entries - Pagination: Prev, 1 … 3 4 5 … N, Next — with 3-page window, active page uses the gradient button style, disabled state for Prev/Next at edges
Data — Generated ~200+ permission records across 2024/2025/2026 with realistic employees, reasons, times, and statuses. All filtering/pagination is client-side (the same logic your
fetch_permission.phpwould do server-side).Clearing the employee box (matching your
keyuphandler) — resets hidden ID, resets month to "All", keeps the year, and reloads the list.Files built:
src/data.ts,src/index.css,src/components/PermissionPage.tsx,src/components/Shell.tsx,src/App.tsx- ⬅ Back button (dark
- User
i want it in a single page Code only one page (🧭 Workforce Console 📅 Attendance Calendar 🗓️ Minimum Working Days 📊 Attendance Report 🕒 Permission Report) provide only single page code for only Permission Report
Assistant
I'll provide just the single Permission Report page code, using the same styling system as the rest of the app.
Here's the single-page Permission Report code, fully self-contained — it includes its own inline data, icons, and styles so it works as a standalone page:
import { useEffect, useMemo, useRef, useState, type SVGProps } from "react"; import "./permission-page.css"; /* ============================================================ ICONS (inline, so this file is self-contained) ============================================================ */ const base = { width: 18, height: 18, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round" as const, strokeLinejoin: "round" as const, }; const Icon = { Download: (p: SVGProps<SVGSVGElement>) => ( <svg {...base} {...p}><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><path d="M7 10l5 5 5-5"/><path d="M12 15V3"/></svg> ), Search: (p: SVGProps<SVGSVGElement>) => ( <svg {...base} {...p}><circle cx="11" cy="11" r="7"/><path d="M21 21l-4.3-4.3"/></svg> ), }; /* ============================================================ MOCK DATA (replace with API call to fetch_permission.php) ============================================================ */ type Status = "Approved" | "Pending" | "Rejected" | "Cancelled"; interface Employee { id: string; name: string; department: string; } interface PermissionRow { id: number; srno: number; date: string; em_id: string; name: string; reason: string; from: string; to: string; total_time: string; status: Status; } const EMPLOYEES: Employee[] = [ { id: "AA20021", name: "Aarav Sharma", department: "Engineering" }, { id: "AA20034", name: "Priya Verma", department: "Design" }, { id: "AA20042", name: "Rohan Iyer", department: "Sales" }, { id: "AA20055", name: "Sneha Kapoor", department: "HR" }, { id: "AA20067", name: "Karan Mehta", department: "Finance" }, { id: "AA20078", name: "Meera Nair", department: "Engineering" }, { id: "AA20089", name: "Vikram Singh", department: "Operations" }, { id: "AA20092", name: "Anjali Joshi", department: "Marketing" }, { id: "AA20103", name: "Devansh Patel", department: "Engineering" }, { id: "AA20117", name: "Riya Das", department: "Design" }, { id: "AA20124", name: "Arjun Reddy", department: "Sales" }, { id: "AA20132", name: "Tanya Bhatia", department: "Support" }, { id: "AA20145", name: "Siddharth Roy", department: "Finance" }, { id: "AA20158", name: "Pooja Kulkarni", department: "HR" }, { id: "AA20169", name: "Manish Tiwari", department: "Operations" }, ]; const REASONS = ["Medical appointment", "Personal work", "Family function", "Bank work", "Official errand", "Doctor visit"]; const STATUSES: Status[] = ["Approved", "Approved", "Approved", "Pending", "Rejected", "Cancelled"]; const pad = (n: number) => n.toString().padStart(2, "0"); const pick = <T,>(a: T[]) => a[Math.floor(Math.random() * a.length)]; function buildPermissions(): PermissionRow[] { const rows: PermissionRow[] = []; let id = 1; for (let year = 2024; year <= 2026; year++) { for (let m = 0; m < 12; m++) { const maxDay = new Date(year, m + 1, 0).getDate(); const count = 4 + Math.floor(Math.random() * 4); for (let k = 0; k < count; k++) { const emp = pick(EMPLOYEES); const day = 1 + Math.floor(Math.random() * maxDay); const fromH = 9 + Math.floor(Math.random() * 3); const durH = 1 + Math.floor(Math.random() * 3); const toH = Math.min(18, fromH + durH); const fromM = Math.floor(Math.random() * 6) * 10; const toM = Math.floor(Math.random() * 6) * 10; const total = (toH - fromH) + (toM - fromM) / 60; rows.push({ id, srno: id, date: `${year}-${pad(m + 1)}-${pad(day)}`, em_id: emp.id, name: emp.name, reason: pick(REASONS), from: `${pad(fromH)}:${pad(fromM)}`, to: `${pad(toH)}:${pad(toM)}`, total_time: total > 0 ? `${Math.floor(total)}h ${Math.round((total % 1) * 60)}m` : "0h 30m", status: pick(STATUSES), }); id++; } } } return rows; } const PERMISSIONS: PermissionRow[] = buildPermissions(); const YEARS = [2026, 2025, 2024, 2023, 2022, 2021, 2020]; const MONTH_LABELS: Record<number, string> = { 1: "January", 2: "February", 3: "March", 4: "April", 5: "May", 6: "June", 7: "July", 8: "August", 9: "September", 10: "October", 11: "November", 12: "December", }; /* ============================================================ PAGE ============================================================ */ interface Props { onBack?: () => void; } type StatusFilter = "All" | Status; export default function PermissionReportPage({ onBack }: Props) { const today = new Date(); const [entries, setEntries] = useState(10); const [year, setYear] = useState(today.getFullYear()); const [month, setMonth] = useState<string>("All"); const [status, setStatus] = useState<StatusFilter>("All"); const [employeeName, setEmployeeName] = useState(""); const [employeeId, setEmployeeId] = useState(""); const [page, setPage] = useState(1); const [acOpen, setAcOpen] = useState(false); const [acActive, setAcActive] = useState(0); const acRef = useRef<HTMLDivElement>(null); // Close dropdown on outside click useEffect(() => { const onClick = (e: MouseEvent) => { if (acRef.current && !acRef.current.contains(e.target as Node)) setAcOpen(false); }; document.addEventListener("mousedown", onClick); return () => document.removeEventListener("mousedown", onClick); }, []); // Autocomplete suggestions const suggestions = useMemo(() => { if (employeeName.trim().length < 2) return []; const q = employeeName.toLowerCase(); return EMPLOYEES .filter(e => e.name.toLowerCase().includes(q) || e.id.toLowerCase().includes(q)) .map(e => ({ label: `${e.name} || ${e.id}`, id: e.id, department: e.department })) .slice(0, 8); }, [employeeName]); // Filtered rows const filtered = useMemo(() => { return PERMISSIONS.filter(p => { const d = new Date(p.date); if (d.getFullYear() !== year) return false; if (month !== "All" && d.getMonth() + 1 !== Number(month)) return false; if (status !== "All" && p.status !== status) return false; if (employeeId && p.em_id !== employeeId) return false; if (employeeName) { const q = employeeName.toLowerCase(); if (!p.name.toLowerCase().includes(q) && !p.em_id.toLowerCase().includes(q)) return false; } return true; }); }, [year, month, status, employeeName, employeeId]); // Pagination const total = filtered.length; const totalPages = Math.max(1, Math.ceil(total / entries)); const safePage = Math.min(page, totalPages); const start = (safePage - 1) * entries; const pageRows = filtered.slice(start, start + entries); const startEntry = total === 0 ? 0 : start + 1; const endEntry = Math.min(safePage * entries, total); const resetPage = () => setPage(1); // Windowed pagination (3 visible) const maxPagesToShow = 3; let startPage = Math.max(1, safePage - Math.floor(maxPagesToShow / 2)); let endPage = startPage + maxPagesToShow - 1; if (endPage > totalPages) { endPage = totalPages; startPage = Math.max(1, endPage - maxPagesToShow + 1); } const onSelectEmployee = (item: { label: string; id: string }) => { setEmployeeName(item.label); setEmployeeId(item.id); setAcOpen(false); setPage(1); }; const onClearEmployee = () => { if (employeeName.trim() === "") { setEmployeeId(""); setMonth("All"); setYear(today.getFullYear()); setPage(1); } }; const statusBadge = (s: Status) => { const map: Record<Status, string> = { Approved: "badge badge-success", Pending: "badge badge-warning", Rejected: "badge badge-danger", Cancelled: "badge badge-neutral", }; return <span className={map[s]}>● {s}</span>; }; return ( <div className="permission-report-page"> <div className="page-header-card"> <h2 className="page-title"> <span className="emoji">📋</span> Permission Report </h2> <div className="action-group-right"> <button className="btn btn-success"> <Icon.Download width={16} height={16} /> Export CSV </button> </div> </div> {/* Filters */} <div className="filters-wrapper"> <div className="filter-item"> <label> </label> <button className="btn-back" onClick={onBack}>⬅ Back</button> </div> <div className="filter-item"> <label htmlFor="entriesSelect">Show Entries</label> <select id="entriesSelect" value={entries} onChange={(e) => { setEntries(Number(e.target.value)); resetPage(); }}> <option value={10}>10</option><option value={25}>25</option> <option value={50}>50</option><option value={100}>100</option> </select> </div> <div className="filter-item"> <label htmlFor="yearSelect">Year</label> <select id="yearSelect" value={year} onChange={(e) => { setYear(Number(e.target.value)); resetPage(); }}> {YEARS.map(y => <option key={y} value={y}>{y}</option>)} </select> </div> <div className="filter-item"> <label htmlFor="monthSelect">Month</label> <select id="monthSelect" value={month} onChange={(e) => { setMonth(e.target.value); resetPage(); }}> <option value="All">All</option> {Object.entries(MONTH_LABELS).map(([n, l]) => <option key={n} value={n}>{l}</option>)} </select> </div> <div className="filter-item"> <label htmlFor="statusSelect">Status</label> <select id="statusSelect" value={status} onChange={(e) => { setStatus(e.target.value as StatusFilter); resetPage(); }}> <option>All</option><option>Approved</option><option>Pending</option> <option>Rejected</option><option>Cancelled</option> </select> </div> <div className="filter-item employee-item" ref={acRef}> <label htmlFor="employeeSearch">Employee</label> <input type="text" id="employeeSearch" placeholder="Search Employee..." value={employeeName} autoComplete="off" onChange={(e) => { setEmployeeName(e.target.value); setAcOpen(true); setAcActive(0); if (e.target.value.trim() === "") { setEmployeeId(""); setMonth("All"); setYear(today.getFullYear()); } resetPage(); }} onKeyDown={(e) => { if (!acOpen || suggestions.length === 0) return; if (e.key === "ArrowDown") { e.preventDefault(); setAcActive(i => Math.min(i + 1, suggestions.length - 1)); } if (e.key === "ArrowUp") { e.preventDefault(); setAcActive(i => Math.max(i - 1, 0)); } if (e.key === "Enter") { e.preventDefault(); if (suggestions[acActive]) onSelectEmployee(suggestions[acActive]); } if (e.key === "Escape") setAcOpen(false); }} onFocus={() => { if (suggestions.length > 0) setAcOpen(true); }} onBlur={onClearEmployee} /> <input type="hidden" id="employeeId" value={employeeId} /> {acOpen && suggestions.length > 0 && ( <div className="autocomplete-list"> {suggestions.map((s, i) => ( <div key={s.id} className={`autocomplete-item ${i === acActive ? "active" : ""}`} onMouseDown={(e) => { e.preventDefault(); onSelectEmployee(s); }} onMouseEnter={() => setAcActive(i)}> <span className="main">{s.label}</span> <span className="meta">{s.department}</span> </div> ))} </div> )} </div> </div> {/* Table */} <div className="data-card"> <div className="table-responsive"> <table className="permission-table"> <thead> <tr> <th>Sr.No</th><th>Date</th><th>Emp ID</th><th>Emp Name</th> <th>Reason</th><th>From</th><th>To</th><th>Total Time</th><th>Status</th> </tr> </thead> <tbody> {pageRows.length === 0 ? ( <tr><td colSpan={9} className="no-records">No Records Found</td></tr> ) : pageRows.map(row => ( <tr key={row.id}> <td>{row.srno}</td><td>{row.date}</td><td>{row.em_id}</td> <td>{row.name}</td><td>{row.reason}</td> <td>{row.from}</td><td>{row.to}</td> <td>{row.total_time}</td><td>{statusBadge(row.status)}</td> </tr> ))} </tbody> </table> </div> </div> {/* Footer */} <div className="entry-count"> Showing {startEntry} to {endEntry} of {total} entries </div> <div className="pagination"> <button className="page-btn" disabled={safePage === 1} onClick={() => setPage(p => Math.max(1, p - 1))}>‹ Prev</button> {startPage > 1 && ( <> <button className="page-btn" onClick={() => setPage(1)}>1</button> {startPage > 2 && <span className="dots">…</span>} </> )} {Array.from({ length: endPage - startPage + 1 }).map((_, i) => { const p = startPage + i; return ( <button key={p} className={`page-btn ${p === safePage ? "active" : ""}`} onClick={() => setPage(p)}>{p}</button> ); })} {endPage < totalPages && ( <> {endPage < totalPages - 1 && <span className="dots">…</span>} <button className="page-btn" onClick={() => setPage(totalPages)}>{totalPages}</button> </> )} <button className="page-btn" disabled={safePage >= totalPages} onClick={() => setPage(p => Math.min(totalPages, p + 1))}>Next ›</button> </div> </div> ); }And the matching CSS (save as
permission-page.cssand import it, or paste it into your global stylesheet):/* ============= PERMISSION REPORT PAGE ============= */ .permission-report-page { max-width: 1250px; margin: 0 auto; } .permission-report-page .page-title { margin: 0; } .page-header-card { padding: 20px 25px; display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; flex-wrap: wrap; gap: 14px; background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); } .page-title { font-size: 28px; font-weight: 700; color: #0f172a; margin: 0 0 25px; display: flex; align-items: center; gap: 15px; } .page-title .emoji { font-size: 32px; } .action-group-right { display: flex; gap: 12px; } .btn { border: none; cursor: pointer; padding: 10px 18px; border-radius: 10px; color: #fff; font-weight: 600; font-size: 14px; transition: all 0.3s; background: linear-gradient(90deg,#0d47c7,#1e5ed8,#1593a3,#16a085); display: inline-flex; align-items: center; gap: 8px; text-decoration: none; } .btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(13,71,199,.25); } .btn.btn-success { background: linear-gradient(90deg,#16a34a,#22c55e) !important; } .btn.btn-success:hover { box-shadow: 0 8px 20px rgba(22,163,74,.3); } /* Filter bar */ .filters-wrapper { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; margin-bottom: 22px; padding: 22px 25px; background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); } .filter-item { display: flex; flex-direction: column; gap: 6px; min-width: 150px; } .filter-item label { color: #64748b; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; } .filter-item select, .filter-item input[type="text"] { width: 100%; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 14px; font-weight: 500; color: #0f172a; background: #fff; font-family: inherit; transition: all .2s; } .filter-item select:focus, .filter-item input[type="text"]:focus { outline: none; border-color: #4f46e5; box-shadow: 0 0 0 3px rgba(79,70,229,.12); } .filter-item.employee-item { min-width: 240px; position: relative; } .filter-item .btn-back { background: linear-gradient(90deg,#1a2226,#283329) !important; background-image: none !important; color: #d1e8e2 !important; padding: 10px 18px; border-radius: 10px; font-weight: 600; font-size: 14px; border: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; min-height: 42px; text-decoration: none; transition: all .2s; } .filter-item .btn-back:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(26,34,38,.25); } @media (max-width:768px){ .filters-wrapper{flex-direction:column;align-items:stretch} .filter-item{min-width:100%} } /* Table */ .data-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); overflow: hidden; } .table-responsive { width: 100%; overflow-x: auto; } .permission-table { width: 100%; border-collapse: collapse; background: #fff; border: 2px solid #1A2226; border-radius: 12px; overflow: hidden; font-size: 14px; } .permission-table thead th { padding: 14px 16px; background: #1A2226; color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-align: left; text-transform: uppercase; white-space: nowrap; } .permission-table tbody td { padding: 14px 16px; border-bottom: 1px solid #f1f5f9; color: #334155; font-size: 14px; font-weight: 500; vertical-align: middle; } .permission-table tbody tr:nth-child(even) { background: #fcfdff; } .permission-table tbody tr:hover { background: #f8fafc; } .permission-table tbody tr:last-child td { border-bottom: none; } .permission-table .no-records { text-align: center; color: #94a3b8; padding: 36px 16px; font-size: 14px; font-weight: 500; } /* Status badges */ .badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; border: 1px solid transparent; } .permission-table .badge { font-size: 12px; padding: 5px 10px; } .badge-success { background:#dcfce7; color:#166534; border-color:#bbf7d0; } .badge-warning { background:#fef3c7; color:#92400e; border-color:#fde68a; } .badge-danger { background:#fee2e2; color:#991b1b; border-color:#fecaca; } .badge-neutral { background:#f1f5f9; color:#475569; border-color:#e2e8f0; } /* Footer */ .entry-count { margin-top: 18px; color: #64748b; font-size: 13px; font-weight: 500; } .pagination { margin-top: 12px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; } .pagination button.page-btn, .pagination span.dots { min-width: 36px; height: 36px; padding: 0 10px; border-radius: 8px; border: 1px solid #e2e8f0; background: #fff; color: #334155; font-weight: 600; font-size: 13px; cursor: pointer; transition: all .2s; display: inline-flex; align-items: center; justify-content: center; } .pagination button.page-btn:hover:not(:disabled):not(.active) { background: #f1f5f9; border-color: #cbd5e1; color: #0f172a; } .pagination button.page-btn.active { background: linear-gradient(90deg,#0d47c7,#1e5ed8,#1593a3,#16a085); color: #fff; border-color: transparent; box-shadow: 0 4px 12px rgba(13,71,199,.25); } .pagination button.page-btn:disabled { opacity: .4; cursor: not-allowed; } .pagination span.dots { border: none; background: transparent; color: #94a3b8; cursor: default; } /* Autocomplete */ .autocomplete-list { position: absolute; top: calc(100% + 4px); left: 0; right: 0; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; box-shadow: 0 10px 25px rgba(15,23,42,.12); max-height: 260px; overflow-y: auto; z-index: 30; } .autocomplete-item { padding: 10px 14px; cursor: pointer; font-size: 14px; color: #1e293b; border-bottom: 1px solid #f1f5f9; display: flex; align-items: center; justify-content: space-between; gap: 10px; transition: background .15s; } .autocomplete-item:last-child { border-bottom: none; } .autocomplete-item:hover, .autocomplete-item.active { background: #eef2ff; color: #4f46e5; } .autocomplete-item .meta { font-size: 11px; color: #94a3b8; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; } .autocomplete-item .main { font-weight: 600; }How to use: Drop the JSX file into
src/components/PermissionReportPage.tsx, the CSS intosrc/permission-page.css, and import it from your single-page entry. All mock data, icons, autocomplete, filtering, pagination, status badges, and styling are self-contained — no other page needed.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.