mirror of
https://github.com/reiyua/github-profile-trophy-reiyua-mirror.git
synced 2026-11-17 06:02:09 +11:00
Fix layout
This commit is contained in:
parent
4faa467ef4
commit
2f63332132
2 changed files with 4 additions and 4 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
import { TotalStarTrophy, TotalCommitTrophy, TotalFollowerTrophy } from "./trophies.ts";
|
import { TotalStarTrophy, TotalCommitTrophy, TotalFollowerTrophy } from "./trophies.ts";
|
||||||
|
|
||||||
export class Card {
|
export class Card {
|
||||||
constructor(private width = 1000, private height = 200) {
|
constructor(private width = 800, private height = 200) {
|
||||||
}
|
}
|
||||||
render(): string {
|
render(): string {
|
||||||
const trophy1 = new TotalStarTrophy(0);
|
const trophy1 = new TotalStarTrophy(0);
|
||||||
|
|
|
||||||
|
|
@ -29,9 +29,9 @@ abstract class Trophy {
|
||||||
stroke-opacity="1"
|
stroke-opacity="1"
|
||||||
/>
|
/>
|
||||||
${getTropyIcon(this.rank)}
|
${getTropyIcon(this.rank)}
|
||||||
<text x="50%" y="18" text-anchor="middle" font-family="Courier, Monospace" font-weight="bold" font-size="12" fill="#000">${this.title}</text>
|
<text x="50%" y="18" text-anchor="middle" font-family="Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji;" font-weight="bold" font-size="12" fill="#000">${this.title}</text>
|
||||||
<text x="50%" y="85" text-anchor="middle" font-family="Courier, Monospace" font-weight="bold" font-size="10" fill="#000">${this.topMessage}</text>
|
<text x="50%" y="85" text-anchor="middle" font-family="Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji;" font-weight="bold" font-size="10" fill="#000">${this.topMessage}</text>
|
||||||
<text x="50%" y="95" text-anchor="middle" font-family="Courier, Monospace" font-weight="bold" font-size="10" fill="#000">${this.bottomMessage}</text>
|
<text x="50%" y="97" text-anchor="middle" font-family="Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji;" font-weight="bold" font-size="10" fill="#000">${this.bottomMessage}</text>
|
||||||
</svg>
|
</svg>
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue