1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
|
"use client"
interface BgGradProps {
size?: number
className?: string
}
function BgGrad({ size = 400, className = "" }: BgGradProps) {
return (
<div
className={`relative ${className}`}
data-name="bg-grad"
style={{ width: `${size}px`, height: `${size}px` }}
>
{/* Large blue orb - right */}
<div
className="absolute bg-[#1410ff] filter rounded-full z-0"
style={{
height: `${(341.891 * size) / 400}px`,
left: `${(161.86 * size) / 400}px`,
top: `${(13.1 * size) / 400}px`,
width: `${(204.976 * size) / 400}px`,
filter: `blur(${(22.836 * size) / 400}px)`,
}}
data-name="4"
/>
{/* Large blue orb - left */}
<div
className="absolute bg-[#1410ff] filter rounded-full z-0"
style={{
height: `${(341.891 * size) / 400}px`,
left: `${(17.16 * size) / 400}px`,
top: `${(-0.01 * size) / 400}px`,
width: `${(204.976 * size) / 400}px`,
filter: `blur(${(22.836 * size) / 400}px)`,
}}
data-name="4"
/>
{/* Rotated blue orb - top left */}
<div
className="absolute flex items-center justify-center z-10"
style={{
height: `${(163.918 * size) / 400}px`,
left: `${(12.75 * size) / 400}px`,
top: `${(70.19 * size) / 400}px`,
width: `${(345.985 * size) / 400}px`,
}}
>
<div className="flex-none rotate-[11.06deg]">
<div
className="bg-[#0090ff] filter rounded-full"
style={{
height: `${(163.918 * size) / 400}px`,
width: `${(345.985 * size) / 400}px`,
filter: `blur(${(17.127 * size) / 400}px)`,
}}
data-name="3"
/>
</div>
</div>
{/* Rotated blue orb - top right */}
<div
className="absolute flex items-center justify-center z-20"
style={{
height: `${(103.099 * size) / 400}px`,
left: `${(195 * size) / 400}px`,
top: `${(84.54 * size) / 400}px`,
width: `${(159.018 * size) / 400}px`,
}}
>
<div className="flex-none rotate-[32.89deg]">
<div
className="bg-[#0099ff] filter rounded-full"
style={{
height: `${(103.099 * size) / 400}px`,
width: `${(159.018 * size) / 400}px`,
filter: `blur(${(14.273 * size) / 400}px)`,
}}
data-name="2"
/>
</div>
</div>
{/* Rotated blue orb - bottom left */}
<div
className="absolute flex items-center justify-center z-20"
style={{
height: `${(103.099 * size) / 400}px`,
left: "0px",
top: `${(81.05 * size) / 400}px`,
width: `${(159.018 * size) / 400}px`,
}}
>
<div className="flex-none rotate-[147.11deg]">
<div
className="bg-[#0099ff] filter rounded-full"
style={{
height: `${(103.099 * size) / 400}px`,
width: `${(159.018 * size) / 400}px`,
filter: `blur(${(14.273 * size) / 400}px)`,
}}
data-name="2"
/>
</div>
</div>
{/* Central rotated orb */}
<div
className="absolute flex items-center justify-center z-30"
style={{
height: `${(220.17 * size) / 400}px`,
left: `${(85.76 * size) / 400}px`,
top: `${(110.88 * size) / 400}px`,
width: `${(216.8 * size) / 400}px`,
}}
>
<div className="flex-none rotate-[180deg]">
<div
className="filter rounded-full"
style={{
height: `${(220.17 * size) / 400}px`,
width: `${(216.8 * size) / 400}px`,
filter: `blur(${(8.564 * size) / 400}px)`,
background: "linear-gradient(186deg, #FFF 4.91%, #124DFF 61.9%)",
}}
data-name="1"
/>
</div>
</div>
{/* Bottom blue orb */}
<div
className="absolute bg-[#47a8fd] filter rounded-full z-40"
style={{
height: `${(74.371 * size) / 400}px`,
left: `${(103.05 * size) / 400}px`,
top: `${(228.82 * size) / 400}px`,
width: `${(153.608 * size) / 400}px`,
filter: `blur(${(17.127 * size) / 400}px)`,
}}
data-name="0"
/>
</div>
)
}
export default BgGrad
|