From b61754dd8f8f5cbc1c722d6f60ccdb4557a320d1 Mon Sep 17 00:00:00 2001 From: Ivan Kirilov Dimitrov Date: Wed, 31 Jul 2024 23:56:50 +0200 Subject: [PATCH] opacity on stars --- src/components/stars.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/stars.tsx b/src/components/stars.tsx index 2f3e6aa..143c7be 100644 --- a/src/components/stars.tsx +++ b/src/components/stars.tsx @@ -21,7 +21,7 @@ const Stars = ({ count }: Props) => { const star = (key?: number) => { const radius = `${Math.random() * 7}px` let style: CSSProperties = { - background: `radial-gradient(circle, ${randomRgba(1)} 0%, ${randomRgba(0)} 100%)`, + background: `radial-gradient(circle, ${randomRgba(0.6)} 0%, ${randomRgba(0)} 100%)`, width: radius, height: radius, transform: "translate(-50%)",