Skip to content

Commit

Permalink
feat: Part to traits #2
Browse files Browse the repository at this point in the history
  • Loading branch information
parktest0325 committed Apr 22, 2024
1 parent 32b72d2 commit 8ae8436
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion client/src/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,23 @@
attributes: [
{
trait_type: 'Grade',
value: shuffledParts.map(part => part.id).join('') === '1234' ? 'legend' : 'abnormal'
value: shuffledParts.map(part => part.id).join('') === '1234' ? 'legend' : 'abnormal',
},
{
trait_type: 'Part 1',
value: shuffledParts[0].id,
},
{
trait_type: 'Part 2',
value: shuffledParts[1].id,
},
{
trait_type: 'Part 3',
value: shuffledParts[2].id,
},
{
trait_type: 'Part 4',
value: shuffledParts[3].id,
},
],
};
Expand Down Expand Up @@ -331,6 +347,9 @@
width: 200px; /* NFT 블록의 너비 설정 */
}
.nft ul {
text-align: left; /* 텍스트 중앙 정렬 */
}
.nft img {
max-width: 100%; /* 이미지 최대 너비 제한 */
height: auto; /* 이미지 높이 자동 조정 */
Expand Down

0 comments on commit 8ae8436

Please sign in to comment.