Description
Allow phalanxduel.com (this marketing/docs site) to embed a playable Phalanx Duel experience from https://play.phalanxduel.com in an <iframe> on the homepage.
This task has a dependency on the app project (the app served at play.phalanxduel.com) enabling embed support safely.
Resume Work in This Repo (phalanxduel.com site) after the app project is ready.
Acceptance Criteria
- #1 Set
_data/homepage.ymlactive_varianttoembed_conversion_v1(or createembed_conversion_v2) - #2 Update the iframe
srcin_data/homepage.ymlto the final embed URL (e.g./embed) - #3 Tighten iframe
sandboxflags in_data/homepage.ymlto the confirmed minimum - #4 Verify copy and CTAs match actual embed behavior (
Create Match, join flow, spectator link availability) - #5 Add analytics instrumentation for
Create MatchCTA clicks, iframe section visibility, and outboundOpen Full Appclicks - #6 Test homepage on desktop + mobile
Final Summary
Implemented embed_conversion_v1 in _data/homepage.yml and verified that play.phalanxduel.com/embed exists. Updated iframe sandbox and allow attributes. Updated smoke tests to handle redirects and excluded internal routes.
Definition of Done
- #1 The a11y is run agains the site and all claims are verified against the official rules and guidlines for Phalanx Duel