fix: add action list

This commit is contained in:
Tim Rijkse
2026-01-16 09:23:37 +01:00
parent 337f5dbf5b
commit 5755d43cfc
12 changed files with 761 additions and 75 deletions

31
js/icons/cart-icon.js Normal file
View File

@@ -0,0 +1,31 @@
/**
* Cart Icon (Lucide style shopping cart)
* @param {Object} props - Icon properties
* @param {number} props.size - Icon size (default: 20)
* @param {string} props.color - Icon color (default: currentColor)
* @param {number} props.strokeWidth - Stroke width (default: 2)
* @returns {string} SVG string
*/
export function cartIcon({
size = 20,
color = "currentColor",
strokeWidth = 2,
} = {}) {
return `
<svg
xmlns="http://www.w3.org/2000/svg"
width="${size}"
height="${size}"
viewBox="0 0 24 24"
fill="none"
stroke="${color}"
stroke-width="${strokeWidth}"
stroke-linecap="round"
stroke-linejoin="round"
>
<circle cx="8" cy="21" r="1"/>
<circle cx="19" cy="21" r="1"/>
<path d="M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12"/>
</svg>
`;
}