Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
ea3e8b6
add: time-tableのページを追加
takusandayooo Sep 9, 2025
2ec6f74
タイムテーブル重複検知をカスタムテストに移行してCIに追加
yasulab Sep 10, 2025
86e39e9
Merge pull request #80 from coderdojo-japan/refactor-time-table-valid…
yasulab Sep 10, 2025
d662724
refactor: タイムテーブルのロジックをJekyllプラグインに移行
yasulab Sep 10, 2025
2d26d3e
refactor: タイムテーブルをイベント中心設計にして一貫性を強化
yasulab Sep 10, 2025
95dd2f0
コメントの細かな用語を統一
yasulab Sep 10, 2025
a77d223
refactor: 変数名を意味的に明確化
yasulab Sep 10, 2025
4c5e3c0
chore: 不要なActive Support依存を削除
yasulab Sep 10, 2025
80e7720
Merge pull request #81 from coderdojo-japan/refactor-time-table-with-…
takusandayooo Sep 10, 2025
dc7d66c
色々調整してみた(ナビバーと相性が悪い...)
Fukusan64 Sep 9, 2025
3bf2ce7
fix: タイムテーブルの横スクロールのみ可能に変更
yasulab Sep 10, 2025
5f624da
Merge pull request #83 from coderdojo-japan/fix-time-table-mobile-dis…
takusandayooo Sep 10, 2025
b71a202
time_table.yml のコンテンツを整理
kp54 Sep 10, 2025
847d7ea
fix: 日付情報を消去したのと, 縦方向のstickyを消去
takusandayooo Sep 11, 2025
4214bbc
feat: イベントのリンク対応
takusandayooo Sep 11, 2025
ea321c8
fix: リンクがあるイベントがクリックできない問題を修正
takusandayooo Sep 11, 2025
1906eba
Merge branch 'main' into add-time-table-page
takusandayooo Oct 12, 2025
edc2000
update: タイムテーブルの内容を更新
takusandayooo Oct 12, 2025
8c49387
fix: タイムテーブルがうまく表示されない問題を修正
takusandayooo Oct 12, 2025
55d92a6
fix: ページのタイトルを修正
takusandayooo Oct 12, 2025
8eb6246
add: ヘッダーにタイムテーブルページへのリンクを追加
takusandayooo Oct 13, 2025
b75fba1
fix: ymlの修正
takusandayooo Oct 13, 2025
30edf57
add: タイムテーブルの公開のニュース記事を追加とnoteの修正
takusandayooo Oct 13, 2025
c022767
fix: 括弧()をテキストの記述方針に沿って半角→全角に置換
mucho613 Oct 13, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
154 changes: 154 additions & 0 deletions _data/time_table.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,154 @@
slot_minutes: 10
day_end_hour: 17

rooms:
- 大会議室(セッション)
- 中会議室(WS1 電子工作)
- 中会議室(WS2 LTブース)
- 中会議室(WS3)
- 中会議室(WS4)

room_styles:
大会議室(セッション): { color: "#c43b3b" }
中会議室(WS1 電子工作): { color: "#2e7d32" }
中会議室(WS2 LTブース): { color: "#1976d2" }
中会議室(WS3): { color: "#7b1fa2" }
中会議室(WS4): { color: "#ef6c00" }

events:
# 大会議室(セッション)
- room: "大会議室(セッション)"
start: "10:00"
end: "10:10"
title: "開会式"

- room: "大会議室(セッション)"
start: "10:10"
end: "10:50"
title: "基調講演(宮島さん)"
link: "/sessions/keynote1/"

- room: "大会議室(セッション)"
start: "11:00"
end: "11:50"
title: "コンテスト作品発表"
link: "/contests"

- room: "大会議室(セッション)"
start: "12:40"
end: "13:30"
title: "みんなのセッション"
link: "/sessions/3/"

- room: "大会議室(セッション)"
start: "13:40"
end: "14:10"
title: "九州チャンピオン座談会"

- room: "大会議室(セッション)"
start: "14:20"
end: "14:40"
title: "スピーカーセッション とり子さん"
link: "/sessions/2/"

- room: "大会議室(セッション)"
start: "14:50"
end: "15:10"
title: "スピーカーセッション 早良区Dojoチャンピオン"
link: "/sessions/1/"

- room: "大会議室(セッション)"
start: "15:20"
end: "16:00"
title: "招待講演(小宮山さん)"
link: "/sessions/keynote2/"

- room: "大会議室(セッション)"
start: "16:00"
end: "16:10"
title: "コンテスト結果発表"

- room: "大会議室(セッション)"
start: "16:10"
end: "16:20"
title: "スポンサーセッションとCoderDojo Japan 活動報告"

- room: "大会議室(セッション)"
start: "16:20"
end: "16:30"
title: "閉会式"

# WS1 電子工作(随時受付)
- room: "中会議室(WS1 電子工作)"
start: "11:00"
end: "16:00"
title: "micro:bitでフルカラーLEDを自在にコントロール"
note: "随時受付 12:00~13:00は休憩時間 "
link: "/events/microbit-neopixel-control/"


# WS2 LTブース
- room: "中会議室(WS2 LTブース)"
start: "11:20"
end: "12:00"
title: "Dojo関係者等大人LT"
note: "登壇者のみ要申込"
link: "/events/dojocon-lt-senior/"

- room: "中会議室(WS2 LTブース)"
start: "13:00"
end: "13:40"
title: "DojoニンジャLT"
note: "登壇者のみ要申込"
link: "/events/dojocon-lt-junior/"

- room: "中会議室(WS2 LTブース)"
start: "13:40"
end: "14:40"
title: "ぼくのかんがえたさいきょうのCoderDojoワークショップ"
note: "発表・投票・表彰を行います"
link: "/events/saikyo-coderdojo/"


# WS3
- room: "中会議室(WS3)"
start: "11:00"
end: "12:50"
title: "Blenderでシマエナガを作ろう!"
note: "要申込"
link: "/events/blender-shimaenaga/"

- room: "中会議室(WS3)"
start: "13:10"
end: "13:40"
title: "ぼくのかんがえたさいきょうのCoderDojoワークショップ"
note: "ワークを行います"
link: "/events/saikyo-coderdojo/"

- room: "中会議室(WS3)"
start: "14:00"
end: "15:20"
title: "親子で学ぶ!AI活用てづくりえほんワークショップ "
link: "/events/ai-picture-books/"


# WS4
- room: "中会議室(WS4)"
start: "11:00"
end: "12:00"
title: "Doodle3Dでお絵描きしたものを3Dプリンタで印刷してみよう"
note: "要申込"
link: "/events/doodle3d/"

- room: "中会議室(WS4)"
start: "12:00"
end: "13:00"
title: "Doodle3Dでお絵描きしたものを3Dプリンタで印刷してみよう"
note: "随時受付"
link: "/events/doodle3d/"

- room: "中会議室(WS4)"
start: "13:30"
end: "15:10"
title: "プログラミングロボットRoot"
note: "随時受付"
5 changes: 3 additions & 2 deletions _includes/header.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<h1 class="xl:block hidden mx-auto max-w-lg pt-5 px-8">
<h1 class="hidden min-[1319px]:block mx-auto max-w-lg pt-5 px-8">
<a href="/">
<img src="/img/common/header-logo.webp" alt="DojoCon Japan 2025 Inspire Next." />
</a>
</h1>

<div class="fixed xl:hidden left-0 top-7 z-10 flex w-screen min-h-18 justify-center">
<div class="fixed min-[1319px]:hidden left-0 top-7 z-10 flex w-screen min-h-18 justify-center">
<div
class="flex flex-col h-full w-[calc(100%-60px)] items-stretch rounded-[10px] bg-[#f5f5f5] py-3 pl-4 pr-3 shadow-[7px_7px_10px_rgba(125,125,125,0.15)] inset-shadow-[0px_-2px_10px_rgba(125,125,125,0.25)]">
<div class="flex items-center justify-between gap-2">
Expand All @@ -29,6 +29,7 @@ <h1 class="xl:block hidden mx-auto max-w-lg pt-5 px-8">
<li><a href="/sessions/">セッション</a></li>
<li><a href="/events/">イベント</a></li>
<li><a href="/contests/">コンテスト</a></li>
<li><a href="/time-table/">タイムテーブル</a></li>
<li><a href="https://suzuri.jp/DojoConJapan" target="_blank">グッズ</a></li>
<li><a href="/sponsorship/list/">スポンサー紹介</a></li>
<li><a href="{{ site.contact }}" target="_blank">お問い合わせ</a></li>
Expand Down
3 changes: 2 additions & 1 deletion _includes/navbar.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
<div class="hidden xl:block sticky mx-4 top-4 z-10">
<div class="hidden min-[1319px]:block sticky mx-4 top-4 z-10">
<nav
class="rounded-[40px] w-fit mx-auto bg-[#f5f5f5] mt-8 inset-shadow-[0px_-2px_10px_rgba(125,125,125,0.25)] shadow-[7px_7px_10px_rgba(125,125,125,0.15)] flex items-stretch">
<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">
<li><a href="/#outline">開催概要</a></li>
<li><a href="/sessions/">セッション</a></li>
<li><a href="/events/">イベント</a></li>
<li><a href="/contests/">コンテスト</a></li>
<li><a href="/time-table/">タイムテーブル</a></li>
<li><a href="https://suzuri.jp/DojoConJapan" target="_blank">グッズ</a></li>
<li><a href="/sponsorship/list/">スポンサー紹介</a></li>
<li><a href="{{ site.contact }}" target="_blank">お問い合わせ</a></li>
Expand Down
88 changes: 88 additions & 0 deletions _pages/time-table.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
---
layout: default
permalink: /time-table/
title: タイムテーブル
---
{% include navbar.html %}

{% comment %}
Jekyll プラグインで事前計算されたタイムテーブル表を使用
ロジックはプラグインで計算済み。Liquid は描画のみを担当
{% endcomment %}

{% assign tte = site.data.time_table_events %}
{% assign events = tte.events %}
{% assign rooms = tte.rooms %}
{% assign time_labels = tte.time_labels %}
{% assign total_slots = tte.total_slots %}
{% assign total_rooms = tte.total_rooms %}

<section class="w-[calc(100dvw-40px)] max-w-7xl mx-auto mt-25 xl:mt-5">
<h2 class="text-4xl text-center mb-8">
タイムテーブル
<span class="block mt-3 text-2xl">TIME TABLE</span>
</h2>
<div class="overflow-x-auto border-[1px] border-[#e6e6e9]" aria-label="タイムテーブル(横スクロール可)">
<table class="ttable" style="--room-count: {{ rooms | size }};">
<thead>
<tr>
<th scope="col" class="ttable__th ttable__th--start">時間</th>
{% comment %} ルーム単位でヘッダーを描画 {% endcomment %}
{% for room in rooms %}
<th scope="col"
class="ttable__th ttable__th--room"
style="--room-color: {{ room.style.color | default: '#c43b3b' }};">
<span class="ttable__room-cap">{{ room.name }}</span>
</th>
{% endfor %}
</tr>
</thead>

<tbody>
{% comment %} スロット単位(行単位)でイベントを描画 {% endcomment %}
{% for slot in (0..total_slots) %}
<tr>
<th scope="row" class="ttable__cell ttable__cell--start">{{ time_labels[slot] }}</th>

{% comment %} 各イベントを描画 {% endcomment %}
{% for room_index in (0..total_rooms) %}
{% assign event = events[slot][room_index] %}
{% assign room = rooms[room_index] %}

{% if event == 'continued' %}
{% comment %} イベント継続中 (rowspan で描画するため出力は不要) {% endcomment %}
{% elsif event %}
{% comment %} イベントを描画 {% endcomment %}
{% assign accent = event.accent | default: room.style.color | default: '#c43b3b' %}
{% assign link_url = event.url | default: event.link %}

<td class="ttable__cell ttable__cell--event"
rowspan="{{ event.duration }}"
style="--span: {{ event.duration }};">
{% if link_url %}
<a class="ttable__event" href="{{ link_url | relative_url }}" style="--accent: {{ accent }};">
{% else %}
<div class="ttable__event" style="--accent: {{ accent }};">
{% endif %}
<div class="ttable__event-time" >{{ event.start }}–{{ event.end }}</div>
<div class="ttable__event-title">{{ event.title }}</div>
{% if event.subtitle %}<div class="ttable__event-subtitle">{{ event.subtitle }}</div>{% endif %}
{% if event.badge %}<span class="ttable__badge">{{ event.badge }}</span>{% endif %}
{% if event.note %}<div class="ttable__event-note">{{ event.note }}</div>{% endif %}
{% if link_url %}
</a>
{% else %}
</div>
{% endif %}
</td>
{% else %}
{% comment %} イベント無し {% endcomment %}
<td class="ttable__cell ttable__cell--empty" aria-label="空き時間"></td>
{% endif %}
{% endfor %}
</tr>
{% endfor %}
</tbody>
</table>
</div>
</section>
100 changes: 100 additions & 0 deletions _plugins/time_table_generator.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
module Jekyll
module TimeTableGenerator
# タイムテーブル表を事前に計算してイベント表形式に変換
# これにより、Liquid テンプレートは単純な表示のみを担当
class Generator < Jekyll::Generator
safe true
priority :high

