mirror of
https://github.com/reiyua/github-profile-trophy-reiyua-mirror.git
synced 2026-11-17 06:02:09 +11:00
Delete card rect
This commit is contained in:
parent
24deda1308
commit
e1f637117a
2 changed files with 4 additions and 15 deletions
13
src/card.ts
13
src/card.ts
|
|
@ -27,7 +27,7 @@ export class Card {
|
|||
const trophy8 = new TotalCommitTrophy(5000);
|
||||
const trophy9 = new TotalFollowerTrophy(1);
|
||||
const trophy10 = new TotalFollowerTrophy(50);
|
||||
const trophy11 = new TotalFollowerTrophy(100);
|
||||
const trophy11 = new TotalFollowerTrophy(200);
|
||||
const trophy12 = new TotalFollowerTrophy(500);
|
||||
const trophyList = new Array<Trophy>();
|
||||
trophyList.push(trophy1);
|
||||
|
|
@ -62,17 +62,6 @@ export class Card {
|
|||
fill="none"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
>
|
||||
<rect
|
||||
data-testid="card-bg"
|
||||
x="0.5"
|
||||
y="0.5"
|
||||
rx="4.5"
|
||||
height="99%"
|
||||
stroke="#E4E2E2"
|
||||
width="${this.width - 1}"
|
||||
fill="#fff"
|
||||
stroke-opacity="1"
|
||||
/>
|
||||
${renderdTrophy}
|
||||
</svg>`;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -25,14 +25,14 @@ export abstract class Trophy {
|
|||
rx="4.5"
|
||||
width="${cardSize - 1}"
|
||||
height="${cardSize - 1}"
|
||||
stroke="#E4E2E2"
|
||||
stroke="#e1e4e8"
|
||||
fill="#fff"
|
||||
stroke-opacity="1"
|
||||
/>
|
||||
${getTropyIcon(this.rank)}
|
||||
<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="Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji;" font-weight="bold" font-size="9.5" fill="#000">${this.topMessage}</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="9" fill="#000">${this.bottomMessage}</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="9.5" fill="#666">${this.topMessage}</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="9" fill="#666">${this.bottomMessage}</text>
|
||||
</svg>
|
||||
`;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue