Skip to content

feat(landing): add to-calendar button on hero#133

Closed
ryzizub wants to merge 4 commits into
2026from
claude/cool-shockley-b6854f
Closed

feat(landing): add to-calendar button on hero#133
ryzizub wants to merge 4 commits into
2026from
claude/cool-shockley-b6854f

Conversation

@ryzizub

@ryzizub ryzizub commented May 10, 2026

Copy link
Copy Markdown
Member

Summary

  • Adds an Add to calendar button on the landing page above the See last year's edition link, powered by the add-to-calendar-button web component.
  • Configured as an all-day event on 2026-10-30 in the Europe/Prague timezone with providers: Apple, Google, Microsoft 365, Outlook.com, Yahoo, and .ics download.
  • Custom dark styling via styleDark CSS variables to match the landing palette (red border, transparent background, hover tint rgba(204, 0, 0, 0.15), Share Tech Mono font).

Why

A user-visible "Add to calendar" affordance lets visitors save the event date as soon as they land on the page, complementing the countdown and newsletter signup. The web component handles all provider URL crafting, ICS generation, accessibility, and i18n out of the box, so future updates only require editing attributes in AddToCalendar.astro.

Updating the event

Edit the attributes in src/components/AddToCalendar.astro (e.g. dates, times, location) and redeploy. The component regenerates provider links and .ics content at runtime.

@github-actions

github-actions Bot commented May 10, 2026

Copy link
Copy Markdown

Visit the preview URL for this PR (updated for commit f4195f1):

https://devfest-public--pr133-claude-cool-shockley-lw8p1dnu.web.app

(expires Sat, 20 Jun 2026 21:46:07 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 012b97aa22a34482dd432649ee74495ebf4fb2e2

@ryzizub ryzizub force-pushed the claude/cool-shockley-b6854f branch 7 times, most recently from 4a53c05 to 9965df9 Compare May 15, 2026 17:19
@ryzizub ryzizub force-pushed the claude/cool-shockley-b6854f branch from 9965df9 to 5949451 Compare May 17, 2026 20:18
@ryzizub ryzizub force-pushed the claude/cool-shockley-b6854f branch from 5949451 to 8d57226 Compare June 6, 2026 19:24
ryzizub and others added 3 commits June 16, 2026 15:20
Drops in the `add-to-calendar-button` web component above the
"See last year's edition" link so visitors can save the event to
Google, Apple, Microsoft 365, Outlook.com, Yahoo, or download an
.ics file. Configured as an all-day event on 2026-10-30 in the
Europe/Prague timezone with custom dark styling that matches the
landing palette (red border, transparent background, Share Tech
Mono font).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
The previous `buttonStyle="custom"` attribute expects an external
`customCss` URL — without one, the web component renders unstyled
and is invisible against the dark hero. Switch to `buttonStyle="default"`
with `size="3"` so the built-in baseline CSS loads, while keeping the
`styleDark` CSS variable overrides for the noir palette. Also drops
the undocumented `hideIconButton` attribute.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
…link

Drops the `add-to-calendar-button` web component in favour of a plain
anchor wired to a `webcal://` URL. The browser hands off the link to
the user's default calendar app (Apple Calendar, Outlook desktop) or
falls back to downloading the `.ics` file. The constant `ICS_URL`
inside `AddToCalendar.astro` is a placeholder — replace it with the
public iCal URL of the DevFest 2026 calendar event before deploy.

Removes the `add-to-calendar-button` dependency and restyles the
button as a noir-themed CTA: red bevelled border, Share Tech Mono,
clip-path corners that match the landing aesthetic.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@ryzizub ryzizub force-pushed the claude/cool-shockley-b6854f branch from 8d57226 to 2b3f7ef Compare June 16, 2026 13:21
Resync package.json and package-lock.json with main (2026) so the
branch picks up the a11y CI script, the @axe-core/playwright +
playwright devDependencies, and the Astro 6.1.10 bump. The original
add-to-calendar feature commit overwrote these files when its conflict
was resolved during an earlier rebase. Without the a11y script the
axe CI job exits with `npm error Missing script: "a11y"`.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@ryzizub ryzizub closed this Jun 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant