Skip to content

Commit 090044b

Browse files
authored
Merge pull request #200 from OUCC/update-workshop-info
Update workshop info
2 parents d917929 + 45ff374 commit 090044b

6 files changed

Lines changed: 57 additions & 8 deletions

File tree

934 KB
Loading

src/components/index/activity/ActivitySection.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import type { ImageMetadata } from 'astro'
33
import Section from '@/components/common/Section.astro'
44
import LinkButton from '@/components/common/button/LinkButton.astro'
55
import ActivityCard from '@/components/activity/ActivityCard.astro'
6-
import welcomeImage from '@/assets/welcome_lessons.webp'
6+
import welcomeImage from '@/assets/welcome_lesson-picture.png'
77
import exhibition1Image from '@/assets/exhibition1.webp'
88
import springDevImage from '@/assets/spring_dev.webp'
99

src/components/layout/Footer.astro

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ import FooterLink from './FooterLink.astro'
66
<footer class="flex flex-wrap items-center justify-center gap-8 py-8">
77
<div class="flex flex-wrap items-center justify-center gap-4 px-4">
88
<OuccImage role="img" aria-label="OUCC" class="w-12" />
9-
<span class="text-sm">© 2025 大阪大学コンピュータクラブ</span>
9+
<span class="text-sm"
10+
{new Date().getFullYear()} 大阪大学コンピュータクラブ</span
11+
>
1012
</div>
1113
<div class="flex flex-wrap items-center justify-center gap-4 px-4">
1214
<FooterLink to="/oucc-rules.pdf">規約</FooterLink>
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
---
2+
import Section from '@/components/common/Section.astro'
3+
import WorkshopCard from './WorkshopCard.astro'
4+
import type { ComponentProps } from 'astro/types'
5+
6+
export interface Item
7+
extends Omit<ComponentProps<typeof WorkshopCard>, 'date'> {
8+
date?: Date
9+
}
10+
export function date(
11+
month: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12,
12+
date: number,
13+
hour?: number,
14+
minute?: number,
15+
) {
16+
return hour === undefined
17+
? new Date(2026, month - 1, date)
18+
: minute === undefined
19+
? new Date(2026, month - 1, date, hour)
20+
: new Date(2026, month - 1, date, hour, minute)
21+
}
22+
23+
export const items: Item[] = []
24+
25+
const dateFormat = new Intl.DateTimeFormat('ja-JP', {
26+
weekday: 'short',
27+
month: 'numeric',
28+
day: 'numeric',
29+
// hour: '2-digit',
30+
// minute: '2-digit',
31+
})
32+
---
33+
34+
<Section background="secondary">
35+
<Fragment slot="title">2026年度のOUCCの講習会</Fragment>
36+
<div class="flex flex-col gap-5">
37+
<p>
38+
2026年度の講習会をサーオリ後に発表します。
39+
開始時刻や開催場所などの詳細ついては随時更新します。是非お気軽にご参加ください!
40+
</p>
41+
<ul class="grid grid-cols-[repeat(auto-fit,minmax(18rem,1fr))] gap-5">
42+
{
43+
items.map(({ date, ...item }) => (
44+
<WorkshopCard {...item} date={dateFormat.format(date)} />
45+
))
46+
}
47+
</ul>
48+
</div>
49+
</Section>
Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
import Section from '@/components/common/Section.astro'
3-
import OUTechsDiscordJoinLink from '@/components/common/button/OUTechsDiscordJoinLink.astro'
3+
import DiscordJoinLink from '@/components/common/button/DiscordJoinLink.astro'
44
---
55

66
<Section background="white">
@@ -9,15 +9,11 @@ import OUTechsDiscordJoinLink from '@/components/common/button/OUTechsDiscordJoi
99
新歓イベントの一環として部員や外部講師による講習会を開催しています。様々な技術について未経験者向けに解説しながら実際に使えるようになることを目指します。講習会内で必要なソフトウェアのインストールから説明しますので、事前準備は必要ありません。
1010
</p>
1111
<div class="flex justify-center">
12-
<OUTechsDiscordJoinLink />
12+
<DiscordJoinLink />
1313
</div>
1414
<p>
1515
こちらから講習会の資料や連絡を受け取れます。
1616
どなたでも無料で参加できます。是非お気軽にご参加ください!
1717
</p>
18-
<p>
19-
2026年度の講習会を現在計画中です。
20-
2025年度には、以下のような講習会を開催しました。
21-
</p>
2218
</div>
2319
</Section>

src/pages/workshop.astro

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import Layout from '@/layouts/Layout.astro'
33
import Hero from '@/components/common/Hero.astro'
44
import WorkshopSection from '@/components/workshop/WorkshopSection.astro'
55
import Workshop2025Section from '@/components/workshop/Workshop2025Section.astro'
6+
import Workshop2026Section from '@/components/workshop/Workshop2026Section.astro'
67
---
78

89
<Layout
@@ -13,6 +14,7 @@ import Workshop2025Section from '@/components/workshop/Workshop2025Section.astro
1314
<Hero title="講習会" copy="一緒に新しい技術を学びませんか?" compact />
1415
<main>
1516
<WorkshopSection />
17+
<Workshop2026Section />
1618
<Workshop2025Section />
1719
</main>
1820
</Layout>

0 commit comments

Comments
 (0)