| | |
| | | header: QuartzComponent[] |
| | | beforeBody: QuartzComponent[] |
| | | pageBody: QuartzComponent |
| | | afterBody: QuartzComponent[] |
| | | left: QuartzComponent[] |
| | | right: QuartzComponent[] |
| | | footer: QuartzComponent |
| | |
| | | // skip until we find the blockref that matches |
| | | if (el.properties?.id === blockRef) { |
| | | startIdx = i |
| | | startDepth = Number(el.tagName.substring(1)) |
| | | startDepth = depth |
| | | } |
| | | } else if (depth <= startDepth) { |
| | | // looking for new header that is same level or higher |
| | | endIdx = i |
| | | break |
| | | } |
| | | } |
| | | |
| | |
| | | header, |
| | | beforeBody, |
| | | pageBody: Content, |
| | | afterBody, |
| | | left, |
| | | right, |
| | | footer: Footer, |
| | |
| | | </div> |
| | | </div> |
| | | <Content {...componentData} /> |
| | | <hr /> |
| | | <div class="page-footer"> |
| | | {afterBody.map((BodyComponent) => ( |
| | | <BodyComponent {...componentData} /> |
| | | ))} |
| | | </div> |
| | | </div> |
| | | {RightComponent} |
| | | </Body> |