Merge version_1 into main #2

Merged
bender merged 2 commits from version_1 into main 2026-03-10 19:13:52 +00:00
2 changed files with 36 additions and 44 deletions

View File

@@ -22,7 +22,7 @@ export default function LandingPage() {
borderRadius="pill"
contentWidth="medium"
sizing="mediumLarge"
background="blurBottom"
background="circleGradient"
cardStyle="gradient-mesh"
primaryButtonStyle="shadow"
secondaryButtonStyle="glass"
@@ -49,7 +49,7 @@ export default function LandingPage() {
tag="Financial Freedom"
tagIcon={Zap}
tagAnimation="slide-up"
background={{ variant: "blurBottom" }}
background={{ variant: "radial-gradient" }}
buttons={[
{ text: "Apply Now", href: "contact" },
{ text: "Learn More", href: "how-it-works" }
@@ -57,8 +57,8 @@ export default function LandingPage() {
buttonAnimation="slide-up"
mediaItems={[
{ imageSrc: "http://img.b2bpic.net/free-photo/front-view-woman-working-as-economist_23-2150062317.jpg", imageAlt: "Student success education loan" },
{ imageSrc: "http://img.b2bpic.net/free-vector/dashboard-user-panel-template_23-2148365750.jpg?_wi=1", imageAlt: "Easy accessible platform" },
{ imageSrc: "http://img.b2bpic.net/free-vector/check-mark-star-hand-drawn_78370-4465.jpg?_wi=1", imageAlt: "Fast approval process" }
{ imageSrc: "http://img.b2bpic.net/free-vector/dashboard-user-panel-template_23-2148365750.jpg", imageAlt: "Easy accessible platform" },
{ imageSrc: "http://img.b2bpic.net/free-vector/check-mark-star-hand-drawn_78370-4465.jpg", imageAlt: "Fast approval process" }
]}
mediaAnimation="slide-up"
/>
@@ -85,7 +85,7 @@ export default function LandingPage() {
id: "1", title: "Quick Approval", descriptions: [
"Get approval in as little as 24 hours with our streamlined digital process", "Real-time application tracking from submission to disbursement", "Dedicated support team available throughout your journey"
],
imageSrc: "http://img.b2bpic.net/free-vector/check-mark-star-hand-drawn_78370-4465.jpg?_wi=2", imageAlt: "Fast approval process"
imageSrc: "http://img.b2bpic.net/free-vector/check-mark-star-hand-drawn_78370-4465.jpg", imageAlt: "Fast approval process"
},
{
id: "2", title: "Transparent Pricing", descriptions: [
@@ -103,10 +103,10 @@ export default function LandingPage() {
id: "4", title: "Easy Access", descriptions: [
"Apply from anywhere with our mobile-first platform", "Simple documentation process with digital verification", "Secure and encrypted data handling"
],
imageSrc: "http://img.b2bpic.net/free-vector/dashboard-user-panel-template_23-2148365750.jpg?_wi=2", imageAlt: "Easy accessible platform"
imageSrc: "http://img.b2bpic.net/free-vector/dashboard-user-panel-template_23-2148365750.jpg", imageAlt: "Easy accessible platform"
}
]}
gridVariant="four-items-2x2-equal-grid"
gridVariant="uniform-all-items-equal"
animationType="slide-up"
textboxLayout="default"
useInvertedBackground={false}
@@ -149,7 +149,7 @@ export default function LandingPage() {
{ id: "3", value: "3", description: "Quick Verification" },
{ id: "4", value: "4", description: "Loan Disbursement" }
]}
gridVariant="four-items-2x2-equal-grid"
gridVariant="uniform-all-items-equal"
animationType="slide-up"
textboxLayout="default"
useInvertedBackground={false}

View File

@@ -1,51 +1,43 @@
"use client";
import React, { SVGProps } from 'react';
import { memo } from "react";
import useSvgTextLogo from "./useSvgTextLogo";
import { cls } from "@/lib/utils";
interface SvgTextLogoProps {
logoText: string;
adjustHeightFactor?: number;
verticalAlign?: "top" | "center";
interface SvgTextLogoProps extends SVGProps<SVGSVGElement> {
text?: string;
fontSize?: number;
fontFamily?: string;
fontWeight?: number | string;
fill?: 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 = 'Logo',
fontSize = 24,
fontFamily = 'system-ui, -apple-system, sans-serif',
fontWeight = 700,
fill = 'currentColor',
className = '',
...svgProps
}) => {
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} ${fontSize * 1.5}`}
xmlns="http://www.w3.org/2000/svg"
className={className}
{...svgProps}
>
<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"
}}
y={fontSize}
fontSize={fontSize}
fontFamily={fontFamily}
fontWeight={fontWeight}
fill={fill}
dominantBaseline="central"
>
{logoText}
{text}
</text>
</svg>
);
});
SvgTextLogo.displayName = "SvgTextLogo";
};
export default SvgTextLogo;