Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 58 additions & 0 deletions website/app/landing.css
Original file line number Diff line number Diff line change
Expand Up @@ -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}
}
28 changes: 19 additions & 9 deletions website/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -50,16 +51,18 @@ export default async function Home() {
<section className="hero hero-universe">
<CodeUniverse />
<div className="hero-vignette" />
<HeroSpotlight />
<div className="hero-copy">
<a className="eyebrow" href="https://github.com/fcopensource/veyraeditor/releases/latest">
<i />
{version.toUpperCase()} · NOW ON WINDOWS, MACOS & LINUX
<ArrowRight size={12} />
</a>
<h1>
The lightweight
<h1 className="hero-title">
<span className="hero-word" style={{ "--i": 0 } as React.CSSProperties}>The</span>{" "}
<span className="hero-word" style={{ "--i": 1 } as React.CSSProperties}>lightweight</span>
<br />
<em>VS Code alternative.</em>
<em className="hero-word" style={{ "--i": 2 } as React.CSSProperties}>VS Code alternative.</em>
</h1>
<p>
Veyra feels like VS Code (the same Monaco editor, the same shortcuts) but it&apos;s a native
Expand All @@ -73,12 +76,19 @@ export default async function Home() {
Star on GitHub
</a>
</div>
<div className="hero-meta">
{downloads >= SHOW_INSTALLS_FROM && <span className="hero-downloads"><Check size={13} /> {compact(downloads)}+ downloads</span>}
<span><Check size={13} /> Free & open source</span>
<span><Check size={13} /> {sizes.label}</span>
<span><Check size={13} /> Auto-updates</span>
</div>
<ul className="hero-proof" aria-label="Veyra at a glance">
<li><b>{sizes.min && sizes.max ? (sizes.min === sizes.max ? sizes.min : `${sizes.min}–${sizes.max}`) : "~10"}<small> MB</small></b><span>installer</span></li>
{downloads >= SHOW_INSTALLS_FROM && <li className="hero-downloads"><b>{compact(downloads)}+</b><span>downloads</span></li>}
<li><b>0</b><span>AI or telemetry</span></li>
<li><b>Free</b><span>& open source</span></li>
</ul>
</div>
{/* What the editor beside the headline gives you, floating around it (wide screens only). */}
<div className="hero-chips" aria-hidden="true">
<span className="chip-a"><Search size={14} /><b>Search Everywhere</b><kbd>⇧⇧</kbd></span>
<span className="chip-b"><FolderGit2 size={14} /><b>Git you can see</b></span>
<span className="chip-c"><TerminalSquare size={14} /><b>A real terminal</b></span>
<span className="chip-d"><LockKeyhole size={14} /><b>Stays on your machine</b></span>
</div>
<a className="scroll-cue" href="#showcase" aria-label="Scroll to explore"><span /></a>
</section>
Expand Down
19 changes: 19 additions & 0 deletions website/components/HeroSpotlight.tsx
Original file line number Diff line number Diff line change
@@ -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<HTMLDivElement>(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 <div className="hero-spotlight" ref={glow} aria-hidden="true"/>;
}
19 changes: 10 additions & 9 deletions website/components/codeUniverseScene.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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('');
Expand All @@ -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;
Expand Down
Loading