diff --git a/website/app/landing.css b/website/app/landing.css index 4f24a49..17a7eed 100644 --- a/website/app/landing.css +++ b/website/app/landing.css @@ -178,3 +178,61 @@ /* Real downloads in the hero. */ .hero-meta .hero-downloads{color:var(--mint);font-weight:700} + +/* ---------- Hero, upgraded: same palette, more life ---------- */ +/* Headline: three lines instead of four, each word rising out of a soft blur, and the gradient slowly flowing. */ +.hero-universe .hero-copy{width:min(660px,92vw)} +.hero-universe h1.hero-title{max-width:640px;margin:24px 0 22px;font-size:clamp(48px,6.1vw,90px);line-height:.98;letter-spacing:-.055em;animation:none} +.hero-word{display:inline-block;animation:hero-word 1s calc(var(--i)*.11s) cubic-bezier(.2,.8,.2,1) both} +.hero-universe h1 em.hero-word{display:inline;background-image:linear-gradient(100deg,var(--mint),var(--cyan),#b79bff,var(--cyan),var(--mint));background-size:220% auto;-webkit-box-decoration-break:clone;box-decoration-break:clone;animation:hero-word 1s .22s cubic-bezier(.2,.8,.2,1) both,hero-flow 9s 1.2s linear infinite} +@keyframes hero-word{from{opacity:0;transform:translateY(.32em);filter:blur(12px)}to{opacity:1;transform:none;filter:none}} +@keyframes hero-flow{to{background-position:220% center}} + +/* Primary button: a light sweep every few seconds and a soft breathing glow. */ +.hero-universe .hero-actions .primary{position:relative;overflow:hidden;isolation:isolate;animation:hero-glow 3.6s 1.4s ease-in-out infinite} +.hero-universe .hero-actions .primary:after{content:"";position:absolute;inset:0 auto 0 -60%;z-index:-1;width:45%;background:linear-gradient(100deg,transparent,#ffffffb3,transparent);transform:skewX(-18deg);animation:hero-sweep 4.8s 1.6s ease-in-out infinite} +@keyframes hero-sweep{0%{left:-60%}28%,100%{left:130%}} +@keyframes hero-glow{0%,100%{box-shadow:0 8px 30px #68f4d126}50%{box-shadow:0 10px 46px #68f4d150}} +.hero-universe .hero-actions .secondary:hover{border-color:#68f4d155;background:#68f4d10d;transform:translateY(-1px)} + +/* Proof strip: the numbers that make people download. */ +.hero-proof{display:flex;flex-wrap:wrap;gap:10px;margin:6px 0 0;padding:0;list-style:none;animation:hero-rise .9s .3s cubic-bezier(.2,.8,.2,1) both} +.hero-proof li{display:flex;flex-direction:column;gap:3px;min-width:104px;padding:11px 15px;border:1px solid #ffffff14;border-radius:14px;background:linear-gradient(160deg,#ffffff0d,#ffffff03);box-shadow:inset 0 1px 0 #ffffff12;backdrop-filter:blur(10px);transition:border-color .3s,transform .3s} +.hero-proof li:hover{border-color:#68f4d14d;transform:translateY(-2px)} +.hero-proof b{color:var(--text);font-size:21px;line-height:1;letter-spacing:-.6px} +.hero-proof b small{color:#84919f;font-size:12px;letter-spacing:0} +.hero-proof span{color:#7d8a97;font:9.5px var(--font-mono);letter-spacing:.5px;text-transform:uppercase} +.hero-proof .hero-downloads b{color:var(--mint)} + +/* Pointer spotlight (desktop). */ +.hero-spotlight{position:absolute;inset:0;z-index:1;pointer-events:none;opacity:0;transition:opacity .5s;background:radial-gradient(520px circle at var(--mx,50%) var(--my,50%),#68f4d112,#9673ff0a 40%,transparent 70%)} +.hero-spotlight.on{opacity:1} + +/* Feature chips floating around the editor (wide screens, where the editor sits beside the copy). */ +.hero-chips{display:none} +@media (min-width:1100px){ + .hero-chips{display:block;position:absolute;inset:0;z-index:2;pointer-events:none} + .hero-chips span{position:absolute;display:inline-flex;align-items:center;gap:8px;padding:9px 13px;border:1px solid #68f4d12e;border-radius:999px;background:#0d1119cc;box-shadow:0 14px 40px #000a,inset 0 1px 0 #ffffff12;backdrop-filter:blur(12px);color:#c9d4de;font-size:12.5px;white-space:nowrap;animation:chip-in .9s cubic-bezier(.2,.8,.2,1) both,chip-float 7s ease-in-out infinite} + .hero-chips svg{color:var(--mint)} + .hero-chips b{font-weight:600} + .hero-chips kbd{padding:2px 6px;border:1px solid #ffffff1f;border-radius:6px;background:#ffffff0a;color:var(--mint);font:10px var(--font-mono)} + .hero-chips .chip-a{left:57%;top:25%;animation-delay:1.1s,1.1s} + .hero-chips .chip-b{right:4%;top:29%;animation-delay:1.3s,2.4s} + .hero-chips .chip-b svg{color:#b79bff} + .hero-chips .chip-c{left:59%;top:71%;animation-delay:1.5s,3.6s} + .hero-chips .chip-c svg{color:var(--cyan)} + .hero-chips .chip-d{right:6%;top:75%;animation-delay:1.7s,.8s} +} +@keyframes chip-in{from{opacity:0;transform:translateY(14px) scale(.94)}to{opacity:1;transform:none}} +@keyframes chip-float{0%,100%{translate:0 0}50%{translate:0 -9px}} + +@media (max-width:800px){ + .hero-universe h1.hero-title{font-size:clamp(44px,12.5vw,64px)} + .hero-proof{gap:8px} + .hero-proof li{flex:1 1 calc(50% - 8px);min-width:0;padding:10px 12px} + .hero-proof b{font-size:18px} +} +@media (prefers-reduced-motion:reduce){ + .hero-word,.hero-universe h1 em.hero-word,.hero-universe .hero-actions .primary,.hero-proof,.hero-chips span{animation:none} + .hero-universe .hero-actions .primary:after{display:none} +} diff --git a/website/app/page.tsx b/website/app/page.tsx index 83ac855..54099b5 100644 --- a/website/app/page.tsx +++ b/website/app/page.tsx @@ -7,6 +7,7 @@ import { import { Nav } from "@/components/Nav"; import { Footer } from "@/components/Footer"; import { CodeUniverse } from "@/components/CodeUniverse"; +import { HeroSpotlight } from "@/components/HeroSpotlight"; import { LiveIDE } from "@/components/LiveIDE"; import { DownloadCTA } from "@/components/DownloadCTA"; import { ScrollReveal } from "@/components/ScrollReveal"; @@ -50,16 +51,18 @@ export default async function Home() { + {version.toUpperCase()} · NOW ON WINDOWS, MACOS & LINUX - - The lightweight + + The{" "} + lightweight - VS Code alternative. + VS Code alternative. Veyra feels like VS Code (the same Monaco editor, the same shortcuts) but it's a native @@ -73,12 +76,19 @@ export default async function Home() { Star on GitHub - - {downloads >= SHOW_INSTALLS_FROM && {compact(downloads)}+ downloads} - Free & open source - {sizes.label} - Auto-updates - + + {sizes.min && sizes.max ? (sizes.min === sizes.max ? sizes.min : `${sizes.min}–${sizes.max}`) : "~10"} MBinstaller + {downloads >= SHOW_INSTALLS_FROM && {compact(downloads)}+downloads} + 0AI or telemetry + Free& open source + + + {/* What the editor beside the headline gives you, floating around it (wide screens only). */} + + Search Everywhere⇧⇧ + Git you can see + A real terminal + Stays on your machine diff --git a/website/components/HeroSpotlight.tsx b/website/components/HeroSpotlight.tsx new file mode 100644 index 0000000..e82b91d --- /dev/null +++ b/website/components/HeroSpotlight.tsx @@ -0,0 +1,19 @@ +'use client'; +import {useEffect,useRef} from 'react'; + +/* A soft glow that follows the pointer across the hero. Mouse and pen only: touch screens and + reduced-motion users keep the still backdrop. One rAF per frame at most, nothing on scroll. */ +export function HeroSpotlight(){ + const glow=useRef(null); + useEffect(()=>{ + const el=glow.current,hero=el?.parentElement; + if(!el||!hero||matchMedia('(prefers-reduced-motion: reduce), (hover: none)').matches)return; + let raf=0,x=0,y=0; + const paint=()=>{raf=0;el.style.setProperty('--mx',`${x}px`);el.style.setProperty('--my',`${y}px`);}; + const move=(e:PointerEvent)=>{const box=hero.getBoundingClientRect();x=e.clientX-box.left;y=e.clientY-box.top;el.classList.add('on');if(!raf)raf=requestAnimationFrame(paint);}; + const leave=()=>el.classList.remove('on'); + hero.addEventListener('pointermove',move);hero.addEventListener('pointerleave',leave); + return()=>{cancelAnimationFrame(raf);hero.removeEventListener('pointermove',move);hero.removeEventListener('pointerleave',leave);}; + },[]); + return ; +} diff --git a/website/components/codeUniverseScene.ts b/website/components/codeUniverseScene.ts index b73bce4..489b6a0 100644 --- a/website/components/codeUniverseScene.ts +++ b/website/components/codeUniverseScene.ts @@ -14,18 +14,19 @@ const TOKENS:[string,string][]=[ ]; type Seg=[string,string]; -// The program the holographic editor types. Line 5's tail is an IntelliSense completion accepted with Tab. +// The program the holographic editor types: plain code, written by hand (Veyra has no AI). +// Line 5's tail is an IntelliSense completion accepted with Tab. const PROGRAM:Seg[][]=[ - [['import ',VIOLET],['{ veyra } ',TEXT],['from ',VIOLET],['"@veyra/studio"',MINT],[';',TEXT]], + [['import ',VIOLET],['{ serve } ',TEXT],['from ',VIOLET],['"./server"',MINT],[';',TEXT]], [], - [['export async function ',VIOLET],['ship',CYAN],['(idea: ',TEXT],['Idea',GOLD],[') {',TEXT]], - [[' const ',VIOLET],['plan ',TEXT],['= await ',VIOLET],['veyra.ai.',TEXT],['plan',CYAN],['(idea);',TEXT]], - [[' const ',VIOLET],['patch ',TEXT],['= await ',VIOLET],['plan.',TEXT],['write',CYAN],['({ review: ',TEXT],['true',GOLD],[' });',TEXT]], - [[' await ',VIOLET],['git.',TEXT],['commit',CYAN],['(patch, ',TEXT],['"feat: "',MINT],[' + idea.name);',TEXT]], - [[' return ',VIOLET],['deploy',CYAN],['(patch);',TEXT],[' // ✓ 42 tests passed',MUTED]], + [['export async function ',VIOLET],['start',CYAN],['(port = ',TEXT],['3000',GOLD],[') {',TEXT]], + [[' const ',VIOLET],['app ',TEXT],['= await ',VIOLET],['serve',CYAN],['({ port, watch: ',TEXT],['true',GOLD],[' });',TEXT]], + [[' app.',TEXT],['get',CYAN],['(',TEXT],['"/health"',MINT],[', () => ({ ok: ',TEXT],['true',GOLD],[' }));',TEXT]], + [[' await ',VIOLET],['git.',TEXT],['commit',CYAN],['(',TEXT],['"feat: health check"',MINT],[');',TEXT]], + [[' return ',VIOLET],['app',TEXT],[';',TEXT],[' // ✓ 42 tests passed',MUTED]], [['}',TEXT]], ]; -const GHOST_LINE=4,GHOST_AT=13; // characters typed by hand on line 5 before autocomplete finishes it +const GHOST_LINE=4,GHOST_AT=9; // characters typed by hand on line 5 before autocomplete finishes it function rounded(ctx:CanvasRenderingContext2D,x:number,y:number,w:number,h:number,r:number){ctx.beginPath();ctx.moveTo(x+r,y);ctx.arcTo(x+w,y,x+w,y+h,r);ctx.arcTo(x+w,y+h,x,y+h,r);ctx.arcTo(x,y+h,x,y,r);ctx.arcTo(x,y,x+w,y,r);ctx.closePath();} const lineText=(line:Seg[])=>line.map(s=>s[0]).join(''); @@ -40,7 +41,7 @@ function drawEditor(ctx:CanvasRenderingContext2D,typed:number,phase:'typing'|'gh // Title bar ctx.fillStyle='rgba(255,255,255,0.04)';ctx.fillRect(8,8,W-16,52); ['#ff5f57','#febc2e','#28c840'].forEach((c,i)=>{ctx.fillStyle=c;ctx.beginPath();ctx.arc(40+i*24,34,7,0,Math.PI*2);ctx.fill();}); - ctx.font=`500 20px ${mono}`;ctx.fillStyle='#9aa7b4';ctx.textAlign='center';ctx.fillText('ship.ts — Veyra Studio',W/2,41);ctx.textAlign='left'; + ctx.font=`500 20px ${mono}`;ctx.fillStyle='#9aa7b4';ctx.textAlign='center';ctx.fillText('server.ts — Veyra Studio',W/2,41);ctx.textAlign='left'; ctx.fillStyle=MINT;ctx.fillText('⇧⇧ Search',W-130,41); // Code const top=104,lh=46,left=118;let start=0,caret=null as {x:number,y:number}|null;
Veyra feels like VS Code (the same Monaco editor, the same shortcuts) but it's a native @@ -73,12 +76,19 @@ export default async function Home() { Star on GitHub