Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
157 changes: 145 additions & 12 deletions apps/mobile/src/components/SourceControlIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,29 +67,162 @@ export function SourceControlIcon(props: {
</Svg>
);
case "azure-devops":
// Microsoft Azure DevOps mark via selfhst/icons (CC BY 4.0): https://github.com/selfhst/icons/blob/main/svg/azure-devops.svg
return (
<Svg width={size} height={size} viewBox="0 0 96 96">
<Svg width={size} height={size} viewBox="0 0 512 512">
<Defs>
<LinearGradient id="azure-a" x1="42.83" x2="15.79" y1="12.69" y2="92.57">
<Stop offset="0" stopColor="#114A8B" />
<Stop offset="1" stopColor="#0669BC" />
<LinearGradient
id="azure-a"
x1="58.027"
x2="58.027"
y1="356.668"
y2="100.668"
gradientTransform="matrix(1 0 0 -1 0 514)"
gradientUnits="userSpaceOnUse"
>
<Stop offset="0" stopColor="#163697" />
<Stop offset=".276" stopColor="#2052cb" />
<Stop offset=".518" stopColor="#2764e7" />
<Stop offset=".879" stopColor="#367af2" />
</LinearGradient>
<LinearGradient
id="azure-b"
x1="58.027"
x2="58.027"
y1="351.334"
y2="292.668"
gradientTransform="matrix(1 0 0 -1 0 514)"
gradientUnits="userSpaceOnUse"
>
<Stop offset="0" stopColor="#102784" />
<Stop offset="1" stopColor="#2052cb" stopOpacity="0" />
</LinearGradient>
<LinearGradient
id="azure-c"
x1="389.98"
x2="107.314"
y1="57.935"
y2="193.935"
gradientTransform="matrix(1 0 0 -1 0 514)"
gradientUnits="userSpaceOnUse"
>
<Stop offset="0" stopColor="#163697" />
<Stop offset=".301" stopColor="#2052cb" />
<Stop offset=".626" stopColor="#2764e7" />
<Stop offset=".926" stopColor="#367af2" />
</LinearGradient>
<LinearGradient
id="azure-d"
x1="391.996"
x2="341.385"
y1="76.552"
y2="78.224"
gradientTransform="matrix(1 0 0 -1 0 514)"
gradientUnits="userSpaceOnUse"
>
<Stop offset="0" stopColor="#102784" />
<Stop offset="1" stopColor="#2052cb" stopOpacity="0" />
</LinearGradient>
<LinearGradient
id="azure-e"
x1="442.24"
x2="442.24"
y1="54.769"
y2="419.38"
gradientTransform="matrix(1 0 0 -1 0 514)"
gradientUnits="userSpaceOnUse"
>
<Stop offset=".043" stopColor="#2052cb" />
<Stop offset=".489" stopColor="#367af2" />
<Stop offset=".943" stopColor="#16bbda" />
</LinearGradient>
<LinearGradient
id="azure-f"
x1="435.596"
x2="425.732"
y1="270.413"
y2="385.266"
gradientTransform="matrix(1 0 0 -1 0 514)"
gradientUnits="userSpaceOnUse"
>
<Stop offset=".134" stopColor="#16bbda" stopOpacity="0" />
<Stop offset=".932" stopColor="#6be7a0" stopOpacity=".8629" />
</LinearGradient>
<LinearGradient id="azure-b" x1="47.84" x2="77.52" y1="10.36" y2="89.44">
<Stop offset="0" stopColor="#3CCBF4" />
<Stop offset="1" stopColor="#2892DF" />
<LinearGradient
id="azure-g"
x1="437.081"
x2="507.893"
y1="204.362"
y2="119.081"
gradientTransform="matrix(1 0 0 -1 0 514)"
gradientUnits="userSpaceOnUse"
>
<Stop offset="0" stopColor="#2c68e0" stopOpacity="0" />
<Stop offset=".898" stopColor="#66c0ff" stopOpacity=".5" />
</LinearGradient>
<LinearGradient
id="azure-h"
x1="99.399"
x2="352.75"
y1="279.26"
y2="498.676"
gradientTransform="matrix(1 0 0 -1 0 514)"
gradientUnits="userSpaceOnUse"
>
<Stop offset=".005" stopColor="#367af2" />
<Stop offset=".507" stopColor="#0fafff" />
<Stop offset="1" stopColor="#26cfe8" />
</LinearGradient>
<LinearGradient
id="azure-i"
x1="184.342"
x2="338.581"
y1="356.795"
y2="480.642"
gradientTransform="matrix(1 0 0 -1 0 514)"
gradientUnits="userSpaceOnUse"
>
<Stop offset=".443" stopColor="#26cfe8" stopOpacity="0" />
<Stop offset=".897" stopColor="#6be7a0" stopOpacity=".8629" />
</LinearGradient>
</Defs>
<Path
d="M116.1 73.4c-5.8 5.8-13.7 13.8-13.7 22.6v216.4c0 8.9-3.3 17.3-9 23.4s-13.3 9.2-21.1 8.5l-42.7-3.1c-7.9-.5-15-3.9-20.3-9.3-5.7-5.7-9.3-13.7-9.3-22.6V202.7c0-8.9 3.6-16.9 9.4-22.6l2-1.9z"
fill="url(#azure-a)"
d="M33.34 6.54h26.04l-27.03 80.1a4.15 4.15 0 0 1-3.94 2.81H8.15a4.14 4.14 0 0 1-3.93-5.47L29.4 9.38a4.15 4.15 0 0 1 3.94-2.83z"
/>
<Path
fill="#0078D4"
d="M71.17 60.26H29.88a1.91 1.91 0 0 0-1.3 3.31l26.53 24.76a4.17 4.17 0 0 0 2.85 1.13h23.38z"
d="M116.1 73.4c-5.8 5.8-13.7 13.8-13.7 22.6v216.4c0 8.9-3.3 17.3-9 23.4s-13.3 9.2-21.1 8.5l-42.7-3.1c-7.9-.5-15-3.9-20.3-9.3-5.7-5.7-9.3-13.7-9.3-22.6V202.7c0-8.9 3.6-16.9 9.4-22.6l2-1.9z"
fill="url(#azure-b)"
/>
<Path
fill="url(#azure-b)"
d="M66.6 9.36a4.14 4.14 0 0 0-3.93-2.82H33.65a4.15 4.15 0 0 1 3.93 2.82l25.18 74.62a4.15 4.15 0 0 1-3.93 5.48h29.02a4.15 4.15 0 0 0 3.93-5.48z"
d="m500.5 366-128 106.7c-5.5 4.6-12.7 7.4-20.5 7.4q-2.4 0-4.8-.3l-112.5-16.9v27.8c0 11.7-9.6 21.3-21.3 21.3-7.3 0-13.5-3.6-17.5-9.1l-36.2-51.4-5.4-7.6-36.6-51.9-7-10c-2.6-3.5-3.9-7.8-3.9-12.3 0-6 2.5-11.6 6.8-15.7 3.8-3.7 9.1-5.8 14.5-5.8.4 0 1 .1 1.5.1l105.2 7.5L384 366.5l93.7 6.7c.7.1 1.6.1 2.3.1 7.8 0 14.9-2.7 20.5-7.3"
fill="url(#azure-c)"
/>
<Path
d="m500.5 366-128 106.7c-5.5 4.6-12.7 7.4-20.5 7.4q-2.4 0-4.8-.3l-112.5-16.9v27.8c0 11.7-9.6 21.3-21.3 21.3-7.3 0-13.5-3.6-17.5-9.1l-36.2-51.4-5.4-7.6-36.6-51.9-7-10c-2.6-3.5-3.9-7.8-3.9-12.3 0-6 2.5-11.6 6.8-15.7 3.8-3.7 9.1-5.8 14.5-5.8.4 0 1 .1 1.5.1l105.2 7.5L384 366.5l93.7 6.7c.7.1 1.6.1 2.3.1 7.8 0 14.9-2.7 20.5-7.3"
fill="url(#azure-d)"
/>
<Path
d="M512 170.7v170.7c0 9.9-4.5 18.8-11.5 24.6l-128 106.7c7-5.9 11.5-14.7 11.5-24.6V175.3c0-16.7 13-30.7 29.8-31.9l63.9-4.6c.7-.1 1.6-.1 2.3-.1 7.8 0 14.9 2.8 20.5 7.4 7 5.8 11.5 14.6 11.5 24.6"
fill="url(#azure-e)"
/>
<Path
d="M512 170.7v170.7c0 9.9-4.5 18.8-11.5 24.6l-128 106.7c7-5.9 11.5-14.7 11.5-24.6V175.3c0-16.7 13-30.7 29.8-31.9l63.9-4.6c.7-.1 1.6-.1 2.3-.1 7.8 0 14.9 2.8 20.5 7.4 7 5.8 11.5 14.6 11.5 24.6"
fill="url(#azure-f)"
fillOpacity=".7"
/>
<Path
d="M512 170.7v170.7c0 9.9-4.5 18.8-11.5 24.6l-128 106.7c7-5.9 11.5-14.7 11.5-24.6V175.3c0-16.7 13-30.7 29.8-31.9l63.9-4.6c.7-.1 1.6-.1 2.3-.1 7.8 0 14.9 2.8 20.5 7.4 7 5.8 11.5 14.6 11.5 24.6"
fill="url(#azure-g)"
/>
<Path
d="M384 125.5c0 11.2-8.6 20.5-19.8 21.3-.5 0-1.1.1-1.6.1l-127.9 9.2-132.3 9.1-72.7 5.5c-6.9.4-13.2 3.1-18.2 7.4L116.1 73.4c4.7-4.7 10.9-8 17.8-9.1l100.8-15.1V21.3C234.7 9.6 244.3 0 256 0c5.8 0 11.1 2.3 14.9 6.1l33.4 32.6 16.9 16.5 40.3 39.3 16.1 15.8c4.1 3.9 6.4 9.4 6.4 15.2"
fill="url(#azure-h)"
/>
<Path
d="M384 125.5c0 11.2-8.6 20.5-19.8 21.3-.5 0-1.1.1-1.6.1l-127.9 9.2-132.3 9.1-72.7 5.5c-6.9.4-13.2 3.1-18.2 7.4L116.1 73.4c4.7-4.7 10.9-8 17.8-9.1l100.8-15.1V21.3C234.7 9.6 244.3 0 256 0c5.8 0 11.1 2.3 14.9 6.1l33.4 32.6 16.9 16.5 40.3 39.3 16.1 15.8c4.1 3.9 6.4 9.4 6.4 15.2"
fill="url(#azure-i)"
fillOpacity=".5"
/>
</Svg>
);
Expand Down
174 changes: 135 additions & 39 deletions apps/web/src/components/Icons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -158,70 +158,166 @@ export const GitLabIcon = ({
</svg>
);

// Microsoft Azure DevOps mark via selfhst/icons (CC BY 4.0): https://github.com/selfhst/icons/blob/main/svg/azure-devops.svg
export const AzureDevOpsIcon: Icon = (props) => {
const id = useId().replaceAll(":", "");
const gradientA = `${id}-azure-a`;
const gradientB = `${id}-azure-b`;
const gradientC = `${id}-azure-c`;
const gradientId = `${id}-azure`;

return (
<svg {...props} viewBox="0 0 96 96">
<svg {...props} viewBox="0 0 512 512">
<defs>
<linearGradient
id={gradientA}
x1="-1032.17"
x2="-1059.21"
y1="145.31"
y2="65.43"
gradientTransform="matrix(1 0 0 -1 1075 158)"
id={`${gradientId}-a`}
x1="58.027"
x2="58.027"
y1="356.668"
y2="100.668"
gradientTransform="matrix(1 0 0 -1 0 514)"
gradientUnits="userSpaceOnUse"
>
<stop offset="0" stopColor="#114a8b" />
<stop offset="1" stopColor="#0669bc" />
<stop offset="0" stopColor="#163697" />
<stop offset=".276" stopColor="#2052cb" />
<stop offset=".518" stopColor="#2764e7" />
<stop offset=".879" stopColor="#367af2" />
</linearGradient>
<linearGradient
id={gradientB}
x1="-1023.73"
x2="-1029.98"
y1="108.08"
y2="105.97"
gradientTransform="matrix(1 0 0 -1 1075 158)"
id={`${gradientId}-b`}
x1="58.027"
x2="58.027"
y1="351.334"
y2="292.668"
gradientTransform="matrix(1 0 0 -1 0 514)"
gradientUnits="userSpaceOnUse"
>
<stop offset="0" stopOpacity=".3" />
<stop offset=".07" stopOpacity=".2" />
<stop offset=".32" stopOpacity=".1" />
<stop offset=".62" stopOpacity=".05" />
<stop offset="1" stopOpacity="0" />
<stop offset="0" stopColor="#102784" />
<stop offset="1" stopColor="#2052cb" stopOpacity="0" />
</linearGradient>
<linearGradient
id={gradientC}
x1="-1027.16"
x2="-997.48"
y1="147.64"
y2="68.56"
gradientTransform="matrix(1 0 0 -1 1075 158)"
id={`${gradientId}-c`}
x1="389.98"
x2="107.314"
y1="57.935"
y2="193.935"
gradientTransform="matrix(1 0 0 -1 0 514)"
gradientUnits="userSpaceOnUse"
>
<stop offset="0" stopColor="#3ccbf4" />
<stop offset="1" stopColor="#2892df" />
<stop offset="0" stopColor="#163697" />
<stop offset=".301" stopColor="#2052cb" />
<stop offset=".626" stopColor="#2764e7" />
<stop offset=".926" stopColor="#367af2" />
</linearGradient>
<linearGradient
id={`${gradientId}-d`}
x1="391.996"
x2="341.385"
y1="76.552"
y2="78.224"
gradientTransform="matrix(1 0 0 -1 0 514)"
gradientUnits="userSpaceOnUse"
>
<stop offset="0" stopColor="#102784" />
<stop offset="1" stopColor="#2052cb" stopOpacity="0" />
</linearGradient>
<linearGradient
id={`${gradientId}-e`}
x1="442.24"
x2="442.24"
y1="54.769"
y2="419.38"
gradientTransform="matrix(1 0 0 -1 0 514)"
gradientUnits="userSpaceOnUse"
>
<stop offset=".043" stopColor="#2052cb" />
<stop offset=".489" stopColor="#367af2" />
<stop offset=".943" stopColor="#16bbda" />
</linearGradient>
<linearGradient
id={`${gradientId}-f`}
x1="435.596"
x2="425.732"
y1="270.413"
y2="385.266"
gradientTransform="matrix(1 0 0 -1 0 514)"
gradientUnits="userSpaceOnUse"
>
<stop offset=".134" stopColor="#16bbda" stopOpacity="0" />
<stop offset=".932" stopColor="#6be7a0" stopOpacity=".8629" />
</linearGradient>
<linearGradient
id={`${gradientId}-g`}
x1="437.081"
x2="507.893"
y1="204.362"
y2="119.081"
gradientTransform="matrix(1 0 0 -1 0 514)"
gradientUnits="userSpaceOnUse"
>
<stop offset="0" stopColor="#2c68e0" stopOpacity="0" />
<stop offset=".898" stopColor="#66c0ff" stopOpacity=".5" />
</linearGradient>
<linearGradient
id={`${gradientId}-h`}
x1="99.399"
x2="352.75"
y1="279.26"
y2="498.676"
gradientTransform="matrix(1 0 0 -1 0 514)"
gradientUnits="userSpaceOnUse"
>
<stop offset=".005" stopColor="#367af2" />
<stop offset=".507" stopColor="#0fafff" />
<stop offset="1" stopColor="#26cfe8" />
</linearGradient>
<linearGradient
id={`${gradientId}-i`}
x1="184.342"
x2="338.581"
y1="356.795"
y2="480.642"
gradientTransform="matrix(1 0 0 -1 0 514)"
gradientUnits="userSpaceOnUse"
>
<stop offset=".443" stopColor="#26cfe8" stopOpacity="0" />
<stop offset=".897" stopColor="#6be7a0" stopOpacity=".8629" />
</linearGradient>
</defs>
<path
fill={`url(#${gradientA})`}
d="M33.34 6.54h26.04l-27.03 80.1a4.15 4.15 0 0 1-3.94 2.81H8.15a4.14 4.14 0 0 1-3.93-5.47L29.4 9.38a4.15 4.15 0 0 1 3.94-2.83z"
d="M116.1 73.4c-5.8 5.8-13.7 13.8-13.7 22.6v216.4c0 8.9-3.3 17.3-9 23.4s-13.3 9.2-21.1 8.5l-42.7-3.1c-7.9-.5-15-3.9-20.3-9.3-5.7-5.7-9.3-13.7-9.3-22.6V202.7c0-8.9 3.6-16.9 9.4-22.6l2-1.9z"
fill={`url(#${gradientId}-a)`}
/>
<path
d="M116.1 73.4c-5.8 5.8-13.7 13.8-13.7 22.6v216.4c0 8.9-3.3 17.3-9 23.4s-13.3 9.2-21.1 8.5l-42.7-3.1c-7.9-.5-15-3.9-20.3-9.3-5.7-5.7-9.3-13.7-9.3-22.6V202.7c0-8.9 3.6-16.9 9.4-22.6l2-1.9z"
fill={`url(#${gradientId}-b)`}
/>
<path
d="m500.5 366-128 106.7c-5.5 4.6-12.7 7.4-20.5 7.4q-2.4 0-4.8-.3l-112.5-16.9v27.8c0 11.7-9.6 21.3-21.3 21.3-7.3 0-13.5-3.6-17.5-9.1l-36.2-51.4-5.4-7.6-36.6-51.9-7-10c-2.6-3.5-3.9-7.8-3.9-12.3 0-6 2.5-11.6 6.8-15.7 3.8-3.7 9.1-5.8 14.5-5.8.4 0 1 .1 1.5.1l105.2 7.5L384 366.5l93.7 6.7c.7.1 1.6.1 2.3.1 7.8 0 14.9-2.7 20.5-7.3"
fill={`url(#${gradientId}-c)`}
/>
<path
d="m500.5 366-128 106.7c-5.5 4.6-12.7 7.4-20.5 7.4q-2.4 0-4.8-.3l-112.5-16.9v27.8c0 11.7-9.6 21.3-21.3 21.3-7.3 0-13.5-3.6-17.5-9.1l-36.2-51.4-5.4-7.6-36.6-51.9-7-10c-2.6-3.5-3.9-7.8-3.9-12.3 0-6 2.5-11.6 6.8-15.7 3.8-3.7 9.1-5.8 14.5-5.8.4 0 1 .1 1.5.1l105.2 7.5L384 366.5l93.7 6.7c.7.1 1.6.1 2.3.1 7.8 0 14.9-2.7 20.5-7.3"
fill={`url(#${gradientId}-d)`}
/>
<path
d="M512 170.7v170.7c0 9.9-4.5 18.8-11.5 24.6l-128 106.7c7-5.9 11.5-14.7 11.5-24.6V175.3c0-16.7 13-30.7 29.8-31.9l63.9-4.6c.7-.1 1.6-.1 2.3-.1 7.8 0 14.9 2.8 20.5 7.4 7 5.8 11.5 14.6 11.5 24.6"
fill={`url(#${gradientId}-e)`}
/>
<path
d="M512 170.7v170.7c0 9.9-4.5 18.8-11.5 24.6l-128 106.7c7-5.9 11.5-14.7 11.5-24.6V175.3c0-16.7 13-30.7 29.8-31.9l63.9-4.6c.7-.1 1.6-.1 2.3-.1 7.8 0 14.9 2.8 20.5 7.4 7 5.8 11.5 14.6 11.5 24.6"
fill={`url(#${gradientId}-f)`}
fillOpacity=".7"
/>
<path
fill="#0078d4"
d="M71.17 60.26H29.88a1.91 1.91 0 0 0-1.3 3.31l26.53 24.76a4.17 4.17 0 0 0 2.85 1.13h23.38z"
d="M512 170.7v170.7c0 9.9-4.5 18.8-11.5 24.6l-128 106.7c7-5.9 11.5-14.7 11.5-24.6V175.3c0-16.7 13-30.7 29.8-31.9l63.9-4.6c.7-.1 1.6-.1 2.3-.1 7.8 0 14.9 2.8 20.5 7.4 7 5.8 11.5 14.6 11.5 24.6"
fill={`url(#${gradientId}-g)`}
/>
<path
fill={`url(#${gradientB})`}
d="M33.34 6.54a4.12 4.12 0 0 0-3.95 2.88L4.25 83.92a4.14 4.14 0 0 0 3.91 5.54h20.79a4.44 4.44 0 0 0 3.4-2.9l5.02-14.78 17.91 16.7a4.24 4.24 0 0 0 2.67.97h23.29L71.02 60.26H41.24L59.47 6.55z"
d="M384 125.5c0 11.2-8.6 20.5-19.8 21.3-.5 0-1.1.1-1.6.1l-127.9 9.2-132.3 9.1-72.7 5.5c-6.9.4-13.2 3.1-18.2 7.4L116.1 73.4c4.7-4.7 10.9-8 17.8-9.1l100.8-15.1V21.3C234.7 9.6 244.3 0 256 0c5.8 0 11.1 2.3 14.9 6.1l33.4 32.6 16.9 16.5 40.3 39.3 16.1 15.8c4.1 3.9 6.4 9.4 6.4 15.2"
fill={`url(#${gradientId}-h)`}
/>
<path
fill={`url(#${gradientC})`}
d="M66.6 9.36a4.14 4.14 0 0 0-3.93-2.82H33.65a4.15 4.15 0 0 1 3.93 2.82l25.18 74.62a4.15 4.15 0 0 1-3.93 5.48h29.02a4.15 4.15 0 0 0 3.93-5.48z"
d="M384 125.5c0 11.2-8.6 20.5-19.8 21.3-.5 0-1.1.1-1.6.1l-127.9 9.2-132.3 9.1-72.7 5.5c-6.9.4-13.2 3.1-18.2 7.4L116.1 73.4c4.7-4.7 10.9-8 17.8-9.1l100.8-15.1V21.3C234.7 9.6 244.3 0 256 0c5.8 0 11.1 2.3 14.9 6.1l33.4 32.6 16.9 16.5 40.3 39.3 16.1 15.8c4.1 3.9 6.4 9.4 6.4 15.2"
fill={`url(#${gradientId}-i)`}
fillOpacity=".5"
/>
</svg>
);
Expand Down
Loading