Skip to content

Commit ba5512b

Browse files
authored
Merge pull request #53 from coderdojo-japan/feature/top-member-list
TOP ページの実行委員一覧に実際のメンバー情報を表示
2 parents 3f9ef7b + 81b7464 commit ba5512b

24 files changed

+95
-12
lines changed

_data/staff.yaml

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
- name: 杉山美鈴
2+
site: https://unit.link/sugimisu
3+
dojo: 久留米
4+
- name: 岸川拓磨
5+
site: https://github.com/Fukusan64
6+
dojo: 福岡、久留米、春日
7+
- name: KP
8+
site: https://github.com/kp54/
9+
dojo: 福岡、久留米
10+
- name: おごもり たかし
11+
site: https://github.com/ogom/
12+
dojo: なかもず、大阪狭山
13+
- name: 柴尾 哲也
14+
site: https://my.prairie.cards/u/midnight480
15+
dojo: 佐賀
16+
- name: やす
17+
site: https://x.com/Y4s2hoL
18+
dojo: 福岡、久留米
19+
- name: 西田慶子
20+
site:
21+
dojo: さが、香椎
22+
- name: 安川 要平
23+
site: https://x.com/yasulab
24+
dojo: CoderDojo Japan
25+
- name: 杉山 好翼
26+
site:
27+
dojo: 久留米
28+
- name: 宇都木 朗
29+
site: https://x.com/a_utsuki
30+
dojo: 香椎、さが、春
31+
- name: とり子(安東)
32+
site: https://x.com/siroitori0413
33+
dojo: 香椎、さが
34+
- name: 鳥辺 裕香
35+
site: https://iwakunipg.com/
36+
dojo: 岩国
37+
- name: KeisukeSawa
38+
site: https://x.com/swamptk
39+
dojo: たまち、HARUMI
40+
- name: 千葉 聖人
41+
site: https://www.instagram.com/ba_chisan1925/
42+
dojo: 岡南
43+
- name: 井上 一
44+
site: https://xn--coderdojo-ef6q138l.jp/
45+
dojo: 津山
46+
- name: あったかい
47+
site:
48+
dojo: 古河、さくら、水戸、ひたちなか、ほんごう、神楽坂
49+
- name: かつ
50+
site: https://ja.katzueno.com/about/
51+
dojo: 尾張
52+
- name: むーちょ
53+
site: https://github.com/mucho613
54+
dojo: 福岡
55+
- name: たくさん
56+
site:
57+
dojo: こだいら
58+
- name: いかけん
59+
site: https://coderdojo-mito.com/
60+
dojo: 水戸
61+
- name: 田代
62+
site:
63+
dojo: さが
64+
- name: 山口秀帝
65+
site:
66+
dojo: 津山

_includes/top/sections/staff.html

Lines changed: 29 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,42 +6,59 @@ <h2 class="text-4xl text-center pt-20 xl:pt-30">
66
<!-- デスクトップで表示 -->
77
<div class="hidden xl:block max-w-7xl mx-auto my-24">
88
<ul class="staff flex flex-wrap justify-center gap-x-36">
9-
{% for i in (1..42) %}
9+
{% for member in site.data.staff %}
1010
<li class="-mt-[74px]">
11+
{% if member.site %}
12+
<a href="{{ member.site }}" target="_blank">
13+
{% endif %}
14+
1115
<div class="relative aspect-[1/cos(30deg)] w-50 overflow-hidden flex items-center justify-center"
1216
style="clip-path: polygon(50% -50%,100% 50%,50% 150%,0 50%);">
1317

14-
<div class="block absolute size-full opacity-0 hover:opacity-100 transition-200 transition-opacity">
18+
<div class="absolute size-full opacity-0 hover:opacity-100">
1519
<div class="absolute size-full mix-blend-multiply bg-[#6f6f6f]"></div>
1620
<p class="flex flex-col items-center justify-center text-white text-center absolute size-full">
17-
<span class="text-xs">肩書き</span>
18-
名字 名前
19-
<span class="text-xs">道場名</span>
21+
{{ member.name }}
22+
<span class="text-xs">{{ member.dojo }}</span>
2023
</p>
2124
</div>
22-
<img class="w-full" src="https://placehold.jp/320x320.png" alt="スタッフの写真">
25+
<img class="min-w-full min-h-full object-cover" src="/img/staff/{{ member.name }}.webp" alt="{{ member.name }}">
2326
</div>
27+
28+
{% if member.site %}
29+
</a>
30+
{% endif %}
2431
</li>
2532
{% endfor %}
33+
34+
{% comment %} 空の要素を入れて、最後の行のバランスを取る {% endcomment %}
35+
<div class="w-50"></div>
2636
</ul>
2737
</div>
2838

2939
<!-- モバイルで表示 -->
3040
<div class="block xl:hidden mx-auto mt-9 mb-20">
3141
<ul class="flex flex-wrap justify-center gap-x-2 gap-y-6 mx-[2%]">
32-
{% for i in (1..42) %}
42+
{% for member in site.data.staff %}
3343
<li class="flex flex-col items-center gap-y-2">
44+
{% if member.site %}
45+
<a href="{{ member.site }}" target="_blank" class="flex flex-col items-center gap-y-2">
46+
{% endif %}
47+
3448
<div class="relative aspect-[1/cos(30deg)] w-24 sm:w-30 overflow-hidden flex items-center justify-center"
3549
style="clip-path: polygon(50% -50%,100% 50%,50% 150%,0 50%);">
36-
<img class="w-full" src="https://placehold.jp/320x320.png" alt="スタッフの写真">
50+
<img class="w-full" src="/img/staff/{{ member.name }}.webp" alt="{{ member.name }}">
3751
</div>
3852

3953
<!-- モバイルで表示する、肩書きや氏名の表示 -->
40-
<p class="flex flex-col text-center">
41-
<span class="text-xs">肩書き</span>
42-
名字 名前
43-
<span class="text-xs">道場名</span>
54+
<p class="flex flex-col text-center w-24 text-sm word-break">
55+
{{ member.name }}
56+
<span class="text-xs">{{ member.dojo }}</span>
4457
</p>
58+
59+
{% if member.site %}
60+
</a>
61+
{% endif %}
4562
</li>
4663
{% endfor %}
4764
</ul>

img/staff/KP.webp

956 Bytes
Binary file not shown.

img/staff/KeisukeSawa.webp

21.1 KB
Binary file not shown.

img/staff/あったかい.webp

30.3 KB
Binary file not shown.

img/staff/いかけん.webp

188 KB
Binary file not shown.

img/staff/おごもり たかし.webp

15.2 KB
Binary file not shown.

img/staff/かつ.webp

22.9 KB
Binary file not shown.

img/staff/たくさん.webp

642 KB
Binary file not shown.

img/staff/とり子(安東).webp

15.7 KB
Binary file not shown.

0 commit comments

Comments
 (0)