Merge version_1 into main #2
@@ -50,18 +50,19 @@ export default function LandingPage() {
|
||||
imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=e47byr", imageAlt: "Kayseri Hamam365 Lüks Merkezi"
|
||||
},
|
||||
{
|
||||
imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=hhbh5x&_wi=1", imageAlt: "Geleneksel Hammam Bölümü"
|
||||
imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=hhbh5x", imageAlt: "Geleneksel Hammam Bölümü"
|
||||
},
|
||||
{
|
||||
imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=8y9zxo&_wi=1", imageAlt: "Profesyonel Masaj Terapisi"
|
||||
imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=8y9zxo", imageAlt: "Profesyonel Masaj Terapisi"
|
||||
},
|
||||
{
|
||||
imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=sf0jy2&_wi=1", imageAlt: "Termal Su Özellikleri"
|
||||
imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=sf0jy2", imageAlt: "Termal Su Özellikleri"
|
||||
},
|
||||
{
|
||||
imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=8snbkv&_wi=1", imageAlt: "VIP Rahatlama Alanı"
|
||||
imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=8snbkv", imageAlt: "VIP Rahatlama Alanı"
|
||||
}
|
||||
]}
|
||||
mediaAnimation="slide-up"
|
||||
buttons={[
|
||||
{ text: "Şimdi Rezervasyon Yapın", href: "contact" },
|
||||
{ text: "Hizmetleri Keşfet", href: "services" }
|
||||
@@ -77,11 +78,11 @@ export default function LandingPage() {
|
||||
features={[
|
||||
{
|
||||
id: "hammam", title: "Geleneksel Hammam", author: "Uzman Teknisyenler", description: "Asırlar boyu geleneğe dayanan Türk hammam deneyimi. Sıcak taş, arındırma ve masaj kombinasyonu ile derinlemesine detoks ve yenileme.", tags: ["Detoks", "Geleneksel", "Yaşlı"],
|
||||
imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=hhbh5x&_wi=2", imageAlt: "Geleneksel Hammam"
|
||||
imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=hhbh5x", imageAlt: "Geleneksel Hammam"
|
||||
},
|
||||
{
|
||||
id: "massage", title: "Terapi Masajlar", author: "Sertifikalı Terapist", description: "Derin doku masajından aromaterapi masajına kadar çeşitli masaj stilleri. Kas gerilimini rahatlatın ve stres yönetimi yapın.", tags: ["Rahatlama", "Terapi", "Modern"],
|
||||
imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=8y9zxo&_wi=2", imageAlt: "Profesyonel Masaj"
|
||||
imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=8y9zxo", imageAlt: "Profesyonel Masaj"
|
||||
},
|
||||
{
|
||||
id: "facial", title: "Lüks Cilt Bakımı", author: "Estetisyen Uzman", description: "Premium ürünler kullanılarak yapılan doğal cilt bakımı. Yüz, boyun ve dekolte bölgesi için özel tasarlanmış tedavi.", tags: ["Güzellik", "Cilt", "Bozucu"],
|
||||
@@ -102,7 +103,7 @@ export default function LandingPage() {
|
||||
features={[
|
||||
{
|
||||
id: "water-feature", title: "Termal Su Özellikleri", author: "Akaryakıt Mühendisliği", description: "Doğal mineralli termal su kaynağı, cilt ve sağlık için ideal. 5 yıldızlı spa standartlarına uygun filtrasyonlu sistem.", tags: ["Tabii", "Sağlık", "Lüks"],
|
||||
imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=sf0jy2&_wi=2", imageAlt: "Termal Su Sistemi"
|
||||
imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=sf0jy2", imageAlt: "Termal Su Sistemi"
|
||||
},
|
||||
{
|
||||
id: "sauna", title: "Kuru & Islak Sauna", author: "İç Mimarlık", description: "Finlandiya ustalarınca tasarlanmış sauna odaları. Vücut metabolizmasını hızlandıran, toksinleri uzaklaştıran ortam.", tags: ["Detoks", "Teknoloji", "Konfor"],
|
||||
@@ -110,7 +111,7 @@ export default function LandingPage() {
|
||||
},
|
||||
{
|
||||
id: "relaxation", title: "VIP Rahatlama Alanları", author: "Dekoratör", description: "Hususi misafirler için özel tasarlanmış rahatlama odalı. Sessiz atmosferde yenileme ve meditasyon alanları.", tags: ["Konfor", "Özel", "Sükut"],
|
||||
imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=8snbkv&_wi=2", imageAlt: "VIP Rahatlama Alanı"
|
||||
imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=8snbkv", imageAlt: "VIP Rahatlama Alanı"
|
||||
}
|
||||
]}
|
||||
animationType="slide-up"
|
||||
|
||||
@@ -1,51 +1,43 @@
|
||||
"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;
|
||||
fontSize?: number;
|
||||
fontFamily?: string;
|
||||
fontWeight?: string | number;
|
||||
letterSpacing?: number;
|
||||
}
|
||||
|
||||
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,
|
||||
className = '',
|
||||
fontSize = 32,
|
||||
fontFamily = 'system-ui, -apple-system, sans-serif',
|
||||
fontWeight = 600,
|
||||
letterSpacing = 0,
|
||||
}) => {
|
||||
return (
|
||||
<svg
|
||||
ref={svgRef}
|
||||
viewBox={viewBox}
|
||||
className={cls("w-full", className)}
|
||||
style={{ aspectRatio: aspectRatio }}
|
||||
preserveAspectRatio="none"
|
||||
role="img"
|
||||
aria-label={`${logoText} logo`}
|
||||
className={className}
|
||||
viewBox={`0 0 ${text.length * fontSize * 0.6} ${fontSize * 1.5}`}
|
||||
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"
|
||||
}}
|
||||
y="50%"
|
||||
dominantBaseline="middle"
|
||||
textAnchor="start"
|
||||
fontSize={fontSize}
|
||||
fontFamily={fontFamily}
|
||||
fontWeight={fontWeight}
|
||||
letterSpacing={letterSpacing}
|
||||
fill="currentColor"
|
||||
>
|
||||
{logoText}
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
};
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
|
||||
export default SvgTextLogo;
|
||||
export default SvgTextLogo;
|
||||
Reference in New Issue
Block a user