Merge version_1 into main #2
@@ -94,13 +94,13 @@ export default function LandingPage() {
|
||||
useInvertedBackground={false}
|
||||
products={[
|
||||
{
|
||||
id: "1", name: "Deluxe Room", price: "From €120/night", imageSrc: "http://img.b2bpic.net/free-photo/suspended-ceiling-with-halogen-spots-lamps-drywall-construction-room_632498-1082.jpg?_wi=1", imageAlt: "Deluxe room with queen bed and modern furnishings"
|
||||
id: "1", name: "Deluxe Room", price: "From €120/night", imageSrc: "http://img.b2bpic.net/free-photo/suspended-ceiling-with-halogen-spots-lamps-drywall-construction-room_632498-1082.jpg", imageAlt: "Deluxe room with queen bed and modern furnishings"
|
||||
},
|
||||
{
|
||||
id: "2", name: "Standard Room", price: "From €85/night", imageSrc: "http://img.b2bpic.net/free-photo/grandmother-happy-spend-time-with-family_23-2148597183.jpg", imageAlt: "Standard room with comfortable bed and contemporary design"
|
||||
},
|
||||
{
|
||||
id: "3", name: "Suite", price: "From €180/night", imageSrc: "http://img.b2bpic.net/free-photo/suspended-ceiling-with-halogen-spots-lamps-drywall-construction-room_632498-1082.jpg?_wi=2", imageAlt: "Spacious suite with separate living area"
|
||||
id: "3", name: "Suite", price: "From €180/night", imageSrc: "http://img.b2bpic.net/free-photo/suspended-ceiling-with-halogen-spots-lamps-drywall-construction-room_632498-1082.jpg", imageAlt: "Spacious suite with separate living area"
|
||||
}
|
||||
]}
|
||||
gridVariant="three-columns-all-equal-width"
|
||||
@@ -117,7 +117,6 @@ export default function LandingPage() {
|
||||
title="Amenities Designed for Every Guest"
|
||||
description="From fast WiFi to gourmet breakfast, every detail supports your comfort and convenience."
|
||||
tag="Premium Services"
|
||||
textboxLayout="default"
|
||||
useInvertedBackground={false}
|
||||
accordionItems={[
|
||||
{
|
||||
|
||||
@@ -1,51 +1,35 @@
|
||||
"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;
|
||||
textClassName?: string;
|
||||
dominantBaseline?: 'auto' | 'baseline' | 'middle' | 'hanging' | 'math' | 'central';
|
||||
}
|
||||
|
||||
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 = '',
|
||||
textClassName = '',
|
||||
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 200 200"
|
||||
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={dominantBaseline}
|
||||
className={textClassName}
|
||||
>
|
||||
{logoText}
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
};
|
||||
|
||||
export default SvgTextLogo;
|
||||
|
||||
Reference in New Issue
Block a user