@hypertools/sdk 0.3.2 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +175 -0
- package/dist/core/ExperienceController.d.ts +39 -0
- package/dist/core/ExperienceController.d.ts.map +1 -1
- package/dist/core/index.js +2 -2
- package/dist/core/index.js.map +3 -3
- package/dist/index.js +39 -39
- package/dist/index.js.map +3 -3
- package/examples/README.md +84 -0
- package/examples/p5js/index.html +39 -0
- package/examples/p5js/main.ts +136 -0
- package/examples/react/index.html +22 -0
- package/examples/react/main.tsx +310 -0
- package/examples/react-landing/README.md +64 -0
- package/examples/react-landing/index.html +14 -0
- package/examples/react-landing/package.json +23 -0
- package/examples/react-landing/public/boids-flocking-project.js +12 -0
- package/examples/react-landing/src/App.css +379 -0
- package/examples/react-landing/src/App.tsx +483 -0
- package/examples/react-landing/src/main.tsx +9 -0
- package/examples/react-landing/src/types.d.ts +24 -0
- package/examples/react-landing/tsconfig.json +20 -0
- package/examples/react-landing/vite.config.ts +9 -0
- package/examples/recording/index.html +113 -0
- package/examples/recording/main.ts +256 -0
- package/examples/threejs/index.html +40 -0
- package/examples/threejs/main.ts +196 -0
- package/examples/vanilla-canvas/index.html +77 -0
- package/examples/vanilla-canvas/main.ts +162 -0
- package/package.json +5 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
(()=>{var nt={birdCount:810,maxSpeed:5.5,separationRadius:40,alignmentRadius:50,cohesionRadius:50,separationWeight:.7000000000000001,alignmentWeight:.4,cohesionWeight:.6000000000000001,turnFactor:.9500000000000001,birdSize:2.9000000000000004,birdColor:"#ffc0cb",background:"#0a0a0a",showTrails:!1,trailOpacity:.16,liquidEffect:!1,mouseAction:2,rainbowMode:!0,colorSpeed:3.2,displayText:"\u0425 \u0423 \u0419"},V=!1,dt="transparent",X=null;async function ot(v){X=v;class n extends HTMLElement{_mount=null;_controlsContainer=null;_cleanup=void 0;_params={};_pane=null;constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){if(!this.shadowRoot||!X)return;let o=document.createElement("style");o.textContent=`
|
|
2
|
+
${V&&typeof __THEME_CSS__<"u"?__THEME_CSS__:""}
|
|
3
|
+
:host { display: block; width: 100%; height: 100%; }
|
|
4
|
+
.mount {
|
|
5
|
+
width: 100%;
|
|
6
|
+
height: 100%;
|
|
7
|
+
position: relative;
|
|
8
|
+
overflow: hidden;
|
|
9
|
+
background: ${dt};
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
`,this.shadowRoot.appendChild(o),this._mount=document.createElement("div"),this._mount.className="mount",this.shadowRoot.appendChild(this._mount),V&&(this._controlsContainer=document.createElement("div"),this._controlsContainer.className="controls-container",this.shadowRoot.appendChild(this._controlsContainer));let i=X.controls?.definitions||{};for(let[t,a]of Object.entries(i))this.getAttribute(t)!==null?this._params[t]=this._parseAttr(t,this.getAttribute(t),a):t in nt?this._params[t]=nt[t]:this._params[t]=a.value;let e=this;this._params=new Proxy(this._params,{set:(t,a,r)=>{let m=t[a];return t[a]=r,m!==r&&e.dispatchEvent(new CustomEvent("paramchange",{detail:{key:a,value:r,previousValue:m},bubbles:!0})),!0}});let l={mount:this._mount,params:this._params,exports:{setFilename:()=>{},useDefaultCanvasCapture:()=>{},captureImage:async()=>{let t=this._mount?.querySelector("canvas");if(!t)throw new Error("No canvas found");return new Promise((a,r)=>{t.toBlob(m=>m?a(m):r(new Error("Failed to capture")))})}},environment:{onResize:t=>{let a=new ResizeObserver(()=>t());return a.observe(this._mount),()=>a.disconnect()},window,document},controls:null};this._cleanup=X.setup(l),V&&this._controlsContainer&&typeof __createControls__=="function"&&__createControls__(this._params,i,this._controlsContainer,this.shadowRoot).then(t=>{this._pane=t,this._pane&&typeof __setupDraggable__=="function"&&__setupDraggable__(this._controlsContainer,this._pane)}),this.dispatchEvent(new CustomEvent("ready",{bubbles:!0}))}disconnectedCallback(){this._cleanup&&this._cleanup(),this._pane?.dispose&&this._pane.dispose()}_parseAttr(o,i,e){switch(e.type){case"number":return parseFloat(i);case"boolean":return i==="true"||i==="";default:return i}}setParam(o,i){this._params[o]=i,this._pane?.refresh()}setParams(o){for(let[i,e]of Object.entries(o))this._params[i]=e;this._pane?.refresh()}getParams(){return{...this._params}}getParamDefs(){return X?.controls?.definitions||{}}}customElements.get("boids-flocking-project")||customElements.define("boids-flocking-project",n)}var J={birdCount:{type:"number",label:"Bird Count",value:100,min:10,max:1e3,step:10},maxSpeed:{type:"number",label:"Max Speed",value:4,min:1,max:10,step:.5},separationRadius:{type:"number",label:"Separation Radius",value:25,min:10,max:100,step:5},alignmentRadius:{type:"number",label:"Alignment Radius",value:50,min:10,max:150,step:5},cohesionRadius:{type:"number",label:"Cohesion Radius",value:50,min:10,max:150,step:5},separationWeight:{type:"number",label:"Separation Weight",value:1.5,min:0,max:3,step:.1},alignmentWeight:{type:"number",label:"Alignment Weight",value:1,min:0,max:3,step:.1},cohesionWeight:{type:"number",label:"Cohesion Weight",value:1,min:0,max:3,step:.1},turnFactor:{type:"number",label:"Turn Factor",value:.2,min:.05,max:1,step:.05},birdSize:{type:"number",label:"Size Scale",value:1,min:.5,max:3,step:.1},birdColor:{type:"color",label:"Bird Color",value:"#ffc0cb"},background:{type:"color",label:"Background",value:"#0a0a0a"},showTrails:{type:"boolean",label:"Show Trails",value:!1},trailOpacity:{type:"number",label:"Trail Fade",value:.1,min:.01,max:.5,step:.01},liquidEffect:{type:"boolean",label:"Liquid Glass",value:!1},mouseAction:{type:"number",label:"Mouse: 0=Off 1=Attr 2=Repel",value:1,min:0,max:2,step:1},rainbowMode:{type:"boolean",label:"Rainbow Mode",value:!1},colorSpeed:{type:"number",label:"Color Cycle Speed",value:1,min:.1,max:10,step:.1},displayText:{type:"text",label:"Display Text",value:":==> \u0425 \u0423 \u0419 :==>"}};function it(v){v=v.replace(/^#/,"");let n=parseInt(v,16),s=n>>16&255,o=n>>8&255,i=n&255;return`${s}, ${o}, ${i}`}function q(v,n,s,o){let i=[],e=document.createElement("canvas"),l=2;e.width=s*l,e.height=o*l;let t=e.getContext("2d");if(!t)return i;let a=Math.min(s,o)*.15*l;t.font=`bold ${a}px Arial, sans-serif`,t.fillStyle="white",t.textAlign="center",t.textBaseline="middle",t.fillText(v,s*l/2,o*l/2);let m=t.getImageData(0,0,e.width,e.height).data,p=[];for(let c=0;c<e.height;c+=2)for(let d=0;d<e.width;d+=2){let _=(c*e.width+d)*4;m[_+3]>128&&p.push({x:d/l,y:c/l})}if(p.length>0)for(let c=0;c<n;c++){let d=p[Math.floor(Math.random()*p.length)];i.push({x:d.x,y:d.y})}if(i.length===0)for(let c=0;c<n;c++)i.push({x:Math.random()*s,y:Math.random()*o});return i}var I=class{x;y;vx;vy;targetX;targetY;constructor(n,s,o){o?(this.x=o.x,this.y=o.y,this.targetX=o.x,this.targetY=o.y):(this.x=Math.random()*n,this.y=Math.random()*s,this.targetX=this.x,this.targetY=this.y);let i=Math.random()*Math.PI*2,e=Math.random()*2+1;this.vx=Math.cos(i)*e,this.vy=Math.sin(i)*e}update(n,s,o,i,e=!1,l){let t=i.maxSpeed??4,a=i.separationRadius??25,r=i.alignmentRadius??50,m=i.cohesionRadius??50,p=i.separationWeight??1.5,c=i.alignmentWeight??1,d=i.cohesionWeight??1,_=i.turnFactor??.2,P=50;if(l&&l.mode!==0){let u=this.x-l.x,f=this.y-l.y,y=u*u+f*f,x=200;if(y<x*x){let A=Math.sqrt(y),k=(1-A/x)*.5;l.mode===1?(this.vx-=u/A*k*2,this.vy-=f/A*k*2):l.mode===2&&(this.vx+=u/A*k*4,this.vy+=f/A*k*4)}}if(e){let u=this.targetX-this.x,f=this.targetY-this.y,y=Math.sqrt(u*u+f*f);y>1&&(this.vx+=u/y*.5,this.vy+=f/y*.5)}let W=0,L=0,w=0,M=0,E=0,T=0,F=0,Y=0,H=0;for(let u of n){if(u===this)continue;let f=this.x-u.x,y=this.y-u.y,x=Math.sqrt(f*f+y*y);x<a&&x>0&&(W+=f/x,L+=y/x,w++),x<r&&(M+=u.vx,E+=u.vy,T++),x<m&&(F+=u.x,Y+=u.y,H++)}w>0&&(W/=w,L/=w,this.vx+=W*p*.05,this.vy+=L*p*.05),T>0&&(M/=T,E/=T,this.vx+=(M-this.vx)*c*.05,this.vy+=(E-this.vy)*c*.05),H>0&&(F/=H,Y/=H,this.vx+=(F-this.x)*d*.001,this.vy+=(Y-this.y)*d*.001),this.x<P&&(this.vx+=_),this.x>s-P&&(this.vx-=_),this.y<P&&(this.vy+=_),this.y>o-P&&(this.vy-=_);let z=Math.sqrt(this.vx*this.vx+this.vy*this.vy);z>t&&(this.vx=this.vx/z*t,this.vy=this.vy/z*t),this.x+=this.vx,this.y+=this.vy,this.x<0&&(this.x=s),this.x>s&&(this.x=0),this.y<0&&(this.y=o),this.y>o&&(this.y=0)}draw(n,s,o,i,e,l){let t=e?`hsl(${l}, 80%, 60%)`:s;if(i){n.beginPath(),n.arc(this.x,this.y,6*o,0,Math.PI*2),n.fillStyle=t,n.fill();return}let a=Math.atan2(this.vy,this.vx);n.save(),n.translate(this.x,this.y),n.rotate(a),n.fillStyle=t,n.strokeStyle=t,n.lineWidth=1*o;let r=15*o,m=5*o;n.fillRect(-r/2,-m/2,r,m);let p=4*o;n.beginPath(),n.arc(r/2,0,p,0,Math.PI*2),n.fill();let c=3*o,d=2*o;n.beginPath(),n.arc(-r/2-c/2,-d,c,0,Math.PI*2),n.fill(),n.beginPath(),n.arc(-r/2-c/2,d,c,0,Math.PI*2),n.fill(),n.restore()}};function st(v){let{mount:n,params:s,exports:o,environment:i}=v,e=document.createElement("canvas");e.style.width="100%",e.style.height="100%",e.style.display="block",n.appendChild(e);let l=e.getContext("2d");if(!l)throw new Error("Unable to obtain 2D rendering context");o.setFilename("boids-flocking"),o.useDefaultCanvasCapture(!0);let t=[],a=0,r=0,m=!1,p=!1,c=0,d=0,_=!1,P=s.displayText??"HYPERTOOL",W=0,L=0,w=100,M=[],E=0,T=0,F=()=>{let{clientWidth:b,clientHeight:R}=n,O=window.devicePixelRatio||1;e.width=Math.max(1,Math.floor(b*O)),e.height=Math.max(1,Math.floor(R*O)),l.resetTransform(),l.scale(O,O),a=e.clientWidth,r=e.clientHeight,E=Math.ceil(a/w),T=Math.ceil(r/w),M=new Array(E*T);for(let C=0;C<M.length;C++)M[C]=[];if(m){let C=Math.floor(s.birdCount??100);if(t.length!==C){let S=s.displayText??"HYPERTOOL",$=q(S,C,a,r);t=[];for(let B=0;B<C;B++)t.push(new I(a,r,$[B]))}}};F(),i.onResize(F);let Y=Math.floor(s.birdCount??100),H=s.displayText??"HYPERTOOL",z=q(H,Y,a,r);for(let b=0;b<Y;b++)t.push(new I(a,r,z[b]));m=!0;let u=()=>{_=!0,d=Date.now()},f=()=>{_=!1},y=()=>{_=!1},x=b=>{let R=e.getBoundingClientRect();W=b.clientX-R.left,L=b.clientY-R.top};e.addEventListener("mousedown",u),e.addEventListener("mouseup",f),e.addEventListener("mouseleave",y),e.addEventListener("mousemove",x);let A=()=>{if(_&&!p&&Date.now()-d>=500){p=!0,c=180,_=!1;let R=t.length,O=s.displayText??"HYPERTOOL",C=q(O,R,a,r);for(let S=0;S<t.length;S++)t[S].targetX=C[S].x,t[S].targetY=C[S].y}},k=0,Q=()=>{A(),p&&(c--,c<=0&&(p=!1));let b=s.displayText??"HYPERTOOL";if(b!==P){P=b;let h=q(b,t.length,a,r);for(let g=0;g<t.length;g++)t[g].targetX=h[g].x,t[g].targetY=h[g].y}let R=Math.floor(s.birdCount??100);if(t.length<R){let h=R-t.length,g=q(b,h,a,r);for(let D=0;D<h;D++)t.push(new I(a,r,g[D]))}else t.length>R&&(t=t.slice(0,R));let O=s.showTrails??!1,C=s.trailOpacity??.1,S=s.background??"#0a0a0a",$=s.birdColor??"#ffc0cb",B=s.birdSize??1;O?l.fillStyle=`rgba(${it(S)}, ${C})`:l.fillStyle=S,l.fillRect(0,0,a,r);let Z=s.liquidEffect??!1,at=s.rainbowMode??!1,rt=s.colorSpeed??1,lt=s.mouseAction??1,ct=Date.now()*.05*rt;Z?e.style.filter="blur(8px) contrast(15)":e.style.filter="none";for(let h=0;h<M.length;h++)M[h].length=0;for(let h of t){let g=Math.floor(h.x/w),D=Math.floor(h.y/w);g>=0&&g<E&&D>=0&&D<T&&M[D*E+g].push(h)}let ut={x:W,y:L,mode:lt};t.forEach((h,g)=>{let D=Math.floor(h.x/w),ht=Math.floor(h.y/w),tt=[];for(let j=-1;j<=1;j++)for(let N=-1;N<=1;N++){let G=D+N,U=ht+j;if(G>=0&&G<E&&U>=0&&U<T){let et=M[U*E+G];for(let K=0;K<et.length;K++)tt.push(et[K])}}h.update(tt,a,r,s,p,ut),h.draw(l,$,B,Z,at,ct+g*5)}),k=window.requestAnimationFrame(Q)};return k=window.requestAnimationFrame(Q),()=>{window.cancelAnimationFrame(k),e.removeEventListener("mousedown",u),e.removeEventListener("mouseup",f),e.removeEventListener("mouseleave",y),e.removeEventListener("mousemove",x),e.remove()}}ot({controls:{definitions:J,options:{title:"BOIDS Flocking"}},exportWidget:{filename:"boids-flocking",useCanvasCapture:!0,enabled:!0},setup:st}).catch(v=>{console.error("[boids] Failed to initialise sandbox",v)});})();
|
|
@@ -0,0 +1,379 @@
|
|
|
1
|
+
/* Landing Page with Experience Background */
|
|
2
|
+
|
|
3
|
+
* {
|
|
4
|
+
margin: 0;
|
|
5
|
+
padding: 0;
|
|
6
|
+
box-sizing: border-box;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.landing-page {
|
|
10
|
+
position: relative;
|
|
11
|
+
width: 100vw;
|
|
12
|
+
min-height: 100vh;
|
|
13
|
+
overflow-x: hidden;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/* Background Experience - full screen, behind everything */
|
|
17
|
+
.experience-background {
|
|
18
|
+
position: fixed;
|
|
19
|
+
top: 0;
|
|
20
|
+
left: 0;
|
|
21
|
+
width: 100%;
|
|
22
|
+
height: 100%;
|
|
23
|
+
z-index: 0;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.experience-background boids-flocking-project {
|
|
27
|
+
display: block;
|
|
28
|
+
width: 100%;
|
|
29
|
+
height: 100%;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/* Foreground Content - fixed at bottom center */
|
|
33
|
+
.landing-content {
|
|
34
|
+
position: fixed;
|
|
35
|
+
bottom: 2rem;
|
|
36
|
+
left: 50%;
|
|
37
|
+
transform: translateX(-50%);
|
|
38
|
+
z-index: 10;
|
|
39
|
+
display: flex;
|
|
40
|
+
flex-direction: column;
|
|
41
|
+
align-items: center;
|
|
42
|
+
color: white;
|
|
43
|
+
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/* Hero Section */
|
|
47
|
+
.hero {
|
|
48
|
+
text-align: center;
|
|
49
|
+
padding: 4rem 2rem;
|
|
50
|
+
max-width: 800px;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.hero h1 {
|
|
54
|
+
font-size: clamp(2rem, 5vw, 4rem);
|
|
55
|
+
margin-bottom: 1rem;
|
|
56
|
+
font-weight: 700;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.tagline {
|
|
60
|
+
font-size: clamp(1rem, 2vw, 1.5rem);
|
|
61
|
+
opacity: 0.9;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/* Control Panel - for demo purposes */
|
|
65
|
+
.control-panel {
|
|
66
|
+
background: rgba(0, 0, 0, 0.7);
|
|
67
|
+
backdrop-filter: blur(10px);
|
|
68
|
+
border-radius: 16px;
|
|
69
|
+
padding: 2rem;
|
|
70
|
+
max-width: 400px;
|
|
71
|
+
width: 100%;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.panel-header {
|
|
75
|
+
display: flex;
|
|
76
|
+
justify-content: space-between;
|
|
77
|
+
align-items: center;
|
|
78
|
+
margin-bottom: 0.5rem;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.panel-header h2 {
|
|
82
|
+
font-size: 1.25rem;
|
|
83
|
+
margin: 0;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.help-button {
|
|
87
|
+
width: 24px;
|
|
88
|
+
height: 24px;
|
|
89
|
+
border-radius: 50%;
|
|
90
|
+
border: 1px solid rgba(255, 255, 255, 0.3);
|
|
91
|
+
background: transparent;
|
|
92
|
+
color: white;
|
|
93
|
+
font-size: 0.8rem;
|
|
94
|
+
cursor: pointer;
|
|
95
|
+
opacity: 0.6;
|
|
96
|
+
transition: opacity 0.2s;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.help-button:hover {
|
|
100
|
+
opacity: 1;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.sdk-info {
|
|
104
|
+
font-size: 0.75rem;
|
|
105
|
+
opacity: 0.6;
|
|
106
|
+
text-align: center;
|
|
107
|
+
margin-bottom: 1rem;
|
|
108
|
+
font-family: monospace;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/* Preset buttons */
|
|
112
|
+
.preset-group {
|
|
113
|
+
display: flex;
|
|
114
|
+
flex-wrap: wrap;
|
|
115
|
+
gap: 0.5rem;
|
|
116
|
+
margin-bottom: 1rem;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.preset-button {
|
|
120
|
+
flex: 1;
|
|
121
|
+
min-width: 60px;
|
|
122
|
+
padding: 0.5rem 0.75rem;
|
|
123
|
+
border: 1px solid rgba(255, 255, 255, 0.2);
|
|
124
|
+
border-radius: 6px;
|
|
125
|
+
background: rgba(255, 255, 255, 0.05);
|
|
126
|
+
color: white;
|
|
127
|
+
font-size: 0.75rem;
|
|
128
|
+
text-transform: capitalize;
|
|
129
|
+
cursor: pointer;
|
|
130
|
+
transition: all 0.2s;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.preset-button:hover {
|
|
134
|
+
background: rgba(255, 255, 255, 0.1);
|
|
135
|
+
border-color: rgba(255, 255, 255, 0.3);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.preset-button.selected {
|
|
139
|
+
background: rgba(102, 126, 234, 0.4);
|
|
140
|
+
border-color: rgba(102, 126, 234, 0.8);
|
|
141
|
+
box-shadow: 0 0 8px rgba(102, 126, 234, 0.4);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.custom-config-hint {
|
|
145
|
+
font-size: 0.7rem;
|
|
146
|
+
opacity: 0.5;
|
|
147
|
+
text-align: center;
|
|
148
|
+
margin: -0.5rem 0 1rem;
|
|
149
|
+
font-style: italic;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.idle-indicator {
|
|
153
|
+
font-size: 0.7rem;
|
|
154
|
+
text-align: center;
|
|
155
|
+
margin-top: 0.5rem;
|
|
156
|
+
padding: 0.25rem 0.5rem;
|
|
157
|
+
background: rgba(102, 126, 234, 0.3);
|
|
158
|
+
border-radius: 4px;
|
|
159
|
+
animation: pulse 2s infinite;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
@keyframes pulse {
|
|
163
|
+
0%, 100% { opacity: 0.6; }
|
|
164
|
+
50% { opacity: 1; }
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.control-group {
|
|
168
|
+
margin-bottom: 1.25rem;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.control-group label {
|
|
172
|
+
display: flex;
|
|
173
|
+
flex-direction: column;
|
|
174
|
+
gap: 0.5rem;
|
|
175
|
+
font-size: 0.9rem;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.control-group input[type="range"] {
|
|
179
|
+
width: 100%;
|
|
180
|
+
height: 6px;
|
|
181
|
+
border-radius: 3px;
|
|
182
|
+
background: rgba(255, 255, 255, 0.2);
|
|
183
|
+
cursor: pointer;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.control-group input[type="text"] {
|
|
187
|
+
padding: 0.5rem;
|
|
188
|
+
border-radius: 8px;
|
|
189
|
+
border: 1px solid rgba(255, 255, 255, 0.3);
|
|
190
|
+
background: rgba(255, 255, 255, 0.1);
|
|
191
|
+
color: white;
|
|
192
|
+
font-size: 1rem;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.control-group input[type="checkbox"] {
|
|
196
|
+
width: 18px;
|
|
197
|
+
height: 18px;
|
|
198
|
+
margin-right: 0.5rem;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.control-group label:has(input[type="checkbox"]) {
|
|
202
|
+
flex-direction: row;
|
|
203
|
+
align-items: center;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.button-group {
|
|
207
|
+
display: flex;
|
|
208
|
+
gap: 0.5rem;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.action-button,
|
|
212
|
+
.reset-button {
|
|
213
|
+
flex: 1;
|
|
214
|
+
padding: 0.75rem;
|
|
215
|
+
border: 1px solid rgba(255, 255, 255, 0.3);
|
|
216
|
+
border-radius: 8px;
|
|
217
|
+
background: transparent;
|
|
218
|
+
color: white;
|
|
219
|
+
cursor: pointer;
|
|
220
|
+
transition: background 0.2s;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
.action-button {
|
|
224
|
+
background: rgba(102, 126, 234, 0.3);
|
|
225
|
+
border-color: rgba(102, 126, 234, 0.5);
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
.action-button:hover {
|
|
229
|
+
background: rgba(102, 126, 234, 0.5);
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
.action-button.active {
|
|
233
|
+
background: rgba(102, 126, 234, 0.6);
|
|
234
|
+
border-color: rgba(102, 126, 234, 0.8);
|
|
235
|
+
box-shadow: 0 0 8px rgba(102, 126, 234, 0.4);
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
.reset-button:hover {
|
|
239
|
+
background: rgba(255, 255, 255, 0.1);
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
/* Shortcuts overlay */
|
|
243
|
+
.shortcuts-overlay {
|
|
244
|
+
position: fixed;
|
|
245
|
+
inset: 0;
|
|
246
|
+
background: rgba(0, 0, 0, 0.8);
|
|
247
|
+
display: flex;
|
|
248
|
+
align-items: center;
|
|
249
|
+
justify-content: center;
|
|
250
|
+
z-index: 100;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
.shortcuts-panel {
|
|
254
|
+
background: rgba(30, 30, 40, 0.95);
|
|
255
|
+
backdrop-filter: blur(10px);
|
|
256
|
+
border-radius: 16px;
|
|
257
|
+
padding: 2rem;
|
|
258
|
+
max-width: 400px;
|
|
259
|
+
color: white;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
.shortcuts-panel h3 {
|
|
263
|
+
font-size: 1.25rem;
|
|
264
|
+
margin-bottom: 0.5rem;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
.shortcuts-subtitle {
|
|
268
|
+
font-size: 0.75rem;
|
|
269
|
+
opacity: 0.6;
|
|
270
|
+
margin-bottom: 1.5rem;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
.shortcuts-panel ul {
|
|
274
|
+
list-style: none;
|
|
275
|
+
padding: 0;
|
|
276
|
+
margin: 0 0 1.5rem;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
.shortcuts-panel li {
|
|
280
|
+
display: flex;
|
|
281
|
+
align-items: center;
|
|
282
|
+
gap: 1rem;
|
|
283
|
+
padding: 0.5rem 0;
|
|
284
|
+
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
.shortcuts-panel kbd {
|
|
288
|
+
background: rgba(255, 255, 255, 0.1);
|
|
289
|
+
padding: 0.25rem 0.5rem;
|
|
290
|
+
border-radius: 4px;
|
|
291
|
+
font-family: monospace;
|
|
292
|
+
font-size: 0.8rem;
|
|
293
|
+
min-width: 40px;
|
|
294
|
+
text-align: center;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
.close-button {
|
|
298
|
+
width: 100%;
|
|
299
|
+
padding: 0.75rem;
|
|
300
|
+
border: none;
|
|
301
|
+
border-radius: 8px;
|
|
302
|
+
background: rgba(102, 126, 234, 0.5);
|
|
303
|
+
color: white;
|
|
304
|
+
cursor: pointer;
|
|
305
|
+
transition: background 0.2s;
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
.close-button:hover {
|
|
309
|
+
background: rgba(102, 126, 234, 0.7);
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
/* Features Section */
|
|
313
|
+
.features {
|
|
314
|
+
display: grid;
|
|
315
|
+
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
|
316
|
+
gap: 2rem;
|
|
317
|
+
padding: 3rem 0;
|
|
318
|
+
max-width: 900px;
|
|
319
|
+
width: 100%;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
.feature {
|
|
323
|
+
background: rgba(0, 0, 0, 0.5);
|
|
324
|
+
backdrop-filter: blur(10px);
|
|
325
|
+
border-radius: 12px;
|
|
326
|
+
padding: 1.5rem;
|
|
327
|
+
text-align: center;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
.feature h3 {
|
|
331
|
+
font-size: 1.25rem;
|
|
332
|
+
margin-bottom: 0.5rem;
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
.feature p {
|
|
336
|
+
opacity: 0.8;
|
|
337
|
+
font-size: 0.9rem;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
/* CTA Section */
|
|
341
|
+
.cta {
|
|
342
|
+
display: flex;
|
|
343
|
+
gap: 1rem;
|
|
344
|
+
padding: 2rem 0;
|
|
345
|
+
flex-wrap: wrap;
|
|
346
|
+
justify-content: center;
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
.primary-button,
|
|
350
|
+
.secondary-button {
|
|
351
|
+
padding: 1rem 2rem;
|
|
352
|
+
border-radius: 8px;
|
|
353
|
+
font-size: 1rem;
|
|
354
|
+
font-weight: 600;
|
|
355
|
+
cursor: pointer;
|
|
356
|
+
transition: transform 0.2s, box-shadow 0.2s;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
.primary-button {
|
|
360
|
+
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
361
|
+
border: none;
|
|
362
|
+
color: white;
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
.primary-button:hover {
|
|
366
|
+
transform: translateY(-2px);
|
|
367
|
+
box-shadow: 0 10px 20px rgba(102, 126, 234, 0.4);
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
.secondary-button {
|
|
371
|
+
background: transparent;
|
|
372
|
+
border: 2px solid white;
|
|
373
|
+
color: white;
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
.secondary-button:hover {
|
|
377
|
+
background: rgba(255, 255, 255, 0.1);
|
|
378
|
+
transform: translateY(-2px);
|
|
379
|
+
}
|