Merge version_1 into main #2
@@ -20,7 +20,7 @@ export default function LandingPage() {
|
||||
borderRadius="soft"
|
||||
contentWidth="mediumLarge"
|
||||
sizing="largeSmallSizeLargeTitles"
|
||||
background="aurora"
|
||||
background="circleGradient"
|
||||
cardStyle="inset"
|
||||
primaryButtonStyle="gradient"
|
||||
secondaryButtonStyle="glass"
|
||||
@@ -46,7 +46,7 @@ export default function LandingPage() {
|
||||
<HeroBillboard
|
||||
title="Pretoria's Hidden Gem Café"
|
||||
description="Award-winning cappuccinos, homemade carrot cake, and a sanctuary of calm trusted by hospital visitors and locals alike. Where exceptional care meets artisanal craft in every cup and bite."
|
||||
background={{ variant: "aurora" }}
|
||||
background={{ variant: "plain" }}
|
||||
tag="Premium Experience"
|
||||
tagIcon={Coffee}
|
||||
tagAnimation="slide-up"
|
||||
@@ -91,7 +91,7 @@ export default function LandingPage() {
|
||||
}
|
||||
]}
|
||||
buttonAnimation="slide-up"
|
||||
imageSrc="http://img.b2bpic.net/free-photo/black-bearded-coffee-seller-pouring-coffee-shop_613910-443.jpg?_wi=1"
|
||||
imageSrc="http://img.b2bpic.net/free-photo/black-bearded-coffee-seller-pouring-coffee-shop_613910-443.jpg"
|
||||
imageAlt="Artisanal cappuccino craftsmanship at Sanctuary Café"
|
||||
useInvertedBackground={false}
|
||||
/>
|
||||
@@ -102,11 +102,11 @@ export default function LandingPage() {
|
||||
features={[
|
||||
{
|
||||
id: 1,
|
||||
title: "Award-Winning Cappuccinos", description: "Our espresso-based signature drinks are crafted with meticulously sourced, single-origin beans roasted to perfection. Each cappuccino is a moment of artisanal excellence—velvety microfoam, balanced bitterness, and genuine flavor that transforms your break into a premium escape.", imageSrc: "http://img.b2bpic.net/free-photo/black-bearded-coffee-seller-pouring-coffee-shop_613910-443.jpg?_wi=2", imageAlt: "Award-winning cappuccino with latte art"
|
||||
title: "Award-Winning Cappuccinos", description: "Our espresso-based signature drinks are crafted with meticulously sourced, single-origin beans roasted to perfection. Each cappuccino is a moment of artisanal excellence—velvety microfoam, balanced bitterness, and genuine flavor that transforms your break into a premium escape.", imageSrc: "http://img.b2bpic.net/free-photo/black-bearded-coffee-seller-pouring-coffee-shop_613910-443.jpg", imageAlt: "Award-winning cappuccino with latte art"
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "Homemade Baked Goods", description: "Our iconic carrot cake is just the beginning. Every item—from fresh croissants to seasonal pastries—is crafted in-house daily with premium ingredients, no artificial additives. Comfort food that nourishes body and soul, trusted by hospital staff and visitors alike.", imageSrc: "http://img.b2bpic.net/free-photo/slice-honey-cake-spatula_114579-16524.jpg?_wi=1", imageAlt: "Homemade carrot cake with cream cheese frosting"
|
||||
title: "Homemade Baked Goods", description: "Our iconic carrot cake is just the beginning. Every item—from fresh croissants to seasonal pastries—is crafted in-house daily with premium ingredients, no artificial additives. Comfort food that nourishes body and soul, trusted by hospital staff and visitors alike.", imageSrc: "http://img.b2bpic.net/free-photo/slice-honey-cake-spatula_114579-16524.jpg", imageAlt: "Homemade carrot cake with cream cheese frosting"
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
@@ -114,7 +114,7 @@ export default function LandingPage() {
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
title: "Convenient Ordering & Service", description: "WhatsApp ordering available for quick, stress-free pickup—perfect for busy medical professionals and visitors on tight schedules. Professional, attentive service that respects your time while delivering genuine hospitality and personal care.", imageSrc: "http://img.b2bpic.net/free-photo/medium-shot-woman-working-bakery_23-2150273178.jpg?_wi=1", imageAlt: "Fresh pastries ready for convenient pickup"
|
||||
title: "Convenient Ordering & Service", description: "WhatsApp ordering available for quick, stress-free pickup—perfect for busy medical professionals and visitors on tight schedules. Professional, attentive service that respects your time while delivering genuine hospitality and personal care.", imageSrc: "http://img.b2bpic.net/free-photo/medium-shot-woman-working-bakery_23-2150273178.jpg", imageAlt: "Fresh pastries ready for convenient pickup"
|
||||
}
|
||||
]}
|
||||
title="The Sanctuary Experience"
|
||||
@@ -138,22 +138,22 @@ export default function LandingPage() {
|
||||
<ProductCardThree
|
||||
products={[
|
||||
{
|
||||
id: "1", name: "Signature Cappuccino", price: "R65", imageSrc: "http://img.b2bpic.net/free-photo/black-bearded-coffee-seller-pouring-coffee-shop_613910-443.jpg?_wi=3", imageAlt: "Award-winning signature cappuccino", initialQuantity: 1
|
||||
id: "1", name: "Signature Cappuccino", price: "R65", imageSrc: "http://img.b2bpic.net/free-photo/black-bearded-coffee-seller-pouring-coffee-shop_613910-443.jpg", imageAlt: "Award-winning signature cappuccino", initialQuantity: 1
|
||||
},
|
||||
{
|
||||
id: "2", name: "Homemade Carrot Cake Slice", price: "R55", imageSrc: "http://img.b2bpic.net/free-photo/slice-honey-cake-spatula_114579-16524.jpg?_wi=2", imageAlt: "Homemade carrot cake with cream cheese frosting", initialQuantity: 1
|
||||
id: "2", name: "Homemade Carrot Cake Slice", price: "R55", imageSrc: "http://img.b2bpic.net/free-photo/slice-honey-cake-spatula_114579-16524.jpg", imageAlt: "Homemade carrot cake with cream cheese frosting", initialQuantity: 1
|
||||
},
|
||||
{
|
||||
id: "3", name: "Fresh Artisanal Pastry Basket", price: "R120", imageSrc: "http://img.b2bpic.net/free-photo/medium-shot-woman-working-bakery_23-2150273178.jpg?_wi=2", imageAlt: "Selection of fresh baked pastries", initialQuantity: 1
|
||||
id: "3", name: "Fresh Artisanal Pastry Basket", price: "R120", imageSrc: "http://img.b2bpic.net/free-photo/medium-shot-woman-working-bakery_23-2150273178.jpg", imageAlt: "Selection of fresh baked pastries", initialQuantity: 1
|
||||
},
|
||||
{
|
||||
id: "4", name: "Espresso Double Shot", price: "R35", imageSrc: "http://img.b2bpic.net/free-photo/black-bearded-coffee-seller-pouring-coffee-shop_613910-443.jpg?_wi=4", imageAlt: "Double shot espresso", initialQuantity: 1
|
||||
id: "4", name: "Espresso Double Shot", price: "R35", imageSrc: "http://img.b2bpic.net/free-photo/black-bearded-coffee-seller-pouring-coffee-shop_613910-443.jpg", imageAlt: "Double shot espresso", initialQuantity: 1
|
||||
},
|
||||
{
|
||||
id: "5", name: "Specialty Latte (Vanilla/Caramel)", price: "R70", imageSrc: "http://img.b2bpic.net/free-photo/black-bearded-coffee-seller-pouring-coffee-shop_613910-443.jpg?_wi=5", imageAlt: "Specialty flavored latte", initialQuantity: 1
|
||||
id: "5", name: "Specialty Latte (Vanilla/Caramel)", price: "R70", imageSrc: "http://img.b2bpic.net/free-photo/black-bearded-coffee-seller-pouring-coffee-shop_613910-443.jpg", imageAlt: "Specialty flavored latte", initialQuantity: 1
|
||||
},
|
||||
{
|
||||
id: "6", name: "Premium Sandwich & Salad", price: "R85", imageSrc: "http://img.b2bpic.net/free-photo/medium-shot-woman-working-bakery_23-2150273178.jpg?_wi=3", imageAlt: "Gourmet sandwich and fresh salad", initialQuantity: 1
|
||||
id: "6", name: "Premium Sandwich & Salad", price: "R85", imageSrc: "http://img.b2bpic.net/free-photo/medium-shot-woman-working-bakery_23-2150273178.jpg", imageAlt: "Gourmet sandwich and fresh salad", initialQuantity: 1
|
||||
}
|
||||
]}
|
||||
title="Artisanal Menu Selection"
|
||||
|
||||
@@ -1,51 +1,30 @@
|
||||
"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;
|
||||
}
|
||||
|
||||
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 = '' }) => {
|
||||
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 200 50"
|
||||
className={`w-full h-auto ${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="central"
|
||||
fontSize="24"
|
||||
fontWeight="bold"
|
||||
fill="currentColor"
|
||||
>
|
||||
{logoText}
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
};
|
||||
|
||||
export default SvgTextLogo;
|
||||
|
||||
Reference in New Issue
Block a user