Feature: add game cover upload with compact thumbnails
This commit is contained in:
@@ -167,6 +167,10 @@
|
||||
Éditeur
|
||||
<input id="publisherInput" placeholder="Square Enix" />
|
||||
</label>
|
||||
<label>
|
||||
Pochette (image)
|
||||
<input id="coverFileInput" type="file" accept="image/*" />
|
||||
</label>
|
||||
<label>
|
||||
Année
|
||||
<input id="yearInput" type="number" min="1970" max="2100" placeholder="2001" />
|
||||
@@ -194,6 +198,7 @@
|
||||
<button id="gameSubmitBtn" type="submit">Ajouter le jeu</button>
|
||||
<button id="cancelEditBtn" type="button" class="btn-secondary hidden">Annuler edition</button>
|
||||
</form>
|
||||
<input id="coverUrlInput" type="hidden" />
|
||||
|
||||
<div id="gamesList" class="games-list"></div>
|
||||
</section>
|
||||
@@ -201,6 +206,7 @@
|
||||
|
||||
<template id="gameCardTemplate">
|
||||
<article class="game-card">
|
||||
<img class="game-cover hidden" alt="Pochette du jeu" loading="lazy" />
|
||||
<div class="game-main">
|
||||
<h3 class="game-title"></h3>
|
||||
<p class="game-meta"></p>
|
||||
|
||||
Reference in New Issue
Block a user