opacity on stars

This commit is contained in:
Ivan Kirilov Dimitrov 2024-07-31 23:56:50 +02:00
parent cbfc6304f3
commit b61754dd8f
No known key found for this signature in database
GPG Key ID: 0BDAD4B211C49294

View File

@ -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%)",