Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions public/img/sponsors/statamic-dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions public/img/sponsors/statamic.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions resources/views/components/home/sponsors.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
21 changes: 21 additions & 0 deletions tests/Feature/SponsorsAndPartnersPlacementTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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('<x-sponsors.lists.docs.sponsors />')
->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()
{
Expand Down