mirror of
https://github.com/jambonz/next-static-site.git
synced 2026-07-24 21:12:27 +00:00
adjust how hero subtext elements render
This commit is contained in:
@@ -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
@@ -68,7 +68,7 @@
|
||||
margin-bottom: 0;
|
||||
max-width: 820px;
|
||||
|
||||
> :nth-child(even) {
|
||||
div + div {
|
||||
margin-top: 32px;
|
||||
|
||||
@media (max-width: $width-mobile) {
|
||||
|
||||
Reference in New Issue
Block a user