Merge version_1 into main #2

Merged
bender merged 2 commits from version_1 into main 2026-03-12 07:10:19 +00:00
2 changed files with 42 additions and 44 deletions

View File

@@ -18,7 +18,7 @@ export default function LandingPage() {
borderRadius="soft"
contentWidth="smallMedium"
sizing="medium"
background="noise"
background="circleGradient"
cardStyle="outline"
primaryButtonStyle="double-inset"
secondaryButtonStyle="layered"
@@ -43,13 +43,13 @@ export default function LandingPage() {
<HeroBillboardRotatedCarousel
title="Capturing Moments That Matter"
description="Professional photography and videography for weddings, events, and brands. See our latest work and let's create something beautiful together."
background={{ variant: "noise" }}
background={{ variant: "animated-grid" }}
buttons={[{ text: "View Portfolio", href: "#portfolio" }]}
buttonAnimation="slide-up"
carouselItems={[
{ id: "1", imageSrc: "http://img.b2bpic.net/free-photo/young-caucasian-family-with-one-child-spend-lot-time-together-have-fun_132075-10441.jpg?_wi=1", imageAlt: "Wedding couple portrait" },
{ id: "2", imageSrc: "http://img.b2bpic.net/free-photo/man-filming-with-professional-camera-new-movie_23-2149066398.jpg?_wi=1", imageAlt: "Corporate event photography" },
{ id: "3", imageSrc: "http://img.b2bpic.net/free-photo/dry-thistle-burdock-reeds-common-bulrush-vase-isolated-white-wall-background_8353-8483.jpg?_wi=1", imageAlt: "Brand commercial photography" },
{ id: "1", imageSrc: "http://img.b2bpic.net/free-photo/young-caucasian-family-with-one-child-spend-lot-time-together-have-fun_132075-10441.jpg", imageAlt: "Wedding couple portrait" },
{ id: "2", imageSrc: "http://img.b2bpic.net/free-photo/man-filming-with-professional-camera-new-movie_23-2149066398.jpg", imageAlt: "Corporate event photography" },
{ id: "3", imageSrc: "http://img.b2bpic.net/free-photo/dry-thistle-burdock-reeds-common-bulrush-vase-isolated-white-wall-background_8353-8483.jpg", imageAlt: "Brand commercial photography" },
{ id: "4", imageSrc: "http://img.b2bpic.net/free-photo/medium-shot-woman-with-pink-flowers_23-2149708068.jpg", imageAlt: "Lifestyle photography" },
{ id: "5", imageSrc: "http://img.b2bpic.net/free-photo/close-up-interviewee-with-microphone-taking-statements_23-2149037880.jpg", imageAlt: "Videography production" },
{ id: "6", imageSrc: "http://img.b2bpic.net/free-photo/modern-newlyweds-kissing-park_1153-906.jpg", imageAlt: "Wedding videography" }
@@ -72,15 +72,15 @@ export default function LandingPage() {
products={[
{
id: "wedding-series", brand: "Wedding Collections", name: "Romantic Celebrations", price: "Premium", rating: 5,
reviewCount: "48", imageSrc: "http://img.b2bpic.net/free-photo/young-caucasian-family-with-one-child-spend-lot-time-together-have-fun_132075-10441.jpg?_wi=2", imageAlt: "Wedding photography collection"
reviewCount: "48", imageSrc: "http://img.b2bpic.net/free-photo/young-caucasian-family-with-one-child-spend-lot-time-together-have-fun_132075-10441.jpg", imageAlt: "Wedding photography collection"
},
{
id: "event-series", brand: "Event Coverage", name: "Corporate & Social Events", price: "Premium", rating: 5,
reviewCount: "36", imageSrc: "http://img.b2bpic.net/free-photo/man-filming-with-professional-camera-new-movie_23-2149066398.jpg?_wi=2", imageAlt: "Event photography collection"
reviewCount: "36", imageSrc: "http://img.b2bpic.net/free-photo/man-filming-with-professional-camera-new-movie_23-2149066398.jpg", imageAlt: "Event photography collection"
},
{
id: "commercial-series", brand: "Commercial Work", name: "Brand & Product Photography", price: "Premium", rating: 5,
reviewCount: "28", imageSrc: "http://img.b2bpic.net/free-photo/dry-thistle-burdock-reeds-common-bulrush-vase-isolated-white-wall-background_8353-8483.jpg?_wi=2", imageAlt: "Commercial photography collection"
reviewCount: "28", imageSrc: "http://img.b2bpic.net/free-photo/dry-thistle-burdock-reeds-common-bulrush-vase-isolated-white-wall-background_8353-8483.jpg", imageAlt: "Commercial photography collection"
}
]}
buttons={[{ text: "Browse Full Portfolio", href: "#" }]}

View File

@@ -1,51 +1,49 @@
"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;
fill?: string;
letterSpacing?: number;
}
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 = 32,
fontFamily = 'Arial, sans-serif',
fontWeight = 'bold',
fill = '#000000',
letterSpacing = 0,
}) => {
const textWidth = text.length * (fontSize * 0.6);
const viewBoxWidth = textWidth + 20;
const viewBoxHeight = 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 ${viewBoxWidth} ${viewBoxHeight}`}
xmlns="http://www.w3.org/2000/svg"
className={className}
preserveAspectRatio="xMidYMid meet"
>
<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="10"
y={fontSize + 5}
fontSize={fontSize}
fontFamily={fontFamily}
fontWeight={fontWeight}
fill={fill}
letterSpacing={letterSpacing}
dominantBaseline="auto"
>
{logoText}
{text}
</text>
</svg>
);
});
};
SvgTextLogo.displayName = "SvgTextLogo";
export default SvgTextLogo;
export default SvgTextLogo;