Merge version_1 into main #2
@@ -20,7 +20,7 @@ export default function LandingPage() {
|
||||
borderRadius="pill"
|
||||
contentWidth="compact"
|
||||
sizing="mediumLargeSizeLargeTitles"
|
||||
background="floatingGradient"
|
||||
background="circleGradient"
|
||||
cardStyle="inset"
|
||||
primaryButtonStyle="double-inset"
|
||||
secondaryButtonStyle="radial-glow"
|
||||
@@ -48,19 +48,19 @@ export default function LandingPage() {
|
||||
tag="AI-Augmented Marketing"
|
||||
tagIcon={Sparkles}
|
||||
tagAnimation="slide-up"
|
||||
background={{ variant: "floatingGradient" }}
|
||||
background={{ variant: "animated-grid" }}
|
||||
buttons={[
|
||||
{ text: "Start Your Project →", href: "contact" },
|
||||
{ text: "View Our Services", href: "services" }
|
||||
]}
|
||||
buttonAnimation="slide-up"
|
||||
carouselItems={[
|
||||
{ id: "carousel-1", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AZzRxFv2gFNTFbXT2tH4kQPhmC/abstract-geometric-mesh-gradient-backgro-1773172459572-e9e07466.png?_wi=1", imageAlt: "Abstract geometric gradient mesh" },
|
||||
{ id: "carousel-2", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AZzRxFv2gFNTFbXT2tH4kQPhmC/abstract-geometric-mesh-gradient-backgro-1773172459572-e9e07466.png?_wi=2", imageAlt: "Abstract geometric gradient mesh" },
|
||||
{ id: "carousel-3", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AZzRxFv2gFNTFbXT2tH4kQPhmC/abstract-geometric-mesh-gradient-backgro-1773172459572-e9e07466.png?_wi=3", imageAlt: "Abstract geometric gradient mesh" },
|
||||
{ id: "carousel-4", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AZzRxFv2gFNTFbXT2tH4kQPhmC/abstract-geometric-mesh-gradient-backgro-1773172459572-e9e07466.png?_wi=4", imageAlt: "Abstract geometric gradient mesh" },
|
||||
{ id: "carousel-5", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AZzRxFv2gFNTFbXT2tH4kQPhmC/abstract-geometric-mesh-gradient-backgro-1773172459572-e9e07466.png?_wi=5", imageAlt: "Abstract geometric gradient mesh" },
|
||||
{ id: "carousel-6", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AZzRxFv2gFNTFbXT2tH4kQPhmC/abstract-geometric-mesh-gradient-backgro-1773172459572-e9e07466.png?_wi=6", imageAlt: "Abstract geometric gradient mesh" }
|
||||
{ id: "carousel-1", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AZzRxFv2gFNTFbXT2tH4kQPhmC/abstract-geometric-mesh-gradient-backgro-1773172459572-e9e07466.png", imageAlt: "Abstract geometric gradient mesh" },
|
||||
{ id: "carousel-2", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AZzRxFv2gFNTFbXT2tH4kQPhmC/abstract-geometric-mesh-gradient-backgro-1773172459572-e9e07466.png", imageAlt: "Abstract geometric gradient mesh" },
|
||||
{ id: "carousel-3", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AZzRxFv2gFNTFbXT2tH4kQPhmC/abstract-geometric-mesh-gradient-backgro-1773172459572-e9e07466.png", imageAlt: "Abstract geometric gradient mesh" },
|
||||
{ id: "carousel-4", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AZzRxFv2gFNTFbXT2tH4kQPhmC/abstract-geometric-mesh-gradient-backgro-1773172459572-e9e07466.png", imageAlt: "Abstract geometric gradient mesh" },
|
||||
{ id: "carousel-5", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AZzRxFv2gFNTFbXT2tH4kQPhmC/abstract-geometric-mesh-gradient-backgro-1773172459572-e9e07466.png", imageAlt: "Abstract geometric gradient mesh" },
|
||||
{ id: "carousel-6", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AZzRxFv2gFNTFbXT2tH4kQPhmC/abstract-geometric-mesh-gradient-backgro-1773172459572-e9e07466.png", imageAlt: "Abstract geometric gradient mesh" }
|
||||
]}
|
||||
autoPlay={true}
|
||||
autoPlayInterval={4000}
|
||||
@@ -164,7 +164,7 @@ export default function LandingPage() {
|
||||
tagAnimation="slide-up"
|
||||
title="Ready to Build Something Bold?"
|
||||
description="Tell us about your brand and we'll put together a custom plan — no obligation, no fluff."
|
||||
background={{ variant: "floatingGradient" }}
|
||||
background={{ variant: "animated-grid" }}
|
||||
useInvertedBackground={false}
|
||||
inputPlaceholder="your@email.com"
|
||||
buttonText="Send Message →"
|
||||
|
||||
@@ -1,51 +1,41 @@
|
||||
"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;
|
||||
fontSize?: number;
|
||||
fontFamily?: string;
|
||||
fill?: string;
|
||||
dominantBaseline?: SVGTextElement['dominantBaseline'];
|
||||
}
|
||||
|
||||
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 = '',
|
||||
fontSize = 48,
|
||||
fontFamily = 'Arial, sans-serif',
|
||||
fill = 'currentColor',
|
||||
dominantBaseline = 'middle',
|
||||
}) => {
|
||||
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"
|
||||
>
|
||||
<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%"
|
||||
fontSize={fontSize}
|
||||
fontFamily={fontFamily}
|
||||
fill={fill}
|
||||
textAnchor="middle"
|
||||
dominantBaseline={dominantBaseline}
|
||||
>
|
||||
{logoText}
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
};
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
|
||||
export default SvgTextLogo;
|
||||
export default SvgTextLogo;
|
||||
Reference in New Issue
Block a user