feat: compose the portfolio journey layer
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user