This commit is contained in:
2026-01-27 01:03:52 +03:00
parent a597cb9de7
commit c59b51c69e
10 changed files with 35 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 226 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 MiB

BIN
public/extraicons/revan.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 920 KiB

View File

@ -853,6 +853,31 @@
lightsaber: 'saberjedi', force: 'saberjedi', blaster: 'tie', hyperspace: 'xwing', fear: 'sith', hope: 'galrep',
};
function getCardArt(meta) {
// Проверяем наличие кастомных иконок в папке extraicons
const extraIconMap = {
'ezra': 'ezra-bridger.png',
'ezra_bridger': 'ezra-bridger.png',
'father': 'the-father.png',
'the_father': 'the-father.png',
'ahsoka': 'ashoka-tano.png',
'ashoka_tano': 'ashoka-tano.png',
'cal': 'CalCestis.png',
'cal_kestis': 'CalCestis.png',
'nihilus': 'darthnihilus.png',
'darth_nihilus': 'darthnihilus.png',
'plagueis': 'dartplagues.png',
'darth_plagueis': 'dartplagues.png',
'plo': 'plokoon.png',
'plo_koon': 'plokoon.png',
'revan': 'revan.png'
};
const extraIcon = extraIconMap[meta.art];
if (extraIcon) {
return '<img src="extraicons/' + extraIcon + '" class="card-art-image" alt="' + (meta.name || '') + '" />';
}
// Используем стандартные SWG иконки
var swg = swgMap[meta.art];
if (swg) return '<i class="swg swg-lg swg-' + swg + ' card-art-swg" aria-hidden="true"></i>';
return '<span class="card-art-fallback">✦</span>';

View File

@ -750,6 +750,16 @@ html, body {
}
.card-art .card-art-swg { font-size: 1.5em; }
.card-art .card-art-fallback { font-size: 1.1rem; opacity: 0.9; }
.card-art .card-art-image {
width: 80%;
height: 80%;
max-width: 120px;
max-height: 120px;
object-fit: contain;
object-position: center;
margin: auto;
display: block;
}
.card-info {
padding: 0.5rem 0.6rem;