Merge version_1 into main #2
@@ -20,7 +20,7 @@ export default function LandingPage() {
|
||||
borderRadius="soft"
|
||||
contentWidth="compact"
|
||||
sizing="largeSizeMediumTitles"
|
||||
background="aurora"
|
||||
background="circleGradient"
|
||||
cardStyle="layered-gradient"
|
||||
primaryButtonStyle="primary-glow"
|
||||
secondaryButtonStyle="layered"
|
||||
@@ -45,6 +45,7 @@ export default function LandingPage() {
|
||||
<HeroBillboardTestimonial
|
||||
title="Stay in the Heart of Berlin"
|
||||
description="A vibrant hostel experience steps from Rosenthaler Platz. Meet travelers from around the world in our social spaces, enjoy clean modern rooms, and explore Berlin's best attractions."
|
||||
background={{ variant: "glowing-orb" }}
|
||||
tag="Welcome to Circus"
|
||||
tagIcon={Sparkles}
|
||||
tagAnimation="slide-up"
|
||||
@@ -81,7 +82,7 @@ export default function LandingPage() {
|
||||
{ value: "4.5★", title: "Guest Rating" },
|
||||
{ value: "1,800+", title: "Happy Reviews" }
|
||||
]}
|
||||
imageSrc="http://img.b2bpic.net/free-photo/man-woman-working-together-animation-studio_23-2149207968.jpg?_wi=1"
|
||||
imageSrc="http://img.b2bpic.net/free-photo/man-woman-working-together-animation-studio_23-2149207968.jpg"
|
||||
imageAlt="Circus Hostel lounge area"
|
||||
mediaAnimation="slide-up"
|
||||
metricsAnimation="slide-up"
|
||||
@@ -156,7 +157,7 @@ export default function LandingPage() {
|
||||
id: "bar", value: "Nightly", title: "Bar Events", description: "Meet other travelers over drinks", imageSrc: "http://img.b2bpic.net/free-photo/close-up-man-proposing-woman_23-2149212181.jpg", imageAlt: "Circus Hostel bar social gathering"
|
||||
},
|
||||
{
|
||||
id: "lounge", value: "24/7", title: "Social Spaces", description: "Connect in our cozy common areas", imageSrc: "http://img.b2bpic.net/free-photo/man-woman-working-together-animation-studio_23-2149207968.jpg?_wi=2", imageAlt: "Comfortable hostel lounge area"
|
||||
id: "lounge", value: "24/7", title: "Social Spaces", description: "Connect in our cozy common areas", imageSrc: "http://img.b2bpic.net/free-photo/man-woman-working-together-animation-studio_23-2149207968.jpg", imageAlt: "Comfortable hostel lounge area"
|
||||
}
|
||||
]}
|
||||
animationType="slide-up"
|
||||
@@ -202,7 +203,7 @@ export default function LandingPage() {
|
||||
{ text: "Call Reception", href: "tel:+493020003939" }
|
||||
]}
|
||||
buttonAnimation="slide-up"
|
||||
background={{ variant: "aurora" }}
|
||||
background={{ variant: "plain" }}
|
||||
useInvertedBackground={false}
|
||||
/>
|
||||
</div>
|
||||
|
||||
@@ -1,51 +1,36 @@
|
||||
"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;
|
||||
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 default function SvgTextLogo({
|
||||
text,
|
||||
fontSize = 32,
|
||||
fontFamily = 'Arial, sans-serif',
|
||||
fill = '#000000',
|
||||
className = '',
|
||||
}: SvgTextLogoProps) {
|
||||
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}
|
||||
fill={fill}
|
||||
dominantBaseline="hanging"
|
||||
>
|
||||
{logoText}
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
|
||||
export default SvgTextLogo;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user