mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2026-08-24 07:12:18 +10:00
feat: add semantic CSS stylesheets (#3274)
Co-authored-by: Cursor Agent <cursoragent@cursor.com>
This commit is contained in:
co-authored by
Cursor Agent
parent
4ac19f81b3
commit
d2ffbf9618
@@ -0,0 +1,10 @@
|
||||
export const ACTIVE_PREVIEW_PAGE_SELECTOR = '[aria-hidden="false"] canvas[aria-label^="Resume page 1 of"]';
|
||||
|
||||
export const activePreviewPageSelector = (template: string) =>
|
||||
`[aria-hidden="false"][data-resume-preview-template="${template}"] canvas[aria-label^="Resume page 1 of"]`;
|
||||
|
||||
export function readPreviewPageDataUrl(selector: string) {
|
||||
const canvas = document.querySelector<HTMLCanvasElement>(selector);
|
||||
if (!canvas) throw new Error("Expected an active first-page canvas.");
|
||||
return canvas.toDataURL();
|
||||
}
|
||||
Reference in New Issue
Block a user