Skip to content

Commit

Permalink
🐛 fix hero view layout broken
Browse files Browse the repository at this point in the history
  • Loading branch information
Terfno committed Dec 14, 2024
1 parent 2819910 commit d8200c6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/components/Layouts/Layout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ const { title, twitter_card } = Astro.props;
</head>
<body>
<Header />
<slot name="hero" />
<main>
<slot />
</main>
Expand Down
2 changes: 2 additions & 0 deletions src/components/top/Hero.astro
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import PrimaryLogoWhiteImage from "../../imgs/primary_logo_white.png";
import TriImage from "../../imgs/tri.png";
import TicketButtonBefore from "./TicketButtonBefore.astro";
import TicketButtonSelling from "./TicketButtonSelling.astro";
import InterNav from "./InterNav.astro";
function isTicketOpen(): boolean {
return true;
Expand Down Expand Up @@ -172,3 +173,4 @@ function isTicketOpen(): boolean {
</div>
</div>
</div>
<InterNav />
4 changes: 1 addition & 3 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,13 @@
import Layout from "../components/Layouts/Layout.astro";
import Hero from "../components/top/Hero.astro";
import InterNav from "../components/top/InterNav.astro";
import TopMain from "../components/top/TopMain.astro";
const title = "東京Ruby会議12";
const twitter_card = "summary_large_image";
---

<Layout title={title} twitter_card={twitter_card}>
<Hero />
<InterNav />
<Hero slot="hero"/>
<TopMain />
</Layout>

0 comments on commit d8200c6

Please sign in to comment.