Merge version_1 into main #2

Merged
bender merged 2 commits from version_1 into main 2026-03-11 22:13:01 +00:00
2 changed files with 32 additions and 44 deletions

View File

@@ -49,16 +49,16 @@ export default function LandingPage() {
background={{ variant: "radial-gradient" }}
mediaItems={[
{
imageSrc: "http://img.b2bpic.net/free-photo/female-artist-with-her-assistant-aprons-painting-vintage-chair-with-paintbrush-workshop_613910-18234.jpg?_wi=1", imageAlt: "Premium craftsmanship workshop"
imageSrc: "http://img.b2bpic.net/free-photo/female-artist-with-her-assistant-aprons-painting-vintage-chair-with-paintbrush-workshop_613910-18234.jpg", imageAlt: "Premium craftsmanship workshop"
},
{
imageSrc: "http://img.b2bpic.net/free-photo/holy-book-with-golden-pages-symbolizing-faith-wisdom-bible-closeup_169016-71310.jpg?_wi=1", imageAlt: "Luxury product showcase"
imageSrc: "http://img.b2bpic.net/free-photo/holy-book-with-golden-pages-symbolizing-faith-wisdom-bible-closeup_169016-71310.jpg", imageAlt: "Luxury product showcase"
},
{
imageSrc: "http://img.b2bpic.net/free-photo/man-working-his-wood-shop-with-tools-equipment_23-2150861545.jpg?_wi=1", imageAlt: "Master craftsman at work"
imageSrc: "http://img.b2bpic.net/free-photo/man-working-his-wood-shop-with-tools-equipment_23-2150861545.jpg", imageAlt: "Master craftsman at work"
},
{
imageSrc: "http://img.b2bpic.net/free-photo/stacked-aesthetic-objects-still-life_23-2150230633.jpg?_wi=1", imageAlt: "Fine crafted details"
imageSrc: "http://img.b2bpic.net/free-photo/stacked-aesthetic-objects-still-life_23-2150230633.jpg", imageAlt: "Fine crafted details"
}
]}
mediaAnimation="slide-up"
@@ -95,19 +95,19 @@ export default function LandingPage() {
features={[
{
id: 1,
title: "Master Selection", description: "We source only the finest materials from trusted suppliers worldwide, ensuring premium quality in every component.", imageSrc: "http://img.b2bpic.net/free-photo/female-artist-with-her-assistant-aprons-painting-vintage-chair-with-paintbrush-workshop_613910-18234.jpg?_wi=2", imageAlt: "Material selection process"
title: "Master Selection", description: "We source only the finest materials from trusted suppliers worldwide, ensuring premium quality in every component.", imageSrc: "http://img.b2bpic.net/free-photo/female-artist-with-her-assistant-aprons-painting-vintage-chair-with-paintbrush-workshop_613910-18234.jpg", imageAlt: "Material selection process"
},
{
id: 2,
title: "Precision Crafting", description: "Our skilled artisans employ time-tested techniques combined with modern precision equipment for flawless execution.", imageSrc: "http://img.b2bpic.net/free-photo/holy-book-with-golden-pages-symbolizing-faith-wisdom-bible-closeup_169016-71310.jpg?_wi=2", imageAlt: "Precision crafting detail"
title: "Precision Crafting", description: "Our skilled artisans employ time-tested techniques combined with modern precision equipment for flawless execution.", imageSrc: "http://img.b2bpic.net/free-photo/holy-book-with-golden-pages-symbolizing-faith-wisdom-bible-closeup_169016-71310.jpg", imageAlt: "Precision crafting detail"
},
{
id: 3,
title: "Quality Assurance", description: "Each product undergoes rigorous testing and inspection to meet our exacting standards before delivery.", imageSrc: "http://img.b2bpic.net/free-photo/man-working-his-wood-shop-with-tools-equipment_23-2150861545.jpg?_wi=2", imageAlt: "Quality control inspection"
title: "Quality Assurance", description: "Each product undergoes rigorous testing and inspection to meet our exacting standards before delivery.", imageSrc: "http://img.b2bpic.net/free-photo/man-working-his-wood-shop-with-tools-equipment_23-2150861545.jpg", imageAlt: "Quality control inspection"
},
{
id: 4,
title: "Heritage Delivery", description: "Presented with pride in premium packaging that reflects the extraordinary quality within.", imageSrc: "http://img.b2bpic.net/free-photo/stacked-aesthetic-objects-still-life_23-2150230633.jpg?_wi=2", imageAlt: "Luxury product presentation"
title: "Heritage Delivery", description: "Presented with pride in premium packaging that reflects the extraordinary quality within.", imageSrc: "http://img.b2bpic.net/free-photo/stacked-aesthetic-objects-still-life_23-2150230633.jpg", imageAlt: "Luxury product presentation"
}
]}
textboxLayout="default"
@@ -126,6 +126,9 @@ export default function LandingPage() {
tagAnimation="opacity"
textboxLayout="default"
useInvertedBackground={false}
names={[
"BMW", "Mercedes-Benz", "Porsche", "Audi", "Volkswagen", "Lamborghini", "Bugatti"
]}
logos={[
"http://img.b2bpic.net/free-vector/gradient-auto-parts-logo-design_23-2149460684.jpg", "http://img.b2bpic.net/free-vector/elegant-pack-vintage-logo-templates_23-2147846139.jpg", "http://img.b2bpic.net/free-vector/vintage-car-logo-collection_23-2147730872.jpg", "http://img.b2bpic.net/free-vector/set-abstract-vehicle-logos_23-2147606226.jpg", "http://img.b2bpic.net/free-vector/logo-template-design_1289-105.jpg", "http://img.b2bpic.net/free-vector/gradient-ap-monogram-logo_23-2150203160.jpg", "http://img.b2bpic.net/free-vector/logos-collection-with-vintage-luxury-style_23-2147842744.jpg"
]}

View File

@@ -1,51 +1,36 @@
"use client";
import { memo } from "react";
import useSvgTextLogo from "./useSvgTextLogo";
import { cls } from "@/lib/utils";
import React from 'react';
interface SvgTextLogoProps {
logoText: string;
adjustHeightFactor?: number;
verticalAlign?: "top" | "center";
text: string;
className?: string;
fontSize?: number;
fontWeight?: number | string;
}
const SvgTextLogo = memo<SvgTextLogoProps>(function SvgTextLogo({
logoText,
adjustHeightFactor,
verticalAlign = "top",
className = "",
}) {
const { svgRef, textRef, viewBox, aspectRatio } = useSvgTextLogo(logoText, false, adjustHeightFactor);
const SvgTextLogo: React.FC<SvgTextLogoProps> = ({
text,
className = '',
fontSize = 24,
fontWeight = 'bold',
}) => {
return (
<svg
ref={svgRef}
viewBox={viewBox}
className={cls("w-full", className)}
style={{ aspectRatio: aspectRatio }}
preserveAspectRatio="none"
role="img"
aria-label={`${logoText} logo`}
viewBox={`0 0 ${text.length * fontSize} ${fontSize * 1.5}`}
className={className}
xmlns="http://www.w3.org/2000/svg"
>
<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"
}}
y={fontSize}
fontSize={fontSize}
fontWeight={fontWeight}
fill="currentColor"
dominantBaseline="middle"
>
{logoText}
{text}
</text>
</svg>
);
});
};
SvgTextLogo.displayName = "SvgTextLogo";
export default SvgTextLogo;
export default SvgTextLogo;