Improved scenes and movies meta header layout and responsiveness.

This commit is contained in:
2026-11-12 00:57:30 +01:00
parent a8f6bcb4f0
commit 810b2971a8
6 changed files with 375 additions and 60 deletions
+3 -1
View File
@@ -21,6 +21,7 @@ export async function onBeforeRender(pageContext) {
restriction: pageContext.geo.restriction,
}),
getRandomCampaigns([
{ minRatio: 3 },
{ minRatio: 0.75, maxRatio: 1.25 },
{ minRatio: 1.5 },
], { tagFilter: pageContext.tagFilter }),
@@ -31,7 +32,7 @@ export async function onBeforeRender(pageContext) {
} = sceneResults;
const campaignIndex = getCampaignIndex(scenes.length);
const [sceneCampaign, paginationCampaign] = campaigns;
const [metaCampaign, sceneCampaign, paginationCampaign] = campaigns;
return {
pageContext: {
@@ -41,6 +42,7 @@ export async function onBeforeRender(pageContext) {
},
campaigns: {
index: campaignIndex,
meta: metaCampaign,
scenes: scenes.length > 5 && sceneCampaign,
pagination: paginationCampaign,
},