Merge version_1 into main #2

Merged
bender merged 2 commits from version_1 into main 2026-03-11 16:56:35 +00:00
2 changed files with 49 additions and 57 deletions

View File

@@ -19,7 +19,7 @@ export default function LandingPage() {
borderRadius="rounded"
contentWidth="medium"
sizing="mediumLarge"
background="grid"
background="circleGradient"
cardStyle="glass-depth"
primaryButtonStyle="double-inset"
secondaryButtonStyle="solid"
@@ -47,18 +47,18 @@ export default function LandingPage() {
tag="Premium Design"
tagIcon={Zap}
tagAnimation="slide-up"
background={{ variant: "grid" }}
background={{ variant: "animated-grid" }}
leftCarouselItems={[
{ imageSrc: "http://img.b2bpic.net/free-photo/device-with-copy-space-table-with-food_23-2150917873.jpg?_wi=1", imageAlt: "Project showcase one" },
{ imageSrc: "http://img.b2bpic.net/free-photo/man-typing-laptop-working-from-home-with-automation-lighting-system-using-voice-controlled-app-tablet-switching-light_482257-2270.jpg?_wi=1", imageAlt: "Project showcase two" },
{ imageSrc: "http://img.b2bpic.net/free-vector/fashion-sale-concept-with-discount_23-2148590928.jpg?_wi=1", imageAlt: "Project showcase three" },
{ imageSrc: "http://img.b2bpic.net/free-vector/gradient-texture-technology-landing-page-template_23-2149209038.jpg?_wi=1", imageAlt: "Project showcase four" }
{ imageSrc: "http://img.b2bpic.net/free-photo/device-with-copy-space-table-with-food_23-2150917873.jpg", imageAlt: "Project showcase one" },
{ imageSrc: "http://img.b2bpic.net/free-photo/man-typing-laptop-working-from-home-with-automation-lighting-system-using-voice-controlled-app-tablet-switching-light_482257-2270.jpg", imageAlt: "Project showcase two" },
{ imageSrc: "http://img.b2bpic.net/free-vector/fashion-sale-concept-with-discount_23-2148590928.jpg", imageAlt: "Project showcase three" },
{ imageSrc: "http://img.b2bpic.net/free-vector/gradient-texture-technology-landing-page-template_23-2149209038.jpg", imageAlt: "Project showcase four" }
]}
rightCarouselItems={[
{ imageSrc: "http://img.b2bpic.net/free-vector/business-landing-page-template-with-photo_52683-20377.jpg?_wi=1", imageAlt: "Project showcase five" },
{ imageSrc: "http://img.b2bpic.net/free-photo/device-with-copy-space-table-with-food_23-2150917873.jpg?_wi=2", imageAlt: "Project showcase one" },
{ imageSrc: "http://img.b2bpic.net/free-photo/man-typing-laptop-working-from-home-with-automation-lighting-system-using-voice-controlled-app-tablet-switching-light_482257-2270.jpg?_wi=2", imageAlt: "Project showcase two" },
{ imageSrc: "http://img.b2bpic.net/free-vector/fashion-sale-concept-with-discount_23-2148590928.jpg?_wi=2", imageAlt: "Project showcase three" }
{ imageSrc: "http://img.b2bpic.net/free-vector/business-landing-page-template-with-photo_52683-20377.jpg", imageAlt: "Project showcase five" },
{ imageSrc: "http://img.b2bpic.net/free-photo/device-with-copy-space-table-with-food_23-2150917873.jpg", imageAlt: "Project showcase one" },
{ imageSrc: "http://img.b2bpic.net/free-photo/man-typing-laptop-working-from-home-with-automation-lighting-system-using-voice-controlled-app-tablet-switching-light_482257-2270.jpg", imageAlt: "Project showcase two" },
{ imageSrc: "http://img.b2bpic.net/free-vector/fashion-sale-concept-with-discount_23-2148590928.jpg", imageAlt: "Project showcase three" }
]}
buttons={[
{ text: "Start a Project", href: "#contact" },
@@ -79,13 +79,13 @@ export default function LandingPage() {
useInvertedBackground={false}
features={[
{
id: "1", title: "Custom Website Design", description: "Modern, responsive websites designed for performance and clarity. Every pixel crafted with precision to reflect your brand.", tag: "Design", imageSrc: "http://img.b2bpic.net/free-photo/device-with-copy-space-table-with-food_23-2150917873.jpg?_wi=3", imageAlt: "Custom website design showcase"
id: "1", title: "Custom Website Design", description: "Modern, responsive websites designed for performance and clarity. Every pixel crafted with precision to reflect your brand.", tag: "Design", imageSrc: "http://img.b2bpic.net/free-photo/device-with-copy-space-table-with-food_23-2150917873.jpg", imageAlt: "Custom website design showcase"
},
{
id: "2", title: "Website Development", description: "Fast, scalable websites built with clean code and optimized structure. Lightning-quick load times and seamless user experience.", tag: "Development", imageSrc: "http://img.b2bpic.net/free-photo/man-typing-laptop-working-from-home-with-automation-lighting-system-using-voice-controlled-app-tablet-switching-light_482257-2270.jpg?_wi=3", imageAlt: "Website development showcase"
id: "2", title: "Website Development", description: "Fast, scalable websites built with clean code and optimized structure. Lightning-quick load times and seamless user experience.", tag: "Development", imageSrc: "http://img.b2bpic.net/free-photo/man-typing-laptop-working-from-home-with-automation-lighting-system-using-voice-controlled-app-tablet-switching-light_482257-2270.jpg", imageAlt: "Website development showcase"
},
{
id: "3", title: "Website Optimization", description: "Speed, SEO, and conversion improvements to help businesses grow online. We optimize every metric that matters to your success.", tag: "Performance", imageSrc: "http://img.b2bpic.net/free-vector/fashion-sale-concept-with-discount_23-2148590928.jpg?_wi=3", imageAlt: "Website optimization showcase"
id: "3", title: "Website Optimization", description: "Speed, SEO, and conversion improvements to help businesses grow online. We optimize every metric that matters to your success.", tag: "Performance", imageSrc: "http://img.b2bpic.net/free-vector/fashion-sale-concept-with-discount_23-2148590928.jpg", imageAlt: "Website optimization showcase"
}
]}
/>
@@ -101,22 +101,22 @@ export default function LandingPage() {
gridVariant="three-columns-all-equal-width"
products={[
{
id: "1", name: "TechFlow Platform", price: "Complex SaaS", imageSrc: "http://img.b2bpic.net/free-photo/device-with-copy-space-table-with-food_23-2150917873.jpg?_wi=4", imageAlt: "TechFlow Platform showcase"
id: "1", name: "TechFlow Platform", price: "Complex SaaS", imageSrc: "http://img.b2bpic.net/free-photo/device-with-copy-space-table-with-food_23-2150917873.jpg", imageAlt: "TechFlow Platform showcase"
},
{
id: "2", name: "Innovate Brand Site", price: "Corporate Brand", imageSrc: "http://img.b2bpic.net/free-photo/man-typing-laptop-working-from-home-with-automation-lighting-system-using-voice-controlled-app-tablet-switching-light_482257-2270.jpg?_wi=4", imageAlt: "Innovate Brand Site showcase"
id: "2", name: "Innovate Brand Site", price: "Corporate Brand", imageSrc: "http://img.b2bpic.net/free-photo/man-typing-laptop-working-from-home-with-automation-lighting-system-using-voice-controlled-app-tablet-switching-light_482257-2270.jpg", imageAlt: "Innovate Brand Site showcase"
},
{
id: "3", name: "CloudSync Dashboard", price: "Web Application", imageSrc: "http://img.b2bpic.net/free-vector/fashion-sale-concept-with-discount_23-2148590928.jpg?_wi=4", imageAlt: "CloudSync Dashboard showcase"
id: "3", name: "CloudSync Dashboard", price: "Web Application", imageSrc: "http://img.b2bpic.net/free-vector/fashion-sale-concept-with-discount_23-2148590928.jpg", imageAlt: "CloudSync Dashboard showcase"
},
{
id: "4", name: "Velocity Store", price: "E-Commerce", imageSrc: "http://img.b2bpic.net/free-vector/gradient-texture-technology-landing-page-template_23-2149209038.jpg?_wi=2", imageAlt: "Velocity Store showcase"
id: "4", name: "Velocity Store", price: "E-Commerce", imageSrc: "http://img.b2bpic.net/free-vector/gradient-texture-technology-landing-page-template_23-2149209038.jpg", imageAlt: "Velocity Store showcase"
},
{
id: "5", name: "Design Studio", price: "Portfolio Site", imageSrc: "http://img.b2bpic.net/free-vector/business-landing-page-template-with-photo_52683-20377.jpg?_wi=2", imageAlt: "Design Studio showcase"
id: "5", name: "Design Studio", price: "Portfolio Site", imageSrc: "http://img.b2bpic.net/free-vector/business-landing-page-template-with-photo_52683-20377.jpg", imageAlt: "Design Studio showcase"
},
{
id: "6", name: "Analytics Pro", price: "Data Platform", imageSrc: "http://img.b2bpic.net/free-photo/device-with-copy-space-table-with-food_23-2150917873.jpg?_wi=5", imageAlt: "Analytics Pro showcase"
id: "6", name: "Analytics Pro", price: "Data Platform", imageSrc: "http://img.b2bpic.net/free-photo/device-with-copy-space-table-with-food_23-2150917873.jpg", imageAlt: "Analytics Pro showcase"
}
]}
/>
@@ -164,7 +164,7 @@ export default function LandingPage() {
{ text: "Schedule a Call", href: "#contact" }
]}
buttonAnimation="slide-up"
background={{ variant: "grid" }}
background={{ variant: "animated-grid" }}
useInvertedBackground={false}
/>
</div>

View File

@@ -1,51 +1,43 @@
"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;
textClassName?: string;
fontSize?: number;
fontWeight?: number | string;
letterSpacing?: number;
}
const SvgTextLogo = memo<SvgTextLogoProps>(function SvgTextLogo({
logoText,
adjustHeightFactor,
verticalAlign = "top",
className = "",
}) {
const { svgRef, textRef, viewBox, aspectRatio } = useSvgTextLogo(logoText, false, adjustHeightFactor);
export const SvgTextLogo: React.FC<SvgTextLogoProps> = ({
text,
className = '',
textClassName = '',
fontSize = 48,
fontWeight = 700,
letterSpacing = 0,
}) => {
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 * fontSize * 0.6} ${fontSize * 1.5}`}
className={className}
xmlns="http://www.w3.org/2000/svg"
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="50%"
y="50%"
textAnchor="middle"
dominantBaseline="central"
className={textClassName}
fontSize={fontSize}
fontWeight={fontWeight}
letterSpacing={letterSpacing}
>
{logoText}
{text}
</text>
</svg>
);
});
};
SvgTextLogo.displayName = "SvgTextLogo";
export default SvgTextLogo;
export default SvgTextLogo;