Merge version_1 into main
Merge version_1 into main
This commit was merged in pull request #2.
This commit is contained in:
@@ -91,7 +91,7 @@ export default function LandingPage() {
|
||||
title: "Lightning-Fast Development", description: "Deploy production-ready websites in days, not months. Our AI-accelerated workflow eliminates tedious tasks and speeds up iteration cycles.", icon: Rocket,
|
||||
mediaItems: [
|
||||
{
|
||||
imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AlzdVydQCL8LPZUWoviRYG1rnX/screenshot-of-a-modern-clean-web-interfa-1773182654964-78229952.png?_wi=1", imageAlt: "Fast development interface"
|
||||
imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AlzdVydQCL8LPZUWoviRYG1rnX/screenshot-of-a-modern-clean-web-interfa-1773182654964-78229952.png", imageAlt: "Fast development interface"
|
||||
},
|
||||
{
|
||||
imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AlzdVydQCL8LPZUWoviRYG1rnX/3d-icon-representing-rapid-web-developme-1773182655608-03638405.png", imageAlt: "Speed icon"
|
||||
@@ -105,7 +105,7 @@ export default function LandingPage() {
|
||||
imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AlzdVydQCL8LPZUWoviRYG1rnX/3d-icon-representing-ai-powered-design-a-1773182656193-a857f7d6.png", imageAlt: "AI technology icon"
|
||||
},
|
||||
{
|
||||
imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AlzdVydQCL8LPZUWoviRYG1rnX/screenshot-of-a-modern-clean-web-interfa-1773182654964-78229952.png?_wi=2", imageAlt: "AI design tools"
|
||||
imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AlzdVydQCL8LPZUWoviRYG1rnX/screenshot-of-a-modern-clean-web-interfa-1773182654964-78229952.png", imageAlt: "AI design tools"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -113,7 +113,7 @@ export default function LandingPage() {
|
||||
title: "Conversion Science", description: "Built-in best practices for e-commerce, SaaS, and service businesses. Every pixel is optimized for your bottom line.", icon: Target,
|
||||
mediaItems: [
|
||||
{
|
||||
imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AlzdVydQCL8LPZUWoviRYG1rnX/analytics-dashboard-showing-website-perf-1773182656134-ce956003.png?_wi=1", imageAlt: "Conversion analytics"
|
||||
imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AlzdVydQCL8LPZUWoviRYG1rnX/analytics-dashboard-showing-website-perf-1773182656134-ce956003.png", imageAlt: "Conversion analytics"
|
||||
},
|
||||
{
|
||||
imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AlzdVydQCL8LPZUWoviRYG1rnX/3d-icon-representing-conversion-optimiza-1773182654057-9e9af958.png", imageAlt: "Conversion target icon"
|
||||
@@ -127,7 +127,7 @@ export default function LandingPage() {
|
||||
imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AlzdVydQCL8LPZUWoviRYG1rnX/a-sleek-modern-web-development-dashboard-1773182655522-4288a5f7.png", imageAlt: "Infrastructure dashboard"
|
||||
},
|
||||
{
|
||||
imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AlzdVydQCL8LPZUWoviRYG1rnX/analytics-dashboard-showing-website-perf-1773182656134-ce956003.png?_wi=2", imageAlt: "Performance metrics"
|
||||
imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AlzdVydQCL8LPZUWoviRYG1rnX/analytics-dashboard-showing-website-perf-1773182656134-ce956003.png", imageAlt: "Performance metrics"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -165,8 +165,8 @@ export default function LandingPage() {
|
||||
tagAnimation="slide-up"
|
||||
textboxLayout="default"
|
||||
useInvertedBackground={false}
|
||||
logos={[
|
||||
"http://img.b2bpic.net/free-vector/gradient-abstract-logo-collection_23-2148163497.jpg", "http://img.b2bpic.net/free-vector/flat-design-usa-labor-day-badge-collection_23-2148616525.jpg", "http://img.b2bpic.net/free-vector/asbtract-shapes-technology-logos-pack_23-2147534748.jpg", "http://img.b2bpic.net/free-vector/hand-drawn-flat-design-nc-cn-logo_23-2149239673.jpg", "http://img.b2bpic.net/free-vector/gradient-technology-logo_52683-8580.jpg", "http://img.b2bpic.net/free-photo/arrangement-with-devices-copy-space_23-2148847750.jpg", "http://img.b2bpic.net/free-photo/programming-background-with-html-text_23-2150040411.jpg"
|
||||
names={[
|
||||
"Acme Corp", "TechFlow", "Innovate Inc", "CloudSync", "DataSync", "GrowthMetrics", "ModernRetail"
|
||||
]}
|
||||
speed={40}
|
||||
showCard={true}
|
||||
|
||||
@@ -1,51 +1,30 @@
|
||||
"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;
|
||||
}
|
||||
|
||||
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 = '' }) => {
|
||||
return (
|
||||
<svg
|
||||
ref={svgRef}
|
||||
viewBox={viewBox}
|
||||
className={cls("w-full", className)}
|
||||
style={{ aspectRatio: aspectRatio }}
|
||||
preserveAspectRatio="none"
|
||||
role="img"
|
||||
aria-label={`${logoText} logo`}
|
||||
viewBox={`0 0 ${text.length * 60} 100`}
|
||||
className={className}
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
>
|
||||
<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%"
|
||||
textAnchor="middle"
|
||||
dominantBaseline="middle"
|
||||
fontSize="48"
|
||||
fontWeight="bold"
|
||||
fill="currentColor"
|
||||
>
|
||||
{logoText}
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
};
|
||||
|
||||
export default SvgTextLogo;
|
||||
|
||||
Reference in New Issue
Block a user