Improved scenes and movies meta header layout and responsiveness.
This commit is contained in:
@@ -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,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user