Skip to content

Commit

Permalink
img test
Browse files Browse the repository at this point in the history
  • Loading branch information
Nerban committed Dec 12, 2023
1 parent 0a597a7 commit 59aace0
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/_includes/slides/start.njk
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
<a href="#{{key}}">
<div class="font-semi-bold hover:outline outline-2 outline-offset-4 bg-cover bg-center bg-blue-300 outline-yellow-500 shadow-blue-900 aspect-square
{% if loop.index < packs|length %}
hover:bg-[url({{ '/images/art/art'+key+'.png' | url }})]
hover:bg-[url({{ '../images/art/art'+key+'.png' | url }})]
hover:text-yellow-500
{% else %}
motion-reduce:animate-pulse
hover:bg-[url({{'/images/theme.jpg' | url }})]
hover:bg-[url({{'../images/theme.jpg' | url }})]
hover:text-yellow-500
{% endif %}
grid place-content-center rounded-md">
Expand All @@ -24,7 +24,7 @@
keine Daten
{% endfor %}
{% for i in range(packs|length ,24) %}
<a href="#"><div class="font-semi-bold hover:outline outline-2 outline-offset-4 bg-cover bg-center bg-blue-200 hover:text-yellow-500 outline-yellow-500 shadow-blue-900 aspect-square hover:bg-[url({{ '/images/theme.jpg' | url }})] grid place-content-center rounded-md">
<a href="#"><div class="font-semi-bold hover:outline outline-2 outline-offset-4 bg-cover bg-center bg-blue-200 hover:text-yellow-500 outline-yellow-500 shadow-blue-900 aspect-square hover:bg-[url({{ '../images/theme.jpg' | url }})] grid place-content-center rounded-md">
<div class=" group-hover:drop-shadow-lg shadow-black font-semibold drop-shadow-md"> {{loop.index + packs|length}} </div>
</div></a>
{%else%}
Expand Down
48 changes: 48 additions & 0 deletions src/style/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -934,6 +934,54 @@ video {
background-image: url(/images/theme.jpg);
}

.hover\:bg-\[url\(\.\.\/images\/art\/art1\.png\)\]:hover {
background-image: url(../images/art/art1.png);
}

.hover\:bg-\[url\(\.\.\/images\/art\/art10\.png\)\]:hover {
background-image: url(../images/art/art10.png);
}

.hover\:bg-\[url\(\.\.\/images\/art\/art11\.png\)\]:hover {
background-image: url(../images/art/art11.png);
}

.hover\:bg-\[url\(\.\.\/images\/art\/art2\.png\)\]:hover {
background-image: url(../images/art/art2.png);
}

.hover\:bg-\[url\(\.\.\/images\/art\/art3\.png\)\]:hover {
background-image: url(../images/art/art3.png);
}

.hover\:bg-\[url\(\.\.\/images\/art\/art4\.png\)\]:hover {
background-image: url(../images/art/art4.png);
}

.hover\:bg-\[url\(\.\.\/images\/art\/art5\.png\)\]:hover {
background-image: url(../images/art/art5.png);
}

.hover\:bg-\[url\(\.\.\/images\/art\/art6\.png\)\]:hover {
background-image: url(../images/art/art6.png);
}

.hover\:bg-\[url\(\.\.\/images\/art\/art7\.png\)\]:hover {
background-image: url(../images/art/art7.png);
}

.hover\:bg-\[url\(\.\.\/images\/art\/art8\.png\)\]:hover {
background-image: url(../images/art/art8.png);
}

.hover\:bg-\[url\(\.\.\/images\/art\/art9\.png\)\]:hover {
background-image: url(../images/art/art9.png);
}

.hover\:bg-\[url\(\.\.\/images\/theme\.jpg\)\]:hover {
background-image: url(../images/theme.jpg);
}

.hover\:text-blue-200:hover {
--tw-text-opacity: 1;
color: rgb(191 219 254 / var(--tw-text-opacity));
Expand Down

0 comments on commit 59aace0

Please sign in to comment.