Merge version_1 into main #2

Merged
bender merged 2 commits from version_1 into main 2026-03-11 20:16:21 +00:00
2 changed files with 49 additions and 47 deletions

View File

@@ -44,7 +44,7 @@ export default function LandingPage() {
<HeroLogoBillboardSplit
logoText="Q OUT"
description="Discover bold spices, generous portions, and unforgettable flavor at Q OUT Restaurant. Authentic Yemeni cuisine made fresh every day."
background={{ variant: "circleGradient" }}
background={{ variant: "radial-gradient" }}
buttons={[
{ text: "View Menu", href: "#featured" },
{ text: "Order Online", href: "#contact" }
@@ -85,13 +85,13 @@ export default function LandingPage() {
animationType="slide-up"
products={[
{
id: "1", name: "Chicken Zarbian", price: "$14.99", imageSrc: "http://img.b2bpic.net/free-photo/grilled-chicken-nuggets-wings-breast-with-onion-salad_114579-913.jpg?_wi=1", imageAlt: "Chicken Zarbian - fragrant basmati rice with spiced chicken"
id: "1", name: "Chicken Zarbian", price: "$14.99", imageSrc: "http://img.b2bpic.net/free-photo/grilled-chicken-nuggets-wings-breast-with-onion-salad_114579-913.jpg", imageAlt: "Chicken Zarbian - fragrant basmati rice with spiced chicken"
},
{
id: "2", name: "Yemeni Rice & Beef", price: "$15.99", imageSrc: "http://img.b2bpic.net/free-photo/shrimp-dish-with-mashed-walnut_140725-4087.jpg?_wi=1", imageAlt: "Yemeni Rice and Beef - slow cooked with aromatic spices"
id: "2", name: "Yemeni Rice & Beef", price: "$15.99", imageSrc: "http://img.b2bpic.net/free-photo/shrimp-dish-with-mashed-walnut_140725-4087.jpg", imageAlt: "Yemeni Rice and Beef - slow cooked with aromatic spices"
},
{
id: "3", name: "Catfish Plate", price: "$13.99", imageSrc: "http://img.b2bpic.net/free-photo/top-view-shrimp-with-sesame-seeds-with-lemon-green-cocktail-glass_176474-3445.jpg?_wi=1", imageAlt: "Catfish Plate - perfectly seasoned with house sauce"
id: "3", name: "Catfish Plate", price: "$13.99", imageSrc: "http://img.b2bpic.net/free-photo/top-view-shrimp-with-sesame-seeds-with-lemon-green-cocktail-glass_176474-3445.jpg", imageAlt: "Catfish Plate - perfectly seasoned with house sauce"
}
]}
buttons={[
@@ -115,7 +115,7 @@ export default function LandingPage() {
imageSrc: "http://img.b2bpic.net/free-photo/couple-making-vase-with-clay_1157-30691.jpg", imageAlt: "Chef preparing authentic Yemeni dishes"
},
{
imageSrc: "http://img.b2bpic.net/free-photo/boy-having-coffee-restaurant_23-2148172665.jpg?_wi=1", imageAlt: "Warm restaurant interior"
imageSrc: "http://img.b2bpic.net/free-photo/boy-having-coffee-restaurant_23-2148172665.jpg", imageAlt: "Warm restaurant interior"
}
]
},
@@ -123,7 +123,7 @@ export default function LandingPage() {
title: "Fresh Ingredients", description: "Everything cooked fresh daily. No shortcuts, no compromises on quality.", icon: Leaf,
mediaItems: [
{
imageSrc: "http://img.b2bpic.net/free-photo/grilled-chicken-nuggets-wings-breast-with-onion-salad_114579-913.jpg?_wi=2", imageAlt: "Fresh chicken zarbian dish"
imageSrc: "http://img.b2bpic.net/free-photo/grilled-chicken-nuggets-wings-breast-with-onion-salad_114579-913.jpg", imageAlt: "Fresh chicken zarbian dish"
},
{
imageSrc: "http://img.b2bpic.net/free-photo/side-view-chebureks-kutab-fried-chebureks-with-cheese-herbs-meat-with-sauce-dark-wooden-table-with-city-view_176474-2485.jpg", imageAlt: "Fresh Yemeni maqsqas with bread"
@@ -134,10 +134,10 @@ export default function LandingPage() {
title: "Generous Portions", description: "Big plates that leave you satisfied. We believe in value and abundance.", icon: Flame,
mediaItems: [
{
imageSrc: "http://img.b2bpic.net/free-photo/shrimp-dish-with-mashed-walnut_140725-4087.jpg?_wi=2", imageAlt: "Generous portion of Yemeni rice and beef"
imageSrc: "http://img.b2bpic.net/free-photo/shrimp-dish-with-mashed-walnut_140725-4087.jpg", imageAlt: "Generous portion of Yemeni rice and beef"
},
{
imageSrc: "http://img.b2bpic.net/free-photo/top-view-shrimp-with-sesame-seeds-with-lemon-green-cocktail-glass_176474-3445.jpg?_wi=2", imageAlt: "Full catfish plate with sides"
imageSrc: "http://img.b2bpic.net/free-photo/top-view-shrimp-with-sesame-seeds-with-lemon-green-cocktail-glass_176474-3445.jpg", imageAlt: "Full catfish plate with sides"
}
]
},
@@ -145,7 +145,7 @@ export default function LandingPage() {
title: "Friendly Service", description: "Welcoming staff who make every guest feel at home. Hospitality is our priority.", icon: Heart,
mediaItems: [
{
imageSrc: "http://img.b2bpic.net/free-photo/boy-having-coffee-restaurant_23-2148172665.jpg?_wi=2", imageAlt: "Cozy restaurant dining area"
imageSrc: "http://img.b2bpic.net/free-photo/boy-having-coffee-restaurant_23-2148172665.jpg", imageAlt: "Cozy restaurant dining area"
},
{
imageSrc: "http://img.b2bpic.net/free-photo/two-persons-drinking-arab-tea_23-2147796776.jpg", imageAlt: "Warm tea service"
@@ -156,10 +156,10 @@ export default function LandingPage() {
title: "Great Value", description: "High-quality meals at affordable prices. Authentic taste doesn't have to be expensive.", icon: DollarSign,
mediaItems: [
{
imageSrc: "http://img.b2bpic.net/free-photo/grilled-chicken-nuggets-wings-breast-with-onion-salad_114579-913.jpg?_wi=3", imageAlt: "Affordable quality dish"
imageSrc: "http://img.b2bpic.net/free-photo/grilled-chicken-nuggets-wings-breast-with-onion-salad_114579-913.jpg", imageAlt: "Affordable quality dish"
},
{
imageSrc: "http://img.b2bpic.net/free-photo/shrimp-dish-with-mashed-walnut_140725-4087.jpg?_wi=3", imageAlt: "Value-packed meal"
imageSrc: "http://img.b2bpic.net/free-photo/shrimp-dish-with-mashed-walnut_140725-4087.jpg", imageAlt: "Value-packed meal"
}
]
}
@@ -186,7 +186,7 @@ export default function LandingPage() {
tag="Get In Touch"
title="Craving Yemeni Flavor?"
description="Order your favorite dishes or reach out to learn more about Q OUT. Fresh, flavorful, and affordable—delivered with love."
background={{ variant: "circleGradient" }}
background={{ variant: "radial-gradient" }}
useInvertedBackground={false}
inputPlaceholder="Your email or phone"
buttonText="Contact Us"

View File

@@ -1,51 +1,53 @@
"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;
textClassName?: string;
fill?: string;
fontSize?: number;
fontWeight?: string | number;
fontFamily?: string;
letterSpacing?: number;
}
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 = '',
textClassName = '',
fill = 'currentColor',
fontSize = 48,
fontWeight = 700,
fontFamily = 'system-ui, -apple-system, sans-serif',
letterSpacing = 0,
}) => {
const padding = 20;
const lineHeight = fontSize * 1.2;
const estimatedWidth = text.length * fontSize * 0.6 + padding * 2;
const estimatedHeight = lineHeight + padding * 2;
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 ${estimatedWidth} ${estimatedHeight}`}
className={`inline-block ${className}`}
xmlns="http://www.w3.org/2000/svg"
preserveAspectRatio="xMidYMid meet"
>
<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={padding}
y={padding + fontSize}
fill={fill}
fontSize={fontSize}
fontWeight={fontWeight}
fontFamily={fontFamily}
letterSpacing={letterSpacing}
dominantBaseline="hanging"
className={textClassName}
>
{logoText}
{text}
</text>
</svg>
);
});
SvgTextLogo.displayName = "SvgTextLogo";
};
export default SvgTextLogo;