-
Notifications
You must be signed in to change notification settings - Fork 0
/
BackgroundImage.tsx
135 lines (134 loc) · 3.3 KB
/
BackgroundImage.tsx
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
import clsx from 'clsx'
export function BackgroundImage({
className,
position = 'left',
}: {
className?: string
position?: 'left' | 'right'
}) {
return (
<div
className={clsx(
'absolute inset-0 overflow-hidden bg-primary-50',
className,
)}
>
<svg
className={clsx(
'absolute aspect-square h-full opacity-50',
position === 'right' ? 'left-[85%]' : 'right-[85%]',
)}
viewBox="0 0 117 117"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<path
fillRule="evenodd"
clipRule="evenodd"
d="M58.5 0H43.875V14.2866L29.25 14.2866L29.25 29.25H14.625L14.625 44.0802H0V58.7052V73.3302H14.625L14.625 87.75H29.25L29.25 87.8076L29.25 102.433H44.287V117H58.9119H58.912H73.5369V102.433H87.75V87.8076V87.75H102.375V73.125H117V58.5V43.875H102.375V29.25H87.75V14.2866L73.125 14.2866V0H58.5Z"
fill="currentColor"
/>
<rect
opacity="0.63"
x="29.662"
y="102.375"
width="14.625"
height="14.625"
fill="currentColor"
/>
<rect
opacity="0.86"
x="14.625"
y="87.75"
width="14.625"
height="14.625"
fill="currentColor"
/>
<rect
opacity="0.86"
x="14.625"
y="14.625"
width="14.625"
height="14.625"
fill="currentColor"
/>
<rect
opacity="0.86"
x="87.75"
y="87.75"
width="14.625"
height="14.625"
fill="currentColor"
/>
<rect
opacity="0.63"
x="73.537"
y="102.375"
width="14.625"
height="14.625"
fill="currentColor"
/>
<rect
opacity="0.63"
x="29.25"
width="14.625"
height="14.625"
fill="currentColor"
/>
<rect
opacity="0.63"
x="73.125"
width="14.625"
height="14.625"
fill="currentColor"
/>
<rect
opacity="0.63"
x="14.625"
y="29.4553"
width="14.625"
height="14.625"
transform="rotate(90 14.625 29.4553)"
fill="currentColor"
/>
<rect
opacity="0.63"
x="14.625"
y="73.125"
width="14.625"
height="14.625"
transform="rotate(90 14.625 73.125)"
fill="currentColor"
/>
<rect
opacity="0.63"
x="117"
y="29.25"
width="14.625"
height="14.625"
transform="rotate(90 117 29.25)"
fill="currentColor"
/>
<rect
opacity="0.63"
x="117"
y="73.125"
width="14.625"
height="14.625"
transform="rotate(90 117 73.125)"
fill="currentColor"
/>
<rect
opacity="0.86"
x="87.75"
y="14.625"
width="14.625"
height="14.625"
fill="currentColor"
/>
</svg>
<div className="absolute inset-x-0 top-0 h-40 bg-gradient-to-b from-white" />
<div className="absolute inset-x-0 bottom-0 h-40 bg-gradient-to-t from-white" />
</div>
)
}