Merge version_1 into main #2

Merged
bender merged 2 commits from version_1 into main 2026-03-12 17:24:47 +00:00
2 changed files with 40 additions and 49 deletions

View File

@@ -72,7 +72,7 @@ export default function LandingPage() {
]}
testimonialRotationInterval={5000}
useInvertedBackground={false}
background={{ variant: "circleGradient" }}
background={{ variant: "plain" }}
/>
</div>
@@ -153,13 +153,13 @@ export default function LandingPage() {
useInvertedBackground={true}
features={[
{
title: "Weddings", description: "Make your wedding day unforgettable with premium smoked BBQ that guests will love", imageSrc: "http://img.b2bpic.net/free-photo/men-cooking-barbecue-outdoors_23-2148733648.jpg?_wi=1", imageAlt: "Wedding catering setup"
title: "Weddings", description: "Make your wedding day unforgettable with premium smoked BBQ that guests will love", imageSrc: "http://img.b2bpic.net/free-photo/men-cooking-barbecue-outdoors_23-2148733648.jpg", imageAlt: "Wedding catering setup"
},
{
title: "Corporate Events", description: "Impress clients and team members with authentic, high-quality BBQ catering", imageSrc: "http://img.b2bpic.net/free-photo/men-cooking-barbecue-outdoors_23-2148733648.jpg?_wi=2", imageAlt: "Corporate event catering"
title: "Corporate Events", description: "Impress clients and team members with authentic, high-quality BBQ catering", imageSrc: "http://img.b2bpic.net/free-photo/men-cooking-barbecue-outdoors_23-2148733648.jpg", imageAlt: "Corporate event catering"
},
{
title: "Celebrations", description: "Birthdays, anniversaries, and family gatherings deserve exceptional food and service", imageSrc: "http://img.b2bpic.net/free-photo/men-cooking-barbecue-outdoors_23-2148733648.jpg?_wi=3", imageAlt: "Family celebration catering"
title: "Celebrations", description: "Birthdays, anniversaries, and family gatherings deserve exceptional food and service", imageSrc: "http://img.b2bpic.net/free-photo/men-cooking-barbecue-outdoors_23-2148733648.jpg", imageAlt: "Family celebration catering"
},
{
title: "Premium Service", description: "Slow smoked meats, fresh homemade sides, flexible menu packages, and reliable delivery", imageSrc: "http://img.b2bpic.net/free-photo/young-men-roasting-barbecue-grill-cottage-countryside_176420-1844.jpg", imageAlt: "Professional smoker setup"

View File

@@ -1,51 +1,42 @@
"use client";
import { 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";
interface SvgTextLogoProps extends SVGProps<SVGSVGElement> {
text: string;
fontSize?: number;
fontWeight?: number | string;
fontFamily?: string;
fill?: string;
className?: string;
}
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`}
export const SvgTextLogo = ({
text = 'Webild',
fontSize = 32,
fontWeight = 600,
fontFamily = 'sans-serif',
fill = 'currentColor',
className = '',
...props
}: SvgTextLogoProps) => (
<svg
viewBox="0 0 200 60"
xmlns="http://www.w3.org/2000/svg"
className={className}
{...props}
>
<text
x="50%"
y="50%"
fontSize={fontSize}
fontWeight={fontWeight}
fontFamily={fontFamily}
fill={fill}
textAnchor="middle"
dominantBaseline="middle"
>
<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"
}}
>
{logoText}
</text>
</svg>
);
});
{text}
</text>
</svg>
);
SvgTextLogo.displayName = "SvgTextLogo";
export default SvgTextLogo;
export default SvgTextLogo;