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
3 changes: 2 additions & 1 deletion src/components/Apply.astro
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
---
import { Image } from "astro:assets";
import ApplyImage from "@/assets/apply-button.png";
import { CONNPASS_URL } from "@/data/constants";
---

<a href="#apply" class="apply">
<a href={CONNPASS_URL} class="apply">
<Image src={ApplyImage} width={200} height={200} alt="応募する" />
</a>
<style>
Expand Down
5 changes: 2 additions & 3 deletions src/components/Footer.astro
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import EventNameImage from "@/assets/event-name-en.svg";
import FooterPersonImage from "@/assets/footer-person.png";
import TrafficImage from "@/assets/footer-traffic.png";
import SnsLinks from "./SnsLinks.astro";
import { CONNPASS_URL } from "@/data/constants";

const BOTTOM_LINKS = [
{
Expand Down Expand Up @@ -54,9 +55,7 @@ const BOTTOM_LINKS = [
/>
</div>
<div class="topButtons">
<Button href="https://fec-tokyo.connpass.com/event/352581/">
Connpassで参加申込する
</Button>
<Button href={CONNPASS_URL}> Connpassで参加申込する </Button>
<Button
href="https://x.com/intent/tweet?text=Frontend%20Conference%20Tokyo%202025に参加申し込みをしました%20%EF%BC%81%0A%23fec_tokyo%0Ahttps%3A%2F%2Ffec-tokyo.github.io%2F"
isGradated={false}
Expand Down
14 changes: 11 additions & 3 deletions src/components/Header.astro
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
---
import { Image } from "astro:assets";
import LogoImage from "@/assets/header-logo.svg";

const currentPath = Astro.url.pathname;
const getNavHref = (section: string) => {
if (currentPath === "/" || currentPath === "/contents") {
return `#${section}`;
}
return `/#${section}`;
};
---

<header class="container">
Expand All @@ -14,9 +22,9 @@ import LogoImage from "@/assets/header-logo.svg";
/>
</a>
<nav class="nav" aria-label="メインナビゲーション">
<a href="#timetable" class="navLink">Timetable</a>
<a href="#sponsors" class="navLink">Sponsors</a>
<a href="#faq" class="navLink">Faq</a>
<a href={getNavHref("timetable")} class="navLink">Timetable</a>
<a href={getNavHref("sponsors")} class="navLink">Sponsors</a>
<a href={getNavHref("faq")} class="navLink">Faq</a>
</nav>
</header>

Expand Down
3 changes: 2 additions & 1 deletion src/components/Introduction.astro
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
import Button from "@/components/Button.astro";
import { CONNPASS_URL } from "@/data/constants";
---

<section id="introduction" class="container">
Expand Down Expand Up @@ -42,7 +43,7 @@ import Button from "@/components/Button.astro";
</p>
</div>
<div class="apply">
<Button href="/">
<Button href={CONNPASS_URL}>
いますぐ参加申込する
<span class="arrow"></span>
</Button>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Timetable.astro
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ import ExternalLinkIcon from "@/assets/external-link.svg";

.container {
position: relative;
overflow: hidden;
overflow: clip;
}

.container::before {
Expand Down
1 change: 1 addition & 0 deletions src/data/constants.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const CONNPASS_URL = "https://fec-tokyo.connpass.com/event/352581/";