Merge version_1 into main #2

Merged
bender merged 2 commits from version_1 into main 2026-03-11 20:57:21 +00:00
2 changed files with 47 additions and 47 deletions

View File

@@ -59,7 +59,7 @@ export default function LandingPage() {
imageSrc: "http://img.b2bpic.net/free-photo/side-view-shawarma-with-fried-potatoes-ayran-mayonnaise-board-cookware_176474-3213.jpg", imageAlt: "Delicious Bessarabian shawarma with spices and herbs"
},
{
imageSrc: "http://img.b2bpic.net/free-photo/freshly-cooked-dish-being-taken-by-cook_1220-673.jpg?_wi=1", imageAlt: "Professional shawarma preparation in our kitchen"
imageSrc: "http://img.b2bpic.net/free-photo/freshly-cooked-dish-being-taken-by-cook_1220-673.jpg", imageAlt: "Professional shawarma preparation in our kitchen"
}
]}
mediaAnimation="slide-up"
@@ -78,7 +78,7 @@ export default function LandingPage() {
{ value: "20+", title: "Years of Excellence" },
{ value: "5000+", title: "Happy Customers Weekly" }
]}
imageSrc="http://img.b2bpic.net/free-photo/freshly-cooked-dish-being-taken-by-cook_1220-673.jpg?_wi=2"
imageSrc="http://img.b2bpic.net/free-photo/freshly-cooked-dish-being-taken-by-cook_1220-673.jpg"
imageAlt="Our traditional shawarma cooking setup"
mediaAnimation="slide-up"
metricsAnimation="slide-up"
@@ -122,7 +122,7 @@ export default function LandingPage() {
{ id: "3", value: "24", title: "/7", description: "Hours of Operation", icon: Clock },
{ id: "4", value: "15", title: "min", description: "Average Delivery Time", icon: Zap }
]}
gridVariant="four-items-2x2-equal-grid"
gridVariant="uniform-all-items-equal"
animationType="slide-up"
textboxLayout="default"
useInvertedBackground={true}

View File

@@ -1,51 +1,51 @@
"use client";
import React, { SVGProps } from 'react';
import { memo } from "react";
import useSvgTextLogo from "./useSvgTextLogo";
import { cls } from "@/lib/utils";
interface SvgTextLogoProps {
logoText: string;
adjustHeightFactor?: number;
verticalAlign?: "top" | "center";
className?: string;
interface SvgTextLogoProps extends SVGProps<SVGSVGElement> {
text?: string;
fontSize?: number;
fontFamily?: string;
letterSpacing?: number;
textAnchor?: 'start' | 'middle' | 'end';
dominantBaseline?: 'auto' | 'middle' | 'hanging';
}
const SvgTextLogo = memo<SvgTextLogoProps>(function SvgTextLogo({
logoText,
adjustHeightFactor,
verticalAlign = "top",
className = "",
}) {
const { svgRef, textRef, viewBox, aspectRatio } = useSvgTextLogo(logoText, false, adjustHeightFactor);
return (
<svg
ref={svgRef}
viewBox={viewBox}
className={cls("w-full", className)}
style={{ aspectRatio: aspectRatio }}
preserveAspectRatio="none"
role="img"
aria-label={`${logoText} logo`}
>
<text
ref={textRef}
x="0"
y={verticalAlign === "center" ? "50%" : "0"}
className="font-bold fill-current"
style={{
fontSize: "20px",
letterSpacing: "-0.02em",
dominantBaseline: verticalAlign === "center" ? "middle" : "text-before-edge"
}}
const SvgTextLogo = React.forwardRef<SVGSVGElement, SvgTextLogoProps>(
(
{
text = 'Logo',
fontSize = 24,
fontFamily = 'Inter, sans-serif',
letterSpacing = 0.5,
textAnchor = 'middle',
dominantBaseline = 'middle',
...props
},
ref
) => {
return (
<svg
ref={ref}
viewBox="0 0 200 60"
xmlns="http://www.w3.org/2000/svg"
{...props}
>
{logoText}
</text>
</svg>
);
});
<text
x="100"
y="30"
fontSize={fontSize}
fontFamily={fontFamily}
letterSpacing={letterSpacing}
textAnchor={textAnchor}
dominantBaseline={dominantBaseline}
fill="currentColor"
>
{text}
</text>
</svg>
);
}
);
SvgTextLogo.displayName = "SvgTextLogo";
SvgTextLogo.displayName = 'SvgTextLogo';
export default SvgTextLogo;