Merge version_1 into main #2
@@ -60,7 +60,8 @@ export default function LandingPage() {
|
||||
heading={[
|
||||
{ type: "text", content: "Celebrating" },
|
||||
{
|
||||
type: "image", src: "http://img.b2bpic.net/free-photo/summer-roll-stuffed-with-fresh-vegetables_53876-41246.jpg", alt: "Restaurant ambiance"},
|
||||
type: "image", src: "http://img.b2bpic.net/free-photo/summer-roll-stuffed-with-fresh-vegetables_53876-41246.jpg", alt: "Restaurant ambiance"
|
||||
},
|
||||
{ type: "text", content: "Kosovar Heritage Through Food" },
|
||||
]}
|
||||
useInvertedBackground={false}
|
||||
@@ -83,10 +84,12 @@ export default function LandingPage() {
|
||||
mediaItems: [
|
||||
{
|
||||
imageSrc:
|
||||
"http://img.b2bpic.net/free-photo/front-view-meat-basturma-kebab-with-tomato-hot-pepper-grill-with-onion-sumac_141793-4632.jpg?_wi=1", imageAlt: "Pljeskavica grilled meat"},
|
||||
"http://img.b2bpic.net/free-photo/front-view-meat-basturma-kebab-with-tomato-hot-pepper-grill-with-onion-sumac_141793-4632.jpg", imageAlt: "Pljeskavica grilled meat"
|
||||
},
|
||||
{
|
||||
imageSrc:
|
||||
"http://img.b2bpic.net/free-photo/front-view-meat-basturma-kebab-with-tomato-hot-pepper-grill-with-onion-sumac_141793-4632.jpg?_wi=2", imageAlt: "Pljeskavica plated"},
|
||||
"http://img.b2bpic.net/free-photo/front-view-meat-basturma-kebab-with-tomato-hot-pepper-grill-with-onion-sumac_141793-4632.jpg", imageAlt: "Pljeskavica plated"
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
@@ -95,10 +98,12 @@ export default function LandingPage() {
|
||||
mediaItems: [
|
||||
{
|
||||
imageSrc:
|
||||
"http://img.b2bpic.net/free-photo/top-view-delicious-baked-cake-with-raisings-fresh-green-grapes-dark-blue-background-cake-pie-sugar-sweet-biscuit-dough_140725-55882.jpg?_wi=1", imageAlt: "Golden byrek pastry"},
|
||||
"http://img.b2bpic.net/free-photo/top-view-delicious-baked-cake-with-raisings-fresh-green-grapes-dark-blue-background-cake-pie-sugar-sweet-biscuit-dough_140725-55882.jpg", imageAlt: "Golden byrek pastry"
|
||||
},
|
||||
{
|
||||
imageSrc:
|
||||
"http://img.b2bpic.net/free-photo/top-view-delicious-baked-cake-with-raisings-fresh-green-grapes-dark-blue-background-cake-pie-sugar-sweet-biscuit-dough_140725-55882.jpg?_wi=2", imageAlt: "Byrek cross section"},
|
||||
"http://img.b2bpic.net/free-photo/top-view-delicious-baked-cake-with-raisings-fresh-green-grapes-dark-blue-background-cake-pie-sugar-sweet-biscuit-dough_140725-55882.jpg", imageAlt: "Byrek cross section"
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
@@ -107,10 +112,12 @@ export default function LandingPage() {
|
||||
mediaItems: [
|
||||
{
|
||||
imageSrc:
|
||||
"http://img.b2bpic.net/free-photo/top-close-up-view-peppers-appetizing-peppers-cutting-board-spices-christmas-tree-toys_140725-73558.jpg?_wi=1", imageAlt: "Fresh kosovar salad"},
|
||||
"http://img.b2bpic.net/free-photo/top-close-up-view-peppers-appetizing-peppers-cutting-board-spices-christmas-tree-toys_140725-73558.jpg", imageAlt: "Fresh kosovar salad"
|
||||
},
|
||||
{
|
||||
imageSrc:
|
||||
"http://img.b2bpic.net/free-photo/top-close-up-view-peppers-appetizing-peppers-cutting-board-spices-christmas-tree-toys_140725-73558.jpg?_wi=2", imageAlt: "Salad close up"},
|
||||
"http://img.b2bpic.net/free-photo/top-close-up-view-peppers-appetizing-peppers-cutting-board-spices-christmas-tree-toys_140725-73558.jpg", imageAlt: "Salad close up"
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
@@ -119,10 +126,12 @@ export default function LandingPage() {
|
||||
mediaItems: [
|
||||
{
|
||||
imageSrc:
|
||||
"http://img.b2bpic.net/free-photo/front-view-meat-basturma-kebab-with-tomato-hot-pepper-grill-with-onion-sumac_141793-4632.jpg?_wi=3", imageAlt: "Wine selection"},
|
||||
"http://img.b2bpic.net/free-photo/front-view-meat-basturma-kebab-with-tomato-hot-pepper-grill-with-onion-sumac_141793-4632.jpg", imageAlt: "Wine selection"
|
||||
},
|
||||
{
|
||||
imageSrc:
|
||||
"http://img.b2bpic.net/free-photo/top-view-delicious-baked-cake-with-raisings-fresh-green-grapes-dark-blue-background-cake-pie-sugar-sweet-biscuit-dough_140725-55882.jpg?_wi=3", imageAlt: "Wine tasting"},
|
||||
"http://img.b2bpic.net/free-photo/top-view-delicious-baked-cake-with-raisings-fresh-green-grapes-dark-blue-background-cake-pie-sugar-sweet-biscuit-dough_140725-55882.jpg", imageAlt: "Wine tasting"
|
||||
},
|
||||
],
|
||||
},
|
||||
]}
|
||||
@@ -144,19 +153,23 @@ export default function LandingPage() {
|
||||
{
|
||||
id: "1", name: "Arjeta Hoti", role: "Local Food Critic", company: "Prishtina Dining Guide", rating: 5,
|
||||
imageSrc:
|
||||
"http://img.b2bpic.net/free-photo/close-up-portrait-portrait-magnificent-young-sensual-model-with-long-brown-hairs-shy-cute-smile-natural-pure-beauty-soft-make-up_291049-1735.jpg", imageAlt: "Arjeta Hoti"},
|
||||
"http://img.b2bpic.net/free-photo/close-up-portrait-portrait-magnificent-young-sensual-model-with-long-brown-hairs-shy-cute-smile-natural-pure-beauty-soft-make-up_291049-1735.jpg", imageAlt: "Arjeta Hoti"
|
||||
},
|
||||
{
|
||||
id: "2", name: "Bekim Gjergji", role: "Regular Customer", company: "Prishtina Community", rating: 5,
|
||||
imageSrc:
|
||||
"http://img.b2bpic.net/free-photo/portrait-waitress-holding-plate-with-muffin_107420-12322.jpg", imageAlt: "Bekim Gjergji"},
|
||||
"http://img.b2bpic.net/free-photo/portrait-waitress-holding-plate-with-muffin_107420-12322.jpg", imageAlt: "Bekim Gjergji"
|
||||
},
|
||||
{
|
||||
id: "3", name: "Drita Demolli", role: "Event Organizer", company: "Kosovo Hospitality", rating: 5,
|
||||
imageSrc:
|
||||
"http://img.b2bpic.net/free-photo/happy-business-woman-white-shirt_23-2148095748.jpg", imageAlt: "Drita Demolli"},
|
||||
"http://img.b2bpic.net/free-photo/happy-business-woman-white-shirt_23-2148095748.jpg", imageAlt: "Drita Demolli"
|
||||
},
|
||||
{
|
||||
id: "4", name: "Elir Kelmendi", role: "Travel Blogger", company: "Balkan Adventures", rating: 5,
|
||||
imageSrc:
|
||||
"http://img.b2bpic.net/free-photo/portrait-young-man-wearing-apron-standing-bar_23-2147874464.jpg", imageAlt: "Elir Kelmendi"},
|
||||
"http://img.b2bpic.net/free-photo/portrait-young-man-wearing-apron-standing-bar_23-2147874464.jpg", imageAlt: "Elir Kelmendi"
|
||||
},
|
||||
]}
|
||||
kpiItems={[
|
||||
{ value: "15+", label: "Years of Excellence" },
|
||||
|
||||
@@ -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;
|
||||
fontSize?: number;
|
||||
fontWeight?: 'normal' | 'bold' | 'lighter' | 'bolder' | number;
|
||||
fill?: string;
|
||||
strokeWidth?: number;
|
||||
stroke?: 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,
|
||||
fontSize = 48,
|
||||
fontWeight = 'bold',
|
||||
fill = 'currentColor',
|
||||
strokeWidth = 0,
|
||||
stroke = 'none',
|
||||
}) => {
|
||||
// Calculate approximate dimensions
|
||||
const charWidth = fontSize * 0.6; // Approximate character width
|
||||
const width = text.length * charWidth + 20;
|
||||
const height = fontSize + 20;
|
||||
|
||||
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 ${width} ${height}`}
|
||||
width={width}
|
||||
height={height}
|
||||
className={className}
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
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="10"
|
||||
y={fontSize}
|
||||
fontSize={fontSize}
|
||||
fontWeight={fontWeight}
|
||||
fill={fill}
|
||||
stroke={stroke}
|
||||
strokeWidth={strokeWidth}
|
||||
fontFamily="inherit"
|
||||
dominantBaseline="middle"
|
||||
>
|
||||
{logoText}
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
};
|
||||
|
||||
export default SvgTextLogo;
|
||||
|
||||
Reference in New Issue
Block a user