Skip to content

Commit

Permalink
Merge pull request #10 from MauiDay/hide-speaker-button
Browse files Browse the repository at this point in the history
Forgot the hero
  • Loading branch information
jfversluis authored Dec 19, 2024
2 parents 26d8389 + 3e1f9fa commit 60da279
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
13 changes: 10 additions & 3 deletions src/components/hero.astro
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import loadConfig from '../configLoader';
const config = await loadConfig();
const { ticketUrl, headline } = config;
const { ticketUrl, headline, hasAnnouncedSpeakers } = config;
---

<section
Expand All @@ -29,10 +29,17 @@ const { ticketUrl, headline } = config;
<a href={`${ticketUrl}`}
target="_blank"
class="bg-brand-extra font-bold text-white px-6 py-3 rounded-full text-md hover:bg-brand-extraDark">Get a Ticket</a>
<a href="#speakers"

{hasAnnouncedSpeakers ? (
<>
<a href="#speakers"
class="border font-bold border-white text-white px-6 py-3 rounded-full text-md hover:bg-white hover:text-brand-dark">View Speakers</a>
<a href="#call-for-speakers"
</>
) : (
<>
<a href="#call-for-speakers"
class="border font-bold border-white text-white px-6 py-3 rounded-full text-md hover:bg-white hover:text-brand-dark">Submit a Talk</a>
</> )}
</div>
</div>
</section>
2 changes: 1 addition & 1 deletion src/data/configs/london-config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ export default {
sessionizeId: "9vn5sw3z",
sessionizeCfsUrl: "https://sessionize.com/maui-day-london-2025/",
headline: "Next event: March 14, 2025 in London!",
hasAnnouncedSpeakers: false,
hasAnnouncedSpeakers: true,
location: "Microsoft Reactor London",
mapsEmbedUrl: "https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d4965.064456132526!2d-0.08681318739155501!3d51.52179730953346!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x48761cae412fffff%3A0xe56540ed5d9ddc24!2sMicrosoft%20Reactor%20London!5e0!3m2!1sen!2snl!4v1733307998847!5m2!1sen!2snl",
ticketUrl: "https://mauiday-london-2025.eventbrite.nl",
Expand Down

0 comments on commit 60da279

Please sign in to comment.