Skip to content

Commit

Permalink
Merge pull request #37 from suba327777/fix/card-size
Browse files Browse the repository at this point in the history
update: card font-size
  • Loading branch information
suba327777 authored May 26, 2024
2 parents bc54798 + 48d29d7 commit 4f76073
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions ui/card.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ func title(mountainIcon, textColor, username string) string {
return fmt.Sprintf(`
<g>
<g transform="translate(5,8)">%s</g>
<text x="45" y="26" font-size="16" dominant-baseline="middle" text-anchor="start" font-weight="bold" fill="%s">%s</text>
<text x="45" y="26" font-size="18" dominant-baseline="middle" text-anchor="start" font-weight="bold" fill="%s">%s</text>
</g>
`, mountainIcon, textColor, username)
}
Expand All @@ -27,14 +27,14 @@ func leftInfo(dailyCommitsMonthCount, endOfMonth int, treeIcon, climberIcon, tex
<g>
<g>
<g transform="translate(5,75)">%s</g>
<text x="48" y="85" font-size="11" dominant-baseline="middle" text-anchor="start" font-weight="bold" fill="%s">Commit Day</text>
<text x="50" y="100" font-size="11" dominant-baseline="middle" text-anchor="start" font-weight="bold" fill="%s">Per Month</text>
<text x="133" y="90" font-size="10" dominant-baseline="middle" text-anchor="start" font-weight="bold" fill="%s">%d/%d</text>
<text x="46" y="85" font-size="14" dominant-baseline="middle" text-anchor="start" font-weight="bold" fill="%s">Commit Day</text>
<text x="50" y="100" font-size="14" dominant-baseline="middle" text-anchor="start" font-weight="bold" fill="%s">Per Month</text>
<text x="135" y="90" font-size="13" dominant-baseline="middle" text-anchor="start" font-weight="bold" fill="%s">%d/%d</text>
</g>
<g>
<g transform="translate(5,140)">%s</g> <text x="40" y="150" font-size="11" dominant-baseline="middle" text-anchor="start" font-weight="bold" fill="%s">Total Commits</text>
<text x="60" y="165" font-size="11" dominant-baseline="middle" text-anchor="start" font-weight="bold" fill="%s">(2024)</text>
<text x="140" y="155" font-size="10" dominant-baseline="middle" text-anchor="start" font-weight="bold" fill="%s">%s</text>
<g transform="translate(5,140)">%s</g> <text x="40" y="150" font-size="14" dominant-baseline="middle" text-anchor="start" font-weight="bold" fill="%s">Total Commits</text>
<text x="65" y="165" font-size="14" dominant-baseline="middle" text-anchor="start" font-weight="bold" fill="%s">(2024)</text>
<text x="140" y="155" font-size="13" dominant-baseline="middle" text-anchor="start" font-weight="bold" fill="%s">%s</text>
</g>
</g>
Expand Down

0 comments on commit 4f76073

Please sign in to comment.