Merge version_1 into main
Merge version_1 into main
This commit was merged in pull request #2.
This commit is contained in:
@@ -20,7 +20,7 @@ export default function LandingPage() {
|
||||
borderRadius="soft"
|
||||
contentWidth="compact"
|
||||
sizing="largeSmall"
|
||||
background="floatingGradient"
|
||||
background="circleGradient"
|
||||
cardStyle="gradient-bordered"
|
||||
primaryButtonStyle="primary-glow"
|
||||
secondaryButtonStyle="radial-glow"
|
||||
@@ -45,13 +45,13 @@ export default function LandingPage() {
|
||||
<HeroLogoBillboardSplit
|
||||
logoText="Madison Ave Hotel"
|
||||
description="European boutique comfort in Bishkek's prestigious Golden Square. Spacious rooms, exceptional breakfast, and a team that treats you like family."
|
||||
background={{ variant: "floatingGradient" }}
|
||||
background={{ variant: "canvas-reveal" }}
|
||||
buttons={[
|
||||
{ text: "Book Your Stay", href: "https://booking.com" },
|
||||
{ text: "View Rooms", href: "#rooms" }
|
||||
]}
|
||||
layoutOrder="default"
|
||||
imageSrc="http://img.b2bpic.net/free-photo/beautiful-castle-interior-design_23-2151010534.jpg?_wi=1"
|
||||
imageSrc="http://img.b2bpic.net/free-photo/beautiful-castle-interior-design_23-2151010534.jpg"
|
||||
imageAlt="Cozy hotel room at Madison Ave Hotel"
|
||||
frameStyle="card"
|
||||
mediaAnimation="slide-up"
|
||||
@@ -86,7 +86,7 @@ export default function LandingPage() {
|
||||
{ title: "Delicious Breakfasts", description: "Start your day with fresh seasonal fruits, hot dishes, and made-to-order omelets prepared fresh every morning.", icon: Coffee },
|
||||
{ title: "Central Location", description: "Close to markets, restaurants, business centers, and shops—everything is within a short walk or quick taxi ride.", icon: MapPin }
|
||||
]}
|
||||
imageSrc="http://img.b2bpic.net/free-photo/side-view-black-olives-bowl-with-eggs-tomatoes-cup-tea-saucer-pan-fried-egg-plaid-cloth-wooden-surface_141793-13726.jpg?_wi=1"
|
||||
imageSrc="http://img.b2bpic.net/free-photo/side-view-black-olives-bowl-with-eggs-tomatoes-cup-tea-saucer-pan-fried-egg-plaid-cloth-wooden-surface_141793-13726.jpg"
|
||||
imageAlt="Hotel breakfast setting"
|
||||
mediaAnimation="opacity"
|
||||
imagePosition="right"
|
||||
@@ -104,22 +104,22 @@ export default function LandingPage() {
|
||||
{
|
||||
title: "Incredible Breakfast", description: "Start your day with fresh seasonal fruits, hot dishes, and made-to-order omelets. Many guests say it's the best breakfast they had in Bishkek.", icon: UtensilsCrossed,
|
||||
mediaItems: [
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/high-angle-croissant-coffee-flowers_23-2148877597.jpg?_wi=1", imageAlt: "Gourmet breakfast spread" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/side-view-black-olives-bowl-with-eggs-tomatoes-cup-tea-saucer-pan-fried-egg-plaid-cloth-wooden-surface_141793-13726.jpg?_wi=2", imageAlt: "Breakfast dining area" }
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/high-angle-croissant-coffee-flowers_23-2148877597.jpg", imageAlt: "Gourmet breakfast spread" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/side-view-black-olives-bowl-with-eggs-tomatoes-cup-tea-saucer-pan-fried-egg-plaid-cloth-wooden-surface_141793-13726.jpg", imageAlt: "Breakfast dining area" }
|
||||
]
|
||||
},
|
||||
{
|
||||
title: "Perfect Location", description: "Located in Bishkek's Golden Square, you're close to Osh Bazaar, restaurants, business centers, and shops. Everything is within walking distance.", icon: MapPin,
|
||||
mediaItems: [
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/defocused-map-with-pinpoints_23-2148232423.jpg", imageAlt: "Golden Square location map" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/beautiful-castle-interior-design_23-2151010534.jpg?_wi=2", imageAlt: "Hotel exterior views" }
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/beautiful-castle-interior-design_23-2151010534.jpg", imageAlt: "Hotel exterior views" }
|
||||
]
|
||||
},
|
||||
{
|
||||
title: "Friendly International Staff", description: "Our multilingual team speaks fluent English and Russian. From early check-in to travel help, our goal is simple: make your stay effortless.", icon: Handshake,
|
||||
mediaItems: [
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/medium-shot-transgender-wearing-shells-necklace_23-2149105401.jpg?_wi=1", imageAlt: "Professional staff member" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/beautiful-business-woman-portrait_23-2149280749.jpg?_wi=1", imageAlt: "Friendly team member" }
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/medium-shot-transgender-wearing-shells-necklace_23-2149105401.jpg", imageAlt: "Professional staff member" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/beautiful-business-woman-portrait_23-2149280749.jpg", imageAlt: "Friendly team member" }
|
||||
]
|
||||
}
|
||||
]}
|
||||
@@ -160,7 +160,7 @@ export default function LandingPage() {
|
||||
{ title: "Local Dishes", description: "Authentic Kyrgyz breakfast specialties", icon: Utensils },
|
||||
{ title: "Fresh Coffee", description: "Premium quality espresso and filter coffee", icon: Coffee }
|
||||
]}
|
||||
imageSrc="http://img.b2bpic.net/free-photo/high-angle-croissant-coffee-flowers_23-2148877597.jpg?_wi=2"
|
||||
imageSrc="http://img.b2bpic.net/free-photo/high-angle-croissant-coffee-flowers_23-2148877597.jpg"
|
||||
imageAlt="Hotel breakfast spread"
|
||||
mediaAnimation="opacity"
|
||||
imagePosition="left"
|
||||
@@ -190,11 +190,11 @@ export default function LandingPage() {
|
||||
testimonials={[
|
||||
{
|
||||
id: "1", name: "Andrey", role: "Business Traveler", company: "ZenHotels", rating: 5,
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/medium-shot-transgender-wearing-shells-necklace_23-2149105401.jpg?_wi=2", imageAlt: "Andrey's portrait"
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/medium-shot-transgender-wearing-shells-necklace_23-2149105401.jpg", imageAlt: "Andrey's portrait"
|
||||
},
|
||||
{
|
||||
id: "2", name: "Thomas H.", role: "Leisure Guest", company: "Google Reviews", rating: 5,
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/beautiful-business-woman-portrait_23-2149280749.jpg?_wi=2", imageAlt: "Thomas's portrait"
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/beautiful-business-woman-portrait_23-2149280749.jpg", imageAlt: "Thomas's portrait"
|
||||
},
|
||||
{
|
||||
id: "3", name: "Sarah Chen", role: "Travel Blogger", company: "Tripadvisor", rating: 5,
|
||||
@@ -219,7 +219,7 @@ export default function LandingPage() {
|
||||
<div id="cta" data-section="cta">
|
||||
<ContactText
|
||||
text="Ready to Experience Bishkek the Comfortable Way?"
|
||||
animationType="reveal-blur"
|
||||
animationType="entrance-slide"
|
||||
background={{ variant: "plain" }}
|
||||
useInvertedBackground={false}
|
||||
buttons={[
|
||||
|
||||
@@ -1,51 +1,64 @@
|
||||
"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;
|
||||
fontWeight?: 'light' | 'normal' | 'medium' | 'semibold' | 'bold' | 'extrabold';
|
||||
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,
|
||||
fontSize = 48,
|
||||
fontWeight = 'bold',
|
||||
className = '',
|
||||
}) => {
|
||||
const fontWeightMap = {
|
||||
light: 300,
|
||||
normal: 400,
|
||||
medium: 500,
|
||||
semibold: 600,
|
||||
bold: 700,
|
||||
extrabold: 800,
|
||||
};
|
||||
|
||||
const measureText = (textToMeasure: string): number => {
|
||||
if (typeof window === 'undefined') return textToMeasure.length * fontSize * 0.6;
|
||||
|
||||
const canvas = document.createElement('canvas');
|
||||
const ctx = canvas.getContext('2d');
|
||||
if (!ctx) return textToMeasure.length * fontSize * 0.6;
|
||||
|
||||
ctx.font = `${fontWeightMap[fontWeight]} ${fontSize}px -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif`;
|
||||
return ctx.measureText(textToMeasure).width;
|
||||
};
|
||||
|
||||
const textWidth = measureText(text);
|
||||
const svgWidth = textWidth + 40;
|
||||
const svgHeight = fontSize + 20;
|
||||
|
||||
return (
|
||||
<svg
|
||||
ref={svgRef}
|
||||
viewBox={viewBox}
|
||||
className={cls("w-full", className)}
|
||||
style={{ aspectRatio: aspectRatio }}
|
||||
preserveAspectRatio="none"
|
||||
role="img"
|
||||
aria-label={`${logoText} logo`}
|
||||
width={svgWidth}
|
||||
height={svgHeight}
|
||||
viewBox={`0 0 ${svgWidth} ${svgHeight}`}
|
||||
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={svgWidth / 2}
|
||||
y={svgHeight / 2}
|
||||
fontSize={fontSize}
|
||||
fontWeight={fontWeightMap[fontWeight]}
|
||||
textAnchor="middle"
|
||||
dominantBaseline="middle"
|
||||
fill="currentColor"
|
||||
fontFamily='-apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif'
|
||||
>
|
||||
{logoText}
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
};
|
||||
|
||||
export default SvgTextLogo;
|
||||
|
||||
Reference in New Issue
Block a user