Skip to content

Interior-page course call-out: Eddie modal, footer, new-tab links, CTA card - #163

Open
nofluffdesign wants to merge 8 commits into
mainfrom
feature/course-callout-interior-pages
Open

Interior-page course call-out: Eddie modal, footer, new-tab links, CTA card#163
nofluffdesign wants to merge 8 commits into
mainfrom
feature/course-callout-interior-pages

Conversation

@nofluffdesign

@nofluffdesign nofluffdesign commented Jul 8, 2026

Copy link
Copy Markdown
Collaborator

Implements the interior-page course call-out reviewed with Brad in the 2026-07-14 check-in, now built on the Eddie 0.39.0 release. Closes #172, #173, #175.

This PR evolved from the original custom-<dialog> port; later commits replace that with the real Eddie modal and pull in Brad's 0.39 release, so the net diff is the design-system version.

Changes

#172 — Adopt the Eddie modal

  • Replaces the custom <dialog> engagement modal with Eddie's <ed-modal> (header slot, built-in close button).
  • Loads the Eddie component bundle + design tokens on interior pages (default.html, head.html).
  • As of Eddie 0.39 the modal is a native <dialog> in modal mode, so the browser provides the backdrop, focus trap, Esc-to-close and focus restore. course-cta.js is now just the engagement trigger (scroll 50% / 10s / once per reader) that flips isActive.
  • Renders content-sized and centered (Brad's "not full-height" note — handled upstream in 0.39).

#173 — Footer link order + underline

  • "Atomic Design by Brad Frost" on the left, "Buy the ebook" on the right.
  • Footer links underline on hover/focus only — visible keyboard focus (WCAG 2.1 AA).

#175 — Open course/product links in a new tab

  • Course, ebook, Subatomic, AI & Design Systems and Mega Bundle links now open in a new tab (target="_blank" + rel="external noopener").

Primary CTA hover card (Brad's follow-up)

  • "Get Atomic Design Certified" slides up on hover/focus to reveal a distinct course list (self-paced video course · 10+ hours of video · sample DS architecture · design systems community). No underlines.

Dependencies

  • Bumps @brad-frost-web/eddie-web-components and eddie-design-tokens 0.37.0 → 0.39.0, pinned from * to ^0.39.0. Rebuilt bundle + vendored tokens CSS.

Verification

Verified functionally in a local Jekyll build (DOM/CSS/geometry/focus assertions): modal opens as a native :modal with a 25% backdrop, centered, focus + Esc + close all work; footer layout + underline behavior; all course links open in new tabs; CTA slide-up reveal.

nofluffdesign and others added 5 commits July 8, 2026 14:48
Port the course-callout work from the Eleventy prototype into this Jekyll
site, adapted to Liquid includes and the site's Sass variables:

- Update the fixed banner (_includes/banner.html) to showcase the course:
  keep the book title, author and an ebook link, with "Get Atomic Design
  Certified" as the highlighted CTA (reuses .btn).
- Add a centered marketing modal (_includes/course-modal.html) shown once
  per reader after 50% scroll or 15s, never on load. Included via
  _layouts/default.html; behavior in js/course-cta.js (loaded from footer).
- Add .course-modal styles to css/style.scss using the site's Sass palette
  ($orange / $tan / $brown), respecting prefers-reduced-motion.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Bumps @brad-frost-web/eddie-web-components and eddie-design-tokens from
0.37.0 to 0.39.0 (the release Brad cut), pinning them from "*" to ^0.39.0.
Rebuilds the component bundle (registers ed-modal, ed-button, ed-icon) and
vendors the design-tokens CSS the components read from :root.

0.39's <ed-modal> is a native <dialog> in modal mode, so the browser now
provides the backdrop, focus trap, Esc-to-close and focus restore.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Implements the interior-page course call-out reviewed with Brad:

- #172 Replace the custom <dialog> with Eddie's <ed-modal>; load the
  component bundle and design tokens on interior pages. course-cta.js now
  only opens it on reader engagement — the native dialog handles a11y.
- #173 Footer: "Atomic Design by Brad Frost" on the left, "Buy the ebook"
  on the right; links underline on hover/focus only (visible keyboard
  focus, WCAG 2.1 AA).
- #175 Course/product links open in a new tab (target=_blank + noopener).
- The CTA button slides up on hover/focus to reveal distinct course
  details (self-paced video course, 10+ hours, sample DS architecture,
  design systems community).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@nofluffdesign nofluffdesign changed the title Course call-out footer + engagement modal on interior pages Interior-page course call-out: Eddie modal, footer, new-tab links, CTA card Jul 16, 2026
bradfrost and others added 3 commits July 21, 2026 11:08
…, reading-pages-only firing with 1-week cooldown, banner gap + lockup polish

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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.

Replace custom dialogue/modal with the updated Eddie modal component

3 participants