Merge version_1 into main #1

Merged
bender merged 2 commits from version_1 into main 2026-03-12 01:40:47 +00:00
2 changed files with 25 additions and 39 deletions

View File

@@ -22,7 +22,7 @@ export default function LandingPage() {
borderRadius="soft"
contentWidth="mediumLarge"
sizing="largeSizeMediumTitles"
background="aurora"
background="circleGradient"
cardStyle="gradient-mesh"
primaryButtonStyle="flat"
secondaryButtonStyle="glass"
@@ -47,7 +47,7 @@ export default function LandingPage() {
tag="Local Neighborhood Store"
tagIcon={MapPin}
tagAnimation="slide-up"
background={{ variant: "aurora" }}
background={{ variant: "sparkles-gradient" }}
mediaItems={[
{
imageSrc: "http://img.b2bpic.net/free-photo/person-shopping-with-face-mask_23-2149565225.jpg", imageAlt: "Fresh groceries and products"

View File

@@ -1,51 +1,37 @@
"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";
className?: string;
width?: number;
height?: number;
primaryColor?: string;
secondaryColor?: 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> = ({
className = "", width = 200,
height = 50,
primaryColor = "#1a1a1a", secondaryColor = "#666666"}) => {
return (
<svg
ref={svgRef}
viewBox={viewBox}
className={cls("w-full", className)}
style={{ aspectRatio: aspectRatio }}
preserveAspectRatio="none"
role="img"
aria-label={`${logoText} logo`}
width={width}
height={height}
viewBox="0 0 200 50"
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="10"
y="35"
fontSize="28"
fontWeight="bold"
fill={primaryColor}
dominantBaseline="hanging"
>
{logoText}
Logo Text
</text>
</svg>
);
});
};
SvgTextLogo.displayName = "SvgTextLogo";
export default SvgTextLogo;
export default SvgTextLogo;