Skip to content

Commit 3d2d71c

Browse files
authored
Fetch latest cursor logo from svgl for light/dark mode (#193)
* Fetch latest cursor logo from svgl for light and dark mode * Fix duplicate icons in agent dropdown --------- Co-authored-by: Chris Tate <ctate@users.noreply.github.com>
1 parent 8261d3a commit 3d2d71c

File tree

1 file changed

+5
-44
lines changed

1 file changed

+5
-44
lines changed

components/logos/cursor.tsx

Lines changed: 5 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -2,62 +2,23 @@ import * as React from 'react'
22
import type { SVGProps } from 'react'
33

44
const Cursor = (props: SVGProps<SVGSVGElement>) => {
5-
const uniqueId = React.useId()
6-
75
return (
86
<svg
97
height="1em"
108
style={{
119
flex: 'none',
1210
lineHeight: 1,
1311
}}
14-
viewBox="0 0 24 24"
12+
viewBox="0 0 466.73 532.09"
1513
width="1em"
1614
xmlns="http://www.w3.org/2000/svg"
17-
className="dark:brightness-100 brightness-0"
1815
{...props}
1916
>
2017
<title>{'Cursor'}</title>
21-
<path d="M11.925 24l10.425-6-10.425-6L1.5 18l10.425 6z" fill={`url(#cursor-fill-0-${uniqueId})`} />
22-
<path d="M22.35 18V6L11.925 0v12l10.425 6z" fill={`url(#cursor-fill-1-${uniqueId})`} />
23-
<path d="M11.925 0L1.5 6v12l10.425-6V0z" fill={`url(#cursor-fill-2-${uniqueId})`} />
24-
<path d="M22.35 6L11.925 24V12L22.35 6z" fill="#555" />
25-
<path d="M22.35 6l-10.425 6L1.5 6h20.85z" fill="#fff" />
26-
<defs>
27-
<linearGradient
28-
gradientUnits="userSpaceOnUse"
29-
id={`cursor-fill-0-${uniqueId}`}
30-
x1={11.925}
31-
x2={11.925}
32-
y1={12}
33-
y2={24}
34-
>
35-
<stop offset={0.16} stopColor="#fff" stopOpacity={0.39} />
36-
<stop offset={0.658} stopColor="#fff" stopOpacity={0.8} />
37-
</linearGradient>
38-
<linearGradient
39-
gradientUnits="userSpaceOnUse"
40-
id={`cursor-fill-1-${uniqueId}`}
41-
x1={22.35}
42-
x2={11.925}
43-
y1={6.037}
44-
y2={12.15}
45-
>
46-
<stop offset={0.182} stopColor="#fff" stopOpacity={0.31} />
47-
<stop offset={0.715} stopColor="#fff" stopOpacity={0} />
48-
</linearGradient>
49-
<linearGradient
50-
gradientUnits="userSpaceOnUse"
51-
id={`cursor-fill-2-${uniqueId}`}
52-
x1={11.925}
53-
x2={1.5}
54-
y1={0}
55-
y2={18}
56-
>
57-
<stop stopColor="#fff" stopOpacity={0.6} />
58-
<stop offset={0.667} stopColor="#fff" stopOpacity={0.22} />
59-
</linearGradient>
60-
</defs>
18+
<path
19+
className="fill-[#26251e] dark:fill-[#edecec]"
20+
d="M457.43,125.94L244.42,2.96c-6.84-3.95-15.28-3.95-22.12,0L9.3,125.94c-5.75,3.32-9.3,9.46-9.3,16.11v247.99c0,6.65,3.55,12.79,9.3,16.11l213.01,122.98c6.84,3.95,15.28,3.95,22.12,0l213.01-122.98c5.75-3.32,9.3-9.46,9.3-16.11v-247.99c0-6.65-3.55-12.79-9.3-16.11h-.01ZM444.05,151.99l-205.63,356.16c-1.39,2.4-5.06,1.42-5.06-1.36v-233.21c0-4.66-2.49-8.97-6.53-11.31L24.87,145.67c-2.4-1.39-1.42-5.06,1.36-5.06h411.26c5.84,0,9.49,6.33,6.57,11.39h-.01Z"
21+
/>
6122
</svg>
6223
)
6324
}

0 commit comments

Comments
 (0)