Skip to content

Commit f968b2b

Browse files
committed
Fixed the hero section background. The radius of blobs now resizes better with screen size.
1 parent b572bb7 commit f968b2b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/components/HeroSection.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ interface Velocity {
1717
1818
const canvasRef = ref<HTMLCanvasElement | null>(null);
1919
const RenderSettings = {
20-
radiusFactor: 0.000189,
20+
radiusFactor: 0.15,
2121
thickness: 1,
2222
color: "#fff",
2323
maxVelocity: 0.08,
@@ -67,7 +67,7 @@ onMounted(async () => {
6767
pArr.push({
6868
x: Math.random() * window.innerWidth,
6969
y: Math.random() * window.innerHeight,
70-
radius: Math.random() * RenderSettings.radiusFactor * (window.innerWidth * window.innerHeight),
70+
radius: (Math.random()+ 0.01) * RenderSettings.radiusFactor * Math.min(window.innerWidth, window.innerHeight),
7171
})
7272
vArr.push({
7373
x: (-Math.random() + Math.random()) * RenderSettings.maxVelocity,

0 commit comments

Comments
 (0)