Merge version_1 into main #1

Merged
bender merged 2 commits from version_1 into main 2026-03-12 16:57:36 +00:00
2 changed files with 36 additions and 37 deletions

View File

@@ -19,7 +19,7 @@ export default function LandingPage() {
borderRadius="rounded"
contentWidth="mediumLarge"
sizing="largeSmallSizeLargeTitles"
background="fluid"
background="circleGradient"
cardStyle="inset"
primaryButtonStyle="gradient"
secondaryButtonStyle="layered"
@@ -42,7 +42,7 @@ export default function LandingPage() {
<HeroCentered
title="Build Your Digital Presence with Webild"
description="We create stunning, modern websites and digital experiences that help your business stand out. From concept to launch, we bring your vision to life with cutting-edge design and technology."
background={{ variant: "fluid" }}
background={{ variant: "plain" }}
avatars={[
{ src: "http://img.b2bpic.net/free-photo/closeup-smiling-beautiful-adult-businesswoman_1262-1760.jpg", alt: "professional headshot portrait man" },
{ src: "http://img.b2bpic.net/free-photo/young-businessman-happy-expression_1194-1702.jpg", alt: "professional headshot portrait woman" },

View File

@@ -1,51 +1,50 @@
"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;
fontSize?: number;
fontFamily?: string;
fontWeight?: string | number;
fill?: string;
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,
fontSize = 48,
fontFamily = 'system-ui, -apple-system, sans-serif',
fontWeight = 'bold',
fill = 'currentColor',
className = '',
}) => {
// Measure text width to size SVG appropriately
const textLength = text.length;
const estimatedWidth = textLength * (fontSize * 0.6);
const padding = fontSize * 0.5;
const width = estimatedWidth + padding * 2;
const height = fontSize * 1.5;
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}`}
className={className}
preserveAspectRatio="xMidYMid meet"
>
<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={fontSize * 1.1}
fontSize={fontSize}
fontFamily={fontFamily}
fontWeight={fontWeight}
fill={fill}
dominantBaseline="auto"
>
{logoText}
{text}
</text>
</svg>
);
});
SvgTextLogo.displayName = "SvgTextLogo";
};
export default SvgTextLogo;