Merge version_1 into main #2
@@ -1,13 +1,13 @@
|
||||
"use client";
|
||||
|
||||
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
|
||||
import NavbarLayoutFloatingInline from "@/components/navbar/NavbarLayoutFloatingInline";
|
||||
import HeroBillboardTestimonial from "@/components/sections/hero/HeroBillboardTestimonial";
|
||||
import FeatureCardOne from "@/components/sections/feature/FeatureCardOne";
|
||||
import MetricSplitMediaAbout from "@/components/sections/about/MetricSplitMediaAbout";
|
||||
import TestimonialCardTwelve from "@/components/sections/testimonial/TestimonialCardTwelve";
|
||||
import ContactText from "@/components/sections/contact/ContactText";
|
||||
import FooterMedia from "@/components/sections/footer/FooterMedia";
|
||||
import NavbarLayoutFloatingInline from '@/components/navbar/NavbarLayoutFloatingInline';
|
||||
import HeroBillboardTestimonial from '@/components/sections/hero/HeroBillboardTestimonial';
|
||||
import FeatureCardOne from '@/components/sections/feature/FeatureCardOne';
|
||||
import MetricSplitMediaAbout from '@/components/sections/about/MetricSplitMediaAbout';
|
||||
import TestimonialCardTwelve from '@/components/sections/testimonial/TestimonialCardTwelve';
|
||||
import ContactText from '@/components/sections/contact/ContactText';
|
||||
import FooterMedia from '@/components/sections/footer/FooterMedia';
|
||||
import { Sparkles, Leaf, Heart } from "lucide-react";
|
||||
|
||||
export default function LandingPage() {
|
||||
@@ -49,6 +49,7 @@ export default function LandingPage() {
|
||||
imageSrc="http://img.b2bpic.net/free-photo/fresh-cookies-with-chocolate-are-ready-be-removed-from-oven-bakery-shop_613910-17461.jpg"
|
||||
imageAlt="Signature artisan pastry"
|
||||
mediaAnimation="slide-up"
|
||||
background={{ variant: "plain" }}
|
||||
buttons={[
|
||||
{ text: "Explore Collection", href: "#collection" },
|
||||
{ text: "Pre-Order Now", href: "#order" }
|
||||
@@ -57,15 +58,15 @@ export default function LandingPage() {
|
||||
testimonials={[
|
||||
{
|
||||
name: "Sarah Mitchell", handle: "Food Critic, Artisan Weekly", testimonial: "The finest pastries I've ever experienced. Every bite reveals meticulous craftsmanship.", rating: 5,
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/close-up-portrait-stylish-pretty-young-woman-look-professional-cross-hands-chest-smiling-confident-camera-wear-glasses-standing-near-reception-office-hall-discuss-business_197531-22165.jpg?_wi=1"
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/close-up-portrait-stylish-pretty-young-woman-look-professional-cross-hands-chest-smiling-confident-camera-wear-glasses-standing-near-reception-office-hall-discuss-business_197531-22165.jpg"
|
||||
},
|
||||
{
|
||||
name: "James Chen", handle: "Chef, Michelin-starred Restaurant", testimonial: "Impeccable quality. Their sourdough is a masterpiece of technique and flavor.", rating: 5,
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/portrait-handsome-fashion-businessman-model-dressed-elegant-blue-suit-with-glasses_158538-4406.jpg?_wi=1"
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/portrait-handsome-fashion-businessman-model-dressed-elegant-blue-suit-with-glasses_158538-4406.jpg"
|
||||
},
|
||||
{
|
||||
name: "Emma Rodriguez", handle: "Food Blogger, Culinary Stories", testimonial: "Pure elegance on a plate. This is what premium baking looks like.", rating: 5,
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/indian-person-working-freelance-laptop-website-analyzing-online-report-browsing-internet-from-home-dong-remote-work-wireless-computer-send-email-research-plan-webinar-study_482257-50278.jpg?_wi=1"
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/indian-person-working-freelance-laptop-website-analyzing-online-report-browsing-internet-from-home-dong-remote-work-wireless-computer-send-email-research-plan-webinar-study_482257-50278.jpg"
|
||||
}
|
||||
]}
|
||||
testimonialRotationInterval={5000}
|
||||
@@ -98,8 +99,8 @@ export default function LandingPage() {
|
||||
gridVariant="three-columns-all-equal-width"
|
||||
animationType="slide-up"
|
||||
useInvertedBackground={false}
|
||||
titleClassName="text-4xl font-semibold mb-4"
|
||||
descriptionClassName="text-lg text-gray-600 max-w-2xl"
|
||||
cardTitleClassName="text-4xl font-semibold mb-4"
|
||||
cardDescriptionClassName="text-lg text-gray-600 max-w-2xl"
|
||||
/>
|
||||
</div>
|
||||
|
||||
@@ -130,13 +131,13 @@ export default function LandingPage() {
|
||||
<TestimonialCardTwelve
|
||||
testimonials={[
|
||||
{
|
||||
id: "1", name: "Sophie Laurent", imageSrc: "http://img.b2bpic.net/free-photo/close-up-portrait-stylish-pretty-young-woman-look-professional-cross-hands-chest-smiling-confident-camera-wear-glasses-standing-near-reception-office-hall-discuss-business_197531-22165.jpg?_wi=2", imageAlt: "Sophie Laurent"
|
||||
id: "1", name: "Sophie Laurent", imageSrc: "http://img.b2bpic.net/free-photo/close-up-portrait-stylish-pretty-young-woman-look-professional-cross-hands-chest-smiling-confident-camera-wear-glasses-standing-near-reception-office-hall-discuss-business_197531-22165.jpg", imageAlt: "Sophie Laurent"
|
||||
},
|
||||
{
|
||||
id: "2", name: "Marcus Johnson", imageSrc: "http://img.b2bpic.net/free-photo/portrait-handsome-fashion-businessman-model-dressed-elegant-blue-suit-with-glasses_158538-4406.jpg?_wi=2", imageAlt: "Marcus Johnson"
|
||||
id: "2", name: "Marcus Johnson", imageSrc: "http://img.b2bpic.net/free-photo/portrait-handsome-fashion-businessman-model-dressed-elegant-blue-suit-with-glasses_158538-4406.jpg", imageAlt: "Marcus Johnson"
|
||||
},
|
||||
{
|
||||
id: "3", name: "Lucia Rossi", imageSrc: "http://img.b2bpic.net/free-photo/indian-person-working-freelance-laptop-website-analyzing-online-report-browsing-internet-from-home-dong-remote-work-wireless-computer-send-email-research-plan-webinar-study_482257-50278.jpg?_wi=2", imageAlt: "Lucia Rossi"
|
||||
id: "3", name: "Lucia Rossi", imageSrc: "http://img.b2bpic.net/free-photo/indian-person-working-freelance-laptop-website-analyzing-online-report-browsing-internet-from-home-dong-remote-work-wireless-computer-send-email-research-plan-webinar-study_482257-50278.jpg", imageAlt: "Lucia Rossi"
|
||||
},
|
||||
{
|
||||
id: "4", name: "David Chen", imageSrc: "http://img.b2bpic.net/free-photo/confident-african-american-businessman-black-classic-jacket-thinking-about-business-while-holding-hand-chin-isolated-dark-background_613910-6615.jpg", imageAlt: "David Chen"
|
||||
@@ -176,23 +177,23 @@ export default function LandingPage() {
|
||||
textboxLayout="default"
|
||||
features={[
|
||||
{
|
||||
title: "Location", description: "123 Artisan Lane, Craft District\nOpen Tuesday–Sunday, 10am–6pm\nClosed Mondays", imageSrc: "http://img.b2bpic.net/free-photo/defocused-restaurant-entrance_1203-378.jpg?_wi=1", imageAlt: "Our artisan bakery storefront", button: { text: "Get Directions", href: "#" }
|
||||
title: "Location", description: "123 Artisan Lane, Craft District\nOpen Tuesday–Sunday, 10am–6pm\nClosed Mondays", imageSrc: "http://img.b2bpic.net/free-photo/defocused-restaurant-entrance_1203-378.jpg", imageAlt: "Our artisan bakery storefront", button: { text: "Get Directions", href: "#" }
|
||||
},
|
||||
{
|
||||
title: "Contact", description: "Phone: (555) 123-4567\nEmail: hello@artisanbakery.com\nBookings available online", imageSrc: "http://img.b2bpic.net/free-photo/defocused-restaurant-entrance_1203-378.jpg?_wi=2", imageAlt: "Artisan bakery contact information", button: { text: "Book Visit", href: "#" }
|
||||
title: "Contact", description: "Phone: (555) 123-4567\nEmail: hello@artisanbakery.com\nBookings available online", imageSrc: "http://img.b2bpic.net/free-photo/defocused-restaurant-entrance_1203-378.jpg", imageAlt: "Artisan bakery contact information", button: { text: "Book Visit", href: "#" }
|
||||
}
|
||||
]}
|
||||
gridVariant="two-columns-alternating-heights"
|
||||
animationType="slide-up"
|
||||
useInvertedBackground={false}
|
||||
titleClassName="text-3xl font-semibold mb-4"
|
||||
descriptionClassName="text-gray-600 max-w-2xl"
|
||||
cardTitleClassName="text-3xl font-semibold mb-4"
|
||||
cardDescriptionClassName="text-gray-600 max-w-2xl"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div id="footer" data-section="footer">
|
||||
<FooterMedia
|
||||
imageSrc="http://img.b2bpic.net/free-photo/defocused-restaurant-entrance_1203-378.jpg?_wi=3"
|
||||
imageSrc="http://img.b2bpic.net/free-photo/defocused-restaurant-entrance_1203-378.jpg"
|
||||
imageAlt="Artisan bakery storefront exterior"
|
||||
logoText="Artisan Bakery"
|
||||
columns={[
|
||||
|
||||
@@ -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;
|
||||
textAnchor?: 'start' | 'middle' | 'end';
|
||||
dominantBaseline?: 'auto' | 'text-bottom' | 'alphabetic' | 'ideographic' | 'middle' | 'central' | 'mathematical' | 'hanging';
|
||||
}
|
||||
|
||||
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 = '',
|
||||
textAnchor = 'middle',
|
||||
dominantBaseline = 'middle',
|
||||
}) => {
|
||||
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 100"
|
||||
className={`w-full h-auto ${className}`}
|
||||
aria-label={`Logo: ${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"
|
||||
}}
|
||||
x="100"
|
||||
y="50"
|
||||
textAnchor={textAnchor}
|
||||
dominantBaseline={dominantBaseline}
|
||||
className="text-2xl font-bold fill-current"
|
||||
>
|
||||
{logoText}
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
|
||||
export default SvgTextLogo;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user