// Chrome.jsx — Simplified Chrome browser window (dark theme, macOS) // No dependencies, no image assets. All inline styles + inline SVG. const CHROME_C = { barBg: '#202124', tabBg: '#35363a', text: '#e8eaed', dim: '#9aa0a6', urlBg: '#282a2d', }; function ChromeTrafficLights() { return (
); } // Single tab (active has curved scoops) function ChromeTab({ title = 'New Tab', active = false }) { const curve = (flip) => ( ); return (
{active && curve(false)} {active && curve(true)}
{title}
); } function ChromeTabBar({ tabs = [{ title: 'New Tab' }], activeIndex = 0 }) { return (
{tabs.map((t, i) => )}
); } function ChromeToolbar({ url = 'example.com' }) { const iconDot = (
); return (
{iconDot} {/* url bar */}
{url}
{iconDot}
); } function ChromeWindow({ tabs = [{ title: 'New Tab' }], activeIndex = 0, url = 'example.com', width = 900, height = 600, children, }) { return (
{children}
); } Object.assign(window, { ChromeWindow, ChromeTabBar, ChromeToolbar, ChromeTab, ChromeTrafficLights, });