Loading…
Creator · Aceternity UI
View original source ↗
Prompt
// components/ui/scales.tsx
import { cn } from "@/lib/utils";
import React from "react";
export interface ScalesProps {
orientation?: "horizontal" | "vertical" | "diagonal";
size?: number;
className?: string;
color?: string;
}
export const Scales = ({
orientation = "diagonal",
size = 10,
className,
color,
}: ScalesProps) => {
const getGradientAngle = () => {
switch (orientation) {
case "horizontal":
return "0deg";
case "vertical":
return "90deg";
case "diagonal":
default:
return "315deg";
}
};
return (
<div
className={cn(
"absolute inset-0 h-full w-full overflow-hidden",
"[--pattern-scales:var(--color-neutral-950)]/10",
"dark:[--pattern-scales:var(--color-white)]/10",
className,
)}
style={
{
"--scales-size": `${size}px`,
"--scales-angle": getGradientAngle(),
...(color && { "--pattern-scales": color }),
} as React.CSSProperties
}
>
<div
className="h-full w-full bg-[repeating-linear-gradient(var(--scales-angle),var(--pattern-scales)_0,var(--pattern-scales)_1px,transparent_0,transparent_50%)]"
style={{
backgroundSize: `var(--scales-size) var(--scales-size)`,
}}
/>
</div>
);
};
export interface ScalesContainerProps extends ScalesProps {
children?: React.ReactNode;
containerClassName?: string;
}
export const ScalesContainer = ({
children,
orientation = "diagonal",
size = 10,
className,
containerClassName,
color,
}: ScalesContainerProps) => {
return (
<div className={cn("relative", containerClassName)}>
<Scales
orientation={orientation}
size={size}
className={className}
color={color}
/>
<div className="relative z-10">{children}</div>
</div>
);
};
export default Scales;Models & stability
Recommended models
Keep exploring
A webpage case by @Oluwaphilemon1 using Claude Fable 5 · Three.js · Blender · GSAP, including the public result, full prompt, and original source.
Prompt
Claude Fable 5 and GPT-5.6 are powerful🥵🥵🥵 Here Is How I built with Claude 👇 Prompt: "Design an agency site where services are presented as supermarket product packaging in 3D" Use Three.js with WebGL to render al
复制这段 TSX 组件源码,交给 Cursor、v0、Claude 等 AI 编程工具,说明这是「3D Animated Pin」的 Aceternity UI 组件实现,即可让它接入你的 React 项目,再按需替换文案、配色与触发参数复用。
Prompt
// components/ui/3d-pin.tsx "use client"; import React, { useState } from "react"; import { motion } from "motion/react"; import { cn } from "@/lib/utils"; export const PinContainer = ({ children, title, href, className, containerClassName…

一个复杂的提示词,用于利用 Three.js 风格优化和逼真光照,在浏览器中生成精细的实时 3D 森林环境。
Prompt
First search for the "/unlazy" skill, read it fully, and use it throughout the entire task. Treat this as a major visual build lasting at least {argument name="minimum duration" d