mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-11-09 19:20:09 +01:00
Replace random HSL gradients in homepage cards with header gradient
This commit is contained in:
1 parent
07f0afde25
commit
a13e73aed3
3 files changed
+11
-12
No files matched your search
@@ -48,12 +48,7 @@ extract($vars);
|
||||
loading="lazy">
|
||||
</figure>
|
||||
<?php else: ?>
|
||||
<?php
|
||||
$hue = ($item['id'] * 47 + 160) % 360;
|
||||
$hue2 = ($hue + 40) % 360;
|
||||
?>
|
||||
<div class="card__media--gradient"
|
||||
style="background:linear-gradient(135deg,hsl(<?= $hue ?>,55%,40%),hsl(<?= $hue2 ?>,50%,28%));"
|
||||
aria-hidden="true">
|
||||
<span class="card__gradient-author"><?= htmlspecialchars($item['authors'] ?? '') ?></span>
|
||||
<span class="card__gradient-title"><?= htmlspecialchars($item['title']) ?></span>
|
||||
|
||||
Reference in new issue
Block a user