feat: introduce local-first SVG workbench
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
export const STARTER_SVG = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 420" width="640" height="420" role="img" aria-labelledby="title desc">
|
||||
<title id="title">SVG Tools starter document</title>
|
||||
<desc id="desc">A small source-faithful vector editing example.</desc>
|
||||
<defs>
|
||||
<linearGradient id="sky" x1="0" y1="0" x2="1" y2="1">
|
||||
<stop offset="0" stop-color="#725cff"/>
|
||||
<stop offset="1" stop-color="#20b8a6"/>
|
||||
</linearGradient>
|
||||
</defs>
|
||||
<rect id="background" x="20" y="20" width="600" height="380" rx="26" fill="#f6f8fc" stroke="#ccd4e2"/>
|
||||
<circle id="sun" cx="500" cy="105" r="48" fill="#ffcb57"/>
|
||||
<path id="curve" d="M90 300 L150 255 C210 175 285 345 350 250 S470 180 545 285 Q575 315 590 270 T615 250 A38 24 25 0 1 570 335" fill="none" stroke="url(#sky)" stroke-width="14" stroke-linecap="round"/>
|
||||
<text id="label" x="72" y="105" font-family="system-ui, sans-serif" font-size="38" font-weight="700" fill="#233047">SVG Tools</text>
|
||||
</svg>`;
|
||||
|
||||
export const EMPTY_SVG = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 420" width="640" height="420">
|
||||
<title>Untitled SVG</title>
|
||||
</svg>`;
|
||||
Reference in New Issue
Block a user