Merge version_1 into main #1

Merged
bender merged 2 commits from version_1 into main 2026-03-12 16:20:14 +00:00
2 changed files with 31 additions and 39 deletions

View File

@@ -20,7 +20,7 @@ export default function LandingPage() {
borderRadius="soft"
contentWidth="mediumLarge"
sizing="mediumLargeSizeMediumTitles"
background="blurBottom"
background="circleGradient"
cardStyle="subtle-shadow"
primaryButtonStyle="double-inset"
secondaryButtonStyle="radial-glow"
@@ -45,7 +45,7 @@ export default function LandingPage() {
<HeroBillboard
title="Artisanal Ice Cream Crafted with Care"
description="Experience the pure indulgence of handmade ice cream. Every scoop tells a story of premium ingredients and meticulous craftsmanship."
background={{ variant: "blurBottom" }}
background={{ variant: "sparkles-gradient" }}
tag="Premium Quality"
tagIcon={Sparkles}
imageSrc="http://img.b2bpic.net/free-photo/still-life-cookies-ice-cream_23-2149637173.jpg"
@@ -138,7 +138,7 @@ export default function LandingPage() {
tagIcon={Bell}
title="Subscribe for Special Offers"
description="Get exclusive access to new flavors, seasonal specials, and premium promotions delivered to your inbox."
background={{ variant: "blurBottom" }}
background={{ variant: "sparkles-gradient" }}
useInvertedBackground={false}
inputPlaceholder="Enter your email"
buttonText="Subscribe"

View File

@@ -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;
fill?: string;
dominantBaseline?: "auto" | "text-bottom" | "alphabetic" | "ideographic" | "middle" | "central" | "mathematical" | "hanging";
}
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 = "system-ui, -apple-system, sans-serif", fontWeight = 700,
letterSpacing = 0,
fill = "currentColor", dominantBaseline = "middle"
}) => {
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.2}`}
className={className}
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"
}}
x={fontSize * 0.3}
y={fontSize * 0.6}
fontSize={fontSize}
fontFamily={fontFamily}
fontWeight={fontWeight}
letterSpacing={letterSpacing}
fill={fill}
dominantBaseline={dominantBaseline}
>
{logoText}
{text}
</text>
</svg>
);
});
SvgTextLogo.displayName = "SvgTextLogo";
};
export default SvgTextLogo;