Skip to content

Commit 5bb6f2d

Browse files
authored
Merge pull request #78 from coderdojo-japan/add-event-list-to-top
イベントリストをTOPに表示できるようにする
2 parents 1d0c99b + 7c4b1c6 commit 5bb6f2d

File tree

10 files changed

+37
-57
lines changed

10 files changed

+37
-57
lines changed

_includes/header.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ <h1 class="xl:block hidden mx-auto max-w-lg pt-5 px-8">
2727
class="flex flex-col min-h-20 items-stretch gap-2 *:px-6 *:text-center *:text-[20px] *:leading-[1.75] *:text-[#cc8f2e] [&_a]:block">
2828
<li><a href="/#outline">開催概要</a></li>
2929
<li><a href="/#session">セッション</a></li>
30-
<li><a href="/events/">企画</a></li>
30+
<li><a href="/events/">イベント</a></li>
3131
<li><a href="/contests/">コンテスト</a></li>
3232
<li><a href="https://suzuri.jp/DojoConJapan" target="_blank">グッズ</a></li>
3333
<li><a href="/sponsorship/">スポンサー募集</a></li>

_includes/navbar.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<ul class="flex flex-wrap min-h-20 items-center p-5 pr-0 justify-center divide-x-2 gap-y-2 *:text-[#cc8f2e] *:px-6">
55
<li><a href="/#outline">開催概要</a></li>
66
<li><a href="/#session">セッション</a></li>
7-
<li><a href="/events/">企画</a></li>
7+
<li><a href="/events/">イベント</a></li>
88
<li><a href="/contests/">コンテスト</a></li>
99
<li><a href="https://suzuri.jp/DojoConJapan" target="_blank">グッズ</a></li>
1010
<li><a href="/sponsorship/">スポンサー募集</a></li>

_includes/top/sections/event.html

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<div
2+
class="max-w-3xl lg:max-w-[1800px] px-8 mx-auto mt-20 lg:mt-48 mb-16 flex flex-col lg:flex-row-reverse items-center lg:items-start">
3+
<div class="w-full lg:w-2/5 mb-8">
4+
<div class="lg:max-w-sm lg:place-self-start lg:ml-[10%]">
5+
<h2 class="text-4xl mb-4 text-center lg:text-left">
6+
イベント
7+
<span class="block mt-2 text-2xl">EVENT</span>
8+
</h2>
9+
<p class="leading-7 mb-10">
10+
コンテストや体験型のワークショップ等を企画しています。<br>
11+
気になっていたことにチャレンジしたり、新しい道具や考え方にふれるチャンス!<br>
12+
詳細は<a href="/events/" class="underline">イベント一覧</a>をご覧ください。
13+
</p>
14+
</div>
15+
</div>
16+
<ul class="grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-x-6 gap-y-12 lg:-mt-16 lg:w-3/5">
17+
{% assign events = site.data.events | slice: 0, 6 %}
18+
{% for event in events %}
19+
<li class="flex flex-col min-w-0">
20+
<a href="{{ event.url }}" class="block hover:opacity-80 transition grow">
21+
<img class="w-full md:max-h-[160px] md:object-contain " src="{{ event.img }}" alt="{{ event.title }}" />
22+
<p class="mt-2">{{ event.title }}</p>
23+
<p class="text-xs mb-2 leading-5">{{ event.outline }}</p>
24+
</a>
25+
</li>
26+
{% endfor %}
27+
</ul>
28+
</div>

_includes/top/sections/workshop.html

Lines changed: 0 additions & 48 deletions
This file was deleted.

_pages/events.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
---
22
layout: default
33
permalink: /events/
4-
title: 企画
4+
title: イベント
55
---
66
{% include navbar.html %}
77

88
<h2 class="text-4xl text-center mb-8 mt-30 xl:mt-15">
9-
企画
9+
イベント
1010
<span class="block mt-5 text-2xl">EVENTS</span>
1111
</h2>
1212

_posts/2025-07-21-contest-outline.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ title-in-news-list: 『DojoCon Japan 2025 プログラミングコンテスト
55
date: 2025-07-21T00:00:00 UTC+09:00
66
categories: news
77
permalink: /contests/
8-
tags: 企画
8+
tags: イベント
99
---
1010

1111
<p>

_posts/2025-08-02-contest-how-to-apply.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: 『DojoCon Japan 2025 プログラミングコンテスト』応募方法
44
title-in-news-list: 『DojoCon Japan 2025 プログラミングコンテスト』の応募方法を公開しました
55
date: 2025-08-02T01:00:00 UTC+09:00
66
categories: news
7-
tags: 企画
7+
tags: イベント
88
permalink: /contests/how-to-apply/
99
---
1010
<style>

_posts/2025-08-02-sponsor-recruit-started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: DojoCon Japan 2025 スポンサー募集のお知らせ
44
title-in-news-list: DojoCon Japan 2025 スポンサー募集のお知らせを掲載しました
55
date: 2025-08-02T00:00:00 UTC+09:00
66
categories: news
7-
tags: 企画
7+
tags: スポンサー
88
permalink: /sponsorship/
99
---
1010
<img src="/img/common/coderdojo-nameplate.webp" class="mb-4" loading="lazy" alt="DojoCon Japan Cover Photo"

_posts/2025-09-01-staff.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ permalink: /staff/
3232
</div>
3333

3434
<p class="leading-6">
35-
聴きたいセッションや参加したい企画・ワークショップがあるなど、時間を調整いたしますのでお気軽にご相談ください。<br>
35+
聴きたいセッションや参加したいイベント・ワークショップがあるなど、時間を調整いたしますのでお気軽にご相談ください。<br>
3636
皆様のご応募をお待ちしております。
3737
</p>
3838

index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ layout: top
2929

3030
{% include top/sections/session.html %}
3131

32-
{% include top/sections/workshop.html %}
32+
{% include top/sections/event.html %}
3333

3434
<div class="-mx-4">
3535
<img class="w-full" src="/img/top/background3.webp" alt="鉄道模型を動かしている様子"/>

0 commit comments

Comments
 (0)