Тёмный кофейный лендинг в «земляной» палитре: крупный заголовок, зерно на фоне, интерактивная карта и слайдер обжарки.
Промпт
Recreate the website "Island Roaster" with high visual fidelity as a Tailwind CSS and Vanilla JavaScript site. The result must match the supplied reference website, including its specific Maldivian specialty coffee branding and interactive brewing tools.
Preserve source quirks:
- The layout uses a unique `max-w-[1600px]` container with large `rounded-[2rem]` outer wrappers.
- Typography uses a strict combination of Oswald (Architectural Sans) and Playfair Display (Artisan Serif).
- Interactive elements like the roast slider and delivery checker are functionally local and require precise state management.
CRITICAL FIDELITY CONSTRAINTS
- No generic placeholders: use the exact Unsplash URLs provided.
- Maintain the dark "Coffee & Earth" palette: Background #1A1614, Primary Accent #D4A373, Text #E9EDC9.
- Animations must use the specific `.reveal` class pattern with `cubic-bezier(0.16, 1, 0.3, 1)` and staggered delays.
- Media must include specific filters: `mix-blend-lighten`, `sepia`, and `brightness` adjustments as noted.
TECH STACK / DEPENDENCIES
- Tailwind CSS (CDN)
- Iconify (solar icon set)
- Google Fonts (Oswald, Playfair Display)
- Vanilla JavaScript for scroll observers and state logic.
GLOBAL STYLE
- Body: `bg-[#1A1614] text-[#E9EDC9] font-playfair antialiased`.
- Custom Range Slider: Custom `-webkit-slider-thumb` styling in #D4A373 with a 15px glow.
- Scrollbar: Hidden via `.no-scrollbar` class.
ASSET MAP
- Hero Image: https://images.unsplash.com/photo-1559525839-b184a4d698c7?q=80&w=2670&auto=format&fit=crop
- Steam Overlay: https://images.unsplash.com/photo-1517487881594-2787fef5ebf7?q=80&w=2000&auto=format&fit=crop
- Burlap Texture: https://images.unsplash.com/photo-1605556209503-4f964a78103c?q=80&w=2000&auto=format&fit=crop
- Map Abstract: https://images.unsplash.com/photo-1524661135-423995f22d0b?q=80&w=2000&auto=format&fit=crop
- Roasting Image: https://images.unsplash.com/photo-1559525839-b184a4d698c7?q=80&w=1000&auto=format&fit=crop
LAYER STACK / POSITIONING MAP
- Main Wrapper: `max-w-[1600px] mx-auto p-2 sm:p-4 lg:p-6`.
- Hero Header: `relative min-h-[90vh] rounded-[2rem] overflow-hidden`.
- Hero Text (Left): `relative z-10 w-full lg:w-1/2`.
- Hero Image (Right): `absolute inset-0 z-10` gradient overlay + `z-0` image with `scale-105`.
- Steam Layer: `absolute inset-0 mix-blend-screen animate-pulse`.
SECTION 1 - HERO & NAV
- Nav: Floating style, backdrop-blur-md, links in `font-oswald`.
- CTA Button: Rounded-full, #D4A373 bg, transitions to #E9EDC9 on hover.
- Copy: "The Spirit of the Island" (Playfair Italic) over "A Commitment to Roasting Excellence..." (Oswald Bold).
SECTION 2 - THE MALÉ ORIGINS
- Layout: 12-column grid. Column 1-5 (Text), Column 7-12 (Boxed secondary text with `backdrop-blur-sm`).
- Background: Burlap texture at 5% opacity, `mix-blend-overlay`.
SECTION 3 - PLEDGE CARDS
- Grid: 3-column layout.
- Styling: `bg-[#2F2A28]/30`, border `[#D4A373]/20`, hover state increases background opacity to 60%.
- Icons: 28px Solar icons inside 16x16 rounded circles.
SECTION 4 - CURATED ROASTS (BESTSELLER)
- Card: Wide horizontal layout, absolute 3xl-blur glow in top right.
- Image: Right side, `sepia-[0.1]` and `brightness-90` with scale-105 on group hover.
SECTION 5 - INTERACTIVE JOURNEY
- Origin Map: Interactive gold points with `animate-ping`. Clicking points updates the floating info panel (`#origin-info`) with data for Ethiopia/Colombia.
- Roast Chamber: Range slider that updates `#roast-image` CSS filters (brightness/sepia/contrast) and tasting note text.
- Brewing Tabs: Tabbed interface for Pour Over, French Press, Cold Brew, Espresso. Content cards show Grind Size, Ratio, and Timing.
- Delivery: Select dropdown with Check button that triggers a visibility transition for `#deliveryResult`.
SECTION 6 - FOOTER
- Border-t `[#2F2A28]/40`. Layout shifts from md:flex-row to centered column on mobile.
GLOBAL ANIMATION / INTERACTION RULES
- Intersection Observer: Adds `.active` class to `.reveal` elements when 15% visible.
- Tab Logic: Uses `dataset.target` to toggle `.hidden` vs `.grid` on brew panels.
- Slider: Maps values 0-3 to an array of objects containing title, description, and CSS filter strings.
COMMON MISTAKES TO AVOID
- Do not use standard sans-serif; stick to Oswald for all uppercase labels/headings.
- Do not forget the `mix-blend-lighten` on the hero image; it is essential for the dark theme integration.
- Do not use sharp corners; all major containers use `rounded-[2rem]` or `rounded-3xl`.
- Ensure the `.reveal` transition is exactly `1s cubic-bezier(0.16, 1, 0.3, 1)`.
Промпт на английском — ИИ-инструменты понимают его лучше
Лендинг небольшой обжарки специализированного кофе с Мальдив. Всё в закруглённой рамке цвета тёмной обжарки: плавающая шапка, курсивная фраза «The Spirit of the Island», заголовок Oswald в верхнем регистре и фото зерна с эффектом смешивания слоёв. Дальше карточки обязательств, широкая карточка бестселлера со свечением, а главное интерактив: точки на карте происхождения, ползунок степени обжарки, который меняет цвет фото, и вкладки способов заваривания. Подойдёт кофейням, чайным и любым премиальным продуктам.
Как получить такой же результат
Запускайте промпт в Claude и просите один index.html: Tailwind и Iconify по CDN, весь интерактив на обычном JavaScript.
Все пять фото в промпте даны ссылками на Unsplash и открываются. Фото героя встречается дважды (шапка и «Roasting Image»), для своего магазина замените.
Первый экран у нас вышел темнее, чем на превью: градиент слева закрывает почти половину фото. Если хотите ярче, уменьшите via-[#1A1614]/80 в градиенте поверх картинки.
Данные карты (Эфиопия, Колумбия), описания обжарки и параметры заваривания промпт описывает лишь в общих чертах. Claude придумает их, вам нужно вписать ваши сорта.
В первой сборке Claude обращался к элементам по id с дефисом (r-t) как к переменным и получил ошибку. Если слайдер не двигается, попросите «используй document.getElementById».