Skip to main content

SVG

Constant SVG 

Source
pub const SVG: &str = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 240 240\" width=\"240\" height=\"240\" role=\"img\" aria-labelledby=\"petTitle petDesc\">\n  <title id=\"petTitle\">Locky \u{2014} encryption-rust \u{9879}\u{76ee}\u{5ba0}\u{7269} / project pet</title>\n  <desc id=\"petDesc\">\u{4e00}\u{53ea}\u{53cb}\u{5584}\u{7684}\u{6302}\u{9501}\u{5ba0}\u{7269} Locky\u{ff1a}\u{94a5}\u{5319}\u{5b54}\u{662f}\u{5fae}\u{7b11}\u{ff0c}\u{4e00}\u{53ea}\u{624b}\u{6325}\u{52a8}\u{ff0c}\u{53e6}\u{4e00}\u{53ea}\u{63e1}\u{7740}\u{91d1}\u{8272}\u{94a5}\u{5319}\u{3002}\u{5b83}\u{4ee3}\u{8868}\u{8fd9}\u{4e2a}\u{53ef}\u{63d2}\u{62d4}\u{5bc6}\u{7801}\u{5b66}\u{7ec4}\u{4ef6}\u{5e93}\u{ff1a}\u{5bf9}\u{79f0}/\u{975e}\u{5bf9}\u{79f0}\u{52a0}\u{5bc6}\u{3001}\u{54c8}\u{5e0c}\u{3001}\u{5bc6}\u{94a5}\u{6d3e}\u{751f}\u{ff08}HKDF / PBKDF2\u{ff09}\u{4e0e}\u{56fd}\u{5bc6} SM2/SM3/SM4/ZUC\u{3002}</desc>\n\n  <defs>\n    <linearGradient id=\"lyBody\" x1=\"0\" y1=\"0\" x2=\"1\" y2=\"1\">\n      <stop offset=\"0\" stop-color=\"#4F46E5\"/>\n      <stop offset=\"0.55\" stop-color=\"#2563EB\"/>\n      <stop offset=\"1\" stop-color=\"#0E7490\"/>\n    </linearGradient>\n    <linearGradient id=\"lyShackle\" x1=\"0\" y1=\"0\" x2=\"1\" y2=\"1\">\n      <stop offset=\"0\" stop-color=\"#E2E8F0\"/>\n      <stop offset=\"1\" stop-color=\"#64748B\"/>\n    </linearGradient>\n    <linearGradient id=\"lyKey\" x1=\"0\" y1=\"0\" x2=\"1\" y2=\"1\">\n      <stop offset=\"0\" stop-color=\"#FBBF24\"/>\n      <stop offset=\"1\" stop-color=\"#D97706\"/>\n    </linearGradient>\n    <radialGradient id=\"lyGlow\" cx=\"50%\" cy=\"45%\" r=\"55%\">\n      <stop offset=\"0\" stop-color=\"#6366F1\" stop-opacity=\"0.20\"/>\n      <stop offset=\"1\" stop-color=\"#6366F1\" stop-opacity=\"0\"/>\n    </radialGradient>\n  </defs>\n\n  <circle cx=\"120\" cy=\"116\" r=\"112\" fill=\"url(#lyGlow)\"/>\n\n  <!-- shackle -->\n  <path d=\"M78 118 A42 42 0 0 1 162 118\" fill=\"none\" stroke=\"url(#lyShackle)\" stroke-width=\"17\" stroke-linecap=\"round\"/>\n\n  <!-- left arm, waving -->\n  <path d=\"M60 168 L36 180\" stroke=\"#4338CA\" stroke-width=\"13\" stroke-linecap=\"round\" fill=\"none\"/>\n  <circle cx=\"34\" cy=\"181\" r=\"10\" fill=\"#F8FAFC\" stroke=\"#4338CA\" stroke-width=\"3\"/>\n\n  <!-- right arm + key -->\n  <path d=\"M180 168 L202 180\" stroke=\"#4338CA\" stroke-width=\"13\" stroke-linecap=\"round\" fill=\"none\"/>\n  <circle cx=\"205\" cy=\"181\" r=\"10\" fill=\"#F8FAFC\" stroke=\"#4338CA\" stroke-width=\"3\"/>\n  <g transform=\"translate(208 186) rotate(-46)\">\n    <circle cx=\"0\" cy=\"0\" r=\"6.5\" fill=\"none\" stroke=\"url(#lyKey)\" stroke-width=\"4.5\"/>\n    <rect x=\"5\" y=\"-2.4\" width=\"27\" height=\"4.8\" rx=\"2.4\" fill=\"url(#lyKey)\"/>\n    <rect x=\"22\" y=\"2.4\" width=\"4.4\" height=\"8\" rx=\"2\" fill=\"url(#lyKey)\"/>\n    <rect x=\"29\" y=\"2.4\" width=\"4\" height=\"6\" rx=\"2\" fill=\"url(#lyKey)\"/>\n  </g>\n\n  <!-- body -->\n  <rect x=\"52\" y=\"112\" width=\"136\" height=\"108\" rx=\"30\" fill=\"url(#lyBody)\" stroke=\"#312E81\" stroke-width=\"3\"/>\n  <ellipse cx=\"92\" cy=\"130\" rx=\"26\" ry=\"8\" fill=\"#FFFFFF\" opacity=\"0.14\"/>\n\n  <!-- face -->\n  <ellipse cx=\"76\" cy=\"184\" rx=\"11\" ry=\"6.5\" fill=\"#F472B6\" opacity=\"0.30\"/>\n  <ellipse cx=\"164\" cy=\"184\" rx=\"11\" ry=\"6.5\" fill=\"#F472B6\" opacity=\"0.30\"/>\n  <circle cx=\"96\" cy=\"158\" r=\"13\" fill=\"#F8FAFC\"/>\n  <circle cx=\"144\" cy=\"158\" r=\"13\" fill=\"#F8FAFC\"/>\n  <circle cx=\"98\" cy=\"160\" r=\"6.2\" fill=\"#0F172A\"/>\n  <circle cx=\"146\" cy=\"160\" r=\"6.2\" fill=\"#0F172A\"/>\n  <circle cx=\"95.6\" cy=\"157.4\" r=\"2.1\" fill=\"#FFFFFF\"/>\n  <circle cx=\"143.6\" cy=\"157.4\" r=\"2.1\" fill=\"#FFFFFF\"/>\n\n  <!-- keyhole as the mouth -->\n  <circle cx=\"120\" cy=\"188\" r=\"9\" fill=\"#1E1B4B\" opacity=\"0.6\"/>\n  <path d=\"M115 194 h10 l3.5 14 q-8.5 3 -17 0 z\" fill=\"#1E1B4B\" opacity=\"0.6\"/>\n</svg>\n";
Expand description

项目宠物 SVG(docs/pet.svg 原文;可内联进 HTML,或自行转成 data URI 使用)。