feat(qr-stands): activate user provided qr-1.svg and qr-4.svg
|
Before Width: | Height: | Size: 1.6 MiB After Width: | Height: | Size: 4.5 KiB |
|
Before Width: | Height: | Size: 1.6 MiB After Width: | Height: | Size: 4.5 KiB |
|
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"
|
||||
}`}
|
||||
|
||||
@@ -20,6 +20,26 @@ export interface QrStandPreset {
|
||||
}
|
||||
|
||||
export const QR_STAND_PRESETS: Record<string, QrStandPreset> = {
|
||||
"qr-1": {
|
||||
key: "qr-1",
|
||||
name: "Gourmet Bistro Stand (QR-1)",
|
||||
categoryName: "Özel Masa Kartı Şablonu",
|
||||
bgGradient: "radial-gradient(circle at 50% 50%, #1A1A1E 0%, #0C0C0E 100%)",
|
||||
plaqueBg: "linear-gradient(135deg, #1A1A1E 0%, #121215 100%)",
|
||||
plaqueColor: "#1A1A1E",
|
||||
borderAccent: "#D4AF37",
|
||||
qrBg: "#ffffff",
|
||||
qrColor: "#111111",
|
||||
logoBorder: "#D4AF37",
|
||||
logoBg: "rgba(26, 26, 30, 0.8)",
|
||||
accentText: "#D4AF37",
|
||||
headerText: "#FFFFFF",
|
||||
subText: "#8E8E93",
|
||||
dividerColor: "rgba(212, 175, 55, 0.3)",
|
||||
categories: ["BAŞLANGIÇLAR", "ANA YEMEKLER", "TATLILAR", "İÇECEKLER"],
|
||||
svgTemplateUrl: "/qr-1.svg",
|
||||
aspectRatio: "400/650",
|
||||
},
|
||||
"qr-4": {
|
||||
key: "qr-4",
|
||||
name: "Gourmet Gold Luxury Stand (QR-4)",
|
||||
@@ -40,25 +60,4 @@ export const QR_STAND_PRESETS: Record<string, QrStandPreset> = {
|
||||
svgTemplateUrl: "/qr-4.svg",
|
||||
aspectRatio: "400/650",
|
||||
},
|
||||
"qr-1": {
|
||||
key: "qr-1",
|
||||
name: "The Urban Burger Stand (QR-1)",
|
||||
categoryName: "Özel Masa Kartı Şablonu",
|
||||
bgGradient: "radial-gradient(circle at 50% 50%, #1c3e2b 0%, #0e2016 100%)",
|
||||
plaqueBg: "linear-gradient(135deg, #a64d2a 0%, #8e3f20 100%)",
|
||||
plaqueColor: "#a64d2a",
|
||||
borderAccent: "rgba(255, 255, 255, 0.15)",
|
||||
qrBg: "#f8f3eb",
|
||||
qrColor: "#a64d2a",
|
||||
logoBorder: "#f5be72",
|
||||
logoBg: "rgba(166, 77, 42, 0.8)",
|
||||
accentText: "#f5be72",
|
||||
headerText: "#ffffff",
|
||||
subText: "rgba(255, 255, 255, 0.9)",
|
||||
dividerColor: "rgba(255, 255, 255, 0.25)",
|
||||
categories: ["BURGERS", "FRIES", "SHAKES", "VEGAN OPTIONS"],
|
||||
svgTemplateUrl: "/qr-1.svg",
|
||||
aspectRatio: "672/900",
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
|
Before Width: | Height: | Size: 1.6 MiB After Width: | Height: | Size: 4.5 KiB |