Skip to content

Commit ba92821

Browse files
committed
地域別道場数セクションのUIを改善
- DojoMap のスナップショット画像を追加 - 不要な「地図データを見る」「個別データを見る」リンクを削除 - 日本語版のリンクテキストを「地図で CoderDojo を見る」に簡潔化 - 画像のalt属性を適切に設定(DojoMap - CoderDojo を地図から探す) - 視覚的インパクトの向上とユーザビリティの改善
1 parent 14e3f31 commit ba92821

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

app/views/stats/show.html.erb

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,21 @@
325325
<a href="#map">🗾</a>
326326
<%= @lang == 'en' ? 'Dojos by Region' : '地域別の道場数' %>
327327
</h2>
328+
329+
<div style="margin: 20px auto; text-align: center;">
330+
<a href="<%= dojomap_url %>" style="display: inline-block;">
331+
<img src="/img/dojomap_rect.webp"
332+
alt="<%= @lang == 'en' ? 'DojoMap - Map of CoderDojo in Japan' : 'DojoMap - CoderDojo を地図から探す' %>"
333+
style="max-width: 600px; width: 100%; border-radius: 8px; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);"
334+
loading="lazy">
335+
</a>
336+
<p style="margin-top: 10px;">
337+
<a href="<%= dojomap_url %>" style="font-size: 16px;">
338+
&raquo; <%= @lang == 'en' ? 'View dojos on interactive map' : '地図で CoderDojo を見る' %>
339+
</a>
340+
</p>
341+
</div>
342+
328343
<div class="japan-map">
329344
<!--
330345
<p id="japan-map-text" style="margin: 20px auto; font-size: 140%;">
@@ -333,12 +348,6 @@
333348
-->
334349
<div id="japan-map-container"></div>
335350
</div>
336-
<div style="margin-top: 0px; margin-bottom: 60px;" align="center">
337-
<p>
338-
<a href="<%= dojomap_url %>">&raquo; <%= @lang == 'en' ? 'View Map Data' : '地図データを見る' %></a><br>
339-
<a href="<%= dojos_path %>">&raquo; <%= @lang == 'en' ? 'View Individual Data' : '個別データを見る' %></a><br>
340-
</p>
341-
</div>
342351

343352
<!-- NOTE: Always show dojos with accordion style to compact -->
344353
<%= render partial: 'shared/dojos_stats', locals: { regions_and_dojos: @regions_and_dojos } %>

0 commit comments

Comments
 (0)