Merge version_2 into main #3

Open
bender wants to merge 3 commits from version_2 into main
2 changed files with 33 additions and 54 deletions

View File

@@ -21,7 +21,7 @@ export default function LandingPage() {
borderRadius="soft"
contentWidth="mediumLarge"
sizing="largeSmall"
background="floatingGradient"
background="circleGradient"
cardStyle="gradient-mesh"
primaryButtonStyle="gradient"
secondaryButtonStyle="solid"
@@ -43,7 +43,7 @@ export default function LandingPage() {
<div id="hero" data-section="hero">
<HeroSplitKpi
background={{ variant: "floatingGradient" }}
background={{ variant: "glowing-orb" }}
title="Premium Plastic Solutions for Industrial Growth"
description="Trusted wholesale supplier of high-quality plastic materials. Serve your customers with superior products, competitive pricing, and reliable bulk delivery."
enableKpiAnimation={true}
@@ -54,15 +54,15 @@ export default function LandingPage() {
]}
tag="Premium Plastic Wholesaler"
tagIcon={Sparkles}
tagAnimation="entrance-slide"
tagAnimation="none"
buttons={[
{ text: "Get Quote", href: "#contact" },
{ text: "View Products", href: "#products" }
]}
buttonAnimation="entrance-slide"
imageSrc="http://img.b2bpic.net/free-photo/high-angle-view-buckwheats-spoons-around-horizontal_176474-2321.jpg"
buttonAnimation="none"
imageSrc="http://img.b2bpic.net/free-photo/high-angle-view-buckwheats-spoons-around-horizontal_176474-2321.jpg?_wi=1"
imageAlt="Industrial plastic rolls and materials"
mediaAnimation="entrance-slide"
mediaAnimation="none"
imagePosition="right"
/>
</div>
@@ -76,7 +76,7 @@ export default function LandingPage() {
buttons={[
{ text: "Learn More", href: "#metrics" }
]}
buttonAnimation="entrance-slide"
buttonAnimation="none"
useInvertedBackground={false}
/>
</div>
@@ -87,7 +87,7 @@ export default function LandingPage() {
description="Comprehensive selection of premium plastic materials for all your wholesale needs"
tag="Premium Quality"
tagIcon={CheckCircle}
tagAnimation="entrance-slide"
tagAnimation="none"
textboxLayout="default"
useInvertedBackground={false}
gridVariant="three-columns-all-equal-width"
@@ -115,7 +115,7 @@ export default function LandingPage() {
description="Partnering with top companies across manufacturing, packaging, and retail sectors"
tag="Trusted Partners"
tagIcon={Shield}
tagAnimation="entrance-slide"
tagAnimation="none"
textboxLayout="default"
useInvertedBackground={false}
names={[
@@ -130,7 +130,7 @@ export default function LandingPage() {
<MetricCardFourteen
title="We deliver exceptional value and reliability to every customer partnership"
tag="Why Choose Us"
tagAnimation="entrance-slide"
tagAnimation="none"
metrics={[
{
id: "1", value: "₹10Cr+", description: "Annual turnover with consistent growth and market presence"
@@ -139,7 +139,7 @@ export default function LandingPage() {
id: "2", value: "24-48 hrs", description: "Express delivery available across Gujarat and India"
}
]}
metricsAnimation="entrance-slide"
metricsAnimation="none"
useInvertedBackground={false}
/>
</div>
@@ -150,7 +150,7 @@ export default function LandingPage() {
description="Find answers to common questions about our products and services"
tag="Help & Support"
tagIcon={HelpCircle}
tagAnimation="entrance-slide"
tagAnimation="none"
textboxLayout="default"
useInvertedBackground={false}
faqs={[
@@ -173,10 +173,10 @@ export default function LandingPage() {
id: "6", title: "What is your return and refund policy?", content: "We guarantee product quality. In case of any defects, damaged goods can be returned within 7 days for replacement or refund, with proper documentation."
}
]}
faqsAnimation="entrance-slide"
faqsAnimation="none"
imageSrc="http://img.b2bpic.net/free-photo/woman-working-tablet-standing-warehouse_259150-56877.jpg"
imageAlt="Our state-of-the-art warehouse facility"
mediaAnimation="entrance-slide"
mediaAnimation="none"
mediaPosition="left"
animationType="smooth"
/>
@@ -188,7 +188,7 @@ export default function LandingPage() {
description="Hear from satisfied businesses who trust Sahajanand Plastic for their wholesale needs"
tag="Customer Testimonials"
tagIcon={Star}
tagAnimation="entrance-slide"
tagAnimation="none"
textboxLayout="default"
useInvertedBackground={false}
testimonials={[
@@ -225,7 +225,7 @@ export default function LandingPage() {
useInvertedBackground={false}
imageSrc="http://img.b2bpic.net/free-photo/people-taking-part-business-event_23-2149346626.jpg"
imageAlt="Contact our team at Sahajanand Plastic"
mediaAnimation="entrance-slide"
mediaAnimation="none"
mediaPosition="right"
buttonText="Request Quote"
/>
@@ -233,7 +233,7 @@ export default function LandingPage() {
<div id="footer" data-section="footer">
<FooterMedia
imageSrc="http://img.b2bpic.net/free-photo/high-angle-view-buckwheats-spoons-around-horizontal_176474-2321.jpg"
imageSrc="http://img.b2bpic.net/free-photo/high-angle-view-buckwheats-spoons-around-horizontal_176474-2321.jpg?_wi=2"
imageAlt="Sahajanand Plastic footer background"
logoText="Sahajanand Plastic"
columns={[

View File

@@ -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 200 50"
xmlns="http://www.w3.org/2000/svg"
className={`w-full h-auto ${className}`}
>
<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="100"
y="35"
textAnchor="middle"
fontSize="32"
fontWeight="bold"
fill="currentColor"
dominantBaseline="central"
>
{logoText}
{text}
</text>
</svg>
);
});
};
SvgTextLogo.displayName = "SvgTextLogo";
export default SvgTextLogo;
export default SvgTextLogo;