I’m working on a simple Page Hero for my site, you can see it in action here — https://ministryofjapan.com/
I’ve been following your examples here – https://docs.generatepress.com/article/page-hero-examples/
This is the code I’m using right now:
header:
<a class="hero-click" href="https://ministryofjapan.com/geisha/what-does-it-mean-to-be-a-geisha-who-is-a-geisha/">
<!-- optional html content. background is clickable without it -->
<div class="hero-content">
<h1>
The Shocking Truth Behind Japan's Geishas
</h1>
</div>
</a>
CSS:
/*hero styling*/
.page-hero {
min-height:70vh;
}
.hero-click {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
}
.hero-content {
padding:50px 50px 30px 50px;
margin-top:30vh;
margin-left:10vw;
margin-right:10vw;
background-color:#fff;
}
I was wondering if it would be possible to make this more responsive – I have trouble with displaying this on small phone screens. Would it be somehow possible to move the .hero-content below the background image on mobile?
I’ve seen it solved this way on other sites like here: https://imgur.com/a/0LfnVFs
thanks