Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoskolodny committed Nov 29, 2024
1 parent a758578 commit 908bd81
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/pages/advent-calendar-2024/pages/claim-your-gift.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -725,8 +725,10 @@ const ClaimYourGift = () => {
const originalSvgElement = document.getElementById("illustration-svg");
const clonedSvgElement = originalSvgElement.cloneNode(true);

clonedSvgElement.setAttribute("width", "500px");
clonedSvgElement.setAttribute("height", "700px");
const posterWidth = 500;

clonedSvgElement.setAttribute("width", `${posterWidth}`);
clonedSvgElement.setAttribute("height", `${(posterWidth * 7) / 5}px`);
const svgString = new XMLSerializer().serializeToString(clonedSvgElement);
const url = URL.createObjectURL(
new Blob([svgString], { type: "image/svg+xml" })
Expand Down

0 comments on commit 908bd81

Please sign in to comment.