Merge version_1 into main #2

Merged
bender merged 2 commits from version_1 into main 2026-03-13 06:04:51 +00:00
2 changed files with 26 additions and 46 deletions

View File

@@ -67,7 +67,6 @@ export default function LandingPage() {
]}
buttonAnimation="slide-up"
mediaAnimation="slide-up"
useInvertedBackground={false}
/>
</div>
@@ -95,16 +94,13 @@ export default function LandingPage() {
textboxLayout="default"
features={[
{
id: 1,
title: "Planning & Design", description: "Detailed site assessment, blueprint finalization, regulatory approvals, and transparent scope documentation", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=qqzd9z", imageAlt: "Construction planning blueprint design consultation"
id: "1", title: "Planning & Design", description: "Detailed site assessment, blueprint finalization, regulatory approvals, and transparent scope documentation", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=qqzd9z", imageAlt: "Construction planning blueprint design consultation"
},
{
id: 2,
title: "Active Construction", description: "Professional execution with daily progress tracking, quality inspections, and real-time client communication", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=5qj6td", imageAlt: "Construction site active building execution"
id: "2", title: "Active Construction", description: "Professional execution with daily progress tracking, quality inspections, and real-time client communication", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=5qj6td", imageAlt: "Construction site active building execution"
},
{
id: 3,
title: "Completion & Handover", description: "Final inspections, certifications, detailed handover documentation, and post-delivery support", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=uyrd1a", imageAlt: "Completed modern residential building project"
id: "3", title: "Completion & Handover", description: "Final inspections, certifications, detailed handover documentation, and post-delivery support", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=uyrd1a", imageAlt: "Completed modern residential building project"
}
]}
useInvertedBackground={false}
@@ -150,16 +146,16 @@ export default function LandingPage() {
textboxLayout="default"
metrics={[
{
id: "1", value: "150+", title: "Projects Delivered", description: "Residential and commercial excellence", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=ifoyl0&_wi=1", imageAlt: "Construction team experienced professionals working"
id: "1", value: "150+", title: "Projects Delivered", description: "Residential and commercial excellence", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=ifoyl0", imageAlt: "Construction team experienced professionals working"
},
{
id: "2", value: "500+", title: "Happy Clients", description: "Trusted across Mumbai's premium areas", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=inv3s2&_wi=1", imageAlt: "Satisfied customer testimonial happy client"
id: "2", value: "500+", title: "Happy Clients", description: "Trusted across Mumbai's premium areas", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=inv3s2", imageAlt: "Satisfied customer testimonial happy client"
},
{
id: "3", value: "15+", title: "Years Experience", description: "Industry leadership and expertise", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=ifoyl0&_wi=2", imageAlt: "Construction team experienced professionals working"
id: "3", value: "15+", title: "Years Experience", description: "Industry leadership and expertise", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=ifoyl0", imageAlt: "Construction team experienced professionals working"
},
{
id: "4", value: "₹500 Cr+", title: "Total Value Delivered", description: "Premium projects across Mumbai", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=inv3s2&_wi=2", imageAlt: "Satisfied customer testimonial happy client"
id: "4", value: "₹500 Cr+", title: "Total Value Delivered", description: "Premium projects across Mumbai", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=inv3s2", imageAlt: "Satisfied customer testimonial happy client"
}
]}
animationType="slide-up"

View File

@@ -1,51 +1,35 @@
"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;
}
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,
}) => {
return (
<svg
ref={svgRef}
viewBox={viewBox}
className={cls("w-full", className)}
style={{ aspectRatio: aspectRatio }}
preserveAspectRatio="none"
role="img"
aria-label={`${logoText} logo`}
width="auto"
height={fontSize}
viewBox={`0 0 ${text.length * fontSize * 0.6} ${fontSize}`}
className={className}
>
<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 * 0.75}
fontSize={fontSize}
fontWeight="bold"
dominantBaseline="middle"
textAnchor="start"
>
{logoText}
{text}
</text>
</svg>
);
});
SvgTextLogo.displayName = "SvgTextLogo";
};
export default SvgTextLogo;