Branchwell

PulseCanvas / app · pulsecanvas.ai / assets / app-store / mobile-marketing-1.1.5 / header-v1.html

1<!doctype html>
2<html lang="en"><head><meta charset="utf-8"><title>PulseCanvas header</title>
3<style>
4:root{--accent:#7f3fe0;--ink:#17121f}
5*{box-sizing:border-box}html,body{margin:0}
6.stage{position:relative;width:3840px;height:1646px;overflow:hidden;background:linear-gradient(180deg,#fdfcfe 0%,#f7f3fb 60%,#efe8f7 100%);font-family:"Avenir Next",Avenir,-apple-system,sans-serif;-webkit-font-smoothing:antialiased;color:var(--ink)}
7svg.bg{position:absolute;inset:0;width:100%;height:100%}
8.glow{position:absolute;left:50%;top:50%;width:2000px;height:1100px;margin:-550px 0 0 -1000px;border-radius:50%;background:#fff;filter:blur(120px);opacity:.85}
9/* The lockup stays inside the centred 1646×660 crop the App Store shows on iPhone. */
10.lockup{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;gap:52px;z-index:3}
11.brand{display:flex;align-items:center;gap:52px}
12.brand img{width:280px;height:280px;border-radius:64px;box-shadow:0 30px 60px #2a1a4a40}
13.name{display:flex;flex-direction:column;line-height:.94}
14.name b{font-size:184px;font-weight:700;letter-spacing:-6px}
15.name span{font-size:118px;font-weight:600;letter-spacing:-3px;color:var(--accent)}
16.line{display:flex;align-items:center;gap:30px;padding:28px 52px;border-radius:90px;background:#ffffffe6;box-shadow:0 24px 60px #2a1a4a22,0 0 0 2px #ece5f4}
17.eq{display:flex;align-items:center;gap:9px;height:64px;flex:none}
18.eq i{width:12px;border-radius:6px;background:var(--accent)}
19.text{font-size:60px;font-weight:600;letter-spacing:-.8px;white-space:nowrap}
20.text b{color:var(--accent)}
21</style></head><body>
22<div class="stage">
23 <svg class="bg" id="bg" viewBox="0 0 3840 1646"></svg>
24 <div class="glow"></div>
25 <div class="lockup">
26 <div class="brand"><img src="sources/icon.png" alt=""><div class="name"><b>PulseCanvas</b><span>Studio</span></div></div>
27 <div class="line"><span class="eq" id="eq"></span><span class="text"><b>300+ visualizers</b> that move to your music.</span></div>
28 </div>
29</div>
30<script>
31// Every motion is periodic in T, so the exported video loops seamlessly.
32const T=Number(new URLSearchParams(location.search).get('loop')||12), W=3840, H=1646, TAU=Math.PI*2;
33const bg=document.getElementById('bg'), eq=document.getElementById('eq');
34const colors=['#0b8f80','#3a5bd0','#7f3fe0','#d85a35','#b8690c','#a43cd6'];
35// Concentric octagons, the app icon's shape. Rotating 45° per loop is one full symmetry step.
36const rings=[...Array(14)].map((_,i)=>({r:520+i*150,c:colors[i%colors.length],dir:i%2?1:-1,w:6+(i%3)*2,a:.16-i*.007,ph:i*.55}));
37const ribbons=[{y:.84,a:.10,amp:80,len:1,sp:1,c:'#0b8f80'},{y:.89,a:.10,amp:60,len:1.4,sp:-1,c:'#3a5bd0'},{y:.94,a:.12,amp:50,len:.8,sp:2,c:'#7f3fe0'}];
38for(let i=0;i<9;i++){eq.appendChild(document.createElement('i'))}
39function oct(r,rot){return [...Array(8)].map((_,k)=>{const a=rot+Math.PI/8+k*Math.PI/4;return (W/2+r*Math.cos(a)).toFixed(1)+','+(H/2+r*Math.sin(a)*.62).toFixed(1)}).join(' ')}
40function ribbon(l,t){const ph=t/T*TAU*l.sp;let d=`M0 ${H} `;for(let x=0;x<=W;x+=32){const y=H*l.y+l.amp*Math.sin(x/W*TAU*l.len+ph)+l.amp*.35*Math.sin(x/W*TAU*3*l.len-ph);d+=`L${x} ${y.toFixed(1)} `}return `<path d="${d}L${W} ${H} Z" fill="${l.c}" fill-opacity="${l.a}"/>`}
41window.render=function(t){
42 const p=t/T*TAU;
43 bg.innerHTML=rings.map(g=>{const rot=g.dir*(t/T)*Math.PI/4, r=g.r*(1+.035*Math.sin(p+g.ph));
44 return `<polygon points="${oct(r,rot)}" fill="none" stroke="${g.c}" stroke-width="${g.w}" stroke-opacity="${Math.max(.03,g.a).toFixed(3)}" stroke-linejoin="round"/>`}).join('')+ribbons.map(l=>ribbon(l,t)).join('');
45 [...eq.children].forEach((b,i)=>{const v=.5+.5*Math.sin(p*(3+i%4)+i*1.3)*Math.cos(p*2+i*.7);b.style.height=(18+46*Math.abs(v)).toFixed(1)+'px'});
46};
47render(Number(new URLSearchParams(location.search).get('t')||0));
48</script></body></html>