36 lines
1.6 KiB
PHP
36 lines
1.6 KiB
PHP
<?php
|
|
declare(strict_types=1);
|
|
|
|
/**
|
|
* 종량제 시스템 — 미니멀 에코 마크 (링 + 잎)
|
|
*
|
|
* @var string $svgClass Tailwind classes for the SVG root
|
|
*/
|
|
$svgClass = $svgClass ?? 'h-6 w-6 shrink-0';
|
|
$gid = 'jrMark_' . bin2hex(random_bytes(4));
|
|
?>
|
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" class="<?= esc($svgClass, 'attr') ?>" aria-hidden="true" focusable="false">
|
|
<defs>
|
|
<linearGradient id="<?= esc($gid, 'attr') ?>_ring" x1="5" y1="5" x2="19" y2="19" gradientUnits="userSpaceOnUse">
|
|
<stop offset="0" stop-color="#10b981"/>
|
|
<stop offset="1" stop-color="#047857"/>
|
|
</linearGradient>
|
|
<linearGradient id="<?= esc($gid, 'attr') ?>_leaf" x1="12" y1="6" x2="12" y2="18.5" gradientUnits="userSpaceOnUse">
|
|
<stop offset="0" stop-color="#6ee7b7"/>
|
|
<stop offset="1" stop-color="#059669"/>
|
|
</linearGradient>
|
|
</defs>
|
|
<circle cx="12" cy="12" r="10.5" fill="#f7fefb"/>
|
|
<!-- 외곽 링: 우상단을 비우고 화살표로 순환감을 최소 요소로 표현 -->
|
|
<path fill="none"
|
|
stroke="url(#<?= esc($gid, 'attr') ?>_ring)"
|
|
stroke-width="1.8"
|
|
stroke-linecap="round"
|
|
d="M8.1 5.5a7.8 7.8 0 107.9 1.7"/>
|
|
<path d="M18.5 4.95l1.7 1.45-2.22.62z" fill="#059669"/>
|
|
<!-- 중앙 잎 -->
|
|
<path fill="url(#<?= esc($gid, 'attr') ?>_leaf)"
|
|
d="M12 5.7C9.55 7.35 8.75 10.25 10.95 14.95C11.35 15.8 11.7 16.45 12 16.95C12.3 16.45 12.65 15.8 13.05 14.95C15.25 10.25 14.45 7.35 12 5.7z"/>
|
|
<path stroke="#ecfdf5" stroke-width="0.65" stroke-linecap="round" fill="none" d="M11.95 7.55C11.85 10.2 11.95 12.45 12.05 15.35"/>
|
|
</svg>
|