Merge version_1 into main #2

Merged
bender merged 2 commits from version_1 into main 2026-03-12 20:07:15 +00:00
2 changed files with 34 additions and 44 deletions

View File

@@ -27,7 +27,7 @@ export default function LandingPage() {
borderRadius="soft"
contentWidth="small"
sizing="largeSmall"
background="grid"
background="circleGradient"
cardStyle="solid"
primaryButtonStyle="flat"
secondaryButtonStyle="glass"
@@ -53,13 +53,13 @@ export default function LandingPage() {
description="Get professional job placement, interview coaching, and career guidance from Jabalpur's trusted employment consultancy. Expert mentors ready to help you succeed."
tag="Local Expertise, Global Opportunities"
tagIcon={Sparkles}
tagAnimation="slide-up"
background={{ variant: "grid" }}
tagAnimation="blur-reveal"
background={{ variant: "canvas-reveal" }}
buttons={[
{ text: "Get Job Assistance", href: "contact" },
{ text: "Learn More", href: "about" }
]}
buttonAnimation="slide-up"
buttonAnimation="blur-reveal"
imageSrc="http://img.b2bpic.net/free-photo/person-working-office_23-2149229074.jpg"
imageAlt="Professional career consultation and employment services"
useInvertedBackground={false}
@@ -117,10 +117,10 @@ export default function LandingPage() {
useInvertedBackground={false}
metrics={[
{
id: "1", value: "500+", title: "Successful Placements", description: "Career opportunities created", imageSrc: "http://img.b2bpic.net/free-vector/hand-drawn-business-infographics_23-2148664992.jpg?_wi=1", imageAlt: "Success metrics and placement statistics"
id: "1", value: "500+", title: "Successful Placements", description: "Career opportunities created", imageSrc: "http://img.b2bpic.net/free-vector/hand-drawn-business-infographics_23-2148664992.jpg", imageAlt: "Success metrics and placement statistics"
},
{
id: "2", value: "237", title: "5-Star Reviews", description: "From satisfied candidates", imageSrc: "http://img.b2bpic.net/free-vector/hand-drawn-business-infographics_23-2148664992.jpg?_wi=2", imageAlt: "Customer satisfaction ratings"
id: "2", value: "237", title: "5-Star Reviews", description: "From satisfied candidates", imageSrc: "http://img.b2bpic.net/free-vector/hand-drawn-business-infographics_23-2148664992.jpg", imageAlt: "Customer satisfaction ratings"
}
]}
/>
@@ -164,7 +164,7 @@ export default function LandingPage() {
tag="Help & Support"
tagIcon={HelpCircle}
textboxLayout="default"
animationType="slide-up"
animationType="smooth"
useInvertedBackground={false}
mediaPosition="left"
imageSrc="http://img.b2bpic.net/free-vector/creative-call-center-lineal-concept_23-2147954633.jpg"

View File

@@ -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;
fontWeight?: number | string;
fill?: string;
dominantBaseline?: 'auto' | 'text-top' | 'hanging' | 'ideographic' | 'alphabetic' | 'middle' | 'central' | 'mathematical';
}
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 = 32,
fontWeight = 600,
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}
fontWeight={fontWeight}
fill={fill}
textAnchor="middle"
dominantBaseline={dominantBaseline}
>
{logoText}
{text}
</text>
</svg>
);
});
};
SvgTextLogo.displayName = "SvgTextLogo";
export default SvgTextLogo;
export default SvgTextLogo;