Мятный лендинг учебного сервиса: огромный засечный заголовок, интерактивный граф из точек и плавающие карточки.
Промпт
Recreate the website "Sapling Education Landing Page Template" with high visual fidelity as a Tailwind CSS and Vanilla JavaScript site. The result must match the supplied reference exactly, maintaining its premium educational aesthetic and interactive graph systems.
Preserve source quirks:
- The site uses a specific color #E9EFED as a light-themed "minty" background instead of pure white.
- The sticky scroll "Step 01" remains active until 33% scroll progress of its container.
- Scramble text effect triggers with specific delays (100ms, 300ms, 500ms).
- Fixed year 2026 in footer.
CRITICAL FIDELITY CONSTRAINTS
- Background is #E9EFED throughout with a fixed .ambient-glow overlay.
- No standard scrollbar; use the custom 6px width scrollbar with #E9EFED track and 15% opacity thumb.
- Hero title must use 'Playfair Display' and contain the specific 'scramble' animation on mount.
- Modal transitions must include the scale[0.94] to scale[1.0] transform and 350ms duration.
TECH STACK / DEPENDENCIES
- CSS Framework: Tailwind CSS (CDN: https://cdn.tailwindcss.com)
- Icons: Lucide Icons (CDN: https://unpkg.com/lucide@latest)
- Fonts: Google Fonts (Inter: 300-600, JetBrains Mono: 400-600, Playfair Display: 400-700)
- Analytics: G-2M6V79H761 snippet (placeholder only)
GLOBAL STYLE
- Body: antialiased, font-inter, text-[#111827], bg-[#E9EFED], overflow-x-hidden.
- Selection: bg-[#1B6C42]/20, text-[#111827].
- Headings: .font-playfair.
- Mono: .font-mono (JetBrains Mono).
ASSET MAP
- Logo Icon: SVG path d="M12 22V12M12 12L5 5M12 12L19 5" (Stroke #1B6C42, width 2).
- Google Icon: Standard multi-path SVG provided in source modal step 1.
VECTOR / ICON SHAPES
- Use Lucide icon names: network, sparkles, file-plus-2, brain, calendar-clock, users, x, search, chevron-down, x-circle.
- Nav Logo: SVG ViewBox 0 0 24 24, stroke-linecap="round", stroke-linejoin="round".
MEDIA BEHAVIOR (HERO CANVAS)
- Implementation: 2D Context Canvas with a 3D projection logic.
- Colors: Purple #8A63D2, Blue #3B82F6, Orange #D97706, Teal #14B8A6, Gray #D1D5DB.
- Behavior: 130 nodes, connection distance 70px (scaled by focal length), rotation speed 0.0008, focal length 1000. Parallax offset tied to scrollY * 0.1.
LAYER STACK / POSITIONING MAP
- Layer 0 (Fixed): .ambient-glow (radial-gradient, z-index 0).
- Layer 1 (Background): #hero-canvas (absolute, inset-0, z-0).
- Layer 2 (Midground): #floating-cards-container (absolute, z-10, lg:block).
- Layer 3 (Foreground): #hero-content (relative, z-20).
- Layer 4 (Nav): #navbar (fixed, top-0, z-50, backdrop-blur-xl).
- Layer 5 (Overlay): #onboarding-modal (fixed, z-100).
SECTION 1 - NAVBAR
- Class: fixed top-0 w-full z-50 bg-[#E9EFED]/80 backdrop-blur-xl border-b border-gray-200 transition-all duration-800.
- Interaction: On scroll > 60px, transition to bg-white/90 and add shadow-sm.
- Content: Logo (Sapling) left, "Sign In" button (hidden on mobile), "Get Started" button with .btn-shimmer right.
SECTION 2 - HERO
- Layout: min-h-screen, centered flex.
- Background: Custom JS canvas (see Media Behavior).
- Floating Cards (Desktop only):
- Card 1: top 20%, left 15%, w-48. Features progress bar (55% mastered).
- Card 2: top 30%, right 15%, w-52. Features color-coded legend.
- Card 3: bottom 25%, left 10%, w-44. Features "Quick Quiz" and "Study Room" buttons.
- Headline: "Grow Your Knowledge" in Playfair Display. "Knowledge" has gradient text bg-gradient-to-r from-[#1B6C42] via-[#2D8F5C] to-[#1B6C42].
- Animation: Initial mount translates y-axis [25px] to [0] with specific delays [100ms, 300ms, 500ms, 700ms].
SECTION 3 - FEATURES
- Container: py-32, bg-[#E9EFED].
- Layout: 3-column grid (md:2-column, lg:3-column).
- Component: .spotlight-card. Requires JS to track --mouse-x and --mouse-y for radial-gradient hover effect. Icon containers use background opacities of specific accent colors (Green/10, Orange/10, etc.).
SECTION 4 - HOW IT WORKS (STICKY SCROLL)
- Container: h-[300vh] parent, h-screen sticky child.
- Background Layer: Large text "01", "02", "03" (font-mono, text-gray-900/[0.03]).
- Logic: Map scroll progress [0.0-0.33, 0.33-0.66, 0.66-1.0] to Step 1, 2, and 3 content visibility. Use translate-y-[60px] and opacity-0 for inactive steps.
SECTION 5 - ONBOARDING MODAL
- 3-Step Wizard:
- Step 1: Auth (Google button + Email input).
- Step 2: University search + Class year select (freshman-graduate).
- Step 3: Class adding system. Chips must animate scale-95 -> scale-100 on addition.
- Interaction: Use translateX transitions (30px) between steps.
GLOBAL ANIMATION / INTERACTION RULES
- Scramble Effect: Function using characters "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!<>-_\\/[]{}—=+*^?#_" that resolves to final string over 1000-1200ms.
- Floating Cards: JS loop using sin((time-delay)/dur) for vertical float + mouse position for subtle 3D rotation (rotateX/rotateY).
- Counter Stats: IntersectionObserver triggers a 1500ms count-up for numbers 10000, 500, 50, and 4.9.
COMMON MISTAKES TO AVOID
- Do not use standard grid gaps for the hero cards; they must be absolute positioned by percentages.
- Do not use a static image for the background; the JS canvas graph is mandatory for fidelity.
- Do not omit the backdrop-blur-sm on the modal overlay.
- Do not skip the .btn-shimmer effect (absolute inset-0 pseudo-element with 200% translateX transition).
Промпт на английском — ИИ-инструменты понимают его лучше
Светлый лендинг сервиса, где конспекты складываются в граф знаний. Фон #E9EFED, а на месте фотографии «живой» 3D-граф: 130 цветных узлов, соединённых тонкими линиями, медленно вращаются на холсте и слегка сдвигаются при прокрутке. Поверх лежит заголовок Playfair «Grow Your Knowledge» (слово «Knowledge» зелёное с градиентом, при загрузке буквы «собираются» из случайных символов) и три плавающие карточки: прогресс, легенда цветов, быстрые кнопки. Ниже карточки возможностей с подсветкой под курсором, залипающий блок «как это работает» из трёх шагов, счётчики и окно регистрации. Подойдёт образовательным сервисам, заметочным и исследовательским приложениям.
Как получить такой же результат
Запускайте промпт в Claude и просите один файл index.html: Tailwind и Lucide идут по CDN, картинки не нужны, всё главное рисуется кодом и холстом.
Граф на холсте обязателен: промпт прямо запрещает заменять его картинкой. Если фон остался пустым, проверьте ошибки в консоли: чаще всего ломается скрипт холста, а не вёрстка.
Иконки Lucide берём с unpkg (lucide@latest отвечает), но лучше закрепить версию, например lucide@0.460.0, чтобы результат не менялся.
Мастер регистрации из трёх шагов (почта, университет, добавление предметов) в промпте описан подробно. Мы собрали только окно с первым шагом, остальное просите следующей репликой.
Цифры в счётчиках (10000, 500, 50, 4.9), название и цвет #1B6C42 правьте в разметке и в :root/классах Tailwind.