diff --git a/setup.sh b/setup.sh index 38e8915..449f080 100644 --- a/setup.sh +++ b/setup.sh @@ -1068,10 +1068,10 @@ cat < templates/index.html {% if game.steam_appid %} Steam Header + alt="Steam Header" class="game-cover"> {% elif game.url and 'gog.com' in game.url %} GOG Logo + alt="GOG Logo" class="game-cover"> {% endif %} {{ game.name }} @@ -1557,6 +1557,54 @@ body { .table-pdf td, .table-pdf th { padding: 4px 8px; } + +.game-cover { + width: 368px; + height: 172px; + max-width: 100%; + max-height: 35vw; + object-fit: contain; + background: #222; + border-radius: 8px; + display: block; + margin: 0 auto; + transition: width 0.2s, height 0.2s; +} + +/* Responsiv für kleinere Bildschirme */ +@media (max-width: 1200px) { + .game-cover { + width: 260px; + height: 122px; + } +} +@media (max-width: 900px) { + .game-cover { + width: 180px; + height: 84px; + } +} +@media (max-width: 600px) { + .game-cover { + width: 120px; + height: 56px; + } +} +@media (max-width: 400px) { + .game-cover { + width: 90px; + height: 42px; + } +} + +img.game-cover { + width: 368px; + height: 172px; + object-fit: contain; + background: #222; + border-radius: 8px; +} + CSS_END echo -e "\n\033[1;32m✅ Setup done! Seems to be okay!\033[0m"