About
Interactive dark-room minimalist portfolio illuminated in real time by a procedural Three.js 3D tactical flashlight with volumetric beam, dust motes, and discovery tracking.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds 3D Flashlight Portfolio to your project and fits it to your theme.
Code
How 3D Flashlight Portfolio is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
"use client";
import React from "react";
import FlashlightPortfolio, {
type PortfolioProfile,
type PortfolioProject,
} from "@/components/ui/3d-flashlight-portfolio";
const settings = {
beamRadius: 300,
beamColor: "#FFF4D2",
beamIntensity: 1.4,
flashlightFinish: "#262B38",
flashlightOn: true,
roomLightsOn: false,
};
function SpatialPreview() {
return (
<div className="relative flex aspect-[16/10] w-full items-center justify-center overflow-hidden bg-gradient-to-br from-slate-900 via-zinc-950 to-sky-950/60">
<div className="absolute inset-0 bg-[radial-gradient(circle_at_30%_25%,rgba(56,189,248,0.28),transparent_55%)]" />
<div className="relative flex items-center gap-3">
<div className="h-14 w-20 -rotate-3 rounded-lg border border-white/25 bg-white/[0.07] p-2 backdrop-blur-md">
<div className="h-1.5 w-7 rounded-full bg-sky-300/80" />
<div className="mt-2 h-1 w-11 rounded-full bg-white/25" />
</div>
<div className="h-16 w-24 rotate-2 rounded-lg border border-sky-300/35 bg-sky-400/10 p-2.5 backdrop-blur-md">
<div className="h-1.5 w-9 rounded-full bg-white/80" />
<div className="mt-2 h-6 w-full rounded bg-sky-300/20" />
</div>
</div>
</div>
);
}
function SynthPreview() {
const bars = [24, 48, 72, 38, 86, 60, 94, 52, 74, 42, 66, 32];
return (
<div className="relative flex aspect-[16/10] w-full items-center justify-center overflow-hidden bg-gradient-to-br from-zinc-950 via-neutral-950 to-purple-950/60 px-6">
<div className="absolute inset-0 bg-[radial-gradient(circle_at_70%_50%,rgba(192,132,252,0.26),transparent_60%)]" />
<div className="relative flex h-14 items-end gap-1.5">
{bars.map((h, i) => (
<div
key={i}
style={{ height: `${h}%` }}
className="w-1.5 rounded-full bg-gradient-to-t from-purple-500/80 via-fuchsia-300/90 to-white"
/>
))}
</div>
</div>
);
}
function KineticPreview() {
return (
<div className="relative flex aspect-[16/10] w-full items-center justify-center overflow-hidden bg-gradient-to-br from-neutral-950 via-zinc-950 to-amber-950/45">
<div className="absolute h-20 w-20 rounded-full bg-amber-300/20 blur-2xl" />
<svg viewBox="0 0 120 80" className="relative h-20 w-28">
<polygon
points="60,8 96,26 96,56 60,74 24,56 24,26"
fill="rgba(251,191,36,0.1)"
stroke="rgba(251,191,36,0.85)"
strokeWidth="1.2"
/>
<polyline
points="24,26 60,44 96,26"
fill="none"
stroke="rgba(255,255,255,0.6)"
strokeWidth="1"
/>
<line
x1="60"
y1="44"
x2="60"
y2="74"
stroke="rgba(255,255,255,0.6)"
strokeWidth="1"
/>
</svg>
</div>
);
}
const DEMO_PROFILE: PortfolioProfile = {
name: "Rafael Andrade",
role: "Creative Engineer",
location: "São Paulo, Brasil",
availability: "Disponível para projetos",
headline: "Design & engenharia para interfaces espaciais.",
bio: "Construo produtos digitais minimalistas combinando WebGL em tempo real, shaders e micro-interações táteis.",
email: "rafael@andrade.studio",
github: "https://github.com",
stats: [
{ value: "8+", label: "Anos de exp." },
{ value: "42", label: "Entregas" },
{ value: "60fps", label: "WebGL Native" },
],
highlights: [
"Awwwards Site of the Day",
"FWA of the Day (2x)",
"21st.dev Featured",
],
};
const DEMO_PROJECTS: PortfolioProject[] = [
{
id: "prism-os",
title: "Prism Spatial OS",
category: "Design System 3D",
year: "2026",
description:
"Sistema de janelas refrativas em WebGL com física de mola e gestos fluidos.",
metrics: "60fps constantes em mobile",
tags: ["Three.js", "TypeScript", "GLSL"],
accent: "#38bdf8",
preview: <SpatialPreview />,
},
{
id: "aura-audio",
title: "Aura Synth Engine",
category: "WebAudio + Shader",
year: "2025",
description:
"Sintetizador modular com visualização volumétrica reativa às frequências.",
metrics: "+42k usuários ativos",
tags: ["WebAudio", "React", "Shaders"],
accent: "#c084fc",
preview: <SynthPreview />,
},
{
id: "kinetic-commerce",
title: "Atelier Kinetik",
category: "E-Commerce 3D",
year: "2025",
description:
"Inspeção 3D de produtos em PBR com iluminação controlada pelo cursor.",
metrics: "+38% em conversão",
tags: ["Three.js", "Tailwind", "Motion"],
accent: "#fbbf24",
preview: <KineticPreview />,
},
];
const DEMO_SKILLS = [
"Three.js & WebGL",
"GLSL Shaders",
"React & Next.js",
"TypeScript",
"Framer Motion",
"Design Systems",
];
export default function Demo(props: Partial<typeof settings>) {
const s = { ...settings, ...props };
return (
<div className="flex min-h-[860px] w-full items-center justify-center bg-neutral-950 p-4 sm:p-6">
<FlashlightPortfolio
profile={DEMO_PROFILE}
projects={DEMO_PROJECTS}
skills={DEMO_SKILLS}
beamRadius={s.beamRadius}
beamColor={s.beamColor}
beamIntensity={s.beamIntensity}
flashlightFinish={s.flashlightFinish}
flashlightOn={s.flashlightOn}
roomLightsOn={s.roomLightsOn}
/>
</div>
);
}







