Feat : add click event

This commit is contained in:
2024-07-02 11:44:01 +02:00
parent 85d23f4b60
commit e2a0bb5c12
105 changed files with 707 additions and 636 deletions
+4 -4
View File
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
width="298" height="417" viewBox="0 0 298 417">
width="298" height="417" viewBox="0 0 298 417" id="card81">
<defs>
<linearGradient x1="0" y1="0" x2="1" y2="0" gradientUnits="objectBoundingBox" id="grad1">
<stop offset="0" stop-color="gray" stop-opacity="1" />
@@ -20,8 +20,8 @@
<g id="d0">
<text x="0" y="-0.0" font-size="13.333333333333334" text-anchor="middle" fill="black" font-family="Helvetica"></text>
</g>
<g id="d1">
<circle cx="0" cy="0" r="20" fill="red" x="0" y="0" onclick="console.log()" />
<g class="svg_resource_icon" onclick="this.dispatchEvent(new CustomEvent( 'activate_effect', { bubbles: true, composed:true, detail: '0' } ) );" id="d1">
<circle cx="0" cy="0" r="20" fill="red" x="0" y="0" />
<text x="0" y="9" font-size="24" text-anchor="middle" fill="white" font-weight="bold" font-family="Helvetica">1</text>
</g>
<g id="d2">
@@ -42,7 +42,7 @@
</defs>
<use xlink:href="#drop-shadow" />
<g id="background">
<rect x="0" y="0" width="298" height="417" rx="15" ry="18" fill="black" />
<rect x="0" y="0" width="298" height="417" rx="15" ry="18" fill="black" stroke="white" stroke-width="1" />
<rect x="12" y="12" width="274" height="388" rx="0" ry="0" fill="lightgrey" />
</g>
<g id="title">

Before

Width:  |  Height:  |  Size: 2.4 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB