Skip to content

Commit 5e38b01

Browse files
authored
Merge pull request #201 from OUCC/add-2026-workshop-info
Add 2026 workshop info
2 parents 090044b + 3184a23 commit 5e38b01

2 files changed

Lines changed: 88 additions & 7 deletions

File tree

src/components/workshop/Workshop2026Section.astro

Lines changed: 86 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,28 +20,108 @@ export function date(
2020
: new Date(2026, month - 1, date, hour, minute)
2121
}
2222
23-
export const items: Item[] = []
23+
export const items: Item[] = [
24+
{
25+
date: date(4, 20, 18, 30),
26+
title: 'ガイダンス・環境構築',
27+
place: '共C306',
28+
description:
29+
'OUCCの紹介と環境構築、開発に必要なツールの使い方の講習(基礎講習)を行います。ガイダンス・環境構築は両日とも内容は同一です。',
30+
},
31+
{
32+
date: date(4, 23, 18, 30),
33+
title: 'ガイダンス・環境構築',
34+
place: '共C306',
35+
description:
36+
'OUCCの紹介と環境構築、開発に必要なツールの使い方の講習(基礎講習)を行います。ガイダンス・環境構築は両日とも内容は同一です。',
37+
},
38+
{
39+
date: date(4, 28, 18, 30),
40+
title: '基礎講習(Git, shellなど)',
41+
place: '豊中共創棟B棟',
42+
description:
43+
'豊中共創棟B棟は場所がわかりづらいため、全学教育共通棟前で集合してから移動します。',
44+
},
45+
{
46+
date: date(5, 12, 18, 30),
47+
title: 'C#/Unity①',
48+
place: undefined,
49+
description:
50+
'ゲーム開発をはじめ幅広い用途で用いられる言語であるC#を扱います。本格的なゲームエンジンであるUnityを使用してゲーム開発を行います。',
51+
},
52+
{
53+
date: date(5, 13, 18, 30),
54+
title: 'Python①',
55+
place: undefined,
56+
description: '文法がシンプルで学びやすい言語であるPythonを扱います。',
57+
},
58+
{
59+
date: date(5, 19, 18, 30),
60+
title: 'C#/Unity②',
61+
place: undefined,
62+
description:
63+
'ゲーム開発をはじめ幅広い用途で用いられる言語であるC#を扱います。本格的なゲームエンジンであるUnityを使用してゲーム開発を行います。',
64+
},
65+
{
66+
date: date(5, 20, 18, 30),
67+
title: 'Python②',
68+
place: undefined,
69+
description:
70+
'Pythonのゲームライブラリである、Pyxelを使用して簡単なゲームを開発することを目指します。',
71+
},
72+
{
73+
date: date(5, 26, 18, 30),
74+
title: 'C#/Unity③',
75+
place: undefined,
76+
description:
77+
'ゲーム開発をはじめ幅広い用途で用いられる言語であるC#を扱います。本格的なゲームエンジンであるUnityを使用してゲーム開発を行います。',
78+
},
79+
{
80+
date: undefined,
81+
title: 'C/C++',
82+
circleNames: ['RAINBOU'],
83+
place: undefined,
84+
description:
85+
'OSや組み込みシステムなど、高速な処理が求められる分野で広く用いられる言語であるC/C++を扱います。阪大の競技プログラミングサークルであるRAINBOUが担当します',
86+
},
87+
]
2488
2589
const dateFormat = new Intl.DateTimeFormat('ja-JP', {
2690
weekday: 'short',
2791
month: 'numeric',
2892
day: 'numeric',
29-
// hour: '2-digit',
30-
// minute: '2-digit',
93+
hour: '2-digit',
94+
minute: '2-digit',
95+
})
96+
97+
const dateFormatWithoutTime = new Intl.DateTimeFormat('ja-JP', {
98+
weekday: 'short',
99+
month: 'numeric',
100+
day: 'numeric',
31101
})
32102
---
33103

34104
<Section background="secondary">
35105
<Fragment slot="title">2026年度のOUCCの講習会</Fragment>
36106
<div class="flex flex-col gap-5">
37107
<p>
38-
2026年度の講習会をサーオリ後に発表します
108+
2026年度の講習会について情報をまとめています
39109
開始時刻や開催場所などの詳細ついては随時更新します。是非お気軽にご参加ください!
40110
</p>
41111
<ul class="grid grid-cols-[repeat(auto-fit,minmax(18rem,1fr))] gap-5">
42112
{
43-
items.map(({ date, ...item }) => (
44-
<WorkshopCard {...item} date={dateFormat.format(date)} />
113+
items.map(({ date, place, ...item }) => (
114+
<WorkshopCard
115+
{...item}
116+
date={
117+
date === undefined
118+
? '未定'
119+
: date !== undefined && date.getHours() !== 0
120+
? dateFormat.format(date)
121+
: dateFormatWithoutTime.format(date)
122+
}
123+
place={place ?? '未定'}
124+
/>
45125
))
46126
}
47127
</ul>

src/components/workshop/WorkshopSection.astro

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ import DiscordJoinLink from '@/components/common/button/DiscordJoinLink.astro'
1313
</div>
1414
<p>
1515
こちらから講習会の資料や連絡を受け取れます。
16-
どなたでも無料で参加できます。是非お気軽にご参加ください!
16+
どなたでも無料で参加できます。
17+
事前の予約等は不要ですので、是非お気軽にご参加ください!
1718
</p>
1819
</div>
1920
</Section>

0 commit comments

Comments
 (0)