diff --git a/public/img/sponsors/statamic-dark.svg b/public/img/sponsors/statamic-dark.svg new file mode 100644 index 00000000..d677789f --- /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 00000000..256576cf --- /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 729e034b..eac9061e 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 475ce906..3052faec 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 c7d497fc..fec4d3cd 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() {