Fix layout

This commit is contained in:
ryo-ma 2020-08-23 19:58:46 +09:00
parent 4faa467ef4
commit 2f63332132
2 changed files with 4 additions and 4 deletions

View file

@ -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);

View file

@ -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>
`; `;
} }