import React, { useState } from "react"; import { Search, LayoutDashboard, Inbox, PenLine, FileText, Grid2X2, Settings, UserCircle, ChevronLeft, ChevronRight } from "lucide-react"; import { motion } from "framer-motion"; export default function AdminLoginDashboard() { const [loggedIn, setLoggedIn] = useState(false); const [email, setEmail] = useState(""); const [password, setPassword] = useState(""); const [error, setError] = useState(""); const handleLogin = (e) => { e.preventDefault(); if (email.trim() && password.trim()) { setLoggedIn(true); setError(""); } else { setError("Bitte E-Mail und Passwort eingeben."); } }; if (!loggedIn) { return (

Admin Login

Welcome back, boss.

setEmail(e.target.value)} type="email" className="w-full rounded-xl border border-slate-200 px-4 py-3 outline-none focus:ring-2 focus:ring-cyan-400" placeholder="admin@example.com" />
setPassword(e.target.value)} type="password" className="w-full rounded-xl border border-slate-200 px-4 py-3 outline-none focus:ring-2 focus:ring-cyan-400" placeholder="••••••••" />
{error &&

{error}

}

Demo: beliebige E-Mail und Passwort eingeben.

); } const devices = [ ["30%", "Computer"], ["75%", "Smartphone"], ["50%", "Tablet"], ["15%", "E-Reader"], ["25%", "Smart TV"], ["10%", "Others"], ]; const menu = [ [LayoutDashboard, "Dashboard", true], [Inbox, "Inbox"], [PenLine, "Posts"], [FileText, "Pages"], [Grid2X2, "Widgets"], [Settings, "Settings"], ]; const bars = [82, 58, 28, 45, 66, 58, 40]; return (
User Name
{devices.map(([percent, label], index) => (
{percent}
{label}
))}
MAP
{[[18,38],[33,48],[45,30],[53,24],[50,56],[67,38],[74,31],[84,29],[88,58],[23,66],[30,56],[57,58]].map(([x,y],i)=>( ))}
{[['United States',67],['Brazil',57],['United Kingdom',34],['France',48],['Australia',20]].map(([name, value])=>(
{name}
))}
50%40%30%20%10%0%
January
{['S','M','T','W','T','F','S'].map((d,i)=>
{d}
)} {Array.from({length:31},(_,i)=>i+1).map(day=>(
{day}
))}
{bars.map((height, i)=>(
week 01
))}
); } function Panel({ title, children }) { return (
{title}
{children}
); }