Skip to content

Commit

Permalink
Image optamization
Browse files Browse the repository at this point in the history
  • Loading branch information
PleatherStarfish committed Dec 30, 2024
1 parent 6b30bae commit e2afc48
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
Binary file added backend/static/images/circuit-board-small.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added backend/static/images/circuit-board-small.webp
Binary file not shown.
5 changes: 3 additions & 2 deletions backend/templates/pages/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@
<!-- Header Section with Circuit Board Image Background -->
<div id="parallax-container" class="relative w-full h-[295px] lg:h-[408px] header-section overflow-hidden border border-gray-300">
<picture>
<source srcset="{% static 'images/circuit-board.webp' %}" type="image/webp">
<img style="max-width:none;" id="parallax-image" src="{% static 'images/circuit-board.jpg' %}" alt="Circuit board background" class="object-custom-center" loading="lazy">>
<source srcset="{% static 'images/circuit-board-small.webp' %}" type="image/webp">
<source srcset="{% static 'images/circuit-board-small.jpg' %}" type="image/jpg">
<img style="max-width:none;" id="parallax-image" src="{% static 'images/circuit-board-small.webp' %}" alt="Circuit board background" class="object-custom-center">
</picture>
<div style="opacity: 0.85" class="absolute inset-0 flex items-center justify-center h-screen bg-white"></div>
<div class="absolute inset-0 flex items-center justify-center">
Expand Down

0 comments on commit e2afc48

Please sign in to comment.