feat(qr-stands): activate user provided qr-1.svg and qr-4.svg

This commit is contained in:
AyrisAI
2026-08-20 23:34:57 +03:00
parent 18396f3b99
commit 38fd0dd030
6 changed files with 287 additions and 26 deletions
File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 1.6 MiB

After

Width:  |  Height:  |  Size: 4.5 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 1.6 MiB

After

Width:  |  Height:  |  Size: 4.5 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 357 KiB

@@ -222,7 +222,7 @@ export function QrStandGeneratorClient({
{/* Dynamic Restaurant Logo & Name Header Overlay */}
<div
className={`absolute left-0 right-0 flex flex-col items-center justify-center px-6 text-center z-10 ${
activePreset.key === "qr-1" ? "top-[13%]" : "top-[15.5%]"
activePreset.aspectRatio === "672/900" ? "top-[13%]" : "top-[15.5%]"
}`}
>
{logoUrl ? (
@@ -243,7 +243,7 @@ export function QrStandGeneratorClient({
{/* Dynamic QR Code Canvas Overlay */}
<div
className={`absolute left-1/2 -translate-x-1/2 rounded-[20px] p-3 shadow-2xl flex items-center justify-center bg-white z-10 border border-zinc-200 ${
activePreset.key === "qr-1"
activePreset.aspectRatio === "672/900"
? "top-[37%] w-[52%] aspect-square"
: "top-[33.1%] w-[55%] aspect-square"
}`}