« Modèle:Wiki/NavCard » : différence entre les versions
De Nefald Wiki
Autres actions
mAucun résumé des modifications |
mAucun résumé des modifications |
||
Ligne 1 : | Ligne 1 : | ||
<includeonly> | <includeonly> | ||
<div class="wiki-nav-card"> | <div class="wiki-nav-card" onclick="window.location.href='/wiki/{{{lien|{{{titre}}}}}}'; return false;" style="cursor: pointer;"> | ||
<div class="nav-card-image-container" style="width: 100%; height: | <div class="nav-card-image-container" style="width: 100%; height: 120px; overflow: hidden; border-radius: 8px; background: #2d3748;"> | ||
<img src="{{filepath:{{{image|}}}}}" style="width: 100%; height: 100%; object-fit: cover;" alt="{{{titre}}}"> | <img src="{{filepath:{{{image|}}}}}" style="width: 100%; height: 100%; object-fit: cover; display: block;" alt="{{{titre}}}" onerror="this.style.display='none'; this.parentElement.innerHTML='<div style=\'display:flex;align-items:center;justify-content:center;height:100%;color:#9ca3af;font-size:0.8em;\'>📷 Image manquante</div>';"> | ||
</div> | |||
<div class="nav-card-content" style="padding: 12px 0;"> | |||
<div class="nav-card-title" style="font-size: 1.1rem; font-weight: bold; margin-bottom: 6px;"> | |||
<span style="color: #60a5fa;">{{{titre}}}</span> | |||
</div> | |||
<div class="nav-card-description" style="color: #9ca3af; font-size: 0.9rem;"> | |||
{{{description}}} | |||
</div> | </div> | ||
</div> | </div> | ||
</div> | </div> | ||
</includeonly> | </includeonly> |