Merge version_1 into main #1

Merged
bender merged 2 commits from version_1 into main 2026-03-11 22:31:23 +00:00
2 changed files with 38 additions and 46 deletions

View File

@@ -10,7 +10,7 @@ import MetricCardSeven from '@/components/sections/metrics/MetricCardSeven';
import SocialProofOne from '@/components/sections/socialProof/SocialProofOne';
import ContactFaq from '@/components/sections/contact/ContactFaq';
import FooterBaseReveal from '@/components/sections/footer/FooterBaseReveal';
import { AccessibilityOff, ArrowRight, BookOpen, Package, Quote, Shield, Star, Zap } from 'lucide-react';
import { Accessibility, ArrowRight, BookOpen, Package, Quote, Shield, Star, Zap } from 'lucide-react';
export default function LandingPage() {
return (
@@ -68,7 +68,7 @@ export default function LandingPage() {
{ icon: Zap, title: "Fully Responsive", description: "Seamlessly adapts across all devices and screen sizes with mobile-first responsive design." },
{ icon: Zap, title: "Lightning Fast", description: "Optimized for performance with minimal overhead and blazing fast load times." },
{ icon: Shield, title: "Secure by Default", description: "Built with security best practices and industry-standard encryption protocols." },
{ icon: AccessibilityOff, title: "Accessible Design", description: "WCAG compliant with full keyboard navigation and screen reader support." },
{ icon: Accessibility, title: "Accessible Design", description: "WCAG compliant with full keyboard navigation and screen reader support." },
{ icon: BookOpen, title: "Comprehensive Docs", description: "Detailed documentation with examples, API references, and best practices." }
]}
animationType="slide-up"

View File

@@ -1,51 +1,43 @@
"use client";
import React, { SVGProps } from 'react';
import { memo } from "react";
import useSvgTextLogo from "./useSvgTextLogo";
import { cls } from "@/lib/utils";
interface SvgTextLogoProps {
logoText: string;
adjustHeightFactor?: number;
verticalAlign?: "top" | "center";
export interface SvgTextLogoProps extends SVGProps<SVGSVGElement> {
text?: string;
className?: string;
}
const SvgTextLogo = memo<SvgTextLogoProps>(function SvgTextLogo({
logoText,
adjustHeightFactor,
verticalAlign = "top",
className = "",
}) {
const { svgRef, textRef, viewBox, aspectRatio } = useSvgTextLogo(logoText, false, adjustHeightFactor);
return (
<svg
ref={svgRef}
viewBox={viewBox}
className={cls("w-full", className)}
style={{ aspectRatio: aspectRatio }}
preserveAspectRatio="none"
role="img"
aria-label={`${logoText} logo`}
>
<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"
}}
const SvgTextLogo = React.forwardRef<SVGSVGElement, SvgTextLogoProps>(
({ text = 'WEBILD', className = '', ...props }, ref) => {
return (
<svg
ref={ref}
viewBox="0 0 500 100"
className={`w-full h-auto ${className}`}
{...props}
>
{logoText}
</text>
</svg>
);
});
<defs>
<linearGradient id="textGradient" x1="0%" y1="0%" x2="100%" y2="0%">
<stop offset="0%" stopColor="#3b82f6" />
<stop offset="50%" stopColor="#8b5cf6" />
<stop offset="100%" stopColor="#ec4899" />
</linearGradient>
</defs>
<text
x="50%"
y="50%"
textAnchor="middle"
dominantBaseline="middle"
fontSize="72"
fontWeight="bold"
fill="url(#textGradient)"
fontFamily="system-ui, -apple-system, sans-serif"
>
{text}
</text>
</svg>
);
}
);
SvgTextLogo.displayName = "SvgTextLogo";
SvgTextLogo.displayName = 'SvgTextLogo';
export default SvgTextLogo;
export default SvgTextLogo;