# デフォルト設定値
DEFAULT_SLOT_MINUTES = 15
DEFAULT_DAY_START_HOUR = 10 # 10:00
DEFAULT_DAY_END_HOUR = 16 # 16:00

def generate(site)
tt = site.data['time_table']
return unless tt

# 設定値を取得
slot_minutes = tt.fetch('slot_minutes', DEFAULT_SLOT_MINUTES)
day_start = tt.fetch('day_start_hour', DEFAULT_DAY_START_HOUR)
day_end = tt.fetch('day_end_hour', DEFAULT_DAY_END_HOUR)
rooms = tt.fetch('rooms', [])
events = tt.fetch('events', [])
room_styles = tt.fetch('room_styles', {})

# イベント情報を表形式で生成
time_table_events = create_event_table(events, rooms, room_styles, slot_minutes, day_start, day_end)

# 生成したイベント表データを Liquid に提供
site.data['time_table_events'] = time_table_events
end

private

def create_event_table(events, rooms, room_styles, slot_minutes, day_start, day_end)
total_slots = ((day_end - day_start) * 60 / slot_minutes).to_i

# 時間ラベルを生成
time_labels = (0...total_slots).map do |slot|
minutes = day_start * 60 + slot * slot_minutes
"#{minutes / 60}:%02d" % (minutes % 60)
end

# ルーム情報を生成(room.style でアクセス可能)
rooms_data = rooms.map do |room_name|
{
'name' => room_name,
'style' => room_styles[room_name] || {}
}
end

# イベント表を生成(2次元配列)
table = Array.new(total_slots) { Array.new(rooms.size) }

events.each do |event|
place_event(event, table, rooms, slot_minutes, day_start, total_slots)
end

{
'events' => table,
'rooms' => rooms_data,
'time_labels' => time_labels,
'total_slots' => total_slots - 1, # Liquidの (0..n) は inclusive なので -1
'total_rooms' => rooms.size - 1, # Liquidの (0..n) は inclusive なので -1
}
end

def place_event(event, table, rooms, slot_minutes, day_start, total_slots)
room_index = rooms.index(event['room'])
return unless room_index

# 時間を分に変換して揃える
event_start = time_to_minutes(event['start'])
event_end = time_to_minutes(event['end'])

# スロット計算(分に揃える)
slot_start = [(event_start - day_start * 60) / slot_minutes, 0].max.to_i
slot_end = [(event_end - day_start * 60) / slot_minutes, total_slots].min.to_i
duration = slot_end - slot_start

return if slot_start >= total_slots || duration <= 0

# イベントの長さ情報 (duration) を追加
table[slot_start][room_index] = event.merge('duration' => duration)

# 継続スロットをマーク
(slot_start + 1...slot_end).each do |slot|
break if slot >= total_slots
table[slot][room_index] = 'continued'
end
end

def time_to_minutes(time_str)
return 0 unless time_str
hours, minutes = time_str.split(':').map(&:to_i)
hours * 60 + minutes
end
end
end
end
15 changes: 15 additions & 0 deletions _posts/2025-10-16-time-table.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
layout: post
title: タイムテーブルの公開
title-in-news-list: タイムテーブルの公開
date: 2025-10-16
Copy link
Collaborator

@Fukusan64 Fukusan64 Oct 13, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

明日公開にするので
日付だけ14日にしてもらいたいです。(ここは一覧の日付に出るので 🙏🏻 )
dateとファイル名を変えていただけると 🙇🏻

categories: news
tags: タイムテーブル
permalink: /news/time-table/
---

お待たせしました。DojoCon Japan 2025 のタイムテーブルを公開しました。<br>
各セッション、ワークショップの詳細ページも順次公開していますので、ぜひご覧ください。
<p class='mt-6'>
<a href='/time-table/'>タイムテーブル</a>
</p>
Loading