This commit is contained in:
Yass 2026-03-03 13:13:06 +01:00
parent 5c77c83349
commit 5541f7e604
2 changed files with 27 additions and 6 deletions

View file

@ -3,21 +3,34 @@
<div class="ratio ratio-4x3">
<a href="index.php?ctrl=project&action=display&id={$objProject->getId()}"></a>
<a href="index.php?ctrl=project&action=display&id={$objProject->getId()}">
<img src="{$smarty.env.IMG_PROJECT_PATH}{if ($smarty.env.IMG_PROJECT_PATH|cat:$objProject->getThumbnail())|file_exists}{$objProject->getThumbnail()}{else}{math equation="rand(1,4)"}.jpg{/if}"
class="w-100 h-100 object-fit-cover"
{if $objProject->getCreatorName()|stripos:'minou' !== false}
style =" box-shadow: 0 0 0 4px #000; "{/if}
alt=""
loading="lazy">
</a>
</div>
<div class="card-body p-3 bg-light">
<div class="card-body p-3 bg-light" {if $objProject->getCreatorName()|stripos:'minou' !== false}style=" background-color: #ff8c00 !important; /* Orange tigre */
background-image: repeating-linear-gradient(
45deg,
transparent,
transparent 30px,
rgba(0, 0, 0, 0.15) 30px,
rgba(0, 0, 0, 0.15) 60px
) !important;
color: #000 !important;
position: relative;
z-index: 1;"{/if}>
<div class="d-flex align-items-start gap-3">
<a href="index.php?ctrl=user&action=user&pseudo={$objProject->getCreatorname()}">
<img src="{$smarty.env.IMG_USER_PATH}{if ($smarty.env.IMG_USER_PATH|cat:($objProject->getUser_image()))|file_exists}{$objProject->getUser_image()}{else}images.jpg{/if}"
class="rounded-circle flex-shrink-0 border border-2 border-white"
style="width: 64px; height: 64px; object-fit: cover; margin-top: 8px;"
style="width: 64px; height: 64px; object-fit: cover; margin-top: 8px;{if $objProject->getCreatorName()|stripos:'minou' !== false}
box-shadow: 0 0 0 4px #000; {/if}"
alt="Photo de profil">
</a>
<div class="flex-grow-1">
@ -26,7 +39,10 @@
<i class="bi bi-person"></i>
<a href="index.php?ctrl=user&action=user&pseudo={$objProject->getCreatorname()}"
class="text-decoration-none text-muted"
style="position: relative; z-index: 2;">
style="position: relative; z-index: 2;
{if $objProject->getCreatorName()|stripos:'minou' !== false}font-weight: 800 !important;
text-transform: uppercase;
color: #000 !important;{/if}">
{$objProject->getCreatorname()}
</a>
</p>
@ -42,7 +58,12 @@
</small>
{if $objProject->getStatus() != "refusé"}
<a href="index.php?ctrl=project&action=display&id={$objProject->getId()}"
class="btn btn-sm btn-primary">
class="btn btn-sm btn-primary" {if $objProject->getCreatorName()|stripos:'minou' !== false}style="
background-color: #000 !important;
color: #ff8c00 !important;
border: none !important;
font-weight: bold !important;
transition: transform 0.2s;"{/if}>
Voir →
</a>
{/if}

View file

@ -119,7 +119,7 @@
<h5 {if $objProject->getCreatorName()|stripos:'minou' !== false}style="font-weight: 800 !important;
text-transform: uppercase;
color: #000 !important;"{/if}">
color: #000 !important;"{/if}>
{$objProject->getCreatorName()}
</h5>