Skip to content

Commit d0cce59

Browse files
authored
Merge pull request #9 from nayandas69/dev
feat: improve TOP LANGUAGES section styling and visual hierarchy
2 parents e5304d6 + 193d812 commit d0cce59

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/services/card.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ export function renderCard(
240240
${compact ? '' : `.bio{font-size:11px;fill:#${c.text};opacity:.65}.tw{font-size:11px;fill:#${c.text};opacity:.7}.lang{font-size:10px;fill:#${c.text}}`}
241241
.stat{font-size:14px;font-weight:700;fill:#${c.text}}
242242
.stat-label{font-size:9px;font-weight:600;fill:#${c.text};opacity:.55;text-transform:uppercase;letter-spacing:.6px}
243-
.sec{font-size:9px;font-weight:600;fill:#${c.text};opacity:.5;text-transform:uppercase;letter-spacing:.6px}
243+
.sec{font-size:9px;font-weight:600;fill:#${c.text};opacity:.6;text-transform:uppercase;letter-spacing:.7px}
244244
</style>
245245
<rect class="bg" width="${W}" height="${H}" rx="10" stroke="${hideBorder ? 'none' : `#${c.border}`}" stroke-width="1"/>
246246
<circle cx="${P + avatarSize / 2}" cy="${P + avatarSize / 2}" r="${avatarSize / 2 + 2}" fill="none" stroke="#${c.border}" stroke-width="1" opacity=".6"/>
@@ -279,7 +279,7 @@ export function renderCard(
279279
${/* Only render the language bar and labels when showLanguages is true */ ''}
280280
${
281281
showLanguages
282-
? `<text x="${P}" y="${barY - 8}" class="sec">Top Languages</text>
282+
? `<text x="${P}" y="${barY - 12}" class="sec">Top Languages</text>
283283
<rect x="${P}" y="${barY}" width="${barWidth}" height="8" rx="4" fill="#${c.text}" opacity=".1"/>
284284
<g clip-path="url(#b)">${langRects}</g>
285285
${langLabels}`

0 commit comments

Comments
 (0)