Wire homepage hero to featured thumbnail family; add featured-picture component
This commit is contained in:
@@ -16,7 +16,7 @@ final class HomeController extends Controller
|
||||
|
||||
public function index(Request $request): Response
|
||||
{
|
||||
$user = $request->user();
|
||||
$user = $request->user();
|
||||
$sections = $user
|
||||
? $this->homepage->allForUser($user)
|
||||
: array_merge($this->homepage->all(), ['is_logged_in' => false]);
|
||||
@@ -24,17 +24,17 @@ final class HomeController extends Controller
|
||||
$hero = $sections['hero'];
|
||||
|
||||
$meta = [
|
||||
'title' => 'Skinbase – Digital Art & Wallpapers',
|
||||
'title' => 'Skinbase – Digital Art & Wallpapers',
|
||||
'description' => 'Discover stunning digital art, wallpapers, and skins from a global community of creators. Browse trending works, fresh uploads, and beloved classics.',
|
||||
'keywords' => 'wallpapers, digital art, skins, photography, community, wallpaper downloads',
|
||||
'og_image' => $hero['thumb_lg'] ?? $hero['thumb'] ?? null,
|
||||
'canonical' => url('/'),
|
||||
'keywords' => 'wallpapers, digital art, skins, photography, community, wallpaper downloads',
|
||||
'og_image' => $hero['featured_image']['preload_url'] ?? $hero['thumb_lg'] ?? $hero['thumb'] ?? null,
|
||||
'canonical' => url('/'),
|
||||
];
|
||||
|
||||
$response = response()->view('web.home', [
|
||||
'seo' => app(SeoFactory::class)->homepage($meta)->toArray(),
|
||||
'useUnifiedSeo' => true,
|
||||
'meta' => $meta,
|
||||
'meta' => $meta,
|
||||
'props' => $sections,
|
||||
]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user