-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
88b5d1c
commit f5bbe70
Showing
32 changed files
with
248 additions
and
232 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
14 changes: 9 additions & 5 deletions
14
...ry/hiroshima/image/[date]/[name]/page.tsx → ...story/image/[area]/[date]/[name]/page.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import { Modal } from "@/app/@modal/(.)history/modal" | ||
import { Video } from "@/app/components/media/video" | ||
import type { Submenu } from "@/app/interfaces/menu" | ||
import type { EventDate } from "@/app/interfaces/schedule" | ||
import { | ||
HIROSHIMA, | ||
HIROSHIMA_HISTORY, | ||
KANTO, | ||
KANTO_HISTORY, | ||
} from "@/app/lib/constant" | ||
import type { JSX } from "react" | ||
|
||
export default function Movie({ | ||
params: { area, date }, | ||
}: Readonly<{ params: { area: string; date: string } }>): JSX.Element { | ||
const submenu: Submenu = `/${area}` === KANTO.pathname ? KANTO : HIROSHIMA | ||
const history: EventDate[] = | ||
`/${area}` === KANTO.pathname ? KANTO_HISTORY : HIROSHIMA_HISTORY | ||
const eventDate: EventDate = history.find( | ||
(history) => history.date === date, | ||
) as EventDate | ||
|
||
return ( | ||
<Modal> | ||
<h2 className="font-bold font-zenMaruGothic mb-5 text-3xl text-center"> | ||
{eventDate.title} | ||
</h2> | ||
<Video pathname={submenu.pathname} date={eventDate.date} /> | ||
</Modal> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
import { BackButton } from "@/app/components/button/backButton" | ||
import { Heading } from "@/app/components/layout/heading" | ||
import { Video } from "@/app/components/media/video" | ||
import type { Submenu } from "@/app/interfaces/menu" | ||
import type { EventDate } from "@/app/interfaces/schedule" | ||
import { | ||
HIROSHIMA, | ||
HIROSHIMA_HISTORY, | ||
HISTORY, | ||
KANTO, | ||
KANTO_HISTORY, | ||
} from "@/app/lib/constant" | ||
import type { Metadata } from "next" | ||
import type { JSX } from "react" | ||
|
||
export const metadata: Metadata = { | ||
title: "活動実績", | ||
} | ||
|
||
export default function Movie({ | ||
params: { area, date }, | ||
}: Readonly<{ params: { area: string; date: string } }>): JSX.Element { | ||
const submenu: Submenu = `/${area}` === KANTO.pathname ? KANTO : HIROSHIMA | ||
const history: EventDate[] = | ||
`/${area}` === KANTO.pathname ? KANTO_HISTORY : HIROSHIMA_HISTORY | ||
const eventDate: EventDate = history.find( | ||
(history) => history.date === date, | ||
) as EventDate | ||
const movie: Submenu = { | ||
name: eventDate.title, | ||
pathname: `/${eventDate.date}`, | ||
textColor: "text-yellow-400", | ||
} | ||
|
||
return ( | ||
<> | ||
<Heading menu={HISTORY} submenus={[submenu, movie]} /> | ||
<Video pathname={submenu.pathname} date={eventDate.date} /> | ||
<BackButton href={HISTORY.pathname} name={HISTORY.name} /> | ||
</> | ||
) | ||
} |
Oops, something went wrong.