Merge version_1 into main #1
@@ -20,7 +20,7 @@ export default function LandingPage() {
|
||||
borderRadius="soft"
|
||||
contentWidth="mediumSmall"
|
||||
sizing="largeSizeMediumTitles"
|
||||
background="grid"
|
||||
background="circleGradient"
|
||||
cardStyle="glass-depth"
|
||||
primaryButtonStyle="double-inset"
|
||||
secondaryButtonStyle="radial-glow"
|
||||
@@ -46,6 +46,7 @@ export default function LandingPage() {
|
||||
tag="Premium Diner Experience"
|
||||
tagIcon={Flame}
|
||||
tagAnimation="slide-up"
|
||||
background={{ variant: "plain" }}
|
||||
imageSrc="http://img.b2bpic.net/free-photo/front-view-burger-red-tasty-fried-inside-plate-light-wall_140725-11599.jpg"
|
||||
imageAlt="Juicy smashed burger with golden fries"
|
||||
mediaAnimation="blur-reveal"
|
||||
@@ -152,16 +153,13 @@ export default function LandingPage() {
|
||||
tagAnimation="slide-up"
|
||||
products={[
|
||||
{
|
||||
id: "classic", brand: "PHO Burger", name: "The Classic Smash", price: "$9.99", rating: 5,
|
||||
reviewCount: "1.2k", imageSrc: "http://img.b2bpic.net/free-photo/close-up-fresh-bacon-burgers_23-2148784482.jpg", imageAlt: "classic smashed burger single patty"
|
||||
id: "classic", brand: "PHO Burger", name: "The Classic Smash", price: "$9.99", rating: 5, reviewCount: "1.2k", imageSrc: "http://img.b2bpic.net/free-photo/close-up-fresh-bacon-burgers_23-2148784482.jpg", imageAlt: "classic smashed burger single patty"
|
||||
},
|
||||
{
|
||||
id: "deluxe", brand: "PHO Burger", name: "Deluxe Double Stack", price: "$13.99", rating: 5,
|
||||
reviewCount: "980", imageSrc: "http://img.b2bpic.net/free-photo/front-view-burgers-with-pickles_23-2148784495.jpg", imageAlt: "double stack burger two patties premium"
|
||||
id: "deluxe", brand: "PHO Burger", name: "Deluxe Double Stack", price: "$13.99", rating: 5, reviewCount: "980", imageSrc: "http://img.b2bpic.net/free-photo/front-view-burgers-with-pickles_23-2148784495.jpg", imageAlt: "double stack burger two patties premium"
|
||||
},
|
||||
{
|
||||
id: "specialty", brand: "PHO Burger", name: "Specialty Crispy Chicken", price: "$11.99", rating: 5,
|
||||
reviewCount: "750", imageSrc: "http://img.b2bpic.net/free-vector/restaurant-menu-template_23-2148599036.jpg", imageAlt: "crispy fried chicken burger sandwich"
|
||||
id: "specialty", brand: "PHO Burger", name: "Specialty Crispy Chicken", price: "$11.99", rating: 5, reviewCount: "750", imageSrc: "http://img.b2bpic.net/free-vector/restaurant-menu-template_23-2148599036.jpg", imageAlt: "crispy fried chicken burger sandwich"
|
||||
}
|
||||
]}
|
||||
textboxLayout="default"
|
||||
@@ -198,28 +196,22 @@ export default function LandingPage() {
|
||||
tagAnimation="slide-up"
|
||||
testimonials={[
|
||||
{
|
||||
id: "1", name: "Jessica Wong", handle: "@jess.eats", testimonial: "The smash technique changed my burger game forever. Best lunch decision I've made in years!", rating: 5,
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/young-beautiful-woman-casual-clothes-shouting-yelling-being-frustrated-being-frustrated-pulling-her-hair-standing-pink_141793-127987.jpg", imageAlt: "young woman food blogger portrait smiling"
|
||||
id: "1", name: "Jessica Wong", handle: "@jess.eats", testimonial: "The smash technique changed my burger game forever. Best lunch decision I've made in years!", rating: 5, imageSrc: "http://img.b2bpic.net/free-photo/young-beautiful-woman-casual-clothes-shouting-yelling-being-frustrated-being-frustrated-pulling-her-hair-standing-pink_141793-127987.jpg", imageAlt: "young woman food blogger portrait smiling"
|
||||
},
|
||||
{
|
||||
id: "2", name: "David Kumar", handle: "@david.foodie", testimonial: "Premium quality at fast-casual prices? PHO Burger proves it's possible. Drive-thru service is flawless.", rating: 5,
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/smiling-handsome-guy-sunglasses-eating-fast-food-spending-time-outdoors_8353-6330.jpg", imageAlt: "man 30-35 confident professional smile"
|
||||
id: "2", name: "David Kumar", handle: "@david.foodie", testimonial: "Premium quality at fast-casual prices? PHO Burger proves it's possible. Drive-thru service is flawless.", rating: 5, imageSrc: "http://img.b2bpic.net/free-photo/smiling-handsome-guy-sunglasses-eating-fast-food-spending-time-outdoors_8353-6330.jpg", imageAlt: "man 30-35 confident professional smile"
|
||||
},
|
||||
{
|
||||
id: "3", name: "Amanda Mitchell", handle: "@amanda.feeds.family", testimonial: "The whole family is obsessed. My kids request PHO Burger instead of other chains. That says everything.", rating: 5,
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/front-view-blonde-woman-little-girl_23-2148283125.jpg", imageAlt: "woman family mom portrait smiling"
|
||||
id: "3", name: "Amanda Mitchell", handle: "@amanda.feeds.family", testimonial: "The whole family is obsessed. My kids request PHO Burger instead of other chains. That says everything.", rating: 5, imageSrc: "http://img.b2bpic.net/free-photo/front-view-blonde-woman-little-girl_23-2148283125.jpg", imageAlt: "woman family mom portrait smiling"
|
||||
},
|
||||
{
|
||||
id: "4", name: "Carlos Reyes", handle: "@carlos.chef", testimonial: "As someone who cooks professionally, I respect the craft here. They don't cut corners on quality or flavor.", rating: 5,
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/smiling-young-male-chef-wearing-uniform-keeping-hands-together-looking-side-isolated-brown-background_141793-133839.jpg", imageAlt: "professional chef portrait headshot"
|
||||
id: "4", name: "Carlos Reyes", handle: "@carlos.chef", testimonial: "As someone who cooks professionally, I respect the craft here. They don't cut corners on quality or flavor.", rating: 5, imageSrc: "http://img.b2bpic.net/free-photo/smiling-young-male-chef-wearing-uniform-keeping-hands-together-looking-side-isolated-brown-background_141793-133839.jpg", imageAlt: "professional chef portrait headshot"
|
||||
},
|
||||
{
|
||||
id: "5", name: "Sophie Laurent", handle: "@sophie.travels", testimonial: "This is Instagram-worthy food that's also incredibly delicious. The nostalgia vibe is chef's kiss!", rating: 5,
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/smiley-woman-posing-outdoors_23-2148486225.jpg", imageAlt: "woman food photographer smiling portrait"
|
||||
id: "5", name: "Sophie Laurent", handle: "@sophie.travels", testimonial: "This is Instagram-worthy food that's also incredibly delicious. The nostalgia vibe is chef's kiss!", rating: 5, imageSrc: "http://img.b2bpic.net/free-photo/smiley-woman-posing-outdoors_23-2148486225.jpg", imageAlt: "woman food photographer smiling portrait"
|
||||
},
|
||||
{
|
||||
id: "6", name: "Marcus Bailey", handle: "@marcus.foodcrit", testimonial: "PHO Burger bridges the gap between fine dining craft and convenient street food perfectly. Bravo.", rating: 5,
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/confident-young-handsome-barber-wearing-uniform-combing-his-beard-isolated-purple-with-copy-space_141793-76922.jpg", imageAlt: "professional man food critic portrait"
|
||||
id: "6", name: "Marcus Bailey", handle: "@marcus.foodcrit", testimonial: "PHO Burger bridges the gap between fine dining craft and convenient street food perfectly. Bravo.", rating: 5, imageSrc: "http://img.b2bpic.net/free-photo/confident-young-handsome-barber-wearing-uniform-combing-his-beard-isolated-purple-with-copy-space_141793-76922.jpg", imageAlt: "professional man food critic portrait"
|
||||
}
|
||||
]}
|
||||
showRating={true}
|
||||
@@ -238,7 +230,7 @@ export default function LandingPage() {
|
||||
{ text: "Order Online", href: "#" },
|
||||
{ text: "Visit Our Location", href: "#" }
|
||||
]}
|
||||
background={{ variant: "grid" }}
|
||||
background={{ variant: "plain" }}
|
||||
useInvertedBackground={false}
|
||||
/>
|
||||
</div>
|
||||
|
||||
@@ -1,51 +1,29 @@
|
||||
"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={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="10"
|
||||
y="35"
|
||||
fontSize="32"
|
||||
fontWeight="bold"
|
||||
fill="currentColor"
|
||||
dominantBaseline="middle"
|
||||
>
|
||||
{logoText}
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
};
|
||||
|
||||
export default SvgTextLogo;
|
||||
|
||||
Reference in New Issue
Block a user