Velorah — 시네마틱 히어로 랜딩 섹션
MIT 라이선스
pulkitxm/claude-directory갤러리에서 가져온 히어로 섹션.
가상의 크리에이티브 브랜드 Velorah를 위한 시네마틱 싱글 페이지 히어로 섹션입니다. 전체 화면 루핑 배경 비디오, 커스텀 .liquid-glass 글래스모피즘 효과로 빌드된 액체 유리 네비게이션 바와 CTA 버튼, 딥 네이비 테마 위의 Instrument Serif 디스플레이 타이포그래피를 특징으로 합니다. 지연 시간이 있는 CSS 키프레임 페이드 앤 라이즈 엔트리 애니메이션이 정교한 로드 시 리빌을 만들어, 크리에이티브 에이전시, 포트폴리오 사이트, 에디토리얼 랜딩 페이지에 매력적인 템플릿을 제공합니다.
워크플로우
- 사용자 워크스페이스에
example.html을 복제하여 작업 파일로 사용합니다. - 사용자의 실제 브랜드명, 헤드라인, 본문 카피, 숫자, 이미지로 플레이스홀더 콘텐츠를 교체합니다. 자산을 교체할 때는 기존 이미지 크기와 일치시킵니다.
- 디자인 시스템을 유지합니다. 아래 빌드 사양의 팔레트, 타이포그래피 스케일, 간격 리듬, 모션은 정체성입니다 — 폰트를 대체하거나, 팔레트 색상을 변경하거나, 장식 요소를 제거하지 마십시오.
- 섹션을 복제하여 확장하며, 다른 템플릿의 레이아웃을 가져오지 마십시오. 섹션이 누락된 경우, 이 템플릿의 고유한 어휘로 처음부터 디자인하십시오.
- 모션을 접근 가능하게 유지합니다. 모든 애니메이션은 빌드 사양에 따라
prefers-reduced-motion뒤에 있어야 합니다.
출력 계약
<artifact> 태그 사이에 내보냅니다:
<artifact identifier="velorah-hero-landing" type="text/html" title="Velorah — 시네마틱 히어로 랜딩 섹션">
<!doctype html>
<html>...</html>
</artifact>
빌드 사양
이 디자인을 생성한 상위 프롬프트, 그대로.
Velorah — 시네마틱 히어로 섹션
개요
전체 화면 루핑 배경 비디오, 글래스모픽("액체 유리") 네비게이션 바 및 콜투액션 버튼, 시네마틱 디스플레이 타이포그래피가 있는 싱글 페이지 히어로 섹션을 구축합니다. 레이아웃은 미니멀하고 수직으로 중앙 정렬됩니다 — 비디오가 모든 시각적 깊이를 제공하며, 장식적인 블롭, 방사형 그라데이션, 오버레이는 없습니다.
기술 스택
- 프레임워크: React 18 (
react/react-dom^18.3.1) with TypeScript (^5.7.3) - 빌드 도구: Vite (
^5.4.14) via@vitejs/plugin-react(^4.3.4) - 스타일링: Tailwind CSS (
^3.4.17) withtailwindcss-animate(^1.0.7),autoprefixer(^10.4.20),postcss(^8.5.1) - UI 컴포넌트: shadcn/ui (
default스타일,neutral기본 색상, CSS 변수 활성화),class-variance-authority(^0.7.1),clsx(^2.1.1),tailwind-merge(^2.6.0)로 빌드 - 폰트: Instrument Serif (디스플레이) 및 Inter 400/500 weight (본문), Google Fonts에서
- 주요 기술: 전체 화면 자동 재생 배경 비디오, 커스텀
.liquid-glass글래스모피즘 효과 (백드롭 블러 + 그라데이션 테두리 마스크), 지연 시간이 있는 CSS 키프레임 페이드 앤 라이즈 엔트리 애니메이션
전역 설정
HTML (index.html)
-
<html lang="en">,<meta charset="UTF-8" />, viewport 메타width=device-width, initial-scale=1.0. -
<meta name="theme-color" content="#002b42" /> -
메타 설명:
Velorah — tools for deep thinkers, bold creators, and quiet rebels. Digital spaces for sharp focus and inspired work. -
https://fonts.googleapis.com및https://fonts.gstatic.com에 사전 연결 (후자는crossorigin포함). -
스타일시트 링크를 통해 Google Fonts 로드:
<link href="https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Inter:wght@400;500&display=swap" rel="stylesheet" /> -
<title>Velorah — Where dreams rise through the silence.</title> -
본문에는
<div id="root"></div>및<script type="module" src="/src/main.tsx"></script>가 포함됩니다.
폰트
- CSS 변수:
--font-display: 'Instrument Serif', serif;및--font-body: 'Inter', sans-serif;. - 본문은
font-family: var(--font-body);을 사용합니다. - 제목은 인라인 스타일
fontFamily: "'Instrument Serif', serif"를 사용합니다 (displayFont상수로 한 번 정의되고 재사용됨). - Tailwind
fontFamily확장은display: "var(--font-display)"및body: "var(--font-body)"에 매핑됩니다.
진입점 (src/main.tsx)
import { StrictMode } from "react"
import { createRoot } from "react-dom/client"
import App from "./App"
import "./index.css"
createRoot(document.getElementById("root")!).render(
<StrictMode>
<App />
</StrictMode>
)
Vite (vite.config.ts)
@vitejs/plugin-react 및 ./src를 가리키는 @ 별칭을 사용합니다:
import path from "node:path"
import react from "@vitejs/plugin-react"
import { defineConfig } from "vite"
export default defineConfig({
plugins: [react()],
resolve: {
alias: {
"@": path.resolve(import.meta.dirname, "./src"),
},
},
})
PostCSS (postcss.config.js)
export default {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
}
색상 팔레트
:root의 CSS 변수에 HSL 채널 값으로 정의된 다크 테마 (Tailwind config에서 hsl(var(--token))을 통해 사용):
--background: 201 100% 13%(딥 네이비 블루)--foreground: 0 0% 100%(화이트)--muted-foreground: 240 4% 66%(음영 처리된 회색)--primary: 0 0% 100%,--primary-foreground: 0 0% 4%--secondary: 0 0% 10%,--secondary-foreground: 0 0% 100%--muted: 0 0% 10%--accent: 0 0% 10%,--accent-foreground: 0 0% 100%--border: 0 0% 18%,--input: 0 0% 18%--ring: 0 0% 100%--radius: 0.5rem
베이스 레이어 규칙:
*은@apply border-border;을 얻습니다.body은@apply bg-background text-foreground antialiased;에font-family: var(--font-body);를 더해 얻습니다.::selection은background: hsl(var(--foreground) / 0.92);및color: hsl(var(--background));을 사용합니다.
Tailwind 설정 (tailwind.config.ts)
darkMode: ["class"],content: ["./index.html", "./src/**/*.{ts,tsx}"],plugins: [animate](tailwindcss-animate에서).theme.extend.colors는 각 토큰을hsl(var(--token))에 매핑하며,primary,secondary,muted,accent는 각각DEFAULT와foreground를 노출합니다.theme.extend.borderRadius:lg: "var(--radius)",md: "calc(var(--radius) - 2px)",sm: "calc(var(--radius) - 4px)".
레이아웃 (src/App.tsx)
루트 컨테이너: relative flex min-h-screen flex-col overflow-hidden bg-background.
비디오 배경
루트 컨테이너 내부에 먼저 배치되는 전체 화면 <video> 요소:
- 클래스:
absolute inset-0 z-0 h-full w-full object-cover. - 속성:
autoPlay,loop,muted,playsInline, 접근성을 위한aria-hidden="true"및tabIndex={-1}. - 소스 (
VIDEO_SRC상수), 로컬 자산으로 제공됨:/assets/hf_20260314_131748_f2ca2a28-fed7-44c8-b9a9-bd9acdd5ec31.mp4.
참고: 자산은
public/assets/아래에 로컬로 복제됩니다. 원래 CloudFront URL (https://d8j0ntlcm91z4.cloudfront.net/user_38xzzbokvigwjottwixh07lwa1p/hf_20260314_131748_f2ca2a28-fed7-44c8-b9a9-bd9acdd5ec31.mp4)에서 왔습니다. 재빌드는 소스에 사용된 로컬/assets/...경로를 참조해야 합니다. 호스트/스킴은 여기서 소문자로 표기되며, 경로 세그먼트는 소스 파일 이름에서 그대로 유지됩니다.
네비게이션 바 (<header>)
- 컨테이너:
relative z-10 mx-auto flex w-full max-w-7xl flex-row items-center justify-between px-8 py-6. - 로고:
<a href="/">withVelorah®여기서®는<sup className="text-xs">®</sup>입니다. 클래스text-3xl tracking-tight text-foreground,displayFont(Instrument Serif)로 스타일링,aria-label="Velorah home". - 네비 링크:
<nav className="hidden items-center gap-9 md:flex" aria-label="Primary">(모바일에서 숨김,md에서 표시).- 첫 번째 링크 Home:
<a href="/">withtext-sm text-foreground transition-colors및aria-current="page"(활성 상태). NAV_LINKS = ["Studio", "About", "Journal", "Reach Us"]배열의 나머지 링크, 각각<a>로 렌더링되며href={#${label.toLowerCase().replace(/\s+/g, "-")}}및 클래스text-sm text-muted-foreground transition-colors hover:text-foreground.
- 첫 번째 링크 Home:
- CTA 버튼:
variant="glass"및size="pill"의 shadcnButton, 레이블Begin Journey, 추가 클래스px-6 py-2.5 text-sm text-foreground hover:scale-[1.03].
히어로 (<main>)
- 컨테이너:
relative z-10 flex flex-1 flex-col items-center justify-center px-6 pb-40 pt-32 text-center py-[90px]. - 제목 (
<h1>):- 클래스:
animate-fade-rise max-w-7xl text-5xl font-normal leading-[0.95] tracking-[-2.46px] sm:text-7xl sm:leading-[0.95] md:text-8xl md:leading-[0.95],displayFont(Instrument Serif)로 스타일링. - 카피:
Where dreams rise through the silence.— 여기서dreams및through the silence.단어는 각각<em className="not-italic text-muted-foreground">로 감싸져 색상 대비를 제공합니다 (직립으로 렌더링, 음영 처리된 회색).
- 클래스:
- 서브텍스트 (
<p>):- 클래스:
animate-fade-rise-delay mt-8 max-w-2xl text-base leading-relaxed text-muted-foreground sm:text-lg. - 카피:
We're designing tools for deep thinkers, bold creators, and quiet rebels. Amid the chaos, we build digital spaces for sharp focus and inspired work.("We're"의 아포스트로피에’엔티티 사용).
- 클래스:
- CTA 버튼:
variant="glass"및size="pill"의 shadcnButton, 레이블Begin Journey, 추가 클래스animate-fade-rise-delay-2 mt-12 cursor-pointer px-14 py-5 text-base text-foreground hover:scale-[1.03].
앱 상수
const VIDEO_SRC =
"/assets/hf_20260314_131748_f2ca2a28-fed7-44c8-b9a9-bd9acdd5ec31.mp4"
const NAV_LINKS = ["Studio", "About", "Journal", "Reach Us"]
const displayFont = { fontFamily: "'Instrument Serif', serif" }
버튼 컴포넌트 (src/components/ui/button.tsx)
class-variance-authority로 빌드된 shadcn/ui Button, cn 헬퍼를 통해 ref 전달 및 클래스 병합.
- 베이스 클래스:
inline-flex items-center justify-center gap-2 whitespace-nowrap text-sm font-medium ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/60 focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:pointer-events-none disabled:opacity-50. - 변형:
default:bg-primary text-primary-foreground transition-colors hover:bg-primary/90secondary:bg-secondary text-secondary-foreground transition-colors hover:bg-secondary/80ghost:transition-colors hover:bg-accent hover:text-accent-foregroundglass:liquid-glass text-foreground transition-transform duration-300 ease-out will-change-transform
- 크기:
default:h-10 rounded-md px-4 py-2sm:h-9 rounded-md px-3lg:h-11 rounded-md px-8pill:rounded-full
- 기본 변형:
variant: "default",size: "default".
import * as React from "react"
import { cva, type VariantProps } from "class-variance-authority"
import { cn } from "@/lib/utils"
const buttonVariants = cva(
"inline-flex items-center justify-center gap-2 whitespace-nowrap text-sm font-medium ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/60 focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:pointer-events-none disabled:opacity-50",
{
variants: {
variant: {
default:
"bg-primary text-primary-foreground transition-colors hover:bg-primary/90",
secondary:
"bg-secondary text-secondary-foreground transition-colors hover:bg-secondary/80",
ghost:
"transition-colors hover:bg-accent hover:text-accent-foreground",
glass:
"liquid-glass text-foreground transition-transform duration-300 ease-out will-change-transform",
},
size: {
default: "h-10 rounded-md px-4 py-2",
sm: "h-9 rounded-md px-3",
lg: "h-11 rounded-md px-8",
pill: "rounded-full",
},
},
defaultVariants: {
variant: "default",
size: "default",
},
}
)
cn 헬퍼 (src/lib/utils.ts)
import { clsx, type ClassValue } from "clsx"
import { twMerge } from "tailwind-merge"
export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs))
}
액체 유리 효과
커스텀 .liquid-glass 컴포넌트 클래스 (@layer components에서 정의됨)는 글래스모피즘 룩을 제공합니다: 광도 블렌드가 있는 거의 투명한 흰색 채우기, 4px 백드롭 블러, 인셋 하이라이트 그림자, 마스킹된 ::before 의사 요소를 통해 렌더링된 그라데이션 "테두리".
.liquid-glass {
background: rgba(255, 255, 255, 0.01);
background-blend-mode: luminosity;
backdrop-filter: blur(4px);
-webkit-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-composite: exclude;
pointer-events: none;
}
애니메이션
키프레임 기반 페이드 앤 라이즈 엔트리 애니메이션 (@layer utilities에서 정의됨), 각각 0.8s ease-out 실행, both 채우기 모드 및 지연 시간. prefers-reduced-motion: reduce에서 애니메이션이 비활성화됩니다.
@keyframes fade-rise {
from { opacity: 0; transform: translateY(24px); }
to { opacity: 1; transform: translateY(0); }
}
.animate-fade-rise { animation: fade-rise 0.8s ease-out both; }
.animate-fade-rise-delay { animation: fade-rise 0.8s ease-out 0.2s both; }
.animate-fade-rise-delay-2 { animation: fade-rise 0.8s ease-out 0.4s both; }
@media (prefers-reduced-motion: reduce) {
.animate-fade-rise,
.animate-fade-rise-delay,
.animate-fade-rise-delay-2 {
animation: none;
}
}
적용: