Merge version_1 into main
Merge version_1 into main
This commit was merged in pull request #2.
This commit is contained in:
@@ -9,7 +9,7 @@ import TestimonialCardSixteen from '@/components/sections/testimonial/Testimonia
|
||||
import SocialProofOne from '@/components/sections/socialProof/SocialProofOne';
|
||||
import ContactCTA from '@/components/sections/contact/ContactCTA';
|
||||
import FooterCard from '@/components/sections/footer/FooterCard';
|
||||
import { Sparkles, Heart, Star, MessageSquare, Award, Calendar, Coffee, Utensils, Cake, Bread, Gift, ChefHat, Facebook, Instagram } from 'lucide-react';
|
||||
import { Sparkles, Heart, Star, MessageSquare, Award, Calendar, Coffee, Utensils, Cake, Gift, ChefHat, Facebook, Instagram } from 'lucide-react';
|
||||
|
||||
export default function LandingPage() {
|
||||
return (
|
||||
@@ -54,11 +54,11 @@ export default function LandingPage() {
|
||||
buttonAnimation="slide-up"
|
||||
background={{ variant: "plain" }}
|
||||
carouselItems={[
|
||||
{ id: "carousel-1", imageSrc: "http://img.b2bpic.net/free-photo/delicious-french-breakfast-with-croissant_23-2150408549.jpg?_wi=1", imageAlt: "Golden croissant" },
|
||||
{ id: "carousel-1", imageSrc: "http://img.b2bpic.net/free-photo/delicious-french-breakfast-with-croissant_23-2150408549.jpg", imageAlt: "Golden croissant" },
|
||||
{ id: "carousel-2", imageSrc: "http://img.b2bpic.net/free-photo/eclairs-profiteroles-with-black-chocolate-white-chocolate-with-custard-inside-traditional-french-dessert_114579-9080.jpg", imageAlt: "Chocolate eclairs" },
|
||||
{ id: "carousel-3", imageSrc: "http://img.b2bpic.net/free-photo/high-angle-macarons-with-mint-copy-space_23-2148489027.jpg", imageAlt: "Colorful macarons" },
|
||||
{ id: "carousel-4", imageSrc: "http://img.b2bpic.net/free-photo/walnut-cake-cake-stand_1301-1026.jpg", imageAlt: "Layered cake" },
|
||||
{ id: "carousel-5", imageSrc: "http://img.b2bpic.net/free-photo/high-view-delicious-cupcakes-with-strawberries_23-2148718800.jpg?_wi=1", imageAlt: "Fruit tart" },
|
||||
{ id: "carousel-5", imageSrc: "http://img.b2bpic.net/free-photo/high-view-delicious-cupcakes-with-strawberries_23-2148718800.jpg", imageAlt: "Fruit tart" },
|
||||
{ id: "carousel-6", imageSrc: "http://img.b2bpic.net/free-photo/baton-braed-towel_140725-11056.jpg", imageAlt: "Artisan bread" }
|
||||
]}
|
||||
autoPlay={true}
|
||||
@@ -78,9 +78,10 @@ export default function LandingPage() {
|
||||
{ value: "4.4★", title: "Google Rating" },
|
||||
{ value: "1000+", title: "Happy Customers" }
|
||||
]}
|
||||
imageSrc="http://img.b2bpic.net/free-photo/young-man-dancing-with-woman-restaurant_23-2148016796.jpg?_wi=1"
|
||||
imageSrc="http://img.b2bpic.net/free-photo/young-man-dancing-with-woman-restaurant_23-2148016796.jpg"
|
||||
imageAlt="Elegant brasserie interior"
|
||||
mediaAnimation="slide-up"
|
||||
metricsAnimation="slide-up"
|
||||
useInvertedBackground={false}
|
||||
/>
|
||||
</div>
|
||||
@@ -96,9 +97,9 @@ export default function LandingPage() {
|
||||
{ title: "Artisan Coffee", description: "Freshly brewed specialty coffees paired with our finest pastries", imageSrc: "http://img.b2bpic.net/free-photo/side-view-cup-with-creamy-cappuccino-latte-with-milky-foam-top-leaf-shape-isolated-wooden-plate-with-pattern-table-cafe-shop-presentation_346278-1479.jpg", imageAlt: "Specialty coffee", buttonIcon: Coffee, buttonHref: "#contact" },
|
||||
{ title: "Brunch Classics", description: "Elegant brunch plates featuring pastries, eggs, and seasonal ingredients", imageSrc: "http://img.b2bpic.net/free-photo/set-salad-fried-eggs-pastry-delicious-breakfast-table-white-background-high-angle-view_176474-3834.jpg", imageAlt: "Gourmet brunch", buttonIcon: Utensils, buttonHref: "#contact" },
|
||||
{ title: "Dessert Showcase", description: "Plated artistic desserts showcasing our pastry chef's mastery", imageSrc: "http://img.b2bpic.net/free-photo/slice-pie-with-cup-tea-top-view_114579-17357.jpg", imageAlt: "Gourmet dessert", buttonIcon: Cake, buttonHref: "#contact" },
|
||||
{ title: "Bakery Selection", description: "Daily fresh-baked breads, croissants, and pastries made in-house", imageSrc: "http://img.b2bpic.net/free-photo/delicious-french-breakfast-with-croissant_23-2150408549.jpg?_wi=2", imageAlt: "Fresh pastries", buttonIcon: Bread, buttonHref: "#contact" },
|
||||
{ title: "Premium Pastries", description: "Hand-crafted cakes, tarts, and confections for special occasions", imageSrc: "http://img.b2bpic.net/free-photo/high-view-delicious-cupcakes-with-strawberries_23-2148718800.jpg?_wi=2", imageAlt: "Premium pastries", buttonIcon: Gift, buttonHref: "#contact" },
|
||||
{ title: "Brasserie Dining", description: "Sophisticated dishes prepared with French culinary techniques", imageSrc: "http://img.b2bpic.net/free-photo/young-man-dancing-with-woman-restaurant_23-2148016796.jpg?_wi=2", imageAlt: "Brasserie dining", buttonIcon: ChefHat, buttonHref: "#contact" }
|
||||
{ title: "Bakery Selection", description: "Daily fresh-baked breads, croissants, and pastries made in-house", imageSrc: "http://img.b2bpic.net/free-photo/delicious-french-breakfast-with-croissant_23-2150408549.jpg", imageAlt: "Fresh pastries", buttonIcon: Gift, buttonHref: "#contact" },
|
||||
{ title: "Premium Pastries", description: "Hand-crafted cakes, tarts, and confections for special occasions", imageSrc: "http://img.b2bpic.net/free-photo/high-view-delicious-cupcakes-with-strawberries_23-2148718800.jpg", imageAlt: "Premium pastries", buttonIcon: Gift, buttonHref: "#contact" },
|
||||
{ title: "Brasserie Dining", description: "Sophisticated dishes prepared with French culinary techniques", imageSrc: "http://img.b2bpic.net/free-photo/young-man-dancing-with-woman-restaurant_23-2148016796.jpg", imageAlt: "Brasserie dining", buttonIcon: ChefHat, buttonHref: "#contact" }
|
||||
]}
|
||||
textboxLayout="default"
|
||||
useInvertedBackground={false}
|
||||
|
||||
@@ -1,51 +1,42 @@
|
||||
"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;
|
||||
fontWeight?: string;
|
||||
fontFamily?: string;
|
||||
fill?: 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 = '',
|
||||
fontSize = 24,
|
||||
fontWeight = 'bold',
|
||||
fontFamily = 'system-ui, -apple-system, sans-serif',
|
||||
fill = 'currentColor',
|
||||
}) => {
|
||||
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.5}`}
|
||||
className={className}
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
aria-label={text}
|
||||
>
|
||||
<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"
|
||||
}}
|
||||
y={fontSize}
|
||||
fontSize={fontSize}
|
||||
fontWeight={fontWeight}
|
||||
fontFamily={fontFamily}
|
||||
fill={fill}
|
||||
dominantBaseline="hanging"
|
||||
>
|
||||
{logoText}
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
};
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
|
||||
export default SvgTextLogo;
|
||||
export default SvgTextLogo;
|
||||
Reference in New Issue
Block a user