Merge version_1 into main #2

Merged
bender merged 2 commits from version_1 into main 2026-03-12 17:03:53 +00:00
2 changed files with 29 additions and 39 deletions

View File

@@ -100,10 +100,9 @@ export default function LandingPage() {
tag="Services"
title="Comprehensive Design & Print Solutions"
description="We offer a complete range of services tailored to elevate your brand and bring your vision to life through strategic design and quality printing."
textboxLayout="default"
useInvertedBackground={true}
mediaPosition="left"
imageSrc="http://img.b2bpic.net/free-vector/flat-design-business-stationery-template_23-2151115590.jpg?_wi=1"
imageSrc="http://img.b2bpic.net/free-vector/flat-design-business-stationery-template_23-2151115590.jpg"
imageAlt="Professional branding and design work examples"
mediaAnimation="blur-reveal"
accordionItems={[
@@ -145,7 +144,7 @@ export default function LandingPage() {
products={[
{
id: "1", brand: "Tech Startup", name: "Complete Branding System", price: "Brand Identity", rating: 5,
reviewCount: "15+ Projects", imageSrc: "http://img.b2bpic.net/free-vector/flat-design-business-stationery-template_23-2151115590.jpg?_wi=2", imageAlt: "Professional branding portfolio work"
reviewCount: "15+ Projects", imageSrc: "http://img.b2bpic.net/free-vector/flat-design-business-stationery-template_23-2151115590.jpg", imageAlt: "Professional branding portfolio work"
},
{
id: "2", brand: "Restaurant Group", name: "Print Materials & Signage", price: "Print Services", rating: 5,

View File

@@ -1,51 +1,42 @@
"use client";
import { memo } from "react";
import useSvgTextLogo from "./useSvgTextLogo";
import { cls } from "@/lib/utils";
import React, { CSSProperties } from 'react';
interface SvgTextLogoProps {
logoText: string;
adjustHeightFactor?: number;
verticalAlign?: "top" | "center";
text: string;
fontSize?: number;
fontWeight?: 'bold' | 'normal' | 'semibold';
fill?: string;
className?: string;
style?: CSSProperties;
}
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,
fontSize = 48,
fontWeight = 'bold',
fill = 'currentColor',
className = '',
style = {},
}) => {
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.2}`}
className={className}
style={style}
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"
}}
y={fontSize}
fontSize={fontSize}
fontWeight={fontWeight}
fill={fill}
dominantBaseline="middle"
textAnchor="start"
>
{logoText}
{text}
</text>
</svg>
);
});
};
SvgTextLogo.displayName = "SvgTextLogo";
export default SvgTextLogo;
export default SvgTextLogo;