Merge version_1 into main #1

Merged
bender merged 2 commits from version_1 into main 2026-03-12 00:37:54 +00:00
2 changed files with 28 additions and 37 deletions

View File

@@ -19,7 +19,7 @@ export default function LandingPage() {
borderRadius="rounded"
contentWidth="medium"
sizing="largeSmall"
background="floatingGradient"
background="circleGradient"
cardStyle="soft-shadow"
primaryButtonStyle="flat"
secondaryButtonStyle="radial-glow"
@@ -44,7 +44,7 @@ export default function LandingPage() {
title="BJK Dojo Ninjutsu & Sparring Training in Haifa"
description="Traditional Ninja Techniques. Real Combat Skills. Strong Community."
tag="Martial Arts Excellence"
background={{ variant: "floatingGradient" }}
background={{ variant: "radial-gradient" }}
mediaItems={[
{
imageSrc: "http://img.b2bpic.net/free-photo/taekwondo-training-taking-place-outdoors-nature-with-two-people_23-2149908486.jpg", imageAlt: "Ninja warrior training in traditional dojo"
@@ -73,6 +73,7 @@ export default function LandingPage() {
{ icon: Zap, label: "Training Programs", value: "2 Core" },
{ icon: Shield, label: "Self-Defense Focus", value: "100%" }
]}
metricsAnimation="blur-reveal"
useInvertedBackground={false}
/>
</div>

View File

@@ -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;
className?: string;
fontSize?: number;
fontWeight?: number | string;
fill?: 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,
className = "", fontSize = 24,
fontWeight = "bold", fill = "currentColor"}) => {
const textLength = text.length;
const charWidth = fontSize * 0.6;
const totalWidth = charWidth * textLength + 40;
const height = fontSize + 20;
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 ${totalWidth} ${height}`}
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"
}}
x={totalWidth / 2}
y={height / 2}
fontSize={fontSize}
fontWeight={fontWeight}
fill={fill}
textAnchor="middle"
dominantBaseline="central"
>
{logoText}
{text}
</text>
</svg>
);
});
SvgTextLogo.displayName = "SvgTextLogo";
};
export default SvgTextLogo;