Библиотека дизайна / Сайты целиком

Сайты целикомТёмный3DТипографикаМинимализмБесплатно

Franky Hung — портфолио с 3D-узлом на Three.js

Чёрный экран, золотые искры бегут по проволочному 3D-узлу, огромный серифный заголовок Digital Alchemist.

Franky Hung — портфолио с 3D-узлом на Three.js
Промпт
Recreate the website "Franky Hung - Digital Artisan" with high visual fidelity as a Tailwind CSS and Three.js site.

The result must match the supplied reference website, not a cleaned-up reinterpretation.

Preserve source quirks:
- The clock text includes a double hyphen fallback "--:--" before JavaScript hydration.
- The large hero headings use "mix-blend-overlay" which makes them interact with the underlying 3D canvas.
- The custom scrollbar is extremely thin (6px) with a dark neutral palette.

CRITICAL FIDELITY CONSTRAINTS
- The 3D canvas MUST be behind the text (z-index: 0) with "pointer-events: none" to ensure text remains selectable.
- Background color is strictly "#050505".
- Gold accent color is strictly "#D4AF37".
- Fonts must be imported exactly: Playfair Display (Serif Heading) and Merriweather (Serif Body).

TECH STACK / DEPENDENCIES
- CSS Framework: Tailwind CSS (via CDN: https://cdn.tailwindcss.com)
- Icon Library: Lucide Icons (via CDN: https://unpkg.com/lucide@latest)
- 3D Engine: Three.js r128 (via CDN: https://cdnjs.cloudflare.com/ajax/libs/three.js/r128/three.min.js)
- Fonts: Google Fonts (Playfair Display & Merriweather)

GLOBAL STYLE
- Body: `min-h-screen flex flex-col justify-between relative bg-[#050505] text-[#e5e5e5] overflow-x-hidden`.
- Custom Scrollbar: width `6px`, track `#0a0a0a`, thumb `#333`, hover thumb `#555`.
- Selection: `background: rgba(212, 175, 55, 0.3); color: white;`.
- Animations: `.fade-up` (opacity 0 to 1, translateY 20px to 0) over 1s.

ASSET MAP
- No external image assets. All visuals are generated via Three.js and Lucide icons.
- Icons: `arrow-down` (Hero CTA), `arrow-up-right` (Social Links).

VECTOR / ICON SHAPES
- Lucide `strokeWidth: 1.5`.
- Three.js Geometry: `TorusKnotGeometry(9, 2.5, 120, 16)`.
- Spark Geometry: `CircleGeometry(0.15, 3)` rotated -Math.PI / 2 on Y axis.

MEDIA BEHAVIOR
- Three.js Scene: FogExp2(0x050505, 0.002), PerspectiveCamera(75, aspect, 0.1, 1000) at Z=30.
- Torus Material: `MeshPhysicalMaterial` with `wireframe: true`, metalness 0.9, roughness 0.1, color `#888888`.
- Sparks: 100 instances of `InstancedMesh` using `AdditiveBlending`, opacity 0.8, color `#D4AF37`. Sparks must follow the tubular segments of the torus knot using interpolation between vertex points.
- Lighting: AmbientLight(0xffffff, 0.5), PointLight(`#D4AF37`, 2, 50) at (10,10,10), PointLight(`#C0C0C0`, 2, 50) at (-10,-10,10).

LAYER STACK / POSITIONING MAP
- Layer 0 (Background): `#canvas-container` (Absolute, inset 0, z-0, opacity 0 to 1 fade-in after 500ms).
- Layer 10 (Hero Text): `main` container (Flex-grow, z-10, pointer-events-none).
- Layer 20 (Footer): `footer` (Relative, z-20, border-t white/5).
- Layer 50 (Header): `header` (Relative, z-50, border-b white/5).

SECTION 1 - HEADER
- Layout: Grid (12 cols on md, 2 cols on mobile), max-w 1800px.
- Content:
  - Logo: "FRANKY HUNG" (Playfair, 2xl) + "Est. 2015" (italic, xs).
  - Status: "Current Status" + Pulse dot (#D4AF37) + "Accepting Commissions".
  - Location: "Location" + "Hong Kong" + `<span id="clock">`.
  - Nav: "01 Work", "02 Expertise", "03 Contact". Hover state: Gold text, reveal leading numbers with translateX(-2 to 0).

SECTION 2 - HERO
- Layout: Centered column, flex-grow.
- Heading: "Digital" (top) and "Alchemist" (bottom, italic). Playfair Display, text-9xl (lg), mix-blend-overlay, opacity 80%.
- CTA: Rounded-full button with backdrop-blur-sm. Hover: Slide-in white/5 background from left, arrow-down turns gold.

SECTION 3 - FOOTER
- Layout: 4 columns (md), 1 column (mobile).
- Col 1: Bio text (max-w-xs, leading-relaxed).
- Col 2: Tech Stack list (2-column grid).
- Col 3: Social links with `arrow-up-right` icons that appear on hover.
- Col 4: "© 2025" (Large Playfair) + "Arkon Digital Ltd." (All-caps tracking-wider).

GLOBAL ANIMATION / INTERACTION RULES
- Clock logic: Use `Intl.DateTimeFormat` for 'Asia/Hong_Kong' in HH:mm format, append " HKT". Update every 1000ms.
- Mouse Interaction: Three.js TorusKnot should rotate toward the mouse cursor using lerp (0.05 factor).
- Animation: Apply `.fade-up` with progressive delays (100ms, 200ms, 300ms) to header items, hero text, and CTA.

COMMON MISTAKES TO AVOID
- Do not make the Hero text clickable (it should be `pointer-events-none`).
- Do not forget the `mix-blend-overlay` on the hero titles; without it, the 3D interaction looks flat.
- Do not omit the `depthTest: false` on the spark material; they must be visible through the wireframe.

IMPLEMENTATION REQUIREMENTS
- Build the landing page exactly as described.
- Use specific Tailwind classes like `font-serif-heading` (Playfair) and `font-serif-body` (Merriweather).
- Ensure the Three.js window resize listener updates both camera aspect ratio and renderer size.

Промпт на английском — ИИ-инструменты понимают его лучше

Портфолио креативного разработчика. Вся картинка нарисована в Three.js: проволочный TorusKnot вращается и тянется за курсором, а 100 золотых искр бегут по его сегментам. Поверх крупный заголовок «Digital Alchemist» из Playfair Display с mix-blend-overlay, который смешивается с 3D. Шапка с живыми часами Гонконга, кнопка-пилюля с вытеснением фона слева и подвал на четыре колонки. Подойдёт разработчикам, дизайнерам и студиям, которым нужен один сильный визуал без фотографий.

Как получить такой же результат

  • Запускайте промпт в Claude. Внешних картинок нет: всё рисуют Three.js r128 (cdnjs) и иконки Lucide. Для Lucide берите jsdelivr, unpkg.com/lucide@latest бывает недоступен.
  • Искры должны быть видны сквозь каркас, поэтому в материале depthTest: false. Если искр не видно, проверьте именно эту строчку и режим AdditiveBlending.
  • Холст стоит под текстом (z-0, pointer-events: none), а заголовок получает mix-blend-overlay и 80% прозрачности: без этого картинка плоская. Не делайте заголовок кликабельным.
  • Часы считаются через Intl.DateTimeFormat для Asia/Hong_Kong, до первого тика показывают --:--. Так в оригинале.
  • Био, стек и подписи в промпте не заданы, замените на свои. На слабом GPU уменьшите число сегментов узла TorusKnotGeometry(9, 2.5, 120, 16).

Похожие