style(hero): reduce gradient overlay intensity to make background image more visible

This commit is contained in:
MichalC
2026-09-17 23:41:11 +02:00
parent 0b35e76cf2
commit 573580d01f
7 changed files with 273 additions and 11 deletions
+33
View File
@@ -0,0 +1,33 @@
import { getPayload } from 'payload'
import configPromise from '../src/payload.config'
async function run() {
const payload = await getPayload({ config: configPromise })
const media = await payload.find({ collection: 'media', limit: 100 })
console.log("=== MEDIA ===")
media.docs.forEach(m => {
if (m.filename?.includes('hero') || m.alt?.toLowerCase().includes('hero') || m.url?.includes('hero')) {
console.log(`- ID: ${m.id} | Filename: ${m.filename} | Alt: ${m.alt}`)
}
})
// Fallback: list all media if no hero found
if (media.docs.length > 0 && !media.docs.some(m => m.filename?.includes('hero'))) {
console.log("No explicit 'hero' in filename. Listing all media:")
media.docs.forEach(m => console.log(`- ID: ${m.id} | Filename: ${m.filename} | Alt: ${m.alt}`))
}
const pages = await payload.find({ collection: 'pages', locale: 'pl', limit: 100 })
console.log("\n=== PAGES ===")
pages.docs.forEach(p => {
const heroBlock = p.layout?.find(b => b.blockType === 'pageHeader')
console.log(`Page: ${p.slug} | Has pageHeader: ${!!heroBlock}`)
if (heroBlock) {
console.log(` Title: ${heroBlock.title}`)
console.log(` Background: ${heroBlock.backgroundImage}`)
}
})
process.exit(0)
}
run().catch(console.error)