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

Сайты целикомТёмныйГрадиентыСтеклоТипографикаБесплатно

Power AI — тёмный сайт ИИ-сервиса с видеофоном

Огромный заголовок Power AI с градиентом на «AI» поверх тёмного видео, стеклянная кнопка и бегущая лента брендов.

Power AI — тёмный сайт ИИ-сервиса с видеофоном
Промпт
Recreate the website "Power AI SaaS Landing Page Template" with high visual fidelity as a React/Vite/Tailwind site. The result must match the supplied reference codebase exactly, including its specific layer stacking and video handling logic.

### CRITICAL FIDELITY CONSTRAINTS
- Preservation of the specific JS-driven video fade-in/out logic is mandatory. Do not use standard CSS transitions for the video opacity.
- High-precision typography: H1 uses "General Sans" with specific letter-spacing (-0.024em) and massive sizing (220px).
- Exact CSS variables for colors: background `hsl(260 87% 3%)`, foreground `hsl(40 6% 95%)`, and hero-sub `hsl(40 6% 82%)`.

### TECH STACK / DEPENDENCIES
- React 18.3.1, Vite, Tailwind CSS.
- `iconify-icon` ^2.1.0 (for Iconify web components).
- `clsx` ^2.1.1.
- Fonts: General Sans (Fontshare), Geist Sans (Google Fonts).

### GLOBAL STYLE
- **Typography**: `font-family: 'Geist Sans', sans-serif` for body. H1 uses `'General Sans', sans-serif`.
- **Background**: Body background-color is fixed to `hsl(var(--background))`.
- **Liquid Glass**: Custom utility for borders using `-webkit-mask-composite: xor`.
  - `background: rgba(255, 255, 255, 0.01)`
  - `backdrop-filter: blur(4px)`
  - Border gradient with 1.4px padding and specific opacity steps (0.45 to 0).

### ASSET MAP
- **Hero Video**: `https://d8j0ntlcm91z4.cloudfront.net/user_38xzZboKViGWJOttwIXH07lWA1P/hf_20260328_065045_c44942da-53c6-4804-b734-f9e07fc22e08.mp4`
- **Logo**: `src/assets/logo.png` (include a fallback logic with `solar:bolt-linear` icon).
- **Icons**: `solar:alt-arrow-down-linear`, `solar:bolt-linear`.

### MEDIA BEHAVIOR
- **Video Component**: Must use a `requestAnimationFrame` loop to calculate opacity based on `currentTime` vs `duration`.
  - Fade-in: 0 to 1 over the first 0.5s.
  - Fade-out: 1 to 0 over the last 0.5s.
  - `willChange: 'opacity'`, `transition: 'none'`.
  - On `ended`: reset opacity to 0, wait 100ms, then `currentTime = 0` and play again.

### LAYER STACK / POSITIONING MAP
1. **Background Layer (z-0)**: Fullscreen absolute container with the video component (`object-cover`).
2. **Occlusion Layer (z-0)**: Absolute centered div `984px x 527px`, `bg-gray-950`, `blur-[82px]`, `opacity-90`, `rounded-full`. Positioned `-translate-x-1/2 -translate-y-1/2`.
3. **Content Layer (z-10)**: Flex column `min-h-screen` containing Navbar, Main, and Marquee.

### COMPONENT / STATE CONTRACTS
- **Navbar**: Sticky-ready relative container with a 1px gradient divider (`from-transparent via-foreground/20 to-transparent`). Nav buttons have a specific `16px` icon height.
- **Marquee**: Uses a CSS keyframe `scroll` (0%: translateX(0%), 100%: translateX(-50%)).
  - Items: Vortex (V), Nimbus (N), Prysma (P), Cirrus (C), Kynder (K), Halcyn (H).
  - Masking: `[mask-image:linear-gradient(to_right,transparent,black_10%,black_90%,transparent)]`.
  - Interaction: `hover:[animation-play-state:paused]`.

### SECTION-SPECIFIC DETAILS

**Main Hero (SECTION 1)**
- **H1**: Text size `text-[120px]` (mobile) / `text-[220px]` (desktop).
- **Gradient Text**: "AI" spans a linear-gradient `to left, #6366f1, #a855f7, #fcd34d`.
- **CTA Button**: Class `hero-secondary-btn`. Padding `px-[29px] py-[24px]`.
  - Background: `rgba(255, 255, 255, 0.05)`.
  - Border: `1px solid rgba(255, 255, 255, 0.1)`.
  - Hover effect: `translate-y-[-1px]` and slightly increased background opacity.

**Marquee (SECTION 2)**
- Left label: "Relied on by brands across the globe" (text-sm, leading-snug, 50% opacity).
- Marquee items: Container gap `gap-16`. Icon boxes use `liquid-glass` class with `6x6` size.

### COMMON MISTAKES TO AVOID
- Do not use a simple `loop` attribute on the video; you must implement the 100ms delay and JS-driven fade to match the source.
- Do not forget the 1.4px gradient border on the `.liquid-glass` utility using the `::before` pseudo-element and `mask-composite`.
- Do not omit the `-40px` top margin on the main hero content which centers it vertically relative to the video focal point.

### IMPLEMENTATION REQUIREMENTS
- Build exactly as described.
- Use the provided Cloudfront URL for the video.
- Ensure the gradient on the text "AI" uses `bg-clip-text`.
- Maintain the `font-general` and `font-geist` family distinctions.

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

Лендинг ИИ-сервиса на одном экране. Фоновое видео плавно появляется и гаснет в начале и в конце ролика (это считает JavaScript, а не CSS), поверх него идёт заголовок на 220 пикселей из General Sans, где слово «AI» залито градиентом от индиго к золотому. Ниже стеклянная кнопка с тонкой градиентной рамкой и бегущая лента брендов с маской по краям. Подойдёт ИИ-стартапам, SaaS и любому продукту, которому нужен один сильный первый экран.

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

  • Запускайте промпт в Claude. Он просит React, Vite и Tailwind, но для проверки достаточно одного файла: допишите «собери в одном index.html, Tailwind и Iconify через CDN».
  • Видео берётся по ссылке из ASSET MAP, она рабочая (около 13 МБ, первые секунды экран тёмный). Чтобы браузер запустил ролик сам, видеоэлементу нужны muted, playsinline и autoplay: в промпте об этом нет, мы дописали.
  • Файл src/assets/logo.png в промпте не передан. Мы оставили запасной значок solar:bolt-linear, как и просит промпт; свой логотип положите на его место.
  • Тексты шапки, подзаголовка и кнопки промпт не задаёт, поэтому Claude придумывает их сам. Замените на свои, цвета лежат в CSS-переменных --background, --foreground, --hero-sub.
  • Шрифт General Sans подключается с Fontshare (api.fontshare.com), Geist с Google Fonts. Без интернета заголовок упадёт на запасной шрифт и сдвинется.

Похожие