Skip to content

Commit 6fe54f7

Browse files
committed
fix: Diamond/Platinum/Gold スポンサーにホバーエフェクトを追加
PR #36 で実装されたホバーエフェクトが Diamond/Platinum/Gold スポンサーで欠落していた問題を修正。 - class に 'block transition-transform hover:scale-105' を追加 - PR #36 の機能を完全に維持
1 parent 8078faa commit 6fe54f7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

_includes/sponsors.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ <h3> ダイアモンドスポンサー </h3>
1919
<div class="flex justify-center mb-6 px-4">
2020
{% for sponsor in sponsors_diamond %}
2121
{% if sponsor.link != "" %}
22-
<a href="{{ sponsor.link }}" target="_blank" rel="noopener noreferrer" class="inline-block">
22+
<a href="{{ sponsor.link }}" target="_blank" rel="noopener" class="block transition-transform hover:scale-105">
2323
<img src="/img/contests/sponsor-logos/{{ sponsor.img }}" alt="{{ sponsor.name }}" class="w-200 sm:w-240 h-auto max-h-64 object-contain">
2424
</a>
2525
{% else %}
26-
<div class="inline-block">
26+
<div class="block">
2727
<img src="/img/contests/sponsor-logos/{{ sponsor.img }}" alt="{{ sponsor.name }}" class="w-200 sm:w-240 h-auto max-h-64 object-contain">
2828
</div>
2929
{% endif %}
@@ -41,11 +41,11 @@ <h3> プラチナスポンサー </h3>
4141
<div class="flex justify-center mb-6 px-4">
4242
{% for sponsor in sponsors_platinum %}
4343
{% if sponsor.link != "" %}
44-
<a href="{{ sponsor.link }}" target="_blank" rel="noopener noreferrer" class="inline-block">
44+
<a href="{{ sponsor.link }}" target="_blank" rel="noopener" class="block transition-transform hover:scale-105">
4545
<img src="/img/contests/sponsor-logos/{{ sponsor.img }}" alt="{{ sponsor.name }}" class="w-100 sm:w-120 h-auto max-h-32 object-contain">
4646
</a>
4747
{% else %}
48-
<div class="inline-block">
48+
<div class="block">
4949
<img src="/img/contests/sponsor-logos/{{ sponsor.img }}" alt="{{ sponsor.name }}" class="w-100 sm:w-120 h-auto max-h-32 object-contain">
5050
</div>
5151
{% endif %}
@@ -63,11 +63,11 @@ <h3> ゴールドスポンサー </h3>
6363
<div class="flex justify-center mb-6 px-4">
6464
{% for sponsor in sponsors_gold %}
6565
{% if sponsor.link != "" %}
66-
<a href="{{ sponsor.link }}" target="_blank" rel="noopener noreferrer" class="inline-block">
66+
<a href="{{ sponsor.link }}" target="_blank" rel="noopener" class="block transition-transform hover:scale-105">
6767
<img src="/img/contests/sponsor-logos/{{ sponsor.img }}" alt="{{ sponsor.name }}" class="w-full max-w-md sm:max-w-lg max-h-48 object-contain">
6868
</a>
6969
{% else %}
70-
<div class="inline-block">
70+
<div class="block">
7171
<img src="/img/contests/sponsor-logos/{{ sponsor.img }}" alt="{{ sponsor.name }}" class="w-full max-w-md sm:max-w-lg max-h-48 object-contain">
7272
</div>
7373
{% endif %}

0 commit comments

Comments
 (0)