feat: compose the portfolio journey layer

This commit is contained in:
2026-09-02 16:21:13 +03:00
parent 7e48aad6a8
commit 8c17af22a0
26 changed files with 962 additions and 368 deletions

View File

@@ -39,9 +39,9 @@ const captureDocument = async (
...document.querySelectorAll<HTMLElement>('main > section > h2'),
].map((heading) => heading.innerText.trim()),
h1: document.querySelector('h1')?.textContent?.trim() ?? '',
role: document.querySelector('.site-header > p')?.textContent?.trim() ?? '',
role: document.querySelector('.hero-journey__role')?.textContent?.trim() ?? '',
landmarks: {
headers: document.querySelectorAll('header').length,
headers: document.querySelectorAll('.site-header').length,
mains: document.querySelectorAll('main').length,
navigations: document.querySelectorAll('nav').length,
footers: document.querySelectorAll('footer').length,