Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added src/assets/map/floor-map.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
32 changes: 32 additions & 0 deletions src/components/FloorGuide.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
import { Image } from "astro:assets";
import FloorMapImage from "../assets/map/floor-map.png";

interface Props {
lang?: "ja" | "en";
}
const { lang = "ja" } = Astro.props;
const altText = lang === "en" ? "Floor Map" : "フロアマップ";
---

<div class="floor-map-wrapper">
<Image
src={FloorMapImage}
alt={altText}
sizes="(max-width: 768px) 100vw, 80vw"
priority
class="floor-map"
/>
</div>

<style>
.floor-map-wrapper {
display: flex;
justify-content: center;
padding: 1rem;
}
.floor-map {
max-width: 100%;
height: auto;
}
</style>
4 changes: 4 additions & 0 deletions src/components/Footer.astro
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ const tokushouText =
href={getRelativeLocaleUrl(currentLocale, "job-board")}
text="Job Board"
/>
<TextLink
href={getRelativeLocaleUrl(currentLocale, "floorguide")}
text="Floor Guide"
/>
<TextLink
href="https://docs.google.com/document/d/1jZqZfcH7NqCMyPXt_ZhvhlFXj4fKF-TNfXG_GIHBsfo/edit?tab=t.0#heading=h.95wf1aolrg0m"
text="Sponsor FAQ"
Expand Down
12 changes: 6 additions & 6 deletions src/components/Header.astro
Original file line number Diff line number Diff line change
Expand Up @@ -225,12 +225,6 @@ const ticketUrl =
text="Timetable"
/>
</li>
<!-- <li>
<TextLink
href={getRelativeLocaleUrl(currentLocale, "floorguide")}
text="Floor Guide"
/>
</li> -->
<li>
<TextLink
href={getRelativeLocaleUrl(currentLocale, "staffs")}
Expand All @@ -243,6 +237,12 @@ const ticketUrl =
text="Job Board"
/>
</li>
<li class="navigation-menu-item">
<TextLink
href={getRelativeLocaleUrl(currentLocale, "floorguide")}
text="Floor Guide"
/>
</li>
<li class="navigation-menu-item">
<TextLink
href="https://docs.google.com/document/d/1jZqZfcH7NqCMyPXt_ZhvhlFXj4fKF-TNfXG_GIHBsfo/edit?tab=t.0#heading=h.95wf1aolrg0m"
Expand Down
8 changes: 8 additions & 0 deletions src/pages/en/floorguide.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
import SubPage from "../../layouts/SubPage.astro";
import FloorGuide from "../../components/FloorGuide.astro";
---

<SubPage pageTitleJa="フロアガイド" pageTitleEn="Floor Guide">
<FloorGuide lang="en" />
</SubPage>
8 changes: 8 additions & 0 deletions src/pages/floorguide.astro
Comment thread
masakurapa marked this conversation as resolved.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

すみません、pages/en の方にもファイル追加が必要そうでした...!!

このファイルとenの方は薄いwrapperにして、 src/components/FloorGuide.astro を新規追加してそちらにこのファイルの実装 + 英訳対応を持っていくのが良さそうです!!
(他のページと同様の構成)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

こちらで対応しましたmm

eefa841

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
import SubPage from "../layouts/SubPage.astro";
import FloorGuide from "../components/FloorGuide.astro";
---

<SubPage pageTitleJa="フロアガイド" pageTitleEn="Floor Guide">
<FloorGuide />
</SubPage>