Merge version_1 into main #2
@@ -20,7 +20,7 @@ export default function LandingPage() {
|
||||
borderRadius="rounded"
|
||||
contentWidth="small"
|
||||
sizing="largeSmallSizeMediumTitles"
|
||||
background="circleGradient"
|
||||
background="aurora"
|
||||
cardStyle="soft-shadow"
|
||||
primaryButtonStyle="shadow"
|
||||
secondaryButtonStyle="solid"
|
||||
@@ -45,16 +45,16 @@ export default function LandingPage() {
|
||||
description="Experience elite boxing training at Indio's Boxing Gym in Allentown. Professional instruction, state-of-the-art facilities, and a community built on discipline and determination."
|
||||
tag="Boxing Gym"
|
||||
tagIcon={Zap}
|
||||
background={{ variant: "circleGradient" }}
|
||||
background={{ variant: "plain" }}
|
||||
mediaItems={[
|
||||
{
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/pair-gloves-boxing-sport_23-2150367649.jpg?_wi=1", imageAlt: "Indio's Boxing Gym training facility with professional equipment"
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/pair-gloves-boxing-sport_23-2150367649.jpg", imageAlt: "Indio's Boxing Gym training facility with professional equipment"
|
||||
},
|
||||
{
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/women-posing-together-boxing-training-center_23-2148416661.jpg?_wi=1", imageAlt: "Boxing class training session with instructor and members"
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/women-posing-together-boxing-training-center_23-2148416661.jpg", imageAlt: "Boxing class training session with instructor and members"
|
||||
},
|
||||
{
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/young-beautiful-sportive-girl-training-boxing-seaside_176420-42243.jpg?_wi=1", imageAlt: "Professional boxing gym with heavy bags and training equipment"
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/young-beautiful-sportive-girl-training-boxing-seaside_176420-42243.jpg", imageAlt: "Professional boxing gym with heavy bags and training equipment"
|
||||
}
|
||||
]}
|
||||
buttons={[
|
||||
@@ -125,19 +125,19 @@ export default function LandingPage() {
|
||||
products={[
|
||||
{
|
||||
id: "beginner-boxing", brand: "Indio's Boxing", name: "Beginner Boxing Fundamentals", price: "Starting at $99/month", rating: 5,
|
||||
reviewCount: "7 ratings", imageSrc: "http://img.b2bpic.net/free-photo/women-posing-together-boxing-training-center_23-2148416661.jpg?_wi=2", imageAlt: "Beginner boxing class at Indio's"
|
||||
reviewCount: "7 ratings", imageSrc: "http://img.b2bpic.net/free-photo/women-posing-together-boxing-training-center_23-2148416661.jpg", imageAlt: "Beginner boxing class at Indio's"
|
||||
},
|
||||
{
|
||||
id: "intermediate-training", brand: "Indio's Boxing", name: "Intermediate Technique & Conditioning", price: "Starting at $129/month", rating: 5,
|
||||
reviewCount: "7 ratings", imageSrc: "http://img.b2bpic.net/free-photo/young-beautiful-sportive-girl-training-boxing-seaside_176420-42243.jpg?_wi=2", imageAlt: "Intermediate boxing training session"
|
||||
reviewCount: "7 ratings", imageSrc: "http://img.b2bpic.net/free-photo/young-beautiful-sportive-girl-training-boxing-seaside_176420-42243.jpg", imageAlt: "Intermediate boxing training session"
|
||||
},
|
||||
{
|
||||
id: "advanced-sparring", brand: "Indio's Boxing", name: "Advanced Sparring & Competition Prep", price: "Starting at $159/month", rating: 5,
|
||||
reviewCount: "7 ratings", imageSrc: "http://img.b2bpic.net/free-photo/pair-gloves-boxing-sport_23-2150367649.jpg?_wi=2", imageAlt: "Advanced boxing sparring program"
|
||||
reviewCount: "7 ratings", imageSrc: "http://img.b2bpic.net/free-photo/pair-gloves-boxing-sport_23-2150367649.jpg", imageAlt: "Advanced boxing sparring program"
|
||||
},
|
||||
{
|
||||
id: "fitness-boxing", brand: "Indio's Boxing", name: "Boxing for Fitness", price: "Starting at $89/month", rating: 5,
|
||||
reviewCount: "7 ratings", imageSrc: "http://img.b2bpic.net/free-photo/women-posing-together-boxing-training-center_23-2148416661.jpg?_wi=3", imageAlt: "Fitness boxing class"
|
||||
reviewCount: "7 ratings", imageSrc: "http://img.b2bpic.net/free-photo/women-posing-together-boxing-training-center_23-2148416661.jpg", imageAlt: "Fitness boxing class"
|
||||
}
|
||||
]}
|
||||
gridVariant="uniform-all-items-equal"
|
||||
@@ -225,7 +225,7 @@ export default function LandingPage() {
|
||||
]}
|
||||
textarea={{ name: "message", placeholder: "Tell us about your boxing goals and experience level...", rows: 5, required: false }}
|
||||
useInvertedBackground={false}
|
||||
imageSrc="http://img.b2bpic.net/free-photo/pair-gloves-boxing-sport_23-2150367649.jpg?_wi=3"
|
||||
imageSrc="http://img.b2bpic.net/free-photo/pair-gloves-boxing-sport_23-2150367649.jpg"
|
||||
imageAlt="Indio's Boxing Gym training facility"
|
||||
mediaAnimation="slide-up"
|
||||
buttonText="Get Started"
|
||||
|
||||
@@ -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;
|
||||
fill?: string;
|
||||
fontSize?: number;
|
||||
fontWeight?: number | 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 = '',
|
||||
fill = 'currentColor',
|
||||
fontSize = 32,
|
||||
fontWeight = 700,
|
||||
}) => {
|
||||
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 400 100"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
className={className}
|
||||
aria-label={text}
|
||||
>
|
||||
<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%"
|
||||
dominantBaseline="central"
|
||||
textAnchor="middle"
|
||||
fill={fill}
|
||||
fontSize={fontSize}
|
||||
fontWeight={fontWeight}
|
||||
fontFamily="system-ui, -apple-system, sans-serif"
|
||||
>
|
||||
{logoText}
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
};
|
||||
|
||||
export default SvgTextLogo;
|
||||
|
||||
Reference in New Issue
Block a user