Merge version_1 into main #1
@@ -10,7 +10,7 @@ import TestimonialCardThirteen from '@/components/sections/testimonial/Testimoni
|
||||
import MetricCardOne from '@/components/sections/metrics/MetricCardOne';
|
||||
import ContactCTA from '@/components/sections/contact/ContactCTA';
|
||||
import FooterBase from '@/components/sections/footer/FooterBase';
|
||||
import { ChefHat, Clock, Fire, Heart, MapPin, Sparkles, Star, TrendingUp, Users } from "lucide-react";
|
||||
import { ChefHat, Clock, Heart, MapPin, Sparkles, Star, TrendingUp, Users } from "lucide-react";
|
||||
|
||||
export default function LandingPage() {
|
||||
return (
|
||||
@@ -57,6 +57,7 @@ export default function LandingPage() {
|
||||
imageSrc="http://img.b2bpic.net/free-photo/three-mini-burgers-served-with-fries-wood-serving-board_140725-2585.jpg"
|
||||
imageAlt="Gourmet burger and crepe showcase"
|
||||
mediaAnimation="blur-reveal"
|
||||
background={{ variant: "plain" }}
|
||||
testimonials={[
|
||||
{
|
||||
name: "Ahmed Wisam", handle: "@ahmed_w", testimonial: "مطعم جميل جداً و اكله رائع و لذيذ", rating: 5,
|
||||
@@ -116,7 +117,7 @@ export default function LandingPage() {
|
||||
title="Signature Menu"
|
||||
description="Handcrafted burgers, artisan crepes, and premium sides that make our guests come back again and again."
|
||||
tag="Fresh Daily"
|
||||
tagIcon={Fire}
|
||||
tagIcon={Heart}
|
||||
tagAnimation="slide-up"
|
||||
textboxLayout="default"
|
||||
useInvertedBackground={true}
|
||||
@@ -124,28 +125,22 @@ export default function LandingPage() {
|
||||
gridVariant="three-columns-all-equal-width"
|
||||
products={[
|
||||
{
|
||||
id: "1", brand: "WEEK Signature", name: "Classic Smash Burger", price: "45 SAR", rating: 5,
|
||||
reviewCount: "280+", imageSrc: "http://img.b2bpic.net/free-photo/top-view-cheeseburgers-wooden-board_23-2148290649.jpg", imageAlt: "Classic Smash Burger with melted cheese and house sauce"
|
||||
id: "1", brand: "WEEK Signature", name: "Classic Smash Burger", price: "45 SAR", rating: 5, reviewCount: "280+", imageSrc: "http://img.b2bpic.net/free-photo/top-view-cheeseburgers-wooden-board_23-2148290649.jpg", imageAlt: "Classic Smash Burger with melted cheese and house sauce"
|
||||
},
|
||||
{
|
||||
id: "2", brand: "WEEK Special", name: "WEEK Double Patty Burger", price: "65 SAR", rating: 5,
|
||||
reviewCount: "350+", imageSrc: "http://img.b2bpic.net/free-photo/high-angle-burgers-with-bacon_23-2148784474.jpg", imageAlt: "Double patty burger with caramelized onions and signature sauce"
|
||||
id: "2", brand: "WEEK Special", name: "WEEK Double Patty Burger", price: "65 SAR", rating: 5, reviewCount: "350+", imageSrc: "http://img.b2bpic.net/free-photo/high-angle-burgers-with-bacon_23-2148784474.jpg", imageAlt: "Double patty burger with caramelized onions and signature sauce"
|
||||
},
|
||||
{
|
||||
id: "3", brand: "WEEK Crispy", name: "Crispy Chicken Burger", price: "50 SAR", rating: 5,
|
||||
reviewCount: "240+", imageSrc: "http://img.b2bpic.net/free-photo/burger-with-mayonnaise-sauce-it_188544-15976.jpg", imageAlt: "Golden crispy chicken burger with fresh lettuce and spicy mayo"
|
||||
id: "3", brand: "WEEK Crispy", name: "Crispy Chicken Burger", price: "50 SAR", rating: 5, reviewCount: "240+", imageSrc: "http://img.b2bpic.net/free-photo/burger-with-mayonnaise-sauce-it_188544-15976.jpg", imageAlt: "Golden crispy chicken burger with fresh lettuce and spicy mayo"
|
||||
},
|
||||
{
|
||||
id: "4", brand: "WEEK Crepes", name: "Nutella Dream Crepe", price: "35 SAR", rating: 5,
|
||||
reviewCount: "420+", imageSrc: "http://img.b2bpic.net/free-photo/delicious-cherry-cake-with-fresh-cherries-top-view_114579-10444.jpg", imageAlt: "Crepe filled with Nutella and fresh strawberries"
|
||||
id: "4", brand: "WEEK Crepes", name: "Nutella Dream Crepe", price: "35 SAR", rating: 5, reviewCount: "420+", imageSrc: "http://img.b2bpic.net/free-photo/delicious-cherry-cake-with-fresh-cherries-top-view_114579-10444.jpg", imageAlt: "Crepe filled with Nutella and fresh strawberries"
|
||||
},
|
||||
{
|
||||
id: "5", brand: "WEEK Crepes", name: "Lotus Crepe", price: "38 SAR", rating: 5,
|
||||
reviewCount: "310+", imageSrc: "http://img.b2bpic.net/free-photo/crepes-with-white-cheese-raspberries-white-plate_114579-70110.jpg", imageAlt: "Crepe with Lotus spread and crispy biscuit crunch"
|
||||
id: "5", brand: "WEEK Crepes", name: "Lotus Crepe", price: "38 SAR", rating: 5, reviewCount: "310+", imageSrc: "http://img.b2bpic.net/free-photo/crepes-with-white-cheese-raspberries-white-plate_114579-70110.jpg", imageAlt: "Crepe with Lotus spread and crispy biscuit crunch"
|
||||
},
|
||||
{
|
||||
id: "6", brand: "WEEK Crepes", name: "Banana Chocolate Crepe", price: "35 SAR", rating: 5,
|
||||
reviewCount: "285+", imageSrc: "http://img.b2bpic.net/free-photo/choco-doner-chocolate-wrapped-pancake-plate_140725-10909.jpg", imageAlt: "Crepe with banana slices and rich chocolate"
|
||||
id: "6", brand: "WEEK Crepes", name: "Banana Chocolate Crepe", price: "35 SAR", rating: 5, reviewCount: "285+", imageSrc: "http://img.b2bpic.net/free-photo/choco-doner-chocolate-wrapped-pancake-plate_140725-10909.jpg", imageAlt: "Crepe with banana slices and rich chocolate"
|
||||
}
|
||||
]}
|
||||
/>
|
||||
|
||||
@@ -1,51 +1,39 @@
|
||||
"use client";
|
||||
import React from 'react';
|
||||
|
||||
import { memo } from "react";
|
||||
import useSvgTextLogo from "./useSvgTextLogo";
|
||||
import { cls } from "@/lib/utils";
|
||||
|
||||
interface SvgTextLogoProps {
|
||||
logoText: string;
|
||||
adjustHeightFactor?: number;
|
||||
verticalAlign?: "top" | "center";
|
||||
export interface SvgTextLogoProps {
|
||||
text: string;
|
||||
className?: string;
|
||||
fontSize?: number;
|
||||
fontWeight?: string | number;
|
||||
dominantBaseline?: 'auto' | 'text-top' | 'middle' | 'ideographic' | 'text-bottom' | 'mathematical' | 'central' | '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 = '',
|
||||
fontSize = 32,
|
||||
fontWeight = 'bold',
|
||||
dominantBaseline = 'middle',
|
||||
}) => {
|
||||
return (
|
||||
<svg
|
||||
ref={svgRef}
|
||||
viewBox={viewBox}
|
||||
className={cls("w-full", className)}
|
||||
style={{ aspectRatio: aspectRatio }}
|
||||
preserveAspectRatio="none"
|
||||
role="img"
|
||||
aria-label={`${logoText} logo`}
|
||||
width="100%"
|
||||
height="100%"
|
||||
viewBox={`0 0 ${text.length * fontSize} ${fontSize * 1.5}`}
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
className={className}
|
||||
>
|
||||
<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={dominantBaseline}
|
||||
fontSize={fontSize}
|
||||
fontWeight={fontWeight}
|
||||
fill="currentColor"
|
||||
>
|
||||
{logoText}
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
|
||||
export default SvgTextLogo;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user