Merge version_1 into main #2

Merged
bender merged 2 commits from version_1 into main 2026-03-11 20:20:21 +00:00
2 changed files with 43 additions and 125 deletions

View File

@@ -22,24 +22,21 @@ export default function HomePage() {
const footerColumns = [
{
title: "Navigate",
items: [
title: "Navigate", items: [
{ label: "Home", href: "/" },
{ label: "Menu", href: "/menu" },
{ label: "About", href: "/about" },
],
},
{
title: "Connect",
items: [
title: "Connect", items: [
{ label: "Reviews", href: "/reviews" },
{ label: "Visit Us", href: "/visit" },
{ label: "Instagram", href: "https://instagram.com" },
],
},
{
title: "Legal",
items: [
title: "Legal", items: [
{ label: "Privacy Policy", href: "#" },
{ label: "Terms of Service", href: "#" },
{ label: "Contact", href: "/visit" },
@@ -93,41 +90,17 @@ export default function HomePage() {
description="⭐⭐⭐⭐⭐ What our neighbors say about us"
testimonials={[
{
id: "1",
name: "Julie Pauken",
role: "Local Customer",
company: "Waterville Resident",
rating: 5,
imageSrc: "http://img.b2bpic.net/free-photo/brunette-smiling-female-sits-outdoor-cafeteria-has-broad-smile-has-good-rest-has-satisfied-expression-rests-tropical-resort-country-cute-young-woman-rests-terrace-cafe-positiveness_273609-3010.jpg?_wi=1",
imageAlt: "Julie Pauken",
},
id: "1", name: "Julie Pauken", role: "Local Customer", company: "Waterville Resident", rating: 5,
imageSrc: "http://img.b2bpic.net/free-photo/brunette-smiling-female-sits-outdoor-cafeteria-has-broad-smile-has-good-rest-has-satisfied-expression-rests-tropical-resort-country-cute-young-woman-rests-terrace-cafe-positiveness_273609-3010.jpg", imageAlt: "Julie Pauken"},
{
id: "2",
name: "Rob Gasser",
role: "Regular Visitor",
company: "Waterville Community",
rating: 5,
imageSrc: "http://img.b2bpic.net/free-photo/portrait-handsome-young-man-close-up-street_1321-10.jpg?_wi=1",
imageAlt: "Rob Gasser",
},
id: "2", name: "Rob Gasser", role: "Regular Visitor", company: "Waterville Community", rating: 5,
imageSrc: "http://img.b2bpic.net/free-photo/portrait-handsome-young-man-close-up-street_1321-10.jpg", imageAlt: "Rob Gasser"},
{
id: "3",
name: "Jay Mikalacki",
role: "Local Favorite",
company: "Waterville Native",
rating: 5,
imageSrc: "http://img.b2bpic.net/free-photo/young-man-wearing-blue-outfit-doing-holding-gesture_1298-431.jpg?_wi=1",
imageAlt: "Jay Mikalacki",
},
id: "3", name: "Jay Mikalacki", role: "Local Favorite", company: "Waterville Native", rating: 5,
imageSrc: "http://img.b2bpic.net/free-photo/young-man-wearing-blue-outfit-doing-holding-gesture_1298-431.jpg", imageAlt: "Jay Mikalacki"},
{
id: "4",
name: "Melissa Barber",
role: "Family Visitor",
company: "Waterville Community",
rating: 5,
imageSrc: "http://img.b2bpic.net/free-photo/front-view-smiling-woman-laptop_23-2148471013.jpg?_wi=1",
imageAlt: "Melissa Barber",
},
id: "4", name: "Melissa Barber", role: "Family Visitor", company: "Waterville Community", rating: 5,
imageSrc: "http://img.b2bpic.net/free-photo/front-view-smiling-woman-laptop_23-2148471013.jpg", imageAlt: "Melissa Barber"},
]}
gridVariant="uniform-all-items-equal"
animationType="slide-up"
@@ -146,45 +119,17 @@ export default function HomePage() {
useInvertedBackground={false}
products={[
{
id: "1",
brand: "Sweet Retreat",
name: "Soft Serve Swirl Cone",
price: "$4.99",
rating: 5,
reviewCount: "850+",
imageSrc: "http://img.b2bpic.net/free-photo/waffle-cones-placed-row_23-2148102390.jpg?_wi=1",
imageAlt: "Classic creamy soft serve with chocolate and vanilla swirl",
},
id: "1", brand: "Sweet Retreat", name: "Soft Serve Swirl Cone", price: "$4.99", rating: 5,
reviewCount: "850+", imageSrc: "http://img.b2bpic.net/free-photo/waffle-cones-placed-row_23-2148102390.jpg", imageAlt: "Classic creamy soft serve with chocolate and vanilla swirl"},
{
id: "2",
brand: "Sweet Retreat",
name: "Banana Boat",
price: "$7.99",
rating: 5,
reviewCount: "720+",
imageSrc: "http://img.b2bpic.net/free-photo/strawberries-cream-served-with-banana-puff-pastries_114579-13264.jpg?_wi=1",
imageAlt: "Soft-serve twist on the classic banana split with toppings",
},
id: "2", brand: "Sweet Retreat", name: "Banana Boat", price: "$7.99", rating: 5,
reviewCount: "720+", imageSrc: "http://img.b2bpic.net/free-photo/strawberries-cream-served-with-banana-puff-pastries_114579-13264.jpg", imageAlt: "Soft-serve twist on the classic banana split with toppings"},
{
id: "3",
brand: "Sweet Retreat",
name: "Buckeye Sundae",
price: "$8.49",
rating: 5,
reviewCount: "895+",
imageSrc: "http://img.b2bpic.net/free-photo/delicious-creamy-chestnut-soup_114579-65560.jpg?_wi=1",
imageAlt: "Local favorite with peanut butter, chocolate, and creamy ice cream",
},
id: "3", brand: "Sweet Retreat", name: "Buckeye Sundae", price: "$8.49", rating: 5,
reviewCount: "895+", imageSrc: "http://img.b2bpic.net/free-photo/delicious-creamy-chestnut-soup_114579-65560.jpg", imageAlt: "Local favorite with peanut butter, chocolate, and creamy ice cream"},
{
id: "4",
brand: "Sweet Retreat",
name: "Key Lime Pie Newberry",
price: "$5.99",
rating: 5,
reviewCount: "640+",
imageSrc: "http://img.b2bpic.net/free-photo/flat-lay-yummy-popsicles-with-poppy-seeds-ice_23-2148763648.jpg?_wi=1",
imageAlt: "Fan-favorite key lime pie ice cream flavor",
},
id: "4", brand: "Sweet Retreat", name: "Key Lime Pie Newberry", price: "$5.99", rating: 5,
reviewCount: "640+", imageSrc: "http://img.b2bpic.net/free-photo/flat-lay-yummy-popsicles-with-poppy-seeds-ice_23-2148763648.jpg", imageAlt: "Fan-favorite key lime pie ice cream flavor"},
]}
gridVariant="four-items-2x2-equal-grid"
animationType="slide-up"
@@ -202,24 +147,16 @@ export default function HomePage() {
features={[
{
icon: Heart,
title: "Family-Owned",
description: "A beloved local dessert shop serving Waterville for years with personal care and community values.",
},
title: "Family-Owned", description: "A beloved local dessert shop serving Waterville for years with personal care and community values."},
{
icon: IceCream,
title: "Huge Variety",
description: "Dozens of flavors, toppings, and combinations to create your perfect treat.",
},
title: "Huge Variety", description: "Dozens of flavors, toppings, and combinations to create your perfect treat."},
{
icon: Smile,
title: "Friendly Staff",
description: "A welcoming place for families, friends, and summer nights with warm, attentive service.",
},
title: "Friendly Staff", description: "A welcoming place for families, friends, and summer nights with warm, attentive service."},
{
icon: Zap,
title: "Great Value",
description: "Big servings at prices everyone can enjoy, making memories affordable.",
},
title: "Great Value", description: "Big servings at prices everyone can enjoy, making memories affordable."},
]}
/>
</div>
@@ -229,7 +166,6 @@ export default function HomePage() {
tag="Local Icon"
title="A Waterville Tradition"
description="Many customers say Sweet Retreat is an iconic stop in Waterville. Whether you're grabbing a cone after dinner or bringing the kids for a sundae, it's the perfect place to enjoy a sweet moment together."
textboxLayout="default"
useInvertedBackground={true}
metrics={[
{ value: "25+", title: "Years Serving Waterville" },
@@ -237,7 +173,7 @@ export default function HomePage() {
]}
mediaAnimation="blur-reveal"
metricsAnimation="slide-up"
imageSrc="http://img.b2bpic.net/free-photo/woman-kid-with-ice-creams-side-view_23-2149426708.jpg?_wi=1"
imageSrc="http://img.b2bpic.net/free-photo/woman-kid-with-ice-creams-side-view_23-2149426708.jpg"
imageAlt="Family enjoying ice cream together"
/>
</div>

View File

@@ -1,51 +1,33 @@
"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;
textClassName?: string;
}
const SvgTextLogo = memo<SvgTextLogoProps>(function SvgTextLogo({
logoText,
adjustHeightFactor,
verticalAlign = "top",
className = "",
}) {
const { svgRef, textRef, viewBox, aspectRatio } = useSvgTextLogo(logoText, false, adjustHeightFactor);
export const SvgTextLogo: React.FC<SvgTextLogoProps> = ({
text,
className = '',
textClassName = '',
}) => {
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 * 60} 100`}
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="50%"
y="50%"
textAnchor="middle"
dominantBaseline="middle"
className={textClassName}
>
{logoText}
{text}
</text>
</svg>
);
});
};
SvgTextLogo.displayName = "SvgTextLogo";
export default SvgTextLogo;
export default SvgTextLogo;