Asme — 리퀴드 글라스 다크 랜딩 페이지
MIT 라이선스
pulkitxm/claude-directory갤러리에서 제공된 랜딩 페이지입니다.
픽셀 완벽한 다크 테마 싱글 페이지 마케팅 랜딩 사이트로, 가상 지식 인사이트 플랫폼 Asme를 위해 설계되었습니다. 특징적인 재사용 가능 .liquid-glass 표면 처리(광도 혼합 반투명 채움, 4px 배경 흐림, 내부 상단 하이라이트, 마스킹된 ::before 그라데이션 테두리)가 내비게이션 필, 이메일 캡처, 버튼, 카드, 아이콘 칩에 일관되게 적용됩니다. 전체 뷰포트 히어로 영역은 로컬에 포함된 .mp4 비디오를 기본 requestAnimationFrame 불투명도 크로스페이드(canplay 시 페이드 인, 0.55초 남았을 때 페이드 아웃, 100ms 간격 후 재시작)로 무한 반복 재생합니다. 네 개의 스크롤 트리거 섹션(About, Featured Video, Innovation × Vision(비디오 + 양쪽에서 슬라이딩하는 두 컬럼), Services(호버 시 확대되는 비디오가 있는 두 개의 글라스 카드))이 Framer Motion useInView로 애니메이션됩니다. Instrument Serif 디스플레이 서체가 순수한 검정 배경 위에 표현됩니다.
워크플로우
example.html을 사용자 작업 공간에 작업 파일로 복제합니다.- 플레이스홀더 콘텐츠를 사용자의 실제 브랜드 이름, 헤드라인, 본문 카피, 숫자, 이미지로 교체합니다. 에셋 교체 시 기존 이미지 크기를 맞춥니다.
- 디자인 시스템을 유지합니다. 아래 빌드 사양의 색상 팔레트, 서체 크기, 간격 리듬, 모션은 정체성입니다 — 글꼴을 대체하거나 팔레트 색상을 변경하거나 장식 요소를 제거하지 마십시오.
- 섹션을 복제하여 확장하며, 다른 템플릿의 레이아웃을 가져오지 마십시오. 섹션이 누락된 경우 이 템플릿의 고유 스타일로 처음부터 디자인하십시오.
- 모션을 접근성 있게 유지합니다. 빌드 사양에 따라 모든 애니메이션은
prefers-reduced-motion뒤에 있어야 합니다.
출력 계약
<artifact> 태그 사이에 출력합니다:
<artifact identifier="asme-liquid-glass-landing" type="text/html" title="Asme — 리퀴드 글라스 다크 랜딩 페이지">
<!doctype html>
<html>...</html>
</artifact>
빌드 사양
이 디자인을 생성한 상위 프롬프트를 그대로 옮깁니다.
Asme — 리퀴드 글라스 랜딩 페이지
개요
"Asme"를 위한 다크 테마 싱글 페이지 마케팅 랜딩 사이트를 구축합니다. 전체 뷰포트에 반복 재생되는 히어로 비디오와 모든 UI 요소에서 재사용되는 독특한 "리퀴드 글라스" 표면 처리(서리 낀 흐림 + 그라데이션 테두리)를 특징으로 합니다. 히어로 아래에는 네 개의 스크롤 시 나타나는 섹션(about, featured video, philosophy, services)이 있으며, 순수한 검정색 배경에 Instrument Serif 악센트가 적용됩니다.
기술 스택
- 프레임워크: React 18.3.1 with TypeScript 5.6.3, Vite 5.4.10으로 번들링 (
@vitejs/plugin-react4.3.3). - 스타일링: Tailwind CSS 3.4.14 with PostCSS 8.4.49 및 Autoprefixer 10.4.20.
- 애니메이션: Framer Motion 11.11.17 (
motion,useInView,MotionConfig). - 아이콘: Lucide React 0.460.0 (
ArrowRight,ArrowUpRight,Globe,Instagram,Twitter). - 글꼴: Instrument Serif (일반 + 이탤릭) Google Fonts를 통해 로드.
- 주목할 기술: 재사용 가능
.liquid-glass컴포넌트 클래스 (배경 흐림 + 마스킹된 그라데이션 테두리 (::before)), 히어로 비디오용 기본 JS /requestAnimationFrame크로스페이드 루프 (CSS 전환 없음),useInView스크롤 트리거 시작 애니메이션,/assets/에서 제공되는 로컬 포함.mp4에셋.
전역 설정
문서 (index.html)
<html lang="en" class="bg-black">및<body class="bg-black">.- 파비콘은 흰색 지구/원의 인라인 SVG 데이터 URI (
stroke='white',stroke-width='2'). <title>:Asme — Know it all.- 메타 설명:
Asme — Know it all. Stay updated with the latest news and insights. - 뷰포트 메타:
width=device-width, initial-scale=1.0. <div id="root"></div>에 마운트되고/src/main.tsx를 모듈로 로드합니다.
진입점 (src/main.tsx)
import React from 'react';
import ReactDOM from 'react-dom/client';
import { MotionConfig } from 'framer-motion';
import Index from './pages/Index';
import './index.css';
ReactDOM.createRoot(document.getElementById('root')!).render(
<React.StrictMode>
<MotionConfig reducedMotion="user">
<Index />
</MotionConfig>
</React.StrictMode>,
);
Tailwind 설정 (tailwind.config.js)
content:['./index.html', './src/**/*.{ts,tsx}'].theme.fontFamily를 확장하여 사용자 정의instrument패밀리를 추가하여font-instrument유틸리티가'Instrument Serif', serif에 매핑되도록 합니다:
/** @type {import('tailwindcss').Config} */
export default {
content: ['./index.html', './src/**/*.{ts,tsx}'],
theme: {
extend: {
fontFamily: {
instrument: ["'Instrument Serif'", 'serif'],
},
},
},
plugins: [],
};
전역 스타일 (src/index.css)
글꼴을 먼저 가져온 후 Tailwind 레이어, 기본 및 컴포넌트 레이어를 가져옵니다.
@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&display=swap');
@tailwind base;
@tailwind components;
@tailwind utilities;
@layer base {
html {
@apply bg-black;
}
body {
@apply bg-black text-white antialiased;
}
::selection {
background: rgba(255, 255, 255, 0.25);
color: #000;
}
:focus-visible {
outline: 1px solid rgba(255, 255, 255, 0.5);
outline-offset: 2px;
}
}
리퀴드 글라스 클래스 (src/index.css, @layer components 내부)
모든 글라스 요소에 사용되는 재사용 가능 .liquid-glass 클래스를 만듭니다. 거의 투명한 광도 혼합 배경과 4px 배경 흐림 및 내부 상단 하이라이트를 결합합니다. 마스킹된 ::before는 상단과 하단에서 가장 밝은 얇은(1.4px) 수직 그라데이션 테두리를 그립니다.
@layer components {
.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;
}
}
레이아웃 및 페이지 구조 (src/pages/Index.tsx)
페이지 루트는 <main className="bg-black">이며, 순서대로 히어로 <section>, <AboutSection />, <FeaturedVideoSection />, <PhilosophySection />, <ServicesSection />이 포함됩니다.
모듈 범위에서 정의된 상수:
HERO_VIDEO_URL = '/assets/hf_20260405_074625_a81f018a-956b-43fb-9aee-4d1508e30e6a.mp4'FADE_MS = 500FADE_OUT_LEAD_S = 0.55RESTART_DELAY_MS = 100NAV_LINKS = ['Features', 'Pricing', 'About']
에셋 참고: 다섯 개의 비디오 모두 로컬에 포함되어
/assets/에서 제공됩니다. 파일 이름은 CloudFront 업로드에서 비롯되었지만(예:hf_20260405_074625_a81f018a-956b-43fb-9aee-4d1508e30e6a.mp4), 앱은 외부 호스트가 아닌 상대 경로/assets/...를 참조합니다.
섹션 1 — 히어로 (전체 뷰포트)
컨테이너: <section className="min-h-screen overflow-hidden relative flex flex-col">.
배경 비디오
<video>withref={videoRef}, classesabsolute inset-0 w-full h-full object-cover object-bottom,src={HERO_VIDEO_URL}.- 속성:
muted,autoPlay,playsInline,preload="auto",aria-hidden="true",tabIndex={-1}. - 인라인 스타일
style={{ opacity: 0 }}— 완전히 투명하게 시작합니다.
비디오 페이드 로직 (CSS 전환 없이 refs를 통한 기본 JS)
useRef 핸들(videoRef, rafRef (활성 requestAnimationFrame id), restartTimerRef (재시작 setTimeout id), hasStartedRef, isFadingOutRef)을 사용하는 useEffect에서 구현됩니다.
animateOpacity(from, to, onDone?): 진행 중인 모든 프레임을 취소하고,performance.now()를 시작 시간으로 캡처한 다음 각requestAnimationFrame단계에서t = Math.min((now - start) / FADE_MS, 1)을 계산하여video.style.opacity = String(from + (to - from) * t)로 설정합니다.t >= 1이 되면rafRef를 지우고onDone을 호출합니다.canplay시: 아직 시작되지 않은 경우hasStartedRef를 표시하고,video.play()를 호출한 다음(자동 재생 차단 거부 처리),animateOpacity(0, 1)을 호출합니다.timeupdate시: 아직 페이드 아웃 중이 아니고video.duration이 유한한 경우remaining = video.duration - video.currentTime을 계산합니다.remaining <= FADE_OUT_LEAD_S(0.55초)이면isFadingOutRef를 설정하고, 현재 불투명도(Number.parseFloat(video.style.opacity || '1'))를 읽어animateOpacity(current, 0)을 호출합니다.ended시:opacity = '0'으로 설정한 후,RESTART_DELAY_MS(100ms) 후에currentTime = 0으로 재설정하고,play()를 다시 호출하고,isFadingOutRef를 지우고animateOpacity(0, 1)을 호출합니다.- 효과 정리 시 세 리스너를 모두 제거하고, 보류 중인 프레임을 취소하며, 재시작 타이머를 지웁니다.
이 로직은 재생 사이에 검정색으로 부드럽게 크로스페이드되는 매끄러운 루프를 생성합니다.
내비게이션 바
<header className="relative z-20 px-6 py-6">에는 <nav className="liquid-glass rounded-full max-w-5xl mx-auto px-6 py-3 flex items-center justify-between">가 포함됩니다.
- 왼쪽 그룹 (
flex items-center):- 브랜드 링크 (
flex items-center gap-2.5,aria-label="Asme home"):Globe아이콘 (size={24},text-white) +<span className="text-white font-semibold text-lg">Asme</span>. hidden md:flex items-center gap-8 ml-8컨테이너 안의 내비게이션 링크로,NAV_LINKS의 각 항목("Features", "Pricing", "About")을<a>로 렌더링하며 클래스는text-white/80 hover:text-white text-sm font-medium transition-colors입니다.
- 브랜드 링크 (
- 오른쪽 그룹 (
flex items-center gap-4):- "Sign Up" 텍스트 버튼:
text-white text-sm font-medium. - "Login" 버튼:
liquid-glass rounded-full px-6 py-2 text-white text-sm font-medium hover:bg-white/5 transition-colors.
- "Sign Up" 텍스트 버튼:
히어로 콘텐츠
<div className="relative z-10 flex-1 flex flex-col items-center justify-center px-6 py-12 text-center -translate-y-[20%]">:
- 제목
<h1>with classestext-7xl md:text-8xl lg:text-9xl text-white tracking-tight whitespace-nowrap mb-10and inlinestyle={{ fontFamily: "'Instrument Serif', serif" }}. 내용:Know it <em className="italic">all</em>.("Know it all." 렌더링). - 이메일 양식
<form className="liquid-glass rounded-full max-w-xl w-full pl-6 pr-2 py-2 flex items-center gap-3">와onSubmit은event.preventDefault()를 호출합니다:<input type="email" autoComplete="email" placeholder="Enter your email" aria-label="Email address" className="flex-1 min-w-0 bg-transparent text-white placeholder:text-white/40 text-sm outline-none" />.- 제출 버튼 (
type="submit",aria-label="Subscribe"):bg-white rounded-full p-3 text-black shrink-0 hover:bg-white/90 transition-colors,ArrowRight아이콘 (size={20}) 포함.
- 부제목
<p className="text-white text-sm leading-relaxed px-4 mt-6 max-w-md">: "Stay updated with the latest news and insights. Subscribe to our newsletter today and never miss out on exciting updates." - 선언문 버튼
<button type="button" className="liquid-glass rounded-full px-8 py-3 text-white text-sm font-medium hover:bg-white/5 transition-colors mt-8">with text "Manifesto".
소셜 아이콘 푸터
<footer className="relative z-10 flex justify-center gap-4 pb-12">는 [{ label: 'Instagram', Icon: Instagram }, { label: 'Twitter', Icon: Twitter }, { label: 'Website', Icon: Globe }]를 매핑합니다. 각각 <a> (href="#", aria-label={label})를 렌더링하며 클래스는 liquid-glass rounded-full p-4 text-white/80 hover:text-white hover:bg-white/5 transition-all이고, size={20} 아이콘을 포함합니다.
섹션 2 — About (src/components/AboutSection.tsx)
useRef+useInView(ref, { once: true, margin: '-100px' })사용.- 섹션:
<section ref={ref} className="relative bg-black pt-32 md:pt-44 pb-10 md:pb-14 px-6 overflow-hidden">. - 방사형 그라데이션 오버레이 (
absolute inset-0,aria-hidden):bg-[radial-gradient(ellipse_at_top,_rgba(255,255,255,0.03)_0%,_transparent_70%)]. - 내부 래퍼:
relative max-w-5xl mx-auto text-center. - 레이블
motion.pwith classestext-white/40 text-sm tracking-widest uppercase mb-8, 텍스트 "About Us". 뷰 내에 있을 때initial={{ opacity: 0, y: 20 }}→{ opacity: 1, y: 0 }으로 애니메이션,transition={{ duration: 0.6 }}. - 제목
motion.h2with classestext-4xl md:text-6xl lg:text-7xl text-white leading-[1.1] tracking-tight.initial={{ opacity: 0, y: 40 }}→{ opacity: 1, y: 0 },transition={{ duration: 0.8, delay: 0.1 }}으로 애니메이션. 구조:Pioneeringthen<span className="font-instrument italic text-white/60">ideas</span>thenfor<br className="hidden md:block" />minds thatthen<span className="font-instrument italic text-white/60">create, build, and inspire.</span>
섹션 3 — Featured Video (src/components/FeaturedVideoSection.tsx)
FEATURED_VIDEO_URL = '/assets/hf_20260402_054547_9875cfc5-155a-4229-8ec8-b7ba7125cbf8.mp4'.- 동일한
useInView패턴 ({ once: true, margin: '-100px' }). - 섹션:
<section ref={ref} className="bg-black pt-6 md:pt-10 pb-20 md:pb-32 px-6 overflow-hidden">, 내부max-w-6xl mx-auto. - 비디오 컨테이너
motion.div className="relative rounded-3xl overflow-hidden aspect-video",initial={{ opacity: 0, y: 60 }}→{ opacity: 1, y: 0 },transition={{ duration: 0.9 }}.<video className="w-full h-full object-cover" src={FEATURED_VIDEO_URL}>withmuted,autoPlay,loop,playsInline,preload="auto",aria-hidden,tabIndex={-1}.- 그라데이션 오버레이 (
absolute inset-0,aria-hidden):bg-gradient-to-t from-black/60 via-transparent to-transparent. - 하단 오버레이
<div className="absolute bottom-0 left-0 right-0 p-6 md:p-10">:- 제목
motion.h3"Featured Video" + 부제목motion.p"A glimpse into our journey."
- 제목
- 히어로 비디오와 유사하게
canplay/timeupdate리스너를 사용하는useEffect페이드 인 로직(재시작/크로스페이드 루프 없이).
섹션 4 — 철학 (src/components/PhilosophySection.tsx)
PHILOSOPHY_VIDEO_URL = '/assets/hf_20260405_060637_08f626e9-1f32-4e93-8b7f-1afd97d17203.mp4'.useRef+useInView(전환에 대한ref).useAnimation()훅을 사용하여 수동으로 애니메이션을 제어합니다.- 섹션:
<section ref={ref} className="bg-black pt-20 pb-20 md:pb-32 px-6 overflow-hidden">, 내부max-w-6xl mx-auto. - 콘텐츠 그리드
motion.div className="grid grid-cols-1 md:grid-cols-2 gap-8 md:gap-12 items-center"(뷰 내에 있을 때 애니메이션).- 왼쪽 비디오:
aspect-video rounded-3xl overflow-hidden에 로컬 비디오 포함, 페이드 인. - 오른쪽 열:
- 레이블: "Our Philosophy"
- 제목: "Innovation × Vision"
- 본문: "We push the boundaries of what's possible..."
- 부제목: "Explore more" 화살표 링크.
- 왼쪽 비디오:
섹션 5 — 서비스 (src/components/ServicesSection.tsx)
SERVICES_VIDEO_1 = '/assets/hf_20260405_061807_23d4f2dc-a927-44c4-a7a6-db98bff11c54.mp4'SERVICES_VIDEO_2 = '/assets/hf_20260405_062249_1076e338-44bb-498f-b15b-3bba2e35b5c4.mp4'useRef+useInView(ref, { once: true, margin: '-100px' }).- 섹션:
<section ref={ref} className="bg-black pt-20 md:pt-32 pb-40 px-6 overflow-hidden">, 내부max-w-6xl mx-auto. - 레이블: "Services" —
motion.pwith classestext-white/40 text-sm tracking-widest uppercase mb-6 text-center,initial={{ opacity: 0, y: 20 }}. - 카드 그리드:
<div className="grid grid-cols-1 md:grid-cols-2 gap-6">.- 각 카드는
motion.div className="liquid-glass rounded-3xl overflow-hidden group cursor-pointer":- 비디오 컨테이너 (
relative aspect-[4/3] overflow-hidden): 로컬 비디오,group-hover:scale-105전환. - 비디오 위에 그라데이션 오버레이.
- 하단 오버레이 (
absolute bottom-0 left-0 right-0 p-6): 서비스 제목 및 설명.
- 비디오 컨테이너 (
- 모든 애니메이션은
prefers-reduced-motion을 존중합니다.
- 각 카드는
접근성 및 성능 참고 사항
- 스크롤 트리거 애니메이션은
prefers-reduced-motion: reduce쿼리를 존중합니다. - 이미지는 로딩 성능을 위해 적절한
alt텍스트와 함께 제공되어야 합니다. - 비디오에는 음성이 포함되지 않으므로
aria-hidden속성이 안전하게 사용됩니다. - Tailwind CSS 클래스를 통한 반응형 디자인이 모든 중단점에서 보장됩니다.
스킬 메타데이터
- 생성 도구: Claude Code / Cursor / Codex에서 이 스킬 파일을 읽음.
- 라이선스: MIT (
pulkitxm/claude-directory에서 제공). - 카테고리: 랜딩 페이지 생성, 마케팅 사이트, React/TypeScript, Framer Motion, Tailwind CSS.
- 플랫폼: Claude Code, Cursor, Codex 및 기타 AI 에이전트와 호환 가능.