Merge version_1 into main #2

Merged
bender merged 2 commits from version_1 into main 2026-03-11 20:56:22 +00:00
2 changed files with 35 additions and 41 deletions

View File

@@ -48,17 +48,18 @@ export default function LandingPage() {
tag="Infrastructure Excellence"
tagIcon={Building2}
tagAnimation="slide-up"
background={{ variant: "plain" }}
imageSrc="http://img.b2bpic.net/free-photo/aerial-view-shanghai-overpass_1359-34.jpg"
imageAlt="Large scale highway construction project"
mediaAnimation="slide-up"
testimonials={[
{
name: "Zahur Hasan", handle: "Owner & Visionary", testimonial: "Our commitment to excellence has made us the trusted partner for complex infrastructure projects across the region.", rating: 5,
imageSrc: "/placeholders/placeholder1.webp?_wi=1"
imageSrc: "/placeholders/placeholder1.webp"
},
{
name: "Infrastructure Success", handle: "21 Years of Excellence", testimonial: "Delivering precision engineering and structural integrity on every project, every time.", rating: 5,
imageSrc: "/placeholders/placeholder1.webp?_wi=2"
imageSrc: "/placeholders/placeholder1.webp"
}
]}
buttons={[
@@ -128,10 +129,10 @@ export default function LandingPage() {
useInvertedBackground={false}
products={[
{
id: "vision", name: "Our Vision", price: "Excellence", variant: "Benchmark of National Infrastructure", imageSrc: "/placeholders/placeholder1.webp?_wi=3", imageAlt: "Vision placeholder"
id: "vision", name: "Our Vision", price: "Excellence", variant: "Benchmark of National Infrastructure", imageSrc: "/placeholders/placeholder1.webp", imageAlt: "Vision placeholder"
},
{
id: "mission", name: "Our Mission", price: "Quality", variant: "Superior Infrastructure Services", imageSrc: "/placeholders/placeholder1.webp?_wi=4", imageAlt: "Mission placeholder"
id: "mission", name: "Our Mission", price: "Quality", variant: "Superior Infrastructure Services", imageSrc: "/placeholders/placeholder1.webp", imageAlt: "Mission placeholder"
}
]}
/>
@@ -145,7 +146,7 @@ export default function LandingPage() {
tagIcon={TrendingUp}
tagAnimation="slide-up"
textboxLayout="default"
gridVariant="three-columns-all-equal-width"
gridVariant="uniform-all-items-equal"
animationType="slide-up"
useInvertedBackground={false}
metrics={[

View File

@@ -1,51 +1,44 @@
"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;
fill?: string;
textAnchor?: 'start' | 'middle' | 'end';
dominantBaseline?: 'auto' | 'middle' | 'hanging' | 'central';
}
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',
fill = 'currentColor',
textAnchor = 'middle',
dominantBaseline = 'central',
}) => {
return (
<svg
ref={svgRef}
viewBox={viewBox}
className={cls("w-full", className)}
style={{ aspectRatio: aspectRatio }}
preserveAspectRatio="none"
viewBox={`0 0 ${text.length * fontSize} ${fontSize * 1.5}`}
className={className}
role="img"
aria-label={`${logoText} logo`}
aria-label={text}
>
<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%"
fontSize={fontSize}
fontWeight={fontWeight}
fill={fill}
textAnchor={textAnchor}
dominantBaseline={dominantBaseline}
>
{logoText}
{text}
</text>
</svg>
);
});
};
SvgTextLogo.displayName = "SvgTextLogo";
export default SvgTextLogo;
export default SvgTextLogo;