Skip to content

Add Bifrost & Desktop sidebar ads, cross-platform docs rotation#421

Merged
simonhamp merged 1 commit into
mainfrom
bifrost-sidebar-ad
Jul 9, 2026
Merged

Add Bifrost & Desktop sidebar ads, cross-platform docs rotation#421
simonhamp merged 1 commit into
mainfrom
bifrost-sidebar-ad

Conversation

@simonhamp

Copy link
Copy Markdown
Member

Summary

Extends the sidebar ad rotation with two new ads and cleans up a couple of related UI details.

Ads

  • Bifrost ad — a cloud-platform ad for bifrost.nativephp.com, styled with Bifrost's own branding (sky→indigo→purple gradient, BIFROST wordmark, "Ship it!" CTA, Fathom click tracking). Added to the sidebar/blog/article rotations.
  • NativePHP Desktop ad — a counterpart to the existing NativePHP Mobile ad (NativePHP logo, "Bring your Laravel skills to the desktop.", MacBook artwork, links to /docs/desktop).

Cross-platform rotation on the docs

The two platform ads now cross-promote each other, and never advertise the platform you're already reading:

Docs page Mobile ad Desktop ad
Desktop docs ✅ shown ❌ hidden
Mobile docs ❌ hidden ✅ shown

(Blog/article sidebars are platform-agnostic and rotate through both.)

Other tweaks

  • Removed the "Early Bird Pricing" label from the Masterclass ad.
  • Set an explicit white page background in light mode on the main site layout (layout.blade.php previously only set a dark-mode background, leaving light mode at the browser default).

Testing

  • New tests/Feature/AdRotationTest.php (7 tests) covering: Bifrost & Desktop ads in the rotation, the desktop-ad-on-mobile-docs / mobile-ad-on-desktop-docs wiring (hitting the real /docs/desktop and /docs/mobile routes), ad exclusion, and the Early Bird removal.
  • vendor/bin/pint clean; assets rebuilt with npm run build.
  • Desktop ad visually verified in light mode.

🤖 Generated with Claude Code

- Add a Bifrost cloud-platform ad and a NativePHP Desktop ad to the sidebar ad rotation
- Rotate the Desktop ad on Mobile docs and the Mobile ad on Desktop docs (never a platform's own ad)
- Remove the "Early Bird Pricing" label from the Masterclass ad
- Set an explicit white page background in light mode on the main site layout
- Add feature tests for the rotation, cross-platform docs wiring, and Early Bird removal

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@simonhamp simonhamp marked this pull request as ready for review July 9, 2026 16:19
@simonhamp simonhamp merged commit ec50963 into main Jul 9, 2026
2 checks passed
@simonhamp simonhamp deleted the bifrost-sidebar-ad branch July 9, 2026 16:19
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