projet par cursor
This commit is contained in:
1 parent
236f75ecdd
commit
b785db1b84
47 files changed
+3902
No files matched your search
@@ -0,0 +1,49 @@
|
||||
<section class="page-header">
|
||||
<div>
|
||||
<p class="eyebrow"><?php print Helpers::echapper($console["constructeur"]); ?><?php if (!empty($console["annee"])): ?> · <?php print (int) $console["annee"]; ?><?php endif; ?></p>
|
||||
<h1 class="page-title"><?php print Helpers::echapper($console["nom"]); ?></h1>
|
||||
<?php if (!empty($console["notes"])): ?>
|
||||
<p class="lead-text"><?php print nl2br(Helpers::echapper($console["notes"])); ?></p>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<div class="page-actions">
|
||||
<a href="/consoles/<?php print Helpers::echapper($console["id"]); ?>/modifier" class="btn btn-outline-neon">
|
||||
<i class="mdi mdi-pencil"></i> Modifier
|
||||
</a>
|
||||
<a href="/jeux/creer?consoleId=<?php print Helpers::echapper($console["id"]); ?>" class="btn btn-neon">
|
||||
<i class="mdi mdi-plus"></i> Ajouter un jeu
|
||||
</a>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="mt-4">
|
||||
<div class="section-heading">
|
||||
<h2>Jeux sur cette console</h2>
|
||||
<span><?php print count($jeux); ?> jeu<?php print count($jeux) > 1 ? "x" : ""; ?></span>
|
||||
</div>
|
||||
|
||||
<?php if ($jeux === []): ?>
|
||||
<div class="empty-state">
|
||||
<i class="mdi mdi-controller-classic-outline"></i>
|
||||
<p>Aucun jeu associé à cette console.</p>
|
||||
</div>
|
||||
<?php else: ?>
|
||||
<div class="game-grid">
|
||||
<?php foreach ($jeux as $jeu): ?>
|
||||
<a class="game-card" href="/jeux/<?php print Helpers::echapper($jeu["id"]); ?>">
|
||||
<img
|
||||
src="<?php print Helpers::echapper(Helpers::urlJaquette($jeu["jaquette"] ?? null)); ?>"
|
||||
alt="Jaquette de <?php print Helpers::echapper($jeu["titre"]); ?>"
|
||||
loading="lazy"
|
||||
>
|
||||
<div class="game-card-body">
|
||||
<h3><?php print Helpers::echapper($jeu["titre"]); ?></h3>
|
||||
<span class="badge-etat etat-<?php print Helpers::echapper($jeu["etat"]); ?>">
|
||||
<?php print Helpers::echapper(Helpers::libelleEtat($jeu["etat"])); ?>
|
||||
</span>
|
||||
</div>
|
||||
</a>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</section>
|
||||