Skip to content

Commit e09d3c7

Browse files
committed
chore(icons): use Atlassian's gradient marks for Jira and Confluence
Replaces the flat #1868DB Jira and Confluence marks with Atlassian's gradient versions, matching the Atlassian mark added alongside them. - gradient ids go through `useId()` rather than the source SVGs' static ids, which would collide wherever two of these icons render on one page — the integrations list and the landing loops both do - pads the Atlassian viewBox so its artwork fills ~78% of the box, matching the inset Atlassian ships on the Jira and Confluence marks; without it the mark renders ~30% heavier than its siblings in the same tile Visual-only, but these marks render in ~60 files, so it is split from the credential fix to stay independently revertable.
1 parent 50e3676 commit e09d3c7

1 file changed

Lines changed: 81 additions & 6 deletions

File tree

apps/sim/components/icons.tsx

Lines changed: 81 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2273,20 +2273,56 @@ export function AtlassianIcon(props: SVGProps<SVGSVGElement>) {
22732273
}
22742274

22752275
export function ConfluenceIcon(props: SVGProps<SVGSVGElement>) {
2276+
const id = useId()
2277+
const topGradientId = `confluence_top_${id}`
2278+
const bottomGradientId = `confluence_bottom_${id}`
2279+
22762280
return (
22772281
<svg
22782282
{...props}
22792283
width='24'
22802284
height='24'
2281-
viewBox='0 3 21 24'
2285+
viewBox='0 0 128 128'
22822286
focusable='false'
22832287
fill='none'
22842288
aria-hidden='true'
22852289
xmlns='http://www.w3.org/2000/svg'
22862290
>
2291+
<defs>
2292+
<linearGradient
2293+
id={bottomGradientId}
2294+
gradientUnits='userSpaceOnUse'
2295+
x1='26.791'
2296+
y1='28.467'
2297+
x2='11.792'
2298+
y2='19.855'
2299+
gradientTransform='scale(4)'
2300+
>
2301+
<stop offset='0' stopColor='#0052cc' />
2302+
<stop offset='0.918' stopColor='#2380fb' />
2303+
<stop offset='1' stopColor='#2684ff' />
2304+
</linearGradient>
2305+
<linearGradient
2306+
id={topGradientId}
2307+
gradientUnits='userSpaceOnUse'
2308+
x1='5.209'
2309+
y1='2.523'
2310+
x2='20.208'
2311+
y2='11.136'
2312+
gradientTransform='scale(4)'
2313+
>
2314+
<stop offset='0' stopColor='#0052cc' />
2315+
<stop offset='0.918' stopColor='#2380fb' />
2316+
<stop offset='1' stopColor='#2684ff' />
2317+
</linearGradient>
2318+
</defs>
22872319
<path
2288-
fill='#1868DB'
2289-
d='M20.6 20.23c-6.58-3.18-8.51-3.66-11.28-3.66-3.25 0-6.03 1.36-8.51 5.16l-.407.62c-.333.51-.407.7-.407.92s.111.4.518.66l4.18 2.6c.221.15.406.22.59.22.22 0 .37-.11.59-.44l.666-1.02c1.03-1.57 1.96-2.09 3.14-2.09 1.03 0 2.26.293 3.77 1.02l4.37 2.05c.444.22.93.11 1.15-.403l2.07-4.54c.222-.512.07-.842-.444-1.1M1.41 12.22c6.58 3.18 8.51 3.66 11.28 3.66 3.26 0 6.03-1.35 8.51-5.16l.407-.622c.332-.512.41-.695.41-.915s-.11-.402-.518-.658L17.31 5.93c-.222-.147-.407-.22-.592-.22-.222 0-.37.11-.592.44l-.665 1.02c-1.04 1.57-1.96 2.09-3.14 2.09-1.04 0-2.26-.293-3.77-1.02L4.18 6.18c-.444-.22-.925-.11-1.15.402L.962 11.12c-.222.51-.74.84.444 1.1'
2320+
fill={`url(#${bottomGradientId})`}
2321+
d='M19.492 86.227a249.047 249.047 0 00-3.047 4.933c-.867 1.45-.433 3.336 1.016 4.207l19.863 12.188c1.45.87 3.332.433 4.203-1.016a139.349 139.349 0 012.899-4.934c7.832-12.91 15.804-11.46 30.011-4.64l19.72 9.281c1.593.727 3.335 0 4.058-1.45l9.426-21.323c.722-1.453 0-3.336-1.454-4.063-4.203-1.887-12.464-5.805-19.714-9.43-26.82-12.914-49.586-12.043-66.98 16.247zm0 0'
2322+
/>
2323+
<path
2324+
fill={`url(#${topGradientId})`}
2325+
d='M108.508 37.773a249.047 249.047 0 003.047-4.933c.87-1.45.433-3.336-1.016-4.207L90.676 16.445c-1.45-.87-3.332-.433-4.203 1.016a133.55 133.55 0 01-2.899 4.934c-7.832 12.91-15.804 11.46-30.011 4.64l-19.72-9.281c-1.593-.727-3.331 0-4.058 1.45l-9.422 21.323c-.726 1.453 0 3.34 1.45 4.063 4.203 1.887 12.468 5.805 19.714 9.43 26.825 12.77 49.586 12.042 66.98-16.247zm0 0'
22902326
/>
22912327
</svg>
22922328
)
@@ -2819,19 +2855,58 @@ export function LinkupIcon(props: SVGProps<SVGSVGElement>) {
28192855
}
28202856

28212857
export function JiraIcon(props: SVGProps<SVGSVGElement>) {
2858+
const id = useId()
2859+
const middleGradientId = `jira_middle_${id}`
2860+
const bottomGradientId = `jira_bottom_${id}`
2861+
28222862
return (
28232863
<svg
28242864
{...props}
28252865
xmlns='http://www.w3.org/2000/svg'
2826-
viewBox='0 0 30 30'
2866+
viewBox='0 0 128 128'
28272867
width='24'
28282868
height='24'
28292869
focusable='false'
2870+
fill='none'
28302871
aria-hidden='true'
28312872
>
2873+
<defs>
2874+
<linearGradient
2875+
id={middleGradientId}
2876+
gradientUnits='userSpaceOnUse'
2877+
x1='22.034'
2878+
y1='9.773'
2879+
x2='17.118'
2880+
y2='14.842'
2881+
gradientTransform='scale(4)'
2882+
>
2883+
<stop offset='0.176' stopColor='#0052cc' />
2884+
<stop offset='1' stopColor='#2684ff' />
2885+
</linearGradient>
2886+
<linearGradient
2887+
id={bottomGradientId}
2888+
gradientUnits='userSpaceOnUse'
2889+
x1='16.641'
2890+
y1='15.564'
2891+
x2='10.957'
2892+
y2='21.094'
2893+
gradientTransform='scale(4)'
2894+
>
2895+
<stop offset='0.176' stopColor='#0052cc' />
2896+
<stop offset='1' stopColor='#2684ff' />
2897+
</linearGradient>
2898+
</defs>
2899+
<path
2900+
fill='#2684ff'
2901+
d='M108.023 16H61.805c0 11.52 9.324 20.848 20.847 20.848h8.5v8.226c0 11.52 9.328 20.848 20.848 20.848V19.977A3.98 3.98 0 00108.023 16zm0 0'
2902+
/>
2903+
<path
2904+
fill={`url(#${middleGradientId})`}
2905+
d='M85.121 39.04H38.902c0 11.519 9.325 20.847 20.844 20.847h8.504v8.226c0 11.52 9.328 20.848 20.848 20.848V43.016a3.983 3.983 0 00-3.977-3.977zm0 0'
2906+
/>
28322907
<path
2833-
fill='#1868DB'
2834-
d='M11.03 21.99h-2.22c-3.35 0-5.75-2.05-5.75-5.05h11.93c.619 0 1.02.44 1.02 1.06v12.01c-2.98 0-4.98-2.42-4.98-5.78zm5.89-5.97h-2.22c-3.35 0-5.75-2.01-5.75-5.01h11.93c.618 0 1.06.402 1.06 1.02V24.04c-2.98 0-5.02-2.42-5.02-5.78zm5.93-5.93h-2.22c-3.35 0-5.75-2.05-5.75-5.05h11.93c.618 0 1.02.439 1.02 1.02v12.01c-2.98 0-4.98-2.42-4.98-5.78z'
2908+
fill={`url(#${bottomGradientId})`}
2909+
d='M62.219 62.078H16c0 11.524 9.324 20.848 20.848 20.848h8.5v8.23c0 11.52 9.328 20.844 20.847 20.844V66.059a3.984 3.984 0 00-3.976-3.98zm0 0'
28352910
/>
28362911
</svg>
28372912
)

0 commit comments

Comments
 (0)