Merge version_1 into main #2

Merged
bender merged 2 commits from version_1 into main 2026-03-12 11:00:03 +00:00
2 changed files with 53 additions and 50 deletions

View File

@@ -19,7 +19,7 @@ export default function LandingPage() {
borderRadius="soft"
contentWidth="small"
sizing="mediumLargeSizeMediumTitles"
background="aurora"
background="circleGradient"
cardStyle="outline"
primaryButtonStyle="shadow"
secondaryButtonStyle="glass"
@@ -44,7 +44,7 @@ export default function LandingPage() {
<HeroLogoBillboardSplit
logoText="TURBOBLENDER"
description="Experience the future of portable blending. Lightning-fast, whisper-quiet, and designed for your on-the-go lifestyle. Blend anywhere, anytime."
background={{ variant: "aurora" }}
background={{ variant: "plain" }}
buttons={[
{ text: "Shop Now", href: "#products" },
{ text: "Learn More", href: "#features" }
@@ -63,16 +63,16 @@ export default function LandingPage() {
title="Featured Products"
description="Get your TurboBlender today and transform the way you blend"
tag="New Arrival"
tagAnimation="entrance-slide"
tagAnimation="slide-up"
products={[
{
id: "1", name: "TurboBlender Pro", price: "$89.99", imageSrc: "http://img.b2bpic.net/free-photo/young-woman-grinding-torned-paper-mixer-grinder_23-2147846087.jpg?_wi=1", imageAlt: "turboblender portable blender hero shot"
id: "1", name: "TurboBlender Pro", price: "$89.99", imageSrc: "http://img.b2bpic.net/free-photo/young-woman-grinding-torned-paper-mixer-grinder_23-2147846087.jpg", imageAlt: "turboblender portable blender hero shot"
},
{
id: "2", name: "TurboBlender Compact", price: "$59.99", imageSrc: "http://img.b2bpic.net/free-photo/young-woman-grinding-torned-paper-mixer-grinder_23-2147846087.jpg?_wi=2", imageAlt: "turboblender portable blender hero shot"
id: "2", name: "TurboBlender Compact", price: "$59.99", imageSrc: "http://img.b2bpic.net/free-photo/young-woman-grinding-torned-paper-mixer-grinder_23-2147846087.jpg", imageAlt: "turboblender portable blender hero shot"
},
{
id: "3", name: "TurboBlender Elite Bundle", price: "$129.99", imageSrc: "http://img.b2bpic.net/free-photo/young-woman-grinding-torned-paper-mixer-grinder_23-2147846087.jpg?_wi=3", imageAlt: "turboblender portable blender hero shot"
id: "3", name: "TurboBlender Elite Bundle", price: "$129.99", imageSrc: "http://img.b2bpic.net/free-photo/young-woman-grinding-torned-paper-mixer-grinder_23-2147846087.jpg", imageAlt: "turboblender portable blender hero shot"
}
]}
gridVariant="three-columns-all-equal-width"
@@ -88,7 +88,7 @@ export default function LandingPage() {
title="Why Choose TurboBlender?"
description="Engineered for performance, designed for convenience. Discover what makes TurboBlender the portable blender of choice."
tag="Key Features"
tagAnimation="entrance-slide"
tagAnimation="slide-up"
features={[
{
id: 1,
@@ -110,7 +110,7 @@ export default function LandingPage() {
animationType="blur-reveal"
textboxLayout="default"
useInvertedBackground={true}
buttonAnimation="entrance-slide"
buttonAnimation="slide-up"
/>
</div>
@@ -119,7 +119,7 @@ export default function LandingPage() {
title="Choose Your Perfect Blend"
description="Select the TurboBlender option that fits your lifestyle and budget"
tag="Pricing"
tagAnimation="entrance-slide"
tagAnimation="slide-up"
plans={[
{
id: "compact", badge: "Budget Friendly", badgeIcon: Zap,
@@ -150,7 +150,7 @@ export default function LandingPage() {
title="Loved by Our Customers"
description="See what real people are saying about their TurboBlender experience"
tag="Testimonials"
tagAnimation="entrance-slide"
tagAnimation="slide-up"
testimonials={[
{
id: "1", name: "Sarah Johnson", handle: "@healthysarah", testimonial: "The TurboBlender changed my morning routine! Finally a portable blender that actually works and doesn't sound like a helicopter.", imageSrc: "http://img.b2bpic.net/free-photo/satisfied-fairskinned-adult-woman-smiles-strongly-with-her-teeth-narrowing-eyes-sunny-day-brunette-wears-casual-clothes_197531-31242.jpg", imageAlt: "happy customer woman with smoothie"
@@ -185,10 +185,10 @@ export default function LandingPage() {
title="Stay Updated with TurboBlender"
description="Get exclusive deals, blending tips, and new product launches delivered to your inbox. Plus receive 10% off your first order."
tagIcon={Mail}
tagAnimation="entrance-slide"
tagAnimation="slide-up"
background={{ variant: "sparkles-gradient" }}
useInvertedBackground={false}
imageSrc="http://img.b2bpic.net/free-photo/biscuits-apple-near-yogurt-notebook_23-2147866261.jpg?_wi=1"
imageSrc="http://img.b2bpic.net/free-photo/biscuits-apple-near-yogurt-notebook_23-2147866261.jpg"
imageAlt="blended drinks smoothie bowl colorful"
mediaAnimation="opacity"
mediaPosition="right"
@@ -200,7 +200,7 @@ export default function LandingPage() {
<div id="footer" data-section="footer">
<FooterMedia
imageSrc="http://img.b2bpic.net/free-photo/biscuits-apple-near-yogurt-notebook_23-2147866261.jpg?_wi=2"
imageSrc="http://img.b2bpic.net/free-photo/biscuits-apple-near-yogurt-notebook_23-2147866261.jpg"
imageAlt="blended drinks smoothie bowl colorful"
columns={[
{

View File

@@ -1,51 +1,54 @@
"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;
width?: number | string;
height?: number | string;
fontSize?: number;
fill?: string;
fontFamily?: string;
fontWeight?: string | number;
letterSpacing?: number;
textAnchor?: 'start' | 'middle' | 'end';
}
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 = '',
width = '100%',
height = '100%',
fontSize = 64,
fill = 'currentColor',
fontFamily = 'inherit',
fontWeight = 'bold',
letterSpacing = 2,
textAnchor = '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 1000 200"
width={width}
height={height}
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%"
fontSize={fontSize}
fill={fill}
fontFamily={fontFamily}
fontWeight={fontWeight}
letterSpacing={letterSpacing}
textAnchor={textAnchor}
dominantBaseline="middle"
>
{logoText}
{text}
</text>
</svg>
);
});
};
SvgTextLogo.displayName = "SvgTextLogo";
export default SvgTextLogo;
export default SvgTextLogo;