Merge version_1 into main #2
@@ -96,30 +96,30 @@ export default function LandingPage() {
|
||||
{
|
||||
title: "Proven Results", description: "Average 12% above market price. Consistent track record across 200+ properties sold.", icon: TrendingUp,
|
||||
mediaItems: [
|
||||
{ imageSrc: "/placeholders/placeholder1.webp?_wi=1", imageAlt: "Sales results chart" },
|
||||
{ imageSrc: "/placeholders/placeholder1.webp?_wi=2", imageAlt: "Client testimonials" }
|
||||
{ imageSrc: "/placeholders/placeholder1.webp", imageAlt: "Sales results chart" },
|
||||
{ imageSrc: "/placeholders/placeholder1.webp", imageAlt: "Client testimonials" }
|
||||
]
|
||||
},
|
||||
{
|
||||
title: "Selective Approach", description: "We represent only 15 properties per year. Your sale gets undivided attention and premium positioning.", icon: Target,
|
||||
mediaItems: [
|
||||
{ imageSrc: "/placeholders/placeholder1.webp?_wi=3", imageAlt: "Premium properties" },
|
||||
{ imageSrc: "/placeholders/placeholder1.webp?_wi=4", imageAlt: "Curated selection" }
|
||||
{ imageSrc: "/placeholders/placeholder1.webp", imageAlt: "Premium properties" },
|
||||
{ imageSrc: "/placeholders/placeholder1.webp", imageAlt: "Curated selection" }
|
||||
]
|
||||
},
|
||||
{
|
||||
title: "Total Dedication", description: "Direct access to decision makers. No assistants. Personal guidance every step until closing.", icon: Users,
|
||||
mediaItems: [
|
||||
{ imageSrc: "/placeholders/placeholder1.webp?_wi=5", imageAlt: "Expert team" },
|
||||
{ imageSrc: "/placeholders/placeholder1.webp?_wi=6", imageAlt: "Personalized service" }
|
||||
{ imageSrc: "/placeholders/placeholder1.webp", imageAlt: "Expert team" },
|
||||
{ imageSrc: "/placeholders/placeholder1.webp", imageAlt: "Personalized service" }
|
||||
]
|
||||
}
|
||||
]}
|
||||
animationType="none"
|
||||
textboxLayout="default"
|
||||
useInvertedBackground={false}
|
||||
titleClassName="text-4xl md:text-5xl font-bold leading-tight"
|
||||
descriptionClassName="text-lg font-light"
|
||||
cardTitleClassName="text-4xl md:text-5xl font-bold leading-tight"
|
||||
cardDescriptionClassName="text-lg font-light"
|
||||
/>
|
||||
</div>
|
||||
|
||||
@@ -129,18 +129,18 @@ export default function LandingPage() {
|
||||
description="Value added at no extra cost."
|
||||
products={[
|
||||
{
|
||||
id: "bonus-1", name: "Home Staging Strategy", price: "Included", imageSrc: "/placeholders/placeholder1.webp?_wi=7", imageAlt: "Professional home staging guide"
|
||||
id: "bonus-1", name: "Home Staging Strategy", price: "Included", imageSrc: "/placeholders/placeholder1.webp", imageAlt: "Professional home staging guide"
|
||||
},
|
||||
{
|
||||
id: "bonus-2", name: "Market Analysis Report", price: "Included", imageSrc: "/placeholders/placeholder1.webp?_wi=8", imageAlt: "Detailed market analysis"
|
||||
id: "bonus-2", name: "Market Analysis Report", price: "Included", imageSrc: "/placeholders/placeholder1.webp", imageAlt: "Detailed market analysis"
|
||||
}
|
||||
]}
|
||||
gridVariant="two-columns-alternating-heights"
|
||||
animationType="none"
|
||||
textboxLayout="default"
|
||||
useInvertedBackground={false}
|
||||
titleClassName="text-4xl md:text-5xl font-bold leading-tight"
|
||||
descriptionClassName="text-lg font-light"
|
||||
textBoxTitleClassName="text-4xl md:text-5xl font-bold leading-tight"
|
||||
textBoxDescriptionClassName="text-lg font-light"
|
||||
/>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -1,51 +1,49 @@
|
||||
"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;
|
||||
size?: number;
|
||||
color?: string;
|
||||
fontFamily?: string;
|
||||
fontWeight?: string | number;
|
||||
className?: 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,
|
||||
size = 48,
|
||||
color = 'currentColor',
|
||||
fontFamily = 'system-ui, -apple-system, sans-serif',
|
||||
fontWeight = 'bold',
|
||||
className = '',
|
||||
}) => {
|
||||
const padding = size * 0.2;
|
||||
const textLength = text.length;
|
||||
const charWidth = size * 0.6;
|
||||
const width = textLength * charWidth + padding * 2;
|
||||
const height = size + padding * 2;
|
||||
|
||||
return (
|
||||
<svg
|
||||
ref={svgRef}
|
||||
viewBox={viewBox}
|
||||
className={cls("w-full", className)}
|
||||
style={{ aspectRatio: aspectRatio }}
|
||||
preserveAspectRatio="none"
|
||||
role="img"
|
||||
aria-label={`${logoText} logo`}
|
||||
width={width}
|
||||
height={height}
|
||||
viewBox={`0 0 ${width} ${height}`}
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
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"
|
||||
}}
|
||||
x={padding}
|
||||
y={size + padding}
|
||||
fontSize={size}
|
||||
fill={color}
|
||||
fontFamily={fontFamily}
|
||||
fontWeight={fontWeight}
|
||||
dominantBaseline="hanging"
|
||||
>
|
||||
{logoText}
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
};
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
|
||||
export default SvgTextLogo;
|
||||
export default SvgTextLogo;
|
||||
Reference in New Issue
Block a user