From 8d108b8a7635bd839a610a3a2503e0c80860211e Mon Sep 17 00:00:00 2001 From: Gregor Klevze Date: Fri, 8 May 2026 21:51:28 +0200 Subject: [PATCH] Homepage: add stable intro copy; mark footer utility links data-nosnippet; add render test --- resources/views/layouts/nova/footer.blade.php | 4 +-- resources/views/web/home/hero.blade.php | 20 +++++++---- tests/Unit/HomepageAnnouncementModuleTest.php | 34 +++++++++++++++++++ 3 files changed, 49 insertions(+), 9 deletions(-) diff --git a/resources/views/layouts/nova/footer.blade.php b/resources/views/layouts/nova/footer.blade.php index f176f3e8..ca3dcb19 100644 --- a/resources/views/layouts/nova/footer.blade.php +++ b/resources/views/layouts/nova/footer.blade.php @@ -6,7 +6,7 @@ Skinbase -
+
Contact / Apply Help RSS Feeds @@ -22,6 +22,6 @@ >Cookie Preferences
-
© 2026 Skinbase.org
+
© 2026 Skinbase.org
diff --git a/resources/views/web/home/hero.blade.php b/resources/views/web/home/hero.blade.php index c3d75bbd..1897aa07 100644 --- a/resources/views/web/home/hero.blade.php +++ b/resources/views/web/home/hero.blade.php @@ -8,11 +8,14 @@
+

+ Skinbase +

Skinbase

-

- Discover. Create. Inspire. +

+ Discover digital art, wallpapers, skins, and photography from a global creator community. Explore trending work, fresh uploads, and long-time classics in one place.

Explore Trending @@ -39,15 +42,18 @@

- Featured Artwork + Skinbase

- {{ $heroArtwork['title'] ?? 'Untitled' }} + Digital Art & Wallpapers

-

- by +

+ Discover digital art, wallpapers, skins, and photography from a global creator community. Browse trending work, fresh uploads, and timeless favorites. +

+

+ Featured artwork: - {{ $heroArtwork['author'] ?? 'Artist' }} + {{ $heroArtwork['title'] ?? 'Untitled' }} by {{ $heroArtwork['author'] ?? 'Artist' }}

diff --git a/tests/Unit/HomepageAnnouncementModuleTest.php b/tests/Unit/HomepageAnnouncementModuleTest.php index 0f6805fe..9ba700f2 100644 --- a/tests/Unit/HomepageAnnouncementModuleTest.php +++ b/tests/Unit/HomepageAnnouncementModuleTest.php @@ -228,6 +228,40 @@ it('homepage payload includes the announcement prop', function (): void { expect($html)->toContain('"announcement":{"id":42'); }); +it('homepage renders stable intro copy and excludes footer utility text from snippets', function (): void { + $html = view('web.home', [ + 'seo' => [], + 'useUnifiedSeo' => true, + 'meta' => [], + 'props' => [ + 'hero' => [ + 'title' => 'Featured Example', + 'author' => 'CreatorName', + 'url' => '/art/1/featured-example', + ], + 'announcement' => null, + 'community_favorites' => [], + 'hall_of_fame' => [], + 'rising' => [], + 'trending' => [], + 'fresh' => [], + 'collections_featured' => [], + 'collections_trending' => [], + 'collections_editorial' => [], + 'collections_community' => [], + 'world_spotlight' => null, + 'groups' => [], + 'tags' => [], + 'creators' => [], + 'news' => [], + ], + ])->render(); + + expect($html) + ->toContain('Discover digital art, wallpapers, skins, and photography from a global creator community.') + ->toContain('data-nosnippet'); +}); + it('preview sanitizes html content', function (): void { $admin = adminUser();