mirror of
https://github.com/asimonson1125/asimonson1125.github.io.git
synced 2026-02-25 05:09:49 -06:00
142 lines
4.2 KiB
XML
142 lines
4.2 KiB
XML
<svg width="350" height="165" viewBox="0 0 350 165" fill="none" xmlns="http://www.w3.org/2000/svg" role="img" aria-labelledby="descId">
|
|
<title id="titleId"/>
|
|
<desc id="descId"/>
|
|
<style>
|
|
.header {
|
|
font: 600 18px 'Segoe UI', Ubuntu, Sans-Serif;
|
|
fill: #fabd2f;
|
|
animation: fadeInAnimation 0.8s ease-in-out forwards;
|
|
}
|
|
@supports(-moz-appearance: auto) {
|
|
/* Selector detects Firefox */
|
|
.header { font-size: 15.5px; }
|
|
}
|
|
|
|
@keyframes slideInAnimation {
|
|
from {
|
|
width: 0;
|
|
}
|
|
to {
|
|
width: calc(100%-100px);
|
|
}
|
|
}
|
|
@keyframes growWidthAnimation {
|
|
from {
|
|
width: 0;
|
|
}
|
|
to {
|
|
width: 100%;
|
|
}
|
|
}
|
|
.lang-name {
|
|
font: 400 11px "Segoe UI", Ubuntu, Sans-Serif;
|
|
fill: #8ec07c;
|
|
}
|
|
.stagger {
|
|
opacity: 0;
|
|
animation: fadeInAnimation 0.3s ease-in-out forwards;
|
|
}
|
|
#rect-mask rect{
|
|
animation: slideInAnimation 1s ease-in-out forwards;
|
|
}
|
|
.lang-progress{
|
|
animation: growWidthAnimation 0.6s ease-in-out forwards;
|
|
}
|
|
|
|
|
|
|
|
/* Animations */
|
|
@keyframes scaleInAnimation {
|
|
from {
|
|
transform: translate(-5px, 5px) scale(0);
|
|
}
|
|
to {
|
|
transform: translate(-5px, 5px) scale(1);
|
|
}
|
|
}
|
|
@keyframes fadeInAnimation {
|
|
from {
|
|
opacity: 0;
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
|
|
</style>
|
|
|
|
|
|
|
|
<rect data-testid="card-bg" x="0.5" y="0.5" rx="4.5" height="99%" stroke="#e4e2e2" width="349" fill="#282828" stroke-opacity="1"/>
|
|
|
|
|
|
<g data-testid="card-title" transform="translate(25, 35)">
|
|
<g transform="translate(0, 0)">
|
|
<text x="0" y="0" class="header" data-testid="header">Most Used Languages</text>
|
|
</g>
|
|
</g>
|
|
|
|
|
|
<g data-testid="main-card-body" transform="translate(0, 55)">
|
|
|
|
<svg data-testid="lang-items" x="25">
|
|
|
|
<mask id="rect-mask">
|
|
<rect x="0" y="0" width="300" height="8" fill="white" rx="5"/>
|
|
</mask>
|
|
|
|
<rect mask="url(#rect-mask)" data-testid="lang-progress" x="0" y="0" width="128.34" height="8" fill="#f1e05a"/>
|
|
|
|
<rect mask="url(#rect-mask)" data-testid="lang-progress" x="128.34" y="0" width="63.46" height="8" fill="#f34b7d"/>
|
|
|
|
<rect mask="url(#rect-mask)" data-testid="lang-progress" x="191.8" y="0" width="49.7" height="8" fill="#3572A5"/>
|
|
|
|
<rect mask="url(#rect-mask)" data-testid="lang-progress" x="241.5" y="0" width="33.69" height="8" fill="#e34c26"/>
|
|
|
|
<rect mask="url(#rect-mask)" data-testid="lang-progress" x="275.19" y="0" width="24.81" height="8" fill="#563d7c"/>
|
|
|
|
|
|
<g transform="translate(0, 25)">
|
|
<g transform="translate(0, 0)"><g transform="translate(0, 0)">
|
|
<g class="stagger" style="animation-delay: 450ms">
|
|
<circle cx="5" cy="6" r="5" fill="#f1e05a"/>
|
|
<text data-testid="lang-name" x="15" y="10" class="lang-name">
|
|
JavaScript 42.78%
|
|
</text>
|
|
</g>
|
|
</g><g transform="translate(0, 25)">
|
|
<g class="stagger" style="animation-delay: 600ms">
|
|
<circle cx="5" cy="6" r="5" fill="#f34b7d"/>
|
|
<text data-testid="lang-name" x="15" y="10" class="lang-name">
|
|
C++ 21.15%
|
|
</text>
|
|
</g>
|
|
</g><g transform="translate(0, 50)">
|
|
<g class="stagger" style="animation-delay: 750ms">
|
|
<circle cx="5" cy="6" r="5" fill="#3572A5"/>
|
|
<text data-testid="lang-name" x="15" y="10" class="lang-name">
|
|
Python 16.57%
|
|
</text>
|
|
</g>
|
|
</g></g><g transform="translate(150, 0)"><g transform="translate(0, 0)">
|
|
<g class="stagger" style="animation-delay: 450ms">
|
|
<circle cx="5" cy="6" r="5" fill="#e34c26"/>
|
|
<text data-testid="lang-name" x="15" y="10" class="lang-name">
|
|
HTML 11.23%
|
|
</text>
|
|
</g>
|
|
</g><g transform="translate(0, 25)">
|
|
<g class="stagger" style="animation-delay: 600ms">
|
|
<circle cx="5" cy="6" r="5" fill="#563d7c"/>
|
|
<text data-testid="lang-name" x="15" y="10" class="lang-name">
|
|
CSS 8.27%
|
|
</text>
|
|
</g>
|
|
</g></g>
|
|
</g>
|
|
|
|
</svg>
|
|
|
|
</g>
|
|
</svg> |