updated hero section and added google auth

This commit is contained in:
2026-02-03 16:52:50 +00:00
parent 494acebeb3
commit 549f74c10b
11 changed files with 662 additions and 497 deletions

View File

@@ -36,9 +36,9 @@ export function HeroShader() {
ctx.fillStyle = "rgba(255, 255, 255, 0.5)"; // stroke(w, 116) approx white with alpha
// Center of drawing - offset to the right
const cx = canvas.width * 0.75;
const cy = canvas.height / 2;
// Center of drawing - positioned to the right and aligned with content
const cx = canvas.width * 0.7;
const cy = canvas.height * 0.4;
// Loop for points
// for(t+=PI/90,i=1e4;i--;)a()
@@ -87,7 +87,7 @@ export function HeroShader() {
const c = d / 4 - t / 2 + (i % 2) * 3;
// q = y * k / 5 * (2 + sin(d*2 + y - t*4)) + 80
const q = y * k / 5 * (2 + Math.sin(d * 2 + y - t * 4)) + 80;
const q = y * k / 5 * (2 + Math.sin(d * 2 + y - t * 4)) + 300;
// x = q * cos(c) + 200
// y_out = q * sin(c) + d * 9 + 60
@@ -97,7 +97,7 @@ export function HeroShader() {
const x = (q * Math.cos(c)) + cx;
const y_out = (q * Math.sin(c) + d * 9) + cy;
ctx.fillRect(x, y_out, 1.5, 1.5);
ctx.fillRect(x, y_out, 2.5, 2.5);
}
animationFrameId = requestAnimationFrame(draw);