Skip to content

Commit d966d8d

Browse files
committed
suponsor fragment
1 parent 42bf2f3 commit d966d8d

File tree

5 files changed

+18
-8
lines changed

5 files changed

+18
-8
lines changed

src/components/session-description-for-panel.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const { item } = Astro.props;
99
<Modal
1010
id={"id" + createHash("md5").update(item.title).digest("hex")}
1111
open={item.title}
12-
buttonClass="text-secondary text-wrap ml-4 xl:ml-0 xl:text-nowrap text-left"
12+
buttonClass="text-secondary text-wrap ml-4 xl:ml-0 xl:text-nowrap text-left text-xl xl:py-4"
1313
>
1414
<main slot="main">
1515
<div

src/components/suponsor-card.astro

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,14 @@ const { site } = Astro.props;
1111
const widths = [450, 800];
1212
const sizes = "(min-width: 1024px) 33vw, (min-width: 768px) 50vw, 100vw";
1313
---
14-
15-
<div class="grid grid-cols-1 gap-4 lg:grid-cols-2 my-14">
16-
<a class="group hover:!text-default" href={site.data.url} target="_blank" aria-label={`A link of ${site.data.title}`}>
17-
18-
<h3 class="font-extrabold text-l">
14+
<div class="my-14 grid grid-cols-1 gap-4 lg:grid-cols-2">
15+
<a
16+
class="group hover:!text-default"
17+
href={site.data.url}
18+
target="_blank"
19+
aria-label={`A link of ${site.data.title}`}
20+
>
21+
<h3 class="text-l font-extrabold scroll-mt-24" id={"suponsor-" + site.data.order}>
1922
{site.data.title}
2023
</h3>
2124
<figure class="relative h-full w-full overflow-hidden">

src/components/timetable-item.astro

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ const { item } = Astro.props;
4747
<SessionDescriptionForPanel item={item} />
4848
) : (
4949
<div class="ml-4 flex h-full flex-row flex-wrap text-default xl:py-4">
50-
<span class="font-bold text-xl ">{item.title}</span>
50+
<span class="font-bold text-xl">{item.title}</span>
5151
<span>{item.description}</span>
5252
</div>
5353
)
@@ -67,7 +67,9 @@ const { item } = Astro.props;
6767
item.suponsors &&
6868
(item as SuponsorSession).suponsors.map((suponsor) => (
6969
<div class="m-2 ml-14 rounded border border-slate-500 bg-default p-4 shadow xl:ml-44">
70-
<span class="font-bold">{suponsor.speaker.name}</span>
70+
<a class="font-bold" href={"#suponsor-" + suponsor.suponsorId}>
71+
{suponsor.speaker.name}
72+
</a>
7173
</div>
7274
))
7375
}

src/components/timetable.astro

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,24 +68,28 @@ VS Code の強力なエディタ機能に Marp を統合することで、プレ
6868
name: "株式会社CARTA HOLDINGS",
6969
twitter: "https://x.com/carta_engineers",
7070
},
71+
suponsorId: 1,
7172
},
7273
{
7374
speaker: {
7475
name: "ペイクラウドホールディングス株式会社",
7576
link: "https://www.paycloud.inc/",
7677
},
78+
suponsorId: 2,
7779
},
7880
{
7981
speaker: {
8082
name: "株式会社ヒューマンテクノロジーズ/KING OF TIME",
8183
link: "https://recruit.h-t.co.jp/",
8284
},
85+
suponsorId: 3,
8386
},
8487
{
8588
speaker: {
8689
name: "Postman",
8790
twitter: "https://x.com/postman_japan",
8891
},
92+
suponsorId: 4,
8993
},
9094
],
9195
},

src/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ export interface SuponsorSessionItem {
2222
speaker: Speaker;
2323
documentUrl?: string;
2424
movieUrl?: string;
25+
suponsorId: number;
2526
}
2627
export interface SuponsorSession extends TimeTableItem {
2728
suponsors: SuponsorSessionItem[];

0 commit comments

Comments
 (0)