Merge version_1 into main #1
@@ -19,7 +19,7 @@ export default function LandingPage() {
|
||||
borderRadius="pill"
|
||||
contentWidth="mediumLarge"
|
||||
sizing="large"
|
||||
background="grid"
|
||||
background="circleGradient"
|
||||
cardStyle="subtle-shadow"
|
||||
primaryButtonStyle="shadow"
|
||||
secondaryButtonStyle="radial-glow"
|
||||
@@ -46,7 +46,7 @@ export default function LandingPage() {
|
||||
tag="Spécialiste Régional"
|
||||
tagIcon={Zap}
|
||||
tagAnimation="slide-up"
|
||||
background={{ variant: "grid" }}
|
||||
background={{ variant: "animated-grid" }}
|
||||
testimonials={[
|
||||
{
|
||||
name: "Marie Dupont", handle: "Directrice, Cabinet Médical", testimonial:
|
||||
@@ -101,16 +101,13 @@ export default function LandingPage() {
|
||||
useInvertedBackground={false}
|
||||
products={[
|
||||
{
|
||||
id: "1", brand: "iNKCO Pro", name: "Photocopieur Multifonction XL2000", price: "2 490 €", rating: 5,
|
||||
reviewCount: "48", imageSrc:
|
||||
id: "1", brand: "iNKCO Pro", name: "Photocopieur Multifonction XL2000", price: "2 490 €", rating: 5, reviewCount: "48", imageSrc:
|
||||
"http://img.b2bpic.net/free-photo/smiling-asian-business-woman-using-copier-machine_1262-2308.jpg", imageAlt: "professional multifunction copier machine"},
|
||||
{
|
||||
id: "2", brand: "iNKCO Pro", name: "Imprimante Laser Couleur PRO", price: "1 290 €", rating: 5,
|
||||
reviewCount: "35", imageSrc:
|
||||
id: "2", brand: "iNKCO Pro", name: "Imprimante Laser Couleur PRO", price: "1 290 €", rating: 5, reviewCount: "35", imageSrc:
|
||||
"http://img.b2bpic.net/free-photo/dishwasher-door-half-open-close-detail-macro-view_169016-70928.jpg", imageAlt: "professional color laser printer"},
|
||||
{
|
||||
id: "3", brand: "iNKCO Pro", name: "Scanner Professionnel haute Résolution", price: "890 €", rating: 5,
|
||||
reviewCount: "28", imageSrc:
|
||||
id: "3", brand: "iNKCO Pro", name: "Scanner Professionnel haute Résolution", price: "890 €", rating: 5, reviewCount: "28", imageSrc:
|
||||
"http://img.b2bpic.net/free-photo/women-work-office-using-printer_23-2149457013.jpg", imageAlt: "professional office document scanner"},
|
||||
]}
|
||||
/>
|
||||
@@ -194,7 +191,7 @@ export default function LandingPage() {
|
||||
<ContactText
|
||||
text="Prêt à optimiser votre environnement bureautique? Contactez notre équipe dès aujourd'hui pour une consultation gratuite et personnalisée."
|
||||
animationType="entrance-slide"
|
||||
background={{ variant: "grid" }}
|
||||
background={{ variant: "animated-grid" }}
|
||||
useInvertedBackground={false}
|
||||
buttons={[
|
||||
{ text: "Demander un Audit Gratuit", href: "contact" },
|
||||
|
||||
@@ -1,51 +1,40 @@
|
||||
"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";
|
||||
className?: string;
|
||||
interface SvgTextLogoProps extends SVGProps<SVGSVGElement> {
|
||||
text: string;
|
||||
fontSize?: number;
|
||||
fontFamily?: string;
|
||||
fill?: 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,
|
||||
fontSize = 24,
|
||||
fontFamily = 'Arial, sans-serif',
|
||||
fill = 'currentColor',
|
||||
...props
|
||||
}) => {
|
||||
return (
|
||||
<svg
|
||||
ref={svgRef}
|
||||
viewBox={viewBox}
|
||||
className={cls("w-full", className)}
|
||||
style={{ aspectRatio: aspectRatio }}
|
||||
preserveAspectRatio="none"
|
||||
role="img"
|
||||
aria-label={`${logoText} logo`}
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
viewBox="0 0 200 50"
|
||||
width="200"
|
||||
height="50"
|
||||
{...props}
|
||||
>
|
||||
<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}
|
||||
fontFamily={fontFamily}
|
||||
fill={fill}
|
||||
textAnchor="middle"
|
||||
dominantBaseline="hanging"
|
||||
>
|
||||
{logoText}
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
};
|
||||
|
||||
export default SvgTextLogo;
|
||||
|
||||
Reference in New Issue
Block a user