Merge version_1 into main #2
@@ -19,7 +19,7 @@ export default function LandingPage() {
|
||||
borderRadius="soft"
|
||||
contentWidth="medium"
|
||||
sizing="mediumSizeLargeTitles"
|
||||
background="floatingGradient"
|
||||
background="circleGradient"
|
||||
cardStyle="layered-gradient"
|
||||
primaryButtonStyle="double-inset"
|
||||
secondaryButtonStyle="radial-glow"
|
||||
@@ -50,18 +50,18 @@ export default function LandingPage() {
|
||||
{ text: "View Services", href: "services" }
|
||||
]}
|
||||
buttonAnimation="slide-up"
|
||||
background={{ variant: "floatingGradient" }}
|
||||
background={{ variant: "glowing-orb" }}
|
||||
leftCarouselItems={[
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/beautiful-young-woman-summer-dress_343629-89.jpg?_wi=1", imageAlt: "Professional hair styling at Sage Salon" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/spa-massage-concept-with-relaxed-woman_23-2147821145.jpg?_wi=1", imageAlt: "Luxury facial treatment service" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/side-view-client-worker-wearing-masks-nail-salon_23-2148694577.jpg?_wi=1", imageAlt: "Premium nail care service" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/woman-applying-make-up-model_23-2148328747.jpg?_wi=1", imageAlt: "Professional makeup application" }
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/beautiful-young-woman-summer-dress_343629-89.jpg", imageAlt: "Professional hair styling at Sage Salon" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/spa-massage-concept-with-relaxed-woman_23-2147821145.jpg", imageAlt: "Luxury facial treatment service" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/side-view-client-worker-wearing-masks-nail-salon_23-2148694577.jpg", imageAlt: "Premium nail care service" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/woman-applying-make-up-model_23-2148328747.jpg", imageAlt: "Professional makeup application" }
|
||||
]}
|
||||
rightCarouselItems={[
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/side-view-client-worker-wearing-masks-nail-salon_23-2148694577.jpg?_wi=2", imageAlt: "Upscale nail salon service" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/woman-applying-make-up-model_23-2148328747.jpg?_wi=2", imageAlt: "Beauty makeup artistry" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/beautiful-young-woman-summer-dress_343629-89.jpg?_wi=2", imageAlt: "Professional hair treatment" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/spa-massage-concept-with-relaxed-woman_23-2147821145.jpg?_wi=2", imageAlt: "Skincare and facial expertise" }
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/side-view-client-worker-wearing-masks-nail-salon_23-2148694577.jpg", imageAlt: "Upscale nail salon service" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/woman-applying-make-up-model_23-2148328747.jpg", imageAlt: "Beauty makeup artistry" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/beautiful-young-woman-summer-dress_343629-89.jpg", imageAlt: "Professional hair treatment" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/spa-massage-concept-with-relaxed-woman_23-2147821145.jpg", imageAlt: "Skincare and facial expertise" }
|
||||
]}
|
||||
carouselPosition="right"
|
||||
/>
|
||||
@@ -180,7 +180,7 @@ export default function LandingPage() {
|
||||
tagAnimation="slide-up"
|
||||
title="Ready to Book Your Appointment?"
|
||||
description="Join our community of beauty-conscious clients and experience the Sage Salon Suites difference. Reserve your private suite today for personalized, luxury beauty services."
|
||||
background={{ variant: "floatingGradient" }}
|
||||
background={{ variant: "radial-gradient" }}
|
||||
useInvertedBackground={false}
|
||||
inputPlaceholder="Enter your email address"
|
||||
buttonText="Book Now"
|
||||
|
||||
@@ -1,51 +1,41 @@
|
||||
"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;
|
||||
fontSize?: number;
|
||||
fontFamily?: string;
|
||||
fontWeight?: 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);
|
||||
|
||||
export const SvgTextLogo: React.FC<SvgTextLogoProps> = ({
|
||||
text,
|
||||
fontSize = 32,
|
||||
fontFamily = 'Arial, sans-serif',
|
||||
fontWeight = 'bold',
|
||||
fill = 'currentColor',
|
||||
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 * 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"
|
||||
}}
|
||||
y={fontSize}
|
||||
fontSize={fontSize}
|
||||
fontFamily={fontFamily}
|
||||
fontWeight={fontWeight}
|
||||
fill={fill}
|
||||
dominantBaseline="auto"
|
||||
>
|
||||
{logoText}
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
};
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
|
||||
export default SvgTextLogo;
|
||||
export default SvgTextLogo;
|
||||
Reference in New Issue
Block a user