Merge version_1 into main #2
@@ -20,7 +20,7 @@ export default function LandingPage() {
|
||||
borderRadius="pill"
|
||||
contentWidth="medium"
|
||||
sizing="mediumSizeLargeTitles"
|
||||
background="fluid"
|
||||
background="circleGradient"
|
||||
cardStyle="gradient-bordered"
|
||||
primaryButtonStyle="shadow"
|
||||
secondaryButtonStyle="radial-glow"
|
||||
@@ -45,7 +45,7 @@ export default function LandingPage() {
|
||||
<HeroBillboard
|
||||
title="Complete Ploughing Solutions, Trusted by 100K Farmers"
|
||||
description="Advanced engineering meets 45 years of proven expertise. Swastik Agro delivers premium-quality machinery that maximizes yield, minimizes downtime, and builds lasting partnerships with farming communities across India."
|
||||
background={{ variant: "fluid" }}
|
||||
background={{ variant: "sparkles-gradient" }}
|
||||
tag="Agricultural Excellence"
|
||||
tagIcon={Sprout}
|
||||
tagAnimation="slide-up"
|
||||
@@ -54,7 +54,7 @@ export default function LandingPage() {
|
||||
{ text: "Request Demo", href: "#contact" }
|
||||
]}
|
||||
buttonAnimation="slide-up"
|
||||
imageSrc="http://img.b2bpic.net/free-photo/view-harvester-cutting-wheat-collecting-grain_181624-34854.jpg?_wi=1"
|
||||
imageSrc="http://img.b2bpic.net/free-photo/view-harvester-cutting-wheat-collecting-grain_181624-34854.jpg"
|
||||
imageAlt="Swastik Agro premium agricultural ploughing machinery"
|
||||
mediaAnimation="slide-up"
|
||||
className="w-full"
|
||||
@@ -91,19 +91,19 @@ export default function LandingPage() {
|
||||
features={[
|
||||
{
|
||||
id: 1,
|
||||
title: "Precision Engineering", description: "Advanced CAD-designed ploughing mechanisms ensure consistent soil engagement, optimal depth control, and reduced energy consumption for maximum efficiency.", imageSrc: "http://img.b2bpic.net/free-photo/agronomist-choosing-new-planter-man-outdoor-ground-shop-agricultural-machinery_1157-43609.jpg?_wi=1"
|
||||
title: "Precision Engineering", description: "Advanced CAD-designed ploughing mechanisms ensure consistent soil engagement, optimal depth control, and reduced energy consumption for maximum efficiency.", imageSrc: "http://img.b2bpic.net/free-photo/agronomist-choosing-new-planter-man-outdoor-ground-shop-agricultural-machinery_1157-43609.jpg"
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "Durability & Longevity", description: "High-grade steel construction with reinforced joints and rust-resistant coating ensures your equipment operates reliably for decades with minimal maintenance.", imageSrc: "http://img.b2bpic.net/free-photo/people-tractor_23-2150454933.jpg?_wi=1"
|
||||
title: "Durability & Longevity", description: "High-grade steel construction with reinforced joints and rust-resistant coating ensures your equipment operates reliably for decades with minimal maintenance.", imageSrc: "http://img.b2bpic.net/free-photo/people-tractor_23-2150454933.jpg"
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "Dealer Partnership Support", description: "Comprehensive training, marketing assistance, bulk pricing advantages, and supply chain reliability for our dealer and distributor network.", imageSrc: "http://img.b2bpic.net/free-photo/close-up-seeder-attached-tractor-field_146671-19084.jpg?_wi=1"
|
||||
title: "Dealer Partnership Support", description: "Comprehensive training, marketing assistance, bulk pricing advantages, and supply chain reliability for our dealer and distributor network.", imageSrc: "http://img.b2bpic.net/free-photo/close-up-seeder-attached-tractor-field_146671-19084.jpg"
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
title: "Certified Quality Standards", description: "ISO certified manufacturing and compliance with agricultural machinery standards ensure consistent quality and regulatory adherence across all product lines.", imageSrc: "http://img.b2bpic.net/free-photo/view-harvester-cutting-wheat-collecting-grain_181624-34854.jpg?_wi=2"
|
||||
title: "Certified Quality Standards", description: "ISO certified manufacturing and compliance with agricultural machinery standards ensure consistent quality and regulatory adherence across all product lines.", imageSrc: "http://img.b2bpic.net/free-photo/view-harvester-cutting-wheat-collecting-grain_181624-34854.jpg"
|
||||
}
|
||||
]}
|
||||
animationType="slide-up"
|
||||
@@ -120,13 +120,13 @@ export default function LandingPage() {
|
||||
useInvertedBackground={false}
|
||||
products={[
|
||||
{
|
||||
id: "1", name: "Standard Plough - SP-2000", price: "₹85,000", imageSrc: "http://img.b2bpic.net/free-photo/agronomist-choosing-new-planter-man-outdoor-ground-shop-agricultural-machinery_1157-43609.jpg?_wi=2", imageAlt: "Standard Plough SP-2000"
|
||||
id: "1", name: "Standard Plough - SP-2000", price: "₹85,000", imageSrc: "http://img.b2bpic.net/free-photo/agronomist-choosing-new-planter-man-outdoor-ground-shop-agricultural-machinery_1157-43609.jpg", imageAlt: "Standard Plough SP-2000"
|
||||
},
|
||||
{
|
||||
id: "2", name: "Premium Plough - SP-3500", price: "₹1,45,000", imageSrc: "http://img.b2bpic.net/free-photo/people-tractor_23-2150454933.jpg?_wi=2", imageAlt: "Premium Plough SP-3500"
|
||||
id: "2", name: "Premium Plough - SP-3500", price: "₹1,45,000", imageSrc: "http://img.b2bpic.net/free-photo/people-tractor_23-2150454933.jpg", imageAlt: "Premium Plough SP-3500"
|
||||
},
|
||||
{
|
||||
id: "3", name: "Tractor-Mounted Plough - TMP-5000", price: "₹2,20,000", imageSrc: "http://img.b2bpic.net/free-photo/close-up-seeder-attached-tractor-field_146671-19084.jpg?_wi=2", imageAlt: "Tractor-Mounted Plough TMP-5000"
|
||||
id: "3", name: "Tractor-Mounted Plough - TMP-5000", price: "₹2,20,000", imageSrc: "http://img.b2bpic.net/free-photo/close-up-seeder-attached-tractor-field_146671-19084.jpg", imageAlt: "Tractor-Mounted Plough TMP-5000"
|
||||
}
|
||||
]}
|
||||
gridVariant="three-columns-all-equal-width"
|
||||
|
||||
@@ -1,51 +1,49 @@
|
||||
"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;
|
||||
fill?: string;
|
||||
fontSize?: number;
|
||||
fontWeight?: number | string;
|
||||
fontFamily?: 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 = '',
|
||||
fill = 'currentColor',
|
||||
fontSize = 32,
|
||||
fontWeight = 'bold',
|
||||
fontFamily = 'system-ui, -apple-system, sans-serif',
|
||||
}) => {
|
||||
const padding = 20;
|
||||
const textWidth = text.length * (fontSize * 0.6);
|
||||
const width = textWidth + padding * 2;
|
||||
const height = fontSize + padding * 2;
|
||||
|
||||
return (
|
||||
<svg
|
||||
ref={svgRef}
|
||||
viewBox={viewBox}
|
||||
className={cls("w-full", className)}
|
||||
style={{ aspectRatio: aspectRatio }}
|
||||
preserveAspectRatio="none"
|
||||
role="img"
|
||||
aria-label={`${logoText} logo`}
|
||||
width={width}
|
||||
height={height}
|
||||
viewBox={`0 0 ${width} ${height}`}
|
||||
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={width / 2}
|
||||
y={height / 2}
|
||||
textAnchor="middle"
|
||||
dominantBaseline="middle"
|
||||
fill={fill}
|
||||
fontSize={fontSize}
|
||||
fontWeight={fontWeight}
|
||||
fontFamily={fontFamily}
|
||||
>
|
||||
{logoText}
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
};
|
||||
|
||||
export default SvgTextLogo;
|
||||
|
||||
Reference in New Issue
Block a user