Skip to content

Commit

Permalink
Add timetable
Browse files Browse the repository at this point in the history
  • Loading branch information
arcatdmz committed Apr 13, 2023
1 parent 942f331 commit 5690229
Show file tree
Hide file tree
Showing 2 changed files with 83 additions and 0 deletions.
81 changes: 81 additions & 0 deletions components/pages/aist-seminar/2/TimetableSegment.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
import { FC, useMemo } from "react";
import { Header, Segment, Table } from "semantic-ui-react";

import { useSiteInfo } from "../../../lib/useSiteInfo";

interface IProps {
bare?: boolean;
}

export const TimetableSegment: FC<IProps> = ({ bare }) => {
const { ja } = useSiteInfo();
const content = useMemo(
() => (
<>
<a id="timetable" className="anchor"></a>
<Header as="h2" dividing content={ja ? "プログラム" : "Timetable"} />
<Table striped basic="very" size="small">
<Table.Header>
<Table.Row>
<Table.HeaderCell>{ja ? "時刻" : "Time"}</Table.HeaderCell>
<Table.HeaderCell colSpan={2}>
{ja ? "内容" : "Program"}
</Table.HeaderCell>
</Table.Row>
</Table.Header>
<Table.Body>
<Table.Row>
<Table.Cell>10:00</Table.Cell>
<Table.Cell>
{ja
? "「AIST Creative HCI Seminar」の開催経緯"
: "Introduction of the seminar"}
</Table.Cell>
<Table.Cell textAlign="right">
{ja ? "加藤 淳" : "Jun Kato"}
</Table.Cell>
</Table.Row>
<Table.Row>
<Table.Cell>10:05</Table.Cell>
<Table.Cell>{ja ? "招待講演 #1" : "Invited talk #1"}</Table.Cell>
<Table.Cell textAlign="right">Amy Pavel</Table.Cell>
</Table.Row>
<Table.Row>
<Table.Cell>10:45</Table.Cell>
<Table.Cell>{ja ? "質疑応答 #1" : "Q&A #1"}</Table.Cell>
<Table.Cell textAlign="right">Amy Pavel</Table.Cell>
</Table.Row>
<Table.Row>
<Table.Cell>10:50</Table.Cell>
<Table.Cell>{ja ? "招待講演 #2" : "Invited talk #2"}</Table.Cell>
<Table.Cell textAlign="right">Xingyu Bruce Liu</Table.Cell>
</Table.Row>
<Table.Row>
<Table.Cell>11:30</Table.Cell>
<Table.Cell>{ja ? "質疑応答 #2" : "Q&A #2"}</Table.Cell>
<Table.Cell textAlign="right">Xingyu Bruce Liu</Table.Cell>
</Table.Row>
<Table.Row>
<Table.Cell>11:35</Table.Cell>
<Table.Cell>
{ja ? "パネルディスカッション" : "Panel discussion"}
</Table.Cell>
<Table.Cell textAlign="right">
{ja ? "Pavel, Liu, 加藤" : "Amy, Bruce, Jun"}
</Table.Cell>
</Table.Row>
<Table.Row disabled>
<Table.Cell>11:55</Table.Cell>
<Table.Cell>{ja ? "クロージング" : "Closing"}</Table.Cell>
<Table.Cell textAlign="right">
{ja ? "セミナー運営" : "Organizers"}
</Table.Cell>
</Table.Row>
</Table.Body>
</Table>
</>
),
[]
);
return bare ? content : <Segment basic>{bare}</Segment>;
};
2 changes: 2 additions & 0 deletions components/pages/aist-seminar/index/Body.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import { EditionSegment } from "./EditionSegment";
import { Alertbox } from "../Alertbox";
import { InvitedSpeakersSegment } from "../2/InvitedSpeakersSegment";
import { ReferencesSegment } from "../2/ReferencesSegment";
import { TimetableSegment } from "../2/TimetableSegment";

export const Body: FC = () => {
const { site, ja } = useSiteInfo();
Expand Down Expand Up @@ -111,6 +112,7 @@ export const Body: FC = () => {
/>
</Alertbox>
<InvitedSpeakersSegment bare />
<TimetableSegment bare />
<ReferencesSegment bare />
</EditionSegment>
<FirstEditionSegment />
Expand Down

0 comments on commit 5690229

Please sign in to comment.