Merge version_1 into main #2

Merged
bender merged 2 commits from version_1 into main 2026-03-11 07:57:53 +00:00
2 changed files with 39 additions and 43 deletions

View File

@@ -9,7 +9,7 @@ import TestimonialCardSixteen from '@/components/sections/testimonial/Testimonia
import SocialProofOne from '@/components/sections/socialProof/SocialProofOne';
import ContactText from '@/components/sections/contact/ContactText';
import FooterBaseCard from '@/components/sections/footer/FooterBaseCard';
import { Clock } from 'lucide-react';
import { Clock, Flame } from 'lucide-react';
export default function LandingPage() {
return (
@@ -43,16 +43,16 @@ export default function LandingPage() {
description="Maher Azeem Cafe brings fresh, quality dining to Okara. Join hundreds of satisfied neighbors—call to reserve your table or order today."
tag="Open Now"
tagIcon={Clock}
background={{ variant: "circleGradient" }}
background={{ variant: "plain" }}
mediaItems={[
{
imageSrc: "http://img.b2bpic.net/free-photo/table-set-dinning-table_1339-3436.jpg", imageAlt: "Welcoming Maher Azeem Cafe interior with warm lighting"
},
{
imageSrc: "http://img.b2bpic.net/free-photo/front-view-delicious-pakistan-dish-composition_23-2148821524.jpg?_wi=1", imageAlt: "Signature biryani dish plated beautifully"
imageSrc: "http://img.b2bpic.net/free-photo/front-view-delicious-pakistan-dish-composition_23-2148821524.jpg", imageAlt: "Signature biryani dish plated beautifully"
},
{
imageSrc: "http://img.b2bpic.net/free-photo/top-view-delicious-chicken-slices-with-tomato-sauce-grey-floor-sauce-dish-meat-chicken-tomato_140725-96230.jpg?_wi=1", imageAlt: "Aromatic chicken karahi traditional dish"
imageSrc: "http://img.b2bpic.net/free-photo/top-view-delicious-chicken-slices-with-tomato-sauce-grey-floor-sauce-dish-meat-chicken-tomato_140725-96230.jpg", imageAlt: "Aromatic chicken karahi traditional dish"
}
]}
buttons={[
@@ -68,13 +68,13 @@ export default function LandingPage() {
title="Our Bestsellers"
description="Discover our most-loved menu items, crafted with fresh ingredients and authentic recipes."
tag="Featured Menu"
tagIcon={Clock}
tagIcon={Flame}
features={[
{
title: "Signature Biryani", description: "Fragrant basmati rice layered with tender meat and aromatic spices. A local favorite for generations.", imageSrc: "http://img.b2bpic.net/free-photo/front-view-delicious-pakistan-dish-composition_23-2148821524.jpg?_wi=2", imageAlt: "Signature biryani", button: { text: "Order Now", href: "#contact" }
title: "Signature Biryani", description: "Fragrant basmati rice layered with tender meat and aromatic spices. A local favorite for generations.", imageSrc: "http://img.b2bpic.net/free-photo/front-view-delicious-pakistan-dish-composition_23-2148821524.jpg", imageAlt: "Signature biryani", button: { text: "Order Now", href: "#contact" }
},
{
title: "Chicken Karahi", description: "Bold, flavorful curry prepared fresh in cast-iron karahi. Spiced to perfection with garlic and peppers.", imageSrc: "http://img.b2bpic.net/free-photo/top-view-delicious-chicken-slices-with-tomato-sauce-grey-floor-sauce-dish-meat-chicken-tomato_140725-96230.jpg?_wi=2", imageAlt: "Chicken karahi", button: { text: "Order Now", href: "#contact" }
title: "Chicken Karahi", description: "Bold, flavorful curry prepared fresh in cast-iron karahi. Spiced to perfection with garlic and peppers.", imageSrc: "http://img.b2bpic.net/free-photo/top-view-delicious-chicken-slices-with-tomato-sauce-grey-floor-sauce-dish-meat-chicken-tomato_140725-96230.jpg", imageAlt: "Chicken karahi", button: { text: "Order Now", href: "#contact" }
},
{
title: "Tikka Masala", description: "Tender chicken tikka in creamy tomato sauce. Creamy, rich, and deeply satisfying.", imageSrc: "http://img.b2bpic.net/free-photo/side-view-multi-colored-meatballs-with-tomato-sauces-green-onions_140725-13961.jpg", imageAlt: "Tikka masala", button: { text: "Order Now", href: "#contact" }

View File

@@ -1,51 +1,47 @@
"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?: number | string;
fill?: string;
}
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',
fill = 'currentColor',
}) => {
const textLength = text.length;
const charWidth = fontSize * 0.6;
const width = textLength * charWidth + 40;
const height = fontSize + 20;
const xPos = 20;
const yPos = fontSize + 10;
return (
<svg
ref={svgRef}
viewBox={viewBox}
className={cls("w-full", className)}
style={{ aspectRatio: aspectRatio }}
preserveAspectRatio="none"
role="img"
aria-label={`${logoText} logo`}
width={width}
height={height}
viewBox={`0 0 ${width} ${height}`}
className={className}
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"
}}
x={xPos}
y={yPos}
fontSize={fontSize}
fontWeight={fontWeight}
fill={fill}
dominantBaseline="auto"
>
{logoText}
{text}
</text>
</svg>
);
});
};
SvgTextLogo.displayName = "SvgTextLogo";
export default SvgTextLogo;
export default SvgTextLogo;