Merge version_1 into main #2
@@ -19,7 +19,7 @@ export default function LandingPage() {
|
||||
borderRadius="soft"
|
||||
contentWidth="medium"
|
||||
sizing="mediumLargeSizeLargeTitles"
|
||||
background="grid"
|
||||
background="circleGradient"
|
||||
cardStyle="layered-gradient"
|
||||
primaryButtonStyle="shadow"
|
||||
secondaryButtonStyle="solid"
|
||||
@@ -46,7 +46,7 @@ export default function LandingPage() {
|
||||
description="L'expertise mécanique au service de votre moto. Entretien, préparation et réparation de motos sportives et roadsters par un spécialiste passionné."
|
||||
tag="Garage Moto Professionnel"
|
||||
tagIcon={Wrench}
|
||||
background={{ variant: "grid" }}
|
||||
background={{ variant: "plain" }}
|
||||
imageSrc="http://img.b2bpic.net/free-photo/brutal-tattooed-bearded-mechanic-specialist-repairs-car-engine-which-is-raised-hydraulic-lift-garage-service-station_613910-19595.jpg"
|
||||
imageAlt="Moto sportive en atelier haute performance"
|
||||
imagePosition="right"
|
||||
@@ -58,7 +58,7 @@ export default function LandingPage() {
|
||||
testimonials={[
|
||||
{
|
||||
name: "Google Reviews", handle: "5.0 / 5 (20 avis)", testimonial: "Service impeccable et expertise incontestable. Excellent rapport qualité-prix.", rating: 5,
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/full-shot-man-riding-motorbike_23-2150819760.jpg?_wi=1"
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/full-shot-man-riding-motorbike_23-2150819760.jpg"
|
||||
}
|
||||
]}
|
||||
useInvertedBackground={false}
|
||||
@@ -133,7 +133,7 @@ export default function LandingPage() {
|
||||
animationType="slide-up"
|
||||
testimonials={[
|
||||
{
|
||||
id: "1", name: "Olivier M.", handle: "Motard Passionné", testimonial: "Un niveau incroyable en mécanique, honnête et sympa. Je recommande encore et encore ! Service rapide et travail professionnel.", imageSrc: "http://img.b2bpic.net/free-photo/full-shot-man-riding-motorbike_23-2150819760.jpg?_wi=2", imageAlt: "Olivier M."
|
||||
id: "1", name: "Olivier M.", handle: "Motard Passionné", testimonial: "Un niveau incroyable en mécanique, honnête et sympa. Je recommande encore et encore ! Service rapide et travail professionnel.", imageSrc: "http://img.b2bpic.net/free-photo/full-shot-man-riding-motorbike_23-2150819760.jpg", imageAlt: "Olivier M."
|
||||
},
|
||||
{
|
||||
id: "2", name: "Eric D.", handle: "Propriétaire Kawasaki", testimonial: "Réparations rapides, accueil chaleureux et travail très professionnel. Engine Meca Racing c'est de la qualité garantie.", imageSrc: "http://img.b2bpic.net/free-photo/young-farmer-taking-care-his-business_329181-15929.jpg", imageAlt: "Eric D."
|
||||
|
||||
@@ -1,51 +1,30 @@
|
||||
"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;
|
||||
}
|
||||
|
||||
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 = '' }) => {
|
||||
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 * 60} 120`}
|
||||
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%"
|
||||
textAnchor="middle"
|
||||
dominantBaseline="central"
|
||||
fontSize="64"
|
||||
fontWeight="bold"
|
||||
fill="currentColor"
|
||||
>
|
||||
{logoText}
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
};
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
|
||||
export default SvgTextLogo;
|
||||
export default SvgTextLogo;
|
||||
Reference in New Issue
Block a user