Skip to content

Commit 2a26c8c

Browse files
authored
Merge pull request #38 from coderdojo-japan/add-sponsor-section
TOPにスポンサーロゴを追加
2 parents fe17c89 + ff4136b commit 2a26c8c

File tree

11 files changed

+56
-30
lines changed

11 files changed

+56
-30
lines changed

_data/sponsors.yml

Lines changed: 32 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,62 +1,83 @@
11
# - id: ID(スポンサーページのアンカータグになります)
22
# name: スポンサー名
3+
# tool: スポンサー提供ツール名(inkindの場合使用)
34
# logo: ロゴ画像ファイルのパス
45
# link: ロゴ画像をクリックした際のリンク先
56
# type: スポンサー種別(platinum, gold, silver, bronze, inkind, individual)
67
# message: スポンサー紹介文
8+
# logo_scale: ロゴ画像の拡大率(1が等倍、0.5が半分のサイズ)
79

810
- id: cygames
911
name: 株式会社<wbr>Cygames
10-
logo:
12+
logo: /img/sponsors/Cygames.jpg
1113
link:
1214
type: gold
1315
message:
16+
logo_scale: 1
1417

1518
- id: sakura_internet
1619
name: さくら<wbr>インターネット<wbr>株式会社
17-
logo:
20+
logo: /img/sponsors/sakura_internet.png
1821
link:
1922
type: silver
2023
message:
24+
logo_scale: 1
2125

2226
- id: sunnyside_systems
2327
name: サニーサイド<wbr>システムズ<wbr>合同会社
24-
logo:
28+
logo: /img/sponsors/Sunnyside_systems.png
2529
link:
2630
type: bronze
2731
message:
32+
logo_scale: 1
2833

2934
- id: dojoletter
3035
name: DojoLetter<wbr>編集部
31-
logo:
36+
logo: /img/sponsors/DojoLetter.png
3237
link:
3338
type: bronze
3439
message:
40+
logo_scale: 0.8
3541

3642
- id: unique_i_net
3743
name: ユニーク・<wbr>アイネット<wbr>株式会社
38-
logo:
44+
logo: /img/sponsors/Unique_i_net.png
3945
link:
4046
type: bronze
4147
message:
48+
logo_scale: 1
49+
50+
- id: tcs
51+
name: 株式会社<wbr>テクノ・<wbr>カルチャー・<wbr>システム
52+
logo: /img/sponsors/TechnoCultureSystem.png
53+
link:
54+
type: bronze
55+
message:
56+
logo_scale: 0.8
4257

4358
- id: ma
44-
name: 一般社団法人<wbr>MA<wbr>(ProtoPedia)
45-
logo:
59+
name: 一般社団法人<wbr>MA
60+
tool: ProtoPedia
61+
logo: /img/sponsors/ProtoPedia.png
4662
link:
4763
type: inkind
4864
message:
65+
logo_scale: 1
4966

5067
- id: nulab
51-
name: 株式会社<wbr>ヌーラボ<wbr>(Backlog)
52-
logo:
68+
name: 株式会社<wbr>ヌーラボ
69+
tool: Backlog
70+
logo: /img/sponsors/Nulab.png
5371
link:
5472
type: inkind
5573
message:
74+
logo_scale: 0.8
5675

5776
- id: yasslab
58-
name: YassLab <wbr>株式会社<wbr>(Doorkeeper)
59-
logo:
77+
name: YassLab <wbr>株式会社
78+
tool: Doorkeeper
79+
logo: /img/sponsors/YassLab.png
6080
link:
6181
type: inkind
6282
message:
83+
logo_scale: 0.9

_includes/top/sections/sponsor.html

Lines changed: 24 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -9,54 +9,59 @@ <h2 class="text-4xl text-center">
99
<span class="block mt-5 text-2xl">SPONSOR</span>
1010
</h2>
1111

12-
<h3 class="text-2xl mt-10 mx-8 text-center mb-4">ゴールドスポンサー
12+
<h3 class="text-2xl mt-20 mx-8 text-center mb-4">ゴールドスポンサー
1313
<span class="block text-base mt-1">GOLD SPONSOR</span>
1414
</h3>
15-
1615
<div class="flex justify-center flex-wrap gap-x-8 px-8 max-w-3xl w-full mx-auto">
1716
{% for sponsor in gold_sponsors %}
18-
<div class="w-full mb-5">
19-
{% comment %} <img class="w-full mx-auto mb-3" src="{{ sponsor.logo }}" alt="{{ sponsor.name | strip_html }}のロゴ"> {% endcomment %}
20-
<p class="w-full text-center break-keep text-3xl">{{ sponsor.name }}</p>
21-
</div>
17+
<div class="w-full flex flex-col mb-5">
18+
<div class="flex-grow w-full flex items-center justify-center">
19+
<img class="w-full mx-auto mb-3" src="{{ sponsor.logo }}" alt="{{ sponsor.name | strip_html }}のロゴ">
20+
</div>
21+
</div>
2222
{% endfor %}
2323
</div>
2424

25-
<h3 class="text-2xl mt-10 mx-8 text-center mb-4">シルバースポンサー
25+
<h3 class="text-2xl mt-20 mx-8 text-center mb-4">シルバースポンサー
2626
<span class="block text-base mt-1">SILVER SPONSOR</span>
2727
</h3>
2828

2929
<div class="flex justify-center flex-wrap gap-x-8 px-8 max-w-3xl mx-auto">
3030
{% for sponsor in silver_sponsors %}
31-
<div class="_max-w-[500px] w-full mb-5">
32-
{% comment %} <img class="w-full mx-auto mb-3" src="{{ sponsor.logo }}" alt="{{ sponsor.name | strip_html }}のロゴ"> {% endcomment %}
33-
<p class="w-full text-center break-keep text-3xl">{{ sponsor.name }}</p>
31+
<div class="max-w-[{{500 | times:sponsor.logo_scale | round}}px] w-full flex flex-col mb-5">
32+
<div class="flex-grow w-full flex items-center justify-center">
33+
<img class="w-full mx-auto mb-3" src="{{ sponsor.logo }}" alt="{{ sponsor.name | strip_html }}のロゴ">
34+
</div>
3435
</div>
3536
{% endfor %}
3637
</div>
3738

38-
<h3 class="text-2xl mt-10 mx-8 text-center mb-4">ブロンズスポンサー
39+
<h3 class="text-2xl mt-20 mx-8 text-center mb-4">ブロンズスポンサー
3940
<span class="block text-base mt-1">BRONZE SPONSOR</span>
4041
</h3>
4142

4243
<div class="flex justify-center flex-wrap gap-x-8 px-8 max-w-3xl mx-auto">
4344
{% for sponsor in bronze_sponsors %}
44-
<div class="_max-w-[300px] w-full mb-5">
45-
{% comment %} <img class="w-full mx-auto mb-3" src="{{ sponsor.logo }}" alt="{{ sponsor.name | strip_html }}のロゴ"> {% endcomment %}
46-
<p class="text-center break-keep text-3xl">{{ sponsor.name }}</p>
45+
<div class="max-w-[{{300 | times:sponsor.logo_scale | round}}px] w-full flex flex-col mb-5">
46+
<div class="flex-grow w-full flex items-center justify-center">
47+
<img class="w-full mx-auto mb-3" src="{{ sponsor.logo }}" alt="{{ sponsor.name | strip_html }}のロゴ">
48+
</div>
4749
</div>
4850
{% endfor %}
4951
</div>
5052

51-
<h3 class="text-2xl mt-10 mx-8 text-center mb-4">インカインドスポンサー
53+
<h3 class="text-2xl mt-20 mx-8 text-center mb-4">インカインドスポンサー
5254
<span class="block text-base mt-1">IN-KIND SPONSOR</span>
5355
</h3>
5456

55-
<div class="flex justify-center flex-wrap gap-x-8 px-8 max-w-3xl mx-auto">
57+
<div class="flex justify-center flex-wrap gap-x-8 gap-y-10 px-8 max-w-3xl mx-auto">
5658
{% for sponsor in inkind_sponsors %}
57-
<div class="_max-w-[270px] w-full mb-5">
58-
{% comment %} <img class="w-full mx-auto mb-3" src="{{ sponsor.logo }}" alt="{{ sponsor.name | strip_html }}のロゴ"> {% endcomment %}
59-
<p class="w-full text-center break-keep text-3xl">{{ sponsor.name }}</p>
59+
<div class="max-w-[{{270 | times:sponsor.logo_scale | round}}px] w-full flex flex-col">
60+
<div class="flex-grow w-full flex items-center justify-center">
61+
<img class="w-full mx-auto mb-3" src="{{ sponsor.logo }}" alt="{{ sponsor.name + "("+ sponsor.tool +")" | strip_html }}のロゴ">
62+
</div>
63+
<p class="w-full text-center break-keep">{{ sponsor.tool }}<wbr>のご提供</p>
6064
</div>
6165
{% endfor %}
6266
</div>
67+

img/sponsors/Cygames.jpg

115 KB
Loading

img/sponsors/DojoLetter.png

48.9 KB
Loading

img/sponsors/Nulab.png

1.49 KB
Loading

img/sponsors/ProtoPedia.png

12 KB
Loading

img/sponsors/Sunnyside_systems.png

45.9 KB
Loading

img/sponsors/TechnoCultureSystem.png

60.2 KB
Loading

img/sponsors/Unique_i_net.png

51.4 KB
Loading

img/sponsors/YassLab.png

7.41 KB
Loading

0 commit comments

Comments
 (0)