Merge version_1 into main #2

Merged
bender merged 2 commits from version_1 into main 2026-03-12 09:12:20 +00:00
2 changed files with 21 additions and 42 deletions

View File

@@ -58,7 +58,7 @@ export default function LandingPage() {
{ text: "Order Online", href: "https://www.swiggy.com" },
{ text: "Call Now", href: "tel:+919876543210" }
]}
imageSrc="http://img.b2bpic.net/free-photo/top-view-delicious-chicken-skewers-wooden-board-other-stuffs-black-table_140725-147312.jpg?_wi=1"
imageSrc="http://img.b2bpic.net/free-photo/top-view-delicious-chicken-skewers-wooden-board-other-stuffs-black-table_140725-147312.jpg"
imageAlt="Grilled kebabs from Miya Kebabs"
mediaAnimation="slide-up"
imagePosition="right"
@@ -108,19 +108,19 @@ export default function LandingPage() {
features={[
{
id: "1", title: "Authentic Tandoor Flavors", tags: ["Traditional", "Cooked Fresh"],
imageSrc: "http://img.b2bpic.net/free-photo/group-friends-having-lunch-together-restaurant_23-2150520113.jpg?_wi=1", imageAlt: "Authentic tandoor cooking"
imageSrc: "http://img.b2bpic.net/free-photo/group-friends-having-lunch-together-restaurant_23-2150520113.jpg", imageAlt: "Authentic tandoor cooking"
},
{
id: "2", title: "Veg & Non-Veg Excellence", tags: ["All Options", "Delicious"],
imageSrc: "http://img.b2bpic.net/free-photo/people-walking-near-sign-board-subway_23-2148184350.jpg?_wi=1", imageAlt: "Variety of menu options"
imageSrc: "http://img.b2bpic.net/free-photo/people-walking-near-sign-board-subway_23-2148184350.jpg", imageAlt: "Variety of menu options"
},
{
id: "3", title: "Late Night Dining Till 12:30 AM", tags: ["Night Owls", "Premium"],
imageSrc: "http://img.b2bpic.net/free-photo/top-view-delicious-chicken-skewers-wooden-board-other-stuffs-black-table_140725-147312.jpg?_wi=2", imageAlt: "Late night dining experience"
imageSrc: "http://img.b2bpic.net/free-photo/top-view-delicious-chicken-skewers-wooden-board-other-stuffs-black-table_140725-147312.jpg", imageAlt: "Late night dining experience"
},
{
id: "4", title: "Prime Baner High Street Location", tags: ["Easy Access", "Convenient"],
imageSrc: "http://img.b2bpic.net/free-photo/group-friends-having-lunch-together-restaurant_23-2150520113.jpg?_wi=2", imageAlt: "Prime location at Baner High Street"
imageSrc: "http://img.b2bpic.net/free-photo/group-friends-having-lunch-together-restaurant_23-2150520113.jpg", imageAlt: "Prime location at Baner High Street"
}
]}
/>
@@ -167,10 +167,11 @@ export default function LandingPage() {
{ value: "Open Daily", title: "12 PM - 12:30 AM" },
{ value: "Baner", title: "Balewaldi High Street" }
]}
imageSrc="http://img.b2bpic.net/free-photo/people-walking-near-sign-board-subway_23-2148184350.jpg?_wi=2"
imageSrc="http://img.b2bpic.net/free-photo/people-walking-near-sign-board-subway_23-2148184350.jpg"
imageAlt="Miya Kebabs storefront location"
useInvertedBackground={false}
mediaAnimation="slide-up"
metricsAnimation="slide-up"
/>
</div>

View File

@@ -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;