adjust how hero subtext elements render

This commit is contained in:
kitajchuk
2021-04-09 08:31:09 -07:00
parent 8e7eee37cd
commit 2b6f9ad93f
2 changed files with 6 additions and 4 deletions
+5 -3
View File
@@ -100,9 +100,11 @@ export function Hero({ data, subStyle }) {
<H1>{data.headline}</H1>
</div>
<div className="hero__subtext">
{normalizeSubtext(data.subtext).map((subtext) => {
return <H5 key={nanoid()}>{subtext}</H5>;
})}
<H5>
{normalizeSubtext(data.subtext).map((subtext) => {
return <div key={nanoid()}>{subtext}</div>;
})}
</H5>
</div>
{data.cta && (
<div className="hero__cta">
+1 -1
View File
@@ -68,7 +68,7 @@
margin-bottom: 0;
max-width: 820px;
> :nth-child(even) {
div + div {
margin-top: 32px;
@media (max-width: $width-mobile) {