Merge version_1 into main #2
@@ -52,12 +52,12 @@ export default function LandingPage() {
|
||||
buttonAnimation="blur-reveal"
|
||||
background={{ variant: "plain" }}
|
||||
carouselItems={[
|
||||
{ id: "1", imageSrc: "http://img.b2bpic.net/free-photo/top-view-cooked-rice-with-seasonings-dark-surface-meal-photo-dish-food-dark_140725-82286.jpg?_wi=1", imageAlt: "Authentic Pakistani biryani" },
|
||||
{ id: "2", imageSrc: "http://img.b2bpic.net/free-photo/top-view-shakh-plov-delicious-eastern-meal-consists-cooked-rice-inside-round-dough-dark-background-rice-cooking-meal-food-cuisine_140725-86171.jpg?_wi=1", imageAlt: "Golden crispy chicken pies" },
|
||||
{ id: "3", imageSrc: "http://img.b2bpic.net/free-photo/close-up-view-delicious-pastry-concept_23-2148648825.jpg?_wi=1", imageAlt: "Fresh homemade cinnamon rolls" },
|
||||
{ id: "4", imageSrc: "http://img.b2bpic.net/free-photo/top-view-cooked-rice-with-seasonings-dark-surface-meal-photo-dish-food-dark_140725-82286.jpg?_wi=2", imageAlt: "Traditional biryani presentation" },
|
||||
{ id: "5", imageSrc: "http://img.b2bpic.net/free-photo/top-view-shakh-plov-delicious-eastern-meal-consists-cooked-rice-inside-round-dough-dark-background-rice-cooking-meal-food-cuisine_140725-86171.jpg?_wi=2", imageAlt: "Perfectly baked chicken pies" },
|
||||
{ id: "6", imageSrc: "http://img.b2bpic.net/free-photo/close-up-view-delicious-pastry-concept_23-2148648825.jpg?_wi=2", imageAlt: "Warm cinnamon rolls plated" }
|
||||
{ id: "1", imageSrc: "http://img.b2bpic.net/free-photo/top-view-cooked-rice-with-seasonings-dark-surface-meal-photo-dish-food-dark_140725-82286.jpg", imageAlt: "Authentic Pakistani biryani" },
|
||||
{ id: "2", imageSrc: "http://img.b2bpic.net/free-photo/top-view-shakh-plov-delicious-eastern-meal-consists-cooked-rice-inside-round-dough-dark-background-rice-cooking-meal-food-cuisine_140725-86171.jpg", imageAlt: "Golden crispy chicken pies" },
|
||||
{ id: "3", imageSrc: "http://img.b2bpic.net/free-photo/close-up-view-delicious-pastry-concept_23-2148648825.jpg", imageAlt: "Fresh homemade cinnamon rolls" },
|
||||
{ id: "4", imageSrc: "http://img.b2bpic.net/free-photo/top-view-cooked-rice-with-seasonings-dark-surface-meal-photo-dish-food-dark_140725-82286.jpg", imageAlt: "Traditional biryani presentation" },
|
||||
{ id: "5", imageSrc: "http://img.b2bpic.net/free-photo/top-view-shakh-plov-delicious-eastern-meal-consists-cooked-rice-inside-round-dough-dark-background-rice-cooking-meal-food-cuisine_140725-86171.jpg", imageAlt: "Perfectly baked chicken pies" },
|
||||
{ id: "6", imageSrc: "http://img.b2bpic.net/free-photo/close-up-view-delicious-pastry-concept_23-2148648825.jpg", imageAlt: "Warm cinnamon rolls plated" }
|
||||
]}
|
||||
autoPlay={true}
|
||||
autoPlayInterval={4000}
|
||||
@@ -98,6 +98,7 @@ export default function LandingPage() {
|
||||
imageSrc="http://img.b2bpic.net/free-photo/side-view-people-kitchen_23-2149720812.jpg"
|
||||
imageAlt="Sania's warm and professional kitchen"
|
||||
useInvertedBackground={true}
|
||||
metricsAnimation="slide-up"
|
||||
mediaAnimation="slide-up"
|
||||
/>
|
||||
</div>
|
||||
@@ -114,7 +115,7 @@ export default function LandingPage() {
|
||||
{ src: "http://img.b2bpic.net/free-photo/portrait-confident-man-looking-photographer_23-2148398473.jpg", alt: "Rabia Malik" }
|
||||
]}
|
||||
ratingAnimation="slide-up"
|
||||
avatarsAnimation="fade-in"
|
||||
avatarsAnimation="slide-up"
|
||||
useInvertedBackground={false}
|
||||
/>
|
||||
</div>
|
||||
@@ -140,7 +141,7 @@ export default function LandingPage() {
|
||||
|
||||
<div id="footer" data-section="footer">
|
||||
<FooterMedia
|
||||
imageSrc="http://img.b2bpic.net/free-photo/top-view-cooked-rice-with-seasonings-dark-surface-meal-photo-dish-food-dark_140725-82286.jpg?_wi=3"
|
||||
imageSrc="http://img.b2bpic.net/free-photo/top-view-cooked-rice-with-seasonings-dark-surface-meal-photo-dish-food-dark_140725-82286.jpg"
|
||||
imageAlt="Sania's Cuisine - Fresh Homemade Meals"
|
||||
logoText="Sania's Cuisine"
|
||||
copyrightText="© 2025 Sania's Cuisine, Bani Gala, Islamabad. All rights reserved."
|
||||
|
||||
@@ -1,51 +1,38 @@
|
||||
"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;
|
||||
fontSize?: number;
|
||||
fontWeight?: number | string;
|
||||
fill?: 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,
|
||||
fontSize = 24,
|
||||
fontWeight = 'bold',
|
||||
fill = 'currentColor',
|
||||
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 ${text.length * fontSize} ${fontSize * 1.5}`}
|
||||
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"
|
||||
}}
|
||||
y={fontSize}
|
||||
fontSize={fontSize}
|
||||
fontWeight={fontWeight}
|
||||
fill={fill}
|
||||
dominantBaseline="central"
|
||||
>
|
||||
{logoText}
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
};
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
|
||||
export default SvgTextLogo;
|
||||
export default SvgTextLogo;
|
||||
Reference in New Issue
Block a user