Skip to content

Commit 532714f

Browse files
committed
feat(footer): Add watermark to footer
1 parent 52e5cc2 commit 532714f

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

layouts/partials/essentials/footer.html

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
1-
<footer class="footer bg-gray-800 dark:bg-black text-gray-300 pt-16 pb-8">
2-
<div class="container">
1+
<footer class="footer bg-gray-800 dark:bg-black text-gray-300 pt-16 pb-8 relative overflow-hidden">
2+
{{ with resources.Get "images/ONM.png" }}
3+
{{ $watermark_webp := .Process "webp" }}
4+
<div
5+
class="absolute bottom-0 right-0 w-[1500px] h-[1500px] bg-no-repeat bg-contain bg-right-bottom opacity-[0.06] dark:opacity-[0.2] z-0 pointer-events-none"
6+
style="background-image: url('{{ $watermark_webp.RelPermalink }}'); transform: translate(5%, 5%) rotate(-10deg);">
7+
</div>
8+
{{ end }}
9+
<div class="container relative z-10">
310
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-8 mb-10">
411

512
<!-- Column 1: Brand & Social -->
@@ -95,4 +102,4 @@ <h4 class="footer-heading">About & Legal</h4>
95102
{{ end }}
96103
</div>
97104
</div>
98-
</footer>
105+
</footer>

0 commit comments

Comments
 (0)