From 87c14616c22b22a051d98cd689c820bf669d6f9c Mon Sep 17 00:00:00 2001 From: Simon Hamp Date: Mon, 24 Aug 2026 17:55:52 +0100 Subject: [PATCH] Add Statamic to the sponsor lists Adds Statamic to the home page sponsor strip and the rotating sidebar sponsor used across docs, blog and article pages, with light/dark logos taken unmodified from statamic.com/branding. Co-Authored-By: Claude Opus 5 (1M context) --- public/img/sponsors/statamic-dark.svg | 1 + public/img/sponsors/statamic.svg | 1 + .../views/components/home/sponsors.blade.php | 6 ++++++ .../sponsors/lists/docs/sponsors.blade.php | 7 +++++++ .../SponsorsAndPartnersPlacementTest.php | 21 +++++++++++++++++++ 5 files changed, 36 insertions(+) create mode 100644 public/img/sponsors/statamic-dark.svg create mode 100644 public/img/sponsors/statamic.svg diff --git a/public/img/sponsors/statamic-dark.svg b/public/img/sponsors/statamic-dark.svg new file mode 100644 index 000000000..d677789f8 --- /dev/null +++ b/public/img/sponsors/statamic-dark.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/public/img/sponsors/statamic.svg b/public/img/sponsors/statamic.svg new file mode 100644 index 000000000..256576cfa --- /dev/null +++ b/public/img/sponsors/statamic.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/resources/views/components/home/sponsors.blade.php b/resources/views/components/home/sponsors.blade.php index 729e034b4..eac9061e1 100644 --- a/resources/views/components/home/sponsors.blade.php +++ b/resources/views/components/home/sponsors.blade.php @@ -18,6 +18,12 @@ 'component' => 'sponsors.logos.laradevs', 'class' => 'h-6 w-auto text-black dark:text-white', ], + [ + 'url' => 'https://statamic.com/?utm_source=nativephp&utm_medium=logo&utm_campaign=nativephp', + 'name' => 'Statamic', + 'image' => '/img/sponsors/statamic.svg', + 'imageDark' => '/img/sponsors/statamic-dark.svg', + ], ]; @endphp diff --git a/resources/views/components/sponsors/lists/docs/sponsors.blade.php b/resources/views/components/sponsors/lists/docs/sponsors.blade.php index 475ce9065..3052faeca 100644 --- a/resources/views/components/sponsors/lists/docs/sponsors.blade.php +++ b/resources/views/components/sponsors/lists/docs/sponsors.blade.php @@ -22,6 +22,13 @@ 'component' => 'sponsors.logos.laradevs', 'class' => 'w-full text-black dark:text-white', ], + [ + 'url' => 'https://statamic.com/?utm_source=nativephp&utm_medium=logo&utm_campaign=nativephp', + 'name' => 'Statamic', + 'image' => '/img/sponsors/statamic.svg', + 'imageDark' => '/img/sponsors/statamic-dark.svg', + 'class' => 'w-full', + ], ]; @endphp diff --git a/tests/Feature/SponsorsAndPartnersPlacementTest.php b/tests/Feature/SponsorsAndPartnersPlacementTest.php index c7d497fcf..fec4d3cdf 100644 --- a/tests/Feature/SponsorsAndPartnersPlacementTest.php +++ b/tests/Feature/SponsorsAndPartnersPlacementTest.php @@ -48,6 +48,27 @@ public function the_sidebar_partners_list_rotates_through_every_entry_it_is_give ->assertSee('https://partner-two.test'); } + #[Test] + public function the_home_page_sponsor_strip_includes_statamic() + { + $this->get(route('welcome')) + ->assertOk() + ->assertSee('https://statamic.com/?utm_source=nativephp&utm_medium=logo&utm_campaign=nativephp') + ->assertSee('/img/sponsors/statamic.svg') + ->assertSee('/img/sponsors/statamic-dark.svg'); + } + + #[Test] + public function the_sidebar_sponsors_list_includes_statamic_in_its_rotation() + { + $this->blade('') + ->assertSee('https://statamic.com/?utm_source=nativephp&utm_medium=logo&utm_campaign=nativephp') + ->assertSee('/img/sponsors/statamic.svg') + ->assertSee('/img/sponsors/statamic-dark.svg') + ->assertSee('x-show="sponsor === 3"', false) + ->assertSee('Math.random() * 4', false); + } + #[Test] public function the_sidebar_sponsors_list_rotates_through_every_entry_it_is_given() {