Merge version_1 into main #2

Merged
bender merged 2 commits from version_1 into main 2026-03-11 21:05:33 +00:00
2 changed files with 31 additions and 43 deletions

View File

@@ -52,10 +52,10 @@ export default function LandingPage() {
background={{ variant: "radial-gradient" }}
mediaItems={[
{ imageSrc: "http://img.b2bpic.net/free-photo/terrace-exterior-building_1203-3258.jpg", imageAlt: "Luxury vertical green wall installation" },
{ imageSrc: "http://img.b2bpic.net/free-photo/woman-standing-outside-flower-shop_53876-71005.jpg?_wi=1", imageAlt: "Modern green wall interior design" },
{ imageSrc: "http://img.b2bpic.net/free-photo/closeup-shot-wall-with-moss-plants-growing_181624-23259.jpg?_wi=1", imageAlt: "Premium moss wall installation" },
{ imageSrc: "http://img.b2bpic.net/free-photo/woman-standing-outside-flower-shop_53876-71005.jpg", imageAlt: "Modern green wall interior design" },
{ imageSrc: "http://img.b2bpic.net/free-photo/closeup-shot-wall-with-moss-plants-growing_181624-23259.jpg", imageAlt: "Premium moss wall installation" },
{ imageSrc: "http://img.b2bpic.net/free-vector/vintage-botanical-leaf-collection_23-2148090281.jpg", imageAlt: "Exotic plants luxury display" },
{ imageSrc: "http://img.b2bpic.net/free-photo/grass-background_1127-3418.jpg?_wi=1", imageAlt: "Luxury landscaping villa garden" }
{ imageSrc: "http://img.b2bpic.net/free-photo/grass-background_1127-3418.jpg", imageAlt: "Luxury landscaping villa garden" }
]}
mediaAnimation="slide-up"
buttons={[
@@ -124,9 +124,9 @@ export default function LandingPage() {
animationType="slide-up"
useInvertedBackground={false}
products={[
{ id: "1", name: "Luxury Villa Green Wall", price: "Premium Installation", imageSrc: "http://img.b2bpic.net/free-photo/woman-standing-outside-flower-shop_53876-71005.jpg?_wi=2", imageAlt: "Luxury villa green wall installation" },
{ id: "2", name: "Restaurant Vertical Garden", price: "Custom Design", imageSrc: "http://img.b2bpic.net/free-photo/grass-background_1127-3418.jpg?_wi=2", imageAlt: "Restaurant vertical garden design" },
{ id: "3", name: "Office Moss Wall", price: "Corporate Installation", imageSrc: "http://img.b2bpic.net/free-photo/closeup-shot-wall-with-moss-plants-growing_181624-23259.jpg?_wi=2", imageAlt: "Office moss wall installation" }
{ id: "1", name: "Luxury Villa Green Wall", price: "Premium Installation", imageSrc: "http://img.b2bpic.net/free-photo/woman-standing-outside-flower-shop_53876-71005.jpg", imageAlt: "Luxury villa green wall installation" },
{ id: "2", name: "Restaurant Vertical Garden", price: "Custom Design", imageSrc: "http://img.b2bpic.net/free-photo/grass-background_1127-3418.jpg", imageAlt: "Restaurant vertical garden design" },
{ id: "3", name: "Office Moss Wall", price: "Corporate Installation", imageSrc: "http://img.b2bpic.net/free-photo/closeup-shot-wall-with-moss-plants-growing_181624-23259.jpg", imageAlt: "Office moss wall installation" }
]}
gridVariant="three-columns-all-equal-width"
carouselMode="buttons"
@@ -265,4 +265,4 @@ export default function LandingPage() {
</div>
</ThemeProvider>
);
}
}

View File

@@ -1,51 +1,39 @@
"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;
textClassName?: string;
fontSize?: number;
fontWeight?: 'light' | 'normal' | 'bold' | '500' | '600' | '700';
}
const SvgTextLogo = memo<SvgTextLogoProps>(function SvgTextLogo({
logoText,
adjustHeightFactor,
verticalAlign = "top",
className = "",
}) {
const { svgRef, textRef, viewBox, aspectRatio } = useSvgTextLogo(logoText, false, adjustHeightFactor);
export const SvgTextLogo = ({
text,
className = '',
textClassName = '',
fontSize = 32,
fontWeight = 'bold',
}: SvgTextLogoProps) => {
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 400 100"
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"
}}
x="50%"
y="50%"
textAnchor="middle"
dominantBaseline="middle"
fontSize={fontSize}
fontWeight={fontWeight}
className={textClassName}
>
{logoText}
{text}
</text>
</svg>
);
});
SvgTextLogo.displayName = "SvgTextLogo";
};
export default SvgTextLogo;