create this exact this layout global css: @import… · The Chat Archive
Explore kimi-k2.5-webdev Arena WebDev Preferences (2026)create this exact this layout global css: @import "tailwindcss" source(none); @source… Save Share Download ▾ Reportcreate this exact this layout
global css:
@import "tailwindcss" source(none);
@source "../src";
@custom-variant dark (&:is(.dark *));
@theme inline {
--radius-sm: calc(var(--radius) - 4px);
--radius-md: calc(var(--radius) - 2px);
--radius-lg: var(--radius);
--radius-xl: calc(var(--radius) + 4px);
--radius-2xl: calc(var(--radius) + 8px);
--radius-3xl: calc(var(--radius) + 12px);
--color-background: var(--background);
--color-foreground: var(--foreground);
--color-card: var(--card);
--color-card-foreground: var(--card-foreground);
--color-popover: var(--popover);
--color-popover-foreground: var(--popover-foreground);
--color-primary: var(--primary);
--color-primary-foreground: var(--primary-foreground);
--color-secondary: var(--secondary);
--color-secondary-foreground: var(--secondary-foreground);
--color-muted: var(--muted);
--color-muted-foreground: var(--muted-foreground);
--color-accent: var(--accent);
--color-accent-foreground: var(--accent-foreground);
--color-destructive: var(--destructive);
--color-destructive-foreground: var(--destructive-foreground);
--color-border: var(--border);
--color-input: var(--input);
--color-ring: var(--ring);
--color-surface: var(--surface);
--color-surface-2: var(--surface-2);
--font-display: "Outfit", system-ui, sans-serif;
--font-sans: "Outfit", system-ui, sans-serif;
}
:root {
--radius: 1rem;
/* Deep matte black background /
--background: oklch(0.18 0.005 240);
--foreground: oklch(0.97 0.005 240);
--surface: oklch(0.22 0.006 240);
--surface-2: oklch(0.26 0.008 240);
--card: oklch(0.22 0.006 240);
--card-foreground: oklch(0.97 0.005 240);
--popover: oklch(0.22 0.006 240);
--popover-foreground: oklch(0.97 0.005 240);
/ Vibrant teal/mint primary accent from reference */
--primary: oklch(0.78 0.15 175);
--primary-foreground: oklch(0.18 0.01 240);
--secondary: oklch(0.28 0.008 240);
--secondary-foreground: oklch(0.97 0.005 240);
--muted: oklch(0.26 0.008 240);
--muted-foreground: oklch(0.68 0.015 240);
--accent: oklch(0.78 0.15 175);
--accent-foreground: oklch(0.18 0.01 240);
--destructive: oklch(0.65 0.22 25);
--destructive-foreground: oklch(0.97 0.005 240);
--border: oklch(0.3 0.01 240 / 60%);
--input: oklch(0.3 0.01 240);
--ring: oklch(0.78 0.15 175);
}
@layer base {
{ border-color: var(--color-border); }
html, body { background-color: var(--color-background); color: var(--color-foreground); font-family: var(--font-sans); }
body { -webkit-font-smoothing: antialiased; }
}
@utility glass-panel {
background: linear-gradient(180deg, oklch(0.24 0.008 240 / 0.85), oklch(0.2 0.006 240 / 0.85));
backdrop-filter: blur(20px);
border: 1px solid oklch(1 0 0 / 0.06);
}
@utility scroll-hide {
scrollbar-width: none;
&::-webkit-scrollbar { display: none; }
}
@utility shimmer {
background: linear-gradient(
100deg,
oklch(0.26 0.008 240 / 0) 30%,
oklch(0.42 0.012 240 / 0.55) 50%,
oklch(0.26 0.008 240 / 0) 70%
);
background-size: 200% 100%;
animation: shimmer-slide 1.6s ease-in-out infinite;
}
AssistantCopy response I'll create this exact layout for you. Let me first explore the project structure and then set up all the components.
Now let me install the required dependencies and create all the components:
Now let me build the project to verify everything works correctly:
The layout has been successfully created and built. Here's a summary of what was implemented:
Created Components
1. Global CSS (src/index.css)
Tailwind CSS v4 configuration with custom theme
Deep matte black color scheme with teal/mint accent
Custom utilities: glass-panel, scroll-hide, shimmer
CSS custom properties for theming
2. Sidebar (src/components/Sidebar.tsx)
Copy first prompt
Details Model kimi-k2.5-webdev
Provider Unknown
Model provenance As recorded by source dataset
Turns 1 (2 messages)
Language en
Conversation date Jul 2, 2026
Added to archive Nov 19, 2026
ID 01m7tp5x4r2p4h7ebhxnpkh9kdSource & license Imported from Arena WebDev Preferences (2026) (source ). Imported records earn no Research Points.
Upstream record: 019f2356-7c91-7f0e-a496-98f61b83a90a:b
Chi et al., Interaction-as-a-Judge (2026). arXiv:2610.17895.
License: Prompts CC-BY-4.0; outputs governed by provider terms
Dataset releases Not yet included in a published release.
@keyframes shimmer-slide {
0% { background-position: 200% 0; }
100% { background-position: -200% 0; }
}
Side bar component:
import { motion } from "framer-motion";
import {
Home, Compass, Heart, User, Settings, Play, Sparkles,
} from "lucide-react";
import thumbSnow from "../../assets/thumb-snow.jpg";
import thumbChernobyl from "../../assets/thumb-chernobyl.jpg";
import thumbPlatform from "../../assets/thumb-platform.jpg";
const navMain = [
{ key: "home", label: "Home", icon: Home },
{ key: "explore", label: "Explore", icon: Compass },
{ key: "favourites", label: "Favourites", icon: Heart },
{ key: "community", label: "Community", icon: Compass },
{ key: "myList", label: "MyList", icon: Heart },
];
const navAccount = [
{ key: "profile", label: "Profile", icon: User },
{ key: "settings", label: "Settings", icon: Settings },
];
const continueWatching = [
{ title: "Chernobyl", sub: "Episode 3", img: thumbChernobyl, progress: 64 },
{ title: "Snowpiercer", sub: "Episode 7", img: thumbSnow, progress: 32 },
{ title: "The Platform", sub: "55min 12sec", img: thumbPlatform, progress: 78 },
];
export default function Sidebar({ active, setActive }) {
return (
<motion.aside
initial={{ opacity: 0, x: -20 }}
animate={{ opacity: 1, x: 0 }}
transition={{ duration: 0.5, ease: [0.22, 1, 0.36, 1] }}
className="glass-panel sticky top-4 hidden h-[calc(100vh-2rem)] w-[260px] shrink-0 flex-col rounded-3xl p-6 lg:flex"
>
Prime
Vision
<nav className="mt-10 flex flex-col gap-1">
{navMain.map((item) => (
<NavButton key={item.key} item={item} active={active} setActive={setActive} />
))}
</nav>
<div className="mx-2 my-6 h-px bg-border" />
<nav className="flex flex-col gap-1">
{navAccount.map((item) => (
<NavButton key={item.key} item={item} active={active} setActive={setActive} />
))}
</nav>
<div className="mt-8 flex min-h-0 flex-1 flex-col">
<p className="px-2 text-center text-xs font-medium uppercase tracking-widest text-muted-foreground">
Continue Watching
</p>
<div className="scroll-hide mt-4 flex flex-col gap-3 overflow-y-auto pr-1">
{continueWatching.map((item, i) => (
<motion.button
key={item.title}
initial={{ opacity: 0, x: -10 }}
animate={{ opacity: 1, x: 0 }}
transition={{ delay: 0.3 + i * 0.08, duration: 0.4 }}
whileHover={{ scale: 1.02 }}
className="group flex items-center gap-3 rounded-2xl bg-surface-2/40 p-2 text-left transition-colors hover:bg-surface-2"
>
<div className="relative h-12 w-16 shrink-0 overflow-hidden rounded-lg">
<img src={item.img} alt={item.title} className="h-full w-full object-cover" />
<div className="absolute inset-x-0 bottom-0 h-0.5 bg-white/20">
<div className="h-full bg-primary" style={{ width: `${item.progress}%` }} />
</div>
</div>
<div className="min-w-0 flex-1">
<p className="truncate text-sm font-semibold">{item.title}</p>
<p className="truncate text-xs text-muted-foreground">{item.sub}</p>
</div>
<div className="grid h-7 w-7 shrink-0 place-items-center rounded-full bg-white/5 text-foreground/80 transition-colors group-hover:bg-primary group-hover:text-primary-foreground">
<Play className="h-3 w-3 fill-current" />
</div>
</motion.button>
))}
</div>
</div>
</motion.aside>
function NavButton({ item, active, setActive }) {
const Icon = item.icon;
const isActive = active === item.key;
return (
<motion.button
whileHover={{ x: 4 }}
whileTap={{ scale: 0.98 }}
onClick={() => setActive(item.key)}
className="relative flex items-center gap-3 rounded-2xl px-4 py-3 text-sm font-medium"
>
{isActive && (
<motion.span
layoutId="navActive"
transition={{ type: "spring", stiffness: 400, damping: 32 }}
className="absolute inset-0 rounded-2xl bg-primary/10 ring-1 ring-primary/30"
/>
)}
<Icon className={relative h-5 w-5 ${isActive ? "text-primary" : "text-foreground/70"}} />
<span className={relative ${isActive ? "text-primary" : "text-foreground/80"}}>
{item.label}
</motion.button>
);
}
top bar:
import { motion, AnimatePresence } from "framer-motion";
import { Search, Bell, ChevronDown } from "lucide-react";
const categories = ["All", "Movies", "Series", "Anime", "Documentary"];
export default function TopBar({ category, setCategory, catOpen, setCatOpen }) {
return (
<motion.div
initial={{ opacity: 0, y: -10 }}
animate={{ opacity: 1, y: 0 }}
transition={{ duration: 0.5 }}
className="sticky top-0 z-40 -mx-3 flex items-center gap-3 bg-background/80 px-3 py-3 backdrop-blur-xl sm:-mx-4 sm:px-4 lg:-mx-6 lg:px-6"
>
<button
onClick={() => setCatOpen(!catOpen)}
className="glass-panel flex h-12 items-center gap-2 rounded-full px-5 text-sm font-medium"
>
{category}
<motion.span animate={{ rotate: catOpen ? 180 : 0 }} transition={{ duration: 0.2 }}>
</motion.span>
{catOpen && (
<motion.div
initial={{ opacity: 0, y: -8, scale: 0.96 }}
animate={{ opacity: 1, y: 0, scale: 1 }}
exit={{ opacity: 0, y: -8, scale: 0.96 }}
transition={{ duration: 0.2 }}
className="glass-panel absolute left-0 top-14 z-30 w-44 overflow-hidden rounded-2xl p-2"
>
{categories.map((c) => (
<button
key={c}
onClick={() => { setCategory(c); setCatOpen(false); }}
className={block w-full rounded-xl px-3 py-2 text-left text-sm transition-colors ${ c === category ? "bg-primary/15 text-primary" : "hover:bg-white/5" }}
>
{c}
))}
</motion.div>
)}
<div className="glass-panel flex h-12 min-w-0 flex-1 items-center gap-3 rounded-full px-5">
<input
placeholder="Search movies, series, anime…"
className="min-w-0 flex-1 bg-transparent text-sm outline-none placeholder:text-muted-foreground"
/>
<Search className="h-4 w-4 shrink-0 text-muted-foreground" />
</div>
<motion.button
whileHover={{ scale: 1.05 }}
whileTap={{ scale: 0.95 }}
className="glass-panel relative grid h-12 w-12 shrink-0 place-items-center rounded-full"
>
<Bell className="h-4 w-4" />
<span className="absolute right-3 top-3 h-2 w-2 rounded-full bg-primary" />
</motion.button>
<motion.button
whileHover={{ scale: 1.05 }}
className="glass-panel hidden h-12 shrink-0 items-center gap-3 rounded-full pl-1 pr-4 sm:flex"
>
<div className="grid h-10 w-10 place-items-center rounded-full bg-gradient-to-br from-primary/60 to-primary/20 text-sm font-bold text-primary-foreground">
AX
</div>
<span className="text-sm font-medium">Alex</span>
</motion.button>
</motion.div>
layout:
import { useState } from "react";
import { Outlet } from "react-router";
import Sidebar from "./SideBar";
import TopBar from "./TopBar";
export default function Layout() {
const [active, setActive] = useState("explore");
const [category, setCategory] = useState("All");
const [catOpen, setCatOpen] = useState(false);
<div className="mx-auto flex max-w-[1600px] gap-6 p-3 sm:p-4 lg:p-6">
<Sidebar active={active} setActive={setActive} />
<main className="relative flex min-w-0 flex-1 flex-col gap-5 sm:gap-6">
<TopBar
category={category}
setCategory={setCategory}
catOpen={catOpen}
setCatOpen={setCatOpen}
/>
<Outlet />
</main>
</div>
</div>
Glassmorphism sticky sidebar (260px width)
Logo with "PrimeVision" branding
Main navigation: Home, Explore, Favourites, Community, MyList
Account section: Profile, Settings
"Continue Watching" section with progress bars
Smooth animations with Framer Motion
3. TopBar (src/components/TopBar.tsx)
Category dropdown (All, Movies, Series, Anime, Documentary)
Search input with glassmorphism styling
Notification bell with indicator dot
User profile button with avatar
4. Layout (src/components/Layout.tsx)
Main layout wrapper with background glow effects
Responsive container (max-width 1600px)
Gradient blur decorations in background
5. App (src/App.tsx)
Sample hero section featuring "Dune: Part Two"
Content grid placeholder for movie/show cards
The build completed successfully, producing a single dist/index.html file ready for deployment.
Files built: src/index.css, src/components/Sidebar.tsx, src/components/TopBar.tsx, src/components/Layout.tsx, src/App.tsx
Copy first response