1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
|
<svg width="740px" height="110px" xmlns="http://www.w3.org/2000/svg">
<style>
.fg { fill: #AAAAAA }
.bg { background: #000000 }
.fg-cyan { fill: #00AAAA }
.fg-green { fill: #00AA00 }
.fg-red { fill: #AA0000 }
.fg-yellow { fill: #AA5500 }
.container {
padding: 0 10px;
line-height: 18px;
}
.bold { font-weight: bold; }
tspan {
font: 14px SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace;
white-space: pre;
line-height: 18px;
}
</style>
<rect width="100%" height="100%" y="0" rx="4.5" class="bg" />
<text xml:space="preserve" class="container fg">
<tspan x="10px" y="28px"><tspan class="fg-green bold">my-package</tspan>
</tspan>
<tspan x="10px" y="46px"><tspan class="fg-green bold">version:</tspan><tspan> 0.2.0 </tspan><tspan class="fg-yellow bold">(latest 0.2.1 </tspan><tspan class="fg-cyan bold">from registry `dummy-registry`</tspan><tspan class="fg-yellow bold">)</tspan>
</tspan>
<tspan x="10px" y="64px"><tspan class="fg-green bold">license:</tspan><tspan> </tspan><tspan class="fg-red bold">unknown</tspan>
</tspan>
<tspan x="10px" y="82px"><tspan class="fg-green bold">rust-version:</tspan><tspan> 1.0.0</tspan>
</tspan>
<tspan x="10px" y="100px">
</tspan>
</text>
</svg>
|