File tree Expand file tree Collapse file tree 4 files changed +31
-15
lines changed
Expand file tree Collapse file tree 4 files changed +31
-15
lines changed Original file line number Diff line number Diff line change 1+ 'use client'
2+
13import Image from 'next/image'
24import HeroWorkflowProvider from './hero-workflow'
35import WaitlistForm from './waitlist-form'
@@ -23,31 +25,34 @@ export default function Landing() {
2325
2426 < section className = "min-h-[100dvh] pt-[134px] md:pt-36 text-white relative" >
2527 < div className = "absolute inset-0 z-0" >
26- < Image
27- src = "/hero.png"
28- alt = "Hero background"
29- fill
30- priority
31- loading = "eager"
32- fetchPriority = "high"
33- className = "object-cover"
34- quality = { 100 }
35- />
28+ < video
29+ autoPlay
30+ muted
31+ loop
32+ playsInline
33+ preload = "auto"
34+ className = "h-full w-full object-cover"
35+ poster = "/hero.png"
36+ >
37+ < source src = "/hero.webm" type = "video/webm" media = "all" />
38+ </ video >
3639 </ div >
3740 < div className = "absolute inset-0 z-0 bg-gradient-to-b from-[#020817]/80 to-[#020817]/40" />
3841 < div className = "max-w-6xl mx-auto text-center space-y-6 relative z-10 px-4" >
39- < h1 className = "text-5xl md:text-7xl font-medium" >
42+ < h1 className = "text-5xl md:text-7xl font-medium animate-fade-up [animation-delay:200ms] opacity-0 translate-y-[-10px] " >
4043 build / deploy
4144 < br />
4245 agent workflows
4346 </ h1 >
4447
45- < p className = "text-[14.5px ] md:text-xl text-muted-foreground max-w-3xl mx-auto" >
48+ < p className = "text-[15px ] md:text-xl text-muted-foreground max-w-3xl mx-auto animate-fade-up [animation-delay:400ms] opacity-0 translate-y-[-10px] " >
4649 Launch agentic workflows with an open source, < br />
4750 user-friendly environment for devs and agents
4851 </ p >
4952
50- < WaitlistForm />
53+ < div className = "animate-fade-up [animation-delay:600ms] opacity-0 translate-y-[-10px]" >
54+ < WaitlistForm />
55+ </ div >
5156
5257 < div className = "mt-16 -mx-4" >
5358 < HeroWorkflowProvider />
Original file line number Diff line number Diff line change @@ -61,14 +61,14 @@ export default function WaitlistForm() {
6161 < Input
6262 type = "email"
6363 placeholder = "you@example.com"
64- className = "flex-1 text-base bg-[#020817] border-white/20 focus:border-white/30 focus:ring-white/30 rounded-md h-12 "
64+ className = "flex-1 text-sm md:text-md bg-[#020817] border-white/20 focus:border-white/30 focus:ring-white/30 rounded-md h-[50px] "
6565 value = { email }
6666 onChange = { ( e ) => setEmail ( e . target . value ) }
6767 disabled = { isSubmitting }
6868 />
6969 < Button
7070 type = "submit"
71- className = { `rounded-md px-8 h-12 ${
71+ className = { `rounded-md px-8 h-[48px] ${
7272 status === 'success'
7373 ? 'bg-green-500 hover:bg-green-600'
7474 : status === 'error'
Original file line number Diff line number Diff line change @@ -81,11 +81,22 @@ export default {
8181 transform : 'translateY(0)' ,
8282 } ,
8383 } ,
84+ 'fade-up' : {
85+ '0%' : {
86+ opacity : '0' ,
87+ transform : 'translateY(10px)' ,
88+ } ,
89+ '100%' : {
90+ opacity : '1' ,
91+ transform : 'translateY(0)' ,
92+ } ,
93+ } ,
8494 } ,
8595 animation : {
8696 'slide-down' : 'slide-down 0.3s ease-out' ,
8797 'notification-slide' : 'notification-slide 0.3s ease-out forwards' ,
8898 'notification-fade-out' : 'notification-fade-out 0.2s ease-out forwards' ,
99+ 'fade-up' : 'fade-up 0.5s ease-out forwards' ,
89100 } ,
90101 } ,
91102 } ,
You can’t perform that action at this time.
0 commit comments