Merge version_1 into main #2

Merged
bender merged 2 commits from version_1 into main 2026-03-10 19:23:30 +00:00
2 changed files with 37 additions and 45 deletions

View File

@@ -18,7 +18,7 @@ export default function LandingPage() {
borderRadius="rounded"
contentWidth="small"
sizing="mediumLarge"
background="noiseDiagonalGradient"
background="circleGradient"
cardStyle="layered-gradient"
primaryButtonStyle="diagonal-gradient"
secondaryButtonStyle="radial-glow"
@@ -40,7 +40,7 @@ export default function LandingPage() {
<HeroLogoBillboardSplit
logoText="NICE BITE"
description="Summer treats, unforgettable events, and a brand-new chapter. Your favorite ice cream truck is rolling back into town with classic treats, frozen novelties, and smiles."
background={{ variant: "noiseDiagonalGradient" }}
background={{ variant: "plain" }}
buttons={[
{ text: "Book the Truck", href: "#booking" },
{ text: "Learn More", href: "#about" }
@@ -64,11 +64,11 @@ export default function LandingPage() {
features={[
{
id: "graduation", title: "Graduation Parties", author: "Celebrate Success", description: "Make your graduation celebration unforgettable with Nice Bite. Guests of all ages love the nostalgic experience of ordering directly from the truck.", tags: ["Memorable", "Exciting"],
imageSrc: "http://img.b2bpic.net/free-photo/two-happy-fit-woman-pink-yellow-sunglasses-smiling-having-fun-laughing-with-donuts-outdoor_343596-490.jpg?_wi=1", imageAlt: "Graduation party celebration"
imageSrc: "http://img.b2bpic.net/free-photo/two-happy-fit-woman-pink-yellow-sunglasses-smiling-having-fun-laughing-with-donuts-outdoor_343596-490.jpg", imageAlt: "Graduation party celebration"
},
{
id: "events", title: "All Summer Events", author: "Community Connection", description: "From birthday parties to neighborhood block parties and school celebrations, Nice Bite is the perfect addition to any summer gathering.", tags: ["Community", "Fun"],
imageSrc: "http://img.b2bpic.net/free-photo/two-happy-fit-woman-pink-yellow-sunglasses-smiling-having-fun-laughing-with-donuts-outdoor_343596-490.jpg?_wi=2", imageAlt: "Summer event celebration"
imageSrc: "http://img.b2bpic.net/free-photo/two-happy-fit-woman-pink-yellow-sunglasses-smiling-having-fun-laughing-with-donuts-outdoor_343596-490.jpg", imageAlt: "Summer event celebration"
}
]}
textboxLayout="default"
@@ -108,15 +108,15 @@ export default function LandingPage() {
products={[
{
id: "1", brand: "Nice Bite", name: "Classic Ice Cream Bars", price: "Starting at $3", rating: 5,
reviewCount: "Favorite", imageSrc: "http://img.b2bpic.net/free-photo/top-view-delicious-popsicles-with-fruit_23-2148763626.jpg?_wi=1", imageAlt: "Classic ice cream bars"
reviewCount: "Favorite", imageSrc: "http://img.b2bpic.net/free-photo/top-view-delicious-popsicles-with-fruit_23-2148763626.jpg", imageAlt: "Classic ice cream bars"
},
{
id: "2", brand: "Nice Bite", name: "Frozen Novelties", price: "Starting at $4", rating: 5,
reviewCount: "Popular", imageSrc: "http://img.b2bpic.net/free-photo/top-view-delicious-popsicles-with-fruit_23-2148763626.jpg?_wi=2", imageAlt: "Frozen novelties"
reviewCount: "Popular", imageSrc: "http://img.b2bpic.net/free-photo/top-view-delicious-popsicles-with-fruit_23-2148763626.jpg", imageAlt: "Frozen novelties"
},
{
id: "3", brand: "Nice Bite", name: "Summer Specials", price: "Seasonal", rating: 5,
reviewCount: "Limited", imageSrc: "http://img.b2bpic.net/free-photo/top-view-delicious-popsicles-with-fruit_23-2148763626.jpg?_wi=3", imageAlt: "Summer special treats"
reviewCount: "Limited", imageSrc: "http://img.b2bpic.net/free-photo/top-view-delicious-popsicles-with-fruit_23-2148763626.jpg", imageAlt: "Summer special treats"
}
]}
gridVariant="three-columns-all-equal-width"

View File

@@ -1,51 +1,43 @@
"use client";
import React, { SVGProps } from 'react';
import { memo } from "react";
import useSvgTextLogo from "./useSvgTextLogo";
import { cls } from "@/lib/utils";
interface SvgTextLogoProps {
logoText: string;
adjustHeightFactor?: number;
verticalAlign?: "top" | "center";
interface SvgTextLogoProps extends SVGProps<SVGSVGElement> {
text: string;
className?: string;
fontSize?: number;
fontWeight?: number | string;
letterSpacing?: string;
dominantBaseline?: 'auto' | 'text-top' | 'hanging' | 'central' | 'mathematical' | 'text-bottom' | 'ideographic';
}
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 = 'LOGO',
className = '',
fontSize = 48,
fontWeight = 700,
letterSpacing = '0.05em',
dominantBaseline = 'central',
...props
}) => {
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"
className={className}
{...props}
>
<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%"
textAnchor="middle"
dominantBaseline={dominantBaseline}
fontSize={fontSize}
fontWeight={fontWeight}
letterSpacing={letterSpacing}
fill="currentColor"
>
{logoText}
{text}
</text>
</svg>
);
});
};
SvgTextLogo.displayName = "SvgTextLogo";
export default SvgTextLogo;
export default SvgTextLogo;