Asme — 영화 같은 다크 히어로 랜딩 페이지
MIT 라이선스
pulkitxm/claude-directory갤러리에서 가져온 랜딩 페이지입니다.
전체 화면, 단일 뷰포트(100vh, 스크롤 없음) 다크 히어로 랜딩 페이지로, Asme라는 가상의 노코드 AI 앱 플랫폼을 위한 것입니다. 전체 화면 배경은 Mux의 HLS 비디오 스트림이며, Safari에서는 기본적으로 재생되고 다른 브라우저에서는 hls.js MediaSource를 통해 재생됩니다. 유리질 알약 내비게이션 바(밝기 혼합 유리와 마스킹된 ::before 그라데이션 테두리)가 Instrument Serif 히어로 제목 위에 떠 있고, 애니메이션이 적용된 이메일 캡처 CTA — "Get early access"가 60ms/문자 타자기 효과로 양식으로 확장되고, 제출 시 ArrowRight가 Check으로 바뀌며, 4초 후 자동으로 재설정됩니다. 모든 요소는 Motion(Framer Motion)을 사용하여 로드 시 애니메이션으로 나타납니다.
워크플로우
example.html을 사용자의 작업 공간에 작업 파일로 복제합니다.- 자리 표시자 콘텐츠를 사용자의 실제 브랜드 이름, 헤드라인, 본문, 숫자 및 이미지로 바꿉니다. 자산을 교체할 때 기존 이미지 크기를 유지합니다.
- 디자인 시스템을 유지합니다. 아래 빌드 사양의 팔레트, 글꼴 체계, 간격 리듬 및 모션은 정체성입니다 — 글꼴을 대체하거나, 팔레트 색상을 변경하거나, 장식 요소를 제거하지 마십시오.
- 다른 템플릿에서 레이아웃을 가져오지 말고 섹션을 복제하여 확장합니다. 섹션이 누락된 경우 이 템플릿의 고유한 설계 어휘로 처음부터 디자인합니다.
- 모션을 접근 가능하게 유지합니다. 빌드 사양에서 요구하는 대로 모든 애니메이션은
prefers-reduced-motion뒤에 있어야 합니다.
출력 계약
<artifact> 태그 사이에 내보냅니다:
<artifact identifier="asme-hero-landing" type="text/html" title="Asme — 영화 같은 다크 히어로 랜딩 페이지">
<!doctype html>
<html>...</html>
</artifact>
빌드 사양
이 디자인을 생성한 업스트림 프롬프트를 그대로 가져왔습니다.
Asme — 영화 같은 다크 히어로 랜딩 페이지
개요
"Asme"를 위한 전체 화면, 다크, 단일 화면(100vh, 스크롤 없음) 히어로 랜딩 페이지를 빌드합니다. 페이지는 검은색 배경에 전체 화면 반복 배경 비디오, 유리 효과 내비게이션 바, 중앙에 배치된 애니메이션 이메일 캡처 CTA가 있는 히어로 영역으로 구성됩니다. 헤드라인은 우아한 세리프 디스플레이 글꼴을 사용하며, 대부분의 요소는 Motion을 사용하여 로드 시 애니메이션으로 나타납니다.
기술 스택
- 프레임워크: React 19 (
react^19.2.7,react-dom^19.2.7) with Vite (vite^8.0.16) via@vitejs/plugin-react^6.0.2. - 스타일링: Tailwind CSS v4 (
tailwindcss^4.3.0)는@tailwindcss/vite^4.3.0를 통해 통합됩니다(@import "tailwindcss";+@theme접근 방식,tailwind.config.js없음). - 애니메이션: Motion (Framer Motion)
motion^12.40.0,motion/react에서 가져옴(motion,AnimatePresence). - 아이콘: Lucide (
lucide-react^1.17.0) —Globe,ArrowRight,Check. - 비디오: HLS.js (
hls.js^1.6.16)를 통한 HLS 재생, Safari의 기본 HLS 폴백 지원. - 글꼴: Inter (기본 산세리프) 및 Instrument Serif (히어로 제목), Google Fonts에서 로드.
- 주요 기술: 마스킹된 그라데이션 테두리가 있는 유리 효과, 그라데이션 클리핑된 텍스트, 타자기 자리 표시자 효과, 버튼과 이메일 양식 간의
AnimatePresence상태 전환.
전역 설정
엔트리 HTML (index.html)
-
<html lang="en">,<meta charset="UTF-8" />,<meta name="viewport" content="width=device-width, initial-scale=1.0" />. -
<title>:Asme — 컴퓨터로 생각하고 창조하는 새로운 방법 -
<meta name="description" content="몇 분 만에 노코드 AI 앱을 빌드하세요. Asme에 얼리 액세스하세요." /> -
파비콘은 흰색 지구 아이콘의 인라인 SVG 데이터 URI입니다:
<link rel="icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20'/%3E%3Cpath d='M2 12h20'/%3E%3C/svg%3E" /> -
바디는
<div id="root"></div>및<script type="module" src="/src/main.jsx"></script>를 포함합니다.
React 엔트리 (src/main.jsx)
import { StrictMode } from "react";
import { createRoot } from "react-dom/client";
import "./index.css";
import App from "./App.jsx";
createRoot(document.getElementById("root")).render(
<StrictMode>
<App />
</StrictMode>,
);
스타일 (src/index.css)
가져오기 순서: 먼저 두 개의 Google Fonts URL, 그 다음 Tailwind, 마지막으로 테마/기본 규칙입니다.
-
글꼴 (Google Fonts):
- Inter, 두께 300, 400, 500, 600 — 기본 산세리프 글꼴.
- Instrument Serif, 일반 및 이탤릭 — 히어로 제목에 사용.
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap"); @import url("https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&display=swap"); @import "tailwindcss"; -
테마:
@theme { --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif; } -
루트 변수 및 바디:
:root { --background: #000000; --foreground: #ffffff; } body { background-color: var(--background); color: var(--foreground); font-family: var(--font-sans); -webkit-font-smoothing: antialiased; letter-spacing: -0.01em; } -
.liquid-glass—::before를 통해 마스킹된 그라데이션 테두리가 있는 유리 효과 표면:.liquid-glass { background: rgba(255, 255, 255, 0.01); background-blend-mode: luminosity; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); border: none; box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1); position: relative; overflow: hidden; } .liquid-glass::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.4px; background: linear-gradient( 180deg, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.15) 20%, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 0) 60%, rgba(255, 255, 255, 0.15) 80%, rgba(255, 255, 255, 0.45) 100% ); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); mask-composite: exclude; pointer-events: none; } -
.glass-pill— 알약 모양의 유리 표면 (완전성을 위해 정의됨):.glass-pill { background: rgba(255, 255, 255, 0.04); -webkit-backdrop-filter: blur(16px) saturate(180%); backdrop-filter: blur(16px) saturate(180%); border-radius: 9999px; box-shadow: none !important; }
앱 루트 레이아웃 (src/App.jsx)
<main>클래스:relative bg-black h-screen w-screen flex flex-col overflow-hidden selection:bg-white selection:text-black shrink-0.- 텍스트 선택은 흰색 배경에 검은색 텍스트로 스타일링됩니다 (
selection:bg-white selection:text-black). - 렌더링 순서:
BackgroundVideo,Navbar,Hero.
import BackgroundVideo from "./components/BackgroundVideo.jsx";
import Navbar from "./components/Navbar.jsx";
import Hero from "./components/Hero.jsx";
export default function App() {
return (
<main className="relative bg-black h-screen w-screen flex flex-col overflow-hidden selection:bg-white selection:text-black shrink-0">
<BackgroundVideo />
<Navbar />
<Hero />
</main>
);
}
배경 비디오 (src/components/BackgroundVideo.jsx)
- 전체 부모를 덮는 절대 위치
<div>를 렌더링합니다:absolute inset-0 overflow-hidden pointer-events-none. autoPlay,muted,loop,playsInline속성,w-full h-full object-cover opacity-100클래스 및ref가 있는<video>요소를 포함합니다.- 비디오 소스 URL (Mux에서 호스팅되는 HLS 스트림 — 이는 CloudFront URL이 아닌 Mux
.m3u8스트림입니다):https://stream.mux.com/kimF2ha9zLrX64H00UgLGPflCzNtl1T0215MlAmeOztv8.m3u8 - HLS.js를 사용한 재생 로직:
useEffect내에서, 브라우저가 기본적으로 HLS를 지원하는 경우 (video.canPlayType("application/vnd.apple.mpegurl")),video.src를 직접 설정합니다. 그렇지 않고Hls.isSupported()이면,new Hls()를 인스턴스화하고,loadSource를 호출한 다음attachMedia를 호출하고,hls.destroy()로 정리합니다..m3u8형식은 비-Safari 브라우저의 경우 HLS.js가 필요합니다.
import { useEffect, useRef } from "react";
import Hls from "hls.js";
const VIDEO_SRC =
"https://stream.mux.com/kimF2ha9zLrX64H00UgLGPflCzNtl1T0215MlAmeOztv8.m3u8";
export default function BackgroundVideo() {
const videoRef = useRef(null);
useEffect(() => {
const video = videoRef.current;
if (!video) return undefined;
if (video.canPlayType("application/vnd.apple.mpegurl")) {
video.src = VIDEO_SRC;
return undefined;
}
if (Hls.isSupported()) {
const hls = new Hls();
hls.loadSource(VIDEO_SRC);
hls.attachMedia(video);
return () => hls.destroy();
}
return undefined;
}, []);
return (
<div className="absolute inset-0 overflow-hidden pointer-events-none">
<video
ref={videoRef}
autoPlay
muted
loop
playsInline
className="w-full h-full object-cover opacity-100"
/>
</div>
);
}
내비게이션 바 (src/components/Navbar.jsx)
motion.nav로 애니메이션:initial={{ y: -20, opacity: 0 }},animate={{ y: 0, opacity: 1 }}.- 외부
motion.nav클래스:relative z-20 px-6 py-6 w-full. - 내부 컨테이너:
liquid-glass rounded-full px-6 py-3 flex items-center justify-between max-w-5xl mx-auto. - 왼쪽 (
flex items-center gap-8):- 로고: Lucide의
Globe아이콘 (w-6 h-6 text-white) + 브랜드 텍스트 "Asme" (text-white font-semibold text-lg),flex items-center gap-2래퍼 안에. - 내비게이션 링크: "Features", "Pricing", "About" —
NAV_LINKS배열로 정의되고 매핑됩니다. 모바일에서는 숨겨짐 (hidden md:flex items-center gap-8 text-white/80 text-sm font-medium). 각<a>는href={#${link.toLowerCase()}}및hover:text-white transition-colors duration-300클래스를 사용합니다.
- 로고: Lucide의
- 오른쪽 (
flex items-center gap-4):- "Sign Up" 일반 텍스트 버튼:
text-white hover:text-white/80 transition-colors text-sm font-medium cursor-pointer. - "Login" 유리 효과 버튼:
liquid-glass rounded-full px-6 py-2 text-sm font-medium text-white hover:opacity-90 transition-opacity cursor-pointer.
- "Sign Up" 일반 텍스트 버튼:
import { motion } from "motion/react";
import { Globe } from "lucide-react";
const NAV_LINKS = ["Features", "Pricing", "About"];
export default function Navbar() {
return (
<motion.nav
initial={{ y: -20, opacity: 0 }}
animate={{ y: 0, opacity: 1 }}
className="relative z-20 px-6 py-6 w-full"
>
<div className="liquid-glass rounded-full px-6 py-3 flex items-center justify-between max-w-5xl mx-auto">
<div className="flex items-center gap-8">
<div className="flex items-center gap-2">
<Globe className="w-6 h-6 text-white" />
<span className="text-white font-semibold text-lg">Asme</span>
</div>
<div className="hidden md:flex items-center gap-8 text-white/80 text-sm font-medium">
{NAV_LINKS.map((link) => (
<a
key={link}
href={`#${link.toLowerCase()}`}
className="hover:text-white transition-colors duration-300"
>
{link}
</a>
))}
</div>
</div>
<div className="flex items-center gap-4">
<button
type="button"
className="text-white hover:text-white/80 transition-colors text-sm font-medium cursor-pointer"
>
Sign Up
</button>
<button
type="button"
className="liquid-glass rounded-full px-6 py-2 text-sm font-medium text-white hover:opacity-90 transition-opacity cursor-pointer"
>
Login
</button>
</div>
</div>
</motion.nav>
);
}
히어로 (src/components/Hero.jsx)
레이아웃
<section>withrelative flex-1 flex flex-col items-center justify-center px-6.- 콘텐츠 래퍼:
relative z-10 text-center max-w-5xl mx-auto flex flex-col items-center justify-center w-full gap-12.
태그라인 (motion.p)
- 텍스트: "Build a no-code AI app in minutes".
- 클래스:
text-white/80 text-[10px] md:text-[11px] font-medium tracking-[0.2em] uppercase mb-4. - 애니메이션:
initial={{ opacity: 0, y: 10 }},animate={{ opacity: 1, y: 0 }},transition={{ delay: 0.1 }}.
제목 (motion.h1)
- 텍스트: "A new way to think and create with computers", "create" 뒤에
<br className="hidden md:block" />가 삽입됨 (즉,A new way to think and create{" "}다음<br />, 그리고with computers). - 인라인 스타일로 글꼴 설정:
style={{ fontFamily: "'Instrument Serif', serif" }}. - 클래스:
text-4xl md:text-[64px] font-medium tracking-[-0.01em] leading-[1.1] mb-6 bg-gradient-to-b from-white via-white/95 to-white/70 bg-clip-text text-transparent max-w-4xl. - 애니메이션:
initial={{ opacity: 0, y: 20 }},animate={{ opacity: 1, y: 0 }},transition={{ duration: 1, ease: [0.16, 1, 0.3, 1] }}.
CTA 영역 (motion.div)
-
래퍼 클래스:
min-h-[50px] mt-2 w-full flex items-center justify-center. -
애니메이션:
initial={{ opacity: 0, y: 10 }},animate={{ opacity: 1, y: 0 }},transition={{ delay: 0.4 }}. -
AnimatePresence mode="wait"를 사용하여 두 상태 간 전환. 두 상태 모두initial={{ opacity: 0, scale: 0.95 }},animate={{ opacity: 1, scale: 1 }},exit={{ opacity: 0, scale: 0.95 }},transition={{ duration: 0.2 }}를 사용합니다. -
버튼 상태 (
motion.button,key="cta-button"): 텍스트 "Get early access". 클래스 `px-10 py-3 text-[14px] font-medium border border-white/10 rounded-full h
…
[truncated for translation]