Merge version_1 into main #2

Merged
bender merged 2 commits from version_1 into main 2026-03-12 06:21:36 +00:00
2 changed files with 38 additions and 43 deletions

View File

@@ -20,7 +20,7 @@ export default function LandingPage() {
borderRadius="soft"
contentWidth="small"
sizing="largeSmallSizeLargeTitles"
background="aurora"
background="circleGradient"
cardStyle="subtle-shadow"
primaryButtonStyle="radial-glow"
secondaryButtonStyle="layered"
@@ -46,7 +46,7 @@ export default function LandingPage() {
title="Manage Your Bakery with Ease"
description="A powerful platform to organize, track, and manage all your bakery items. From fresh pastries to artisan breads, keep everything organized in one place."
tag="Bakery Management"
background={{ variant: "aurora" }}
background={{ variant: "canvas-reveal" }}
imageSrc="http://img.b2bpic.net/free-photo/laptop-other-objects-ready-father-s-day_23-2147632063.jpg"
imageAlt="BakeHub Dashboard"
buttons={[
@@ -86,13 +86,13 @@ export default function LandingPage() {
features={[
{
id: 1,
title: "Inventory Management", description: "Track all your bakery items in real-time. Monitor stock levels, expiration dates, and quantities with ease.", phoneOne: { imageSrc: "http://img.b2bpic.net/free-vector/banking-app-interface-concept_23-2148592792.jpg?_wi=1" },
phoneTwo: { imageSrc: "http://img.b2bpic.net/free-photo/business-person-looking-finance-graphs_23-2150461356.jpg?_wi=1" }
title: "Inventory Management", description: "Track all your bakery items in real-time. Monitor stock levels, expiration dates, and quantities with ease.", phoneOne: { imageSrc: "http://img.b2bpic.net/free-vector/banking-app-interface-concept_23-2148592792.jpg" },
phoneTwo: { imageSrc: "http://img.b2bpic.net/free-photo/business-person-looking-finance-graphs_23-2150461356.jpg" }
},
{
id: 2,
title: "Sales Analytics", description: "Visualize your sales performance with detailed charts and metrics. Understand customer preferences and optimize your offerings.", phoneOne: { imageSrc: "http://img.b2bpic.net/free-photo/business-person-looking-finance-graphs_23-2150461356.jpg?_wi=2" },
phoneTwo: { imageSrc: "http://img.b2bpic.net/free-vector/banking-app-interface-concept_23-2148592792.jpg?_wi=2" }
title: "Sales Analytics", description: "Visualize your sales performance with detailed charts and metrics. Understand customer preferences and optimize your offerings.", phoneOne: { imageSrc: "http://img.b2bpic.net/free-photo/business-person-looking-finance-graphs_23-2150461356.jpg" },
phoneTwo: { imageSrc: "http://img.b2bpic.net/free-vector/banking-app-interface-concept_23-2148592792.jpg" }
}
]}
showStepNumbers={true}

View File

@@ -1,51 +1,46 @@
"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;
fontFamily?: string;
fontWeight?: number | string;
fill?: string;
textAnchor?: 'start' | 'middle' | 'end';
dominantBaseline?: 'auto' | 'text-bottom' | 'alphabetic' | 'ideographic' | 'middle' | 'central' | 'mathematical' | 'hanging';
}
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 = 24,
fontFamily = 'sans-serif',
fontWeight = 'bold',
fill = 'currentColor',
textAnchor = 'middle',
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}`}
xmlns="http://www.w3.org/2000/svg"
className={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={`${text.length * fontSize * 0.3}`}
y={`${fontSize * 0.75}`}
fontSize={fontSize}
fontFamily={fontFamily}
fontWeight={fontWeight}
fill={fill}
textAnchor={textAnchor}
dominantBaseline={dominantBaseline}
>
{logoText}
{text}
</text>
</svg>
);
});
};
SvgTextLogo.displayName = "SvgTextLogo";
export default SvgTextLogo;
export default SvgTextLogo;