Skip to content

Commit

Permalink
Modernise hero image
Browse files Browse the repository at this point in the history
And also improve the way it flows within the page
  • Loading branch information
ISSOtm committed Dec 21, 2024
1 parent 8409df6 commit 3f745b9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Binary file removed static/assets/banner.jpg
Binary file not shown.
Binary file added static/assets/hero.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{% import "macros.html" as macros %}

{% block preload %}
<link rel="preload" href="{{ get_url(path="/assets/banner.jpg") }}" as="image" type="image/jpeg" />
<link rel="preload" href="{{ get_url(path="/assets/hero.png") }}" as="image" type="image/png" />
{% endblock preload %}

{% block h1 %} {% endblock %}
Expand All @@ -14,8 +14,8 @@ <h1>Welcome to ISSOtm's warehouse!</h1>
{{ section.content | safe }}
</section>

{# Banner #}
<div style="height: 30em; background: radial-gradient(#00000000, #000000cc) center, url('{{ get_url(path="/assets/banner.jpg") }}') fixed 50% 50%/cover;"></div>
{# Hero image #}
<div style="height: 30em; box-shadow: var(--pico-background-color) 0 0 2em 2em inset; background: url('{{ get_url(path="/assets/hero.png") }}') 60% center/cover fixed, #333;"></div>
{% endblock header %}

{% block content %}
Expand Down

0 comments on commit 3f745b9

Please sign in to comment.