Merge version_1 into main #2

Merged
bender merged 2 commits from version_1 into main 2026-03-11 19:25:25 +00:00
2 changed files with 40 additions and 58 deletions

View File

@@ -20,7 +20,7 @@ export default function LandingPage() {
borderRadius="rounded"
contentWidth="medium"
sizing="largeSmallSizeMediumTitles"
background="floatingGradient"
background="circleGradient"
cardStyle="layered-gradient"
primaryButtonStyle="double-inset"
secondaryButtonStyle="glass"
@@ -48,29 +48,29 @@ export default function LandingPage() {
description="Soczyste mięsa z grilla, greckie smaki i świetna atmosfera. Odkryj autentyczne BBQ połączone z inspiracją śródziemnomorską."
tag="Gorąca Oferta"
tagIcon={Flame}
background={{ variant: "floatingGradient" }}
background={{ variant: "plain" }}
buttons={[
{ text: "Zobacz Menu", href: "#dishes" },
{ text: "Jak do nas trafić", href: "#location" }
]}
carouselItems={[
{
id: "carousel-1", imageSrc: "http://img.b2bpic.net/free-photo/barbecue-background_23-2147819242.jpg?_wi=1", imageAlt: "Grilling meat on open fire"
id: "carousel-1", imageSrc: "http://img.b2bpic.net/free-photo/barbecue-background_23-2147819242.jpg", imageAlt: "Grilling meat on open fire"
},
{
id: "carousel-2", imageSrc: "http://img.b2bpic.net/free-photo/fried-meat-with-grilled-vegetables-bread_140725-3146.jpg?_wi=1", imageAlt: "Greek souvlaki skewers"
id: "carousel-2", imageSrc: "http://img.b2bpic.net/free-photo/fried-meat-with-grilled-vegetables-bread_140725-3146.jpg", imageAlt: "Greek souvlaki skewers"
},
{
id: "carousel-3", imageSrc: "http://img.b2bpic.net/free-photo/chicken-doner-with-vegetables-herbs-pita-bread_141793-57.jpg?_wi=1", imageAlt: "Fresh gyros with fries"
id: "carousel-3", imageSrc: "http://img.b2bpic.net/free-photo/chicken-doner-with-vegetables-herbs-pita-bread_141793-57.jpg", imageAlt: "Fresh gyros with fries"
},
{
id: "carousel-4", imageSrc: "http://img.b2bpic.net/free-photo/beef-cotlets-with-vegetable-salad-potato-sticks_114579-2450.jpg?_wi=1", imageAlt: "Grilled Greek meatballs"
id: "carousel-4", imageSrc: "http://img.b2bpic.net/free-photo/beef-cotlets-with-vegetable-salad-potato-sticks_114579-2450.jpg", imageAlt: "Grilled Greek meatballs"
},
{
id: "carousel-5", imageSrc: "http://img.b2bpic.net/free-photo/grilled-chicken-fillet-with-salad-scattered-vegetable-pieces-wooden-desk_23-2148113651.jpg?_wi=1", imageAlt: "Perfectly grilled chicken fillet"
id: "carousel-5", imageSrc: "http://img.b2bpic.net/free-photo/grilled-chicken-fillet-with-salad-scattered-vegetable-pieces-wooden-desk_23-2148113651.jpg", imageAlt: "Perfectly grilled chicken fillet"
},
{
id: "carousel-6", imageSrc: "http://img.b2bpic.net/free-photo/delicious-traditional-jewish-food-arrangement_23-2148814478.jpg?_wi=1", imageAlt: "Warm fresh pita bread"
id: "carousel-6", imageSrc: "http://img.b2bpic.net/free-photo/delicious-traditional-jewish-food-arrangement_23-2148814478.jpg", imageAlt: "Warm fresh pita bread"
}
]}
autoPlay={true}
@@ -95,7 +95,7 @@ export default function LandingPage() {
title: "Domowa Atmosfera", description: "Uroczysta, zapraszająca atmosfera stworzona dla rodzin i przyjaciół szukających autentycznego doświadczenia.", icon: Heart
}
]}
imageSrc="http://img.b2bpic.net/free-photo/delicious-gulas-dish-assortment_23-2149072593.jpg?_wi=1"
imageSrc="http://img.b2bpic.net/free-photo/delicious-gulas-dish-assortment_23-2149072593.jpg"
imageAlt="Warm restaurant interior"
mediaAnimation="none"
imagePosition="right"
@@ -112,22 +112,22 @@ export default function LandingPage() {
gridVariant="three-columns-all-equal-width"
products={[
{
id: "1", name: "Souvlaki", price: "32 zł", imageSrc: "http://img.b2bpic.net/free-photo/fried-meat-with-grilled-vegetables-bread_140725-3146.jpg?_wi=2", imageAlt: "Souvlaki"
id: "1", name: "Souvlaki", price: "32 zł", imageSrc: "http://img.b2bpic.net/free-photo/fried-meat-with-grilled-vegetables-bread_140725-3146.jpg", imageAlt: "Souvlaki"
},
{
id: "2", name: "Gyros z frytkami", price: "28 zł", imageSrc: "http://img.b2bpic.net/free-photo/chicken-doner-with-vegetables-herbs-pita-bread_141793-57.jpg?_wi=2", imageAlt: "Gyros with fries"
id: "2", name: "Gyros z frytkami", price: "28 zł", imageSrc: "http://img.b2bpic.net/free-photo/chicken-doner-with-vegetables-herbs-pita-bread_141793-57.jpg", imageAlt: "Gyros with fries"
},
{
id: "3", name: "Greckie Bifteki", price: "35 zł", imageSrc: "http://img.b2bpic.net/free-photo/beef-cotlets-with-vegetable-salad-potato-sticks_114579-2450.jpg?_wi=2", imageAlt: "Greek meatballs"
id: "3", name: "Greckie Bifteki", price: "35 zł", imageSrc: "http://img.b2bpic.net/free-photo/beef-cotlets-with-vegetable-salad-potato-sticks_114579-2450.jpg", imageAlt: "Greek meatballs"
},
{
id: "4", name: "Filet z Kurczaka", price: "30 zł", imageSrc: "http://img.b2bpic.net/free-photo/grilled-chicken-fillet-with-salad-scattered-vegetable-pieces-wooden-desk_23-2148113651.jpg?_wi=2", imageAlt: "Grilled chicken fillet"
id: "4", name: "Filet z Kurczaka", price: "30 zł", imageSrc: "http://img.b2bpic.net/free-photo/grilled-chicken-fillet-with-salad-scattered-vegetable-pieces-wooden-desk_23-2148113651.jpg", imageAlt: "Grilled chicken fillet"
},
{
id: "5", name: "Pita Domowa", price: "12 zł", imageSrc: "http://img.b2bpic.net/free-photo/delicious-traditional-jewish-food-arrangement_23-2148814478.jpg?_wi=2", imageAlt: "Fresh pita bread"
id: "5", name: "Pita Domowa", price: "12 zł", imageSrc: "http://img.b2bpic.net/free-photo/delicious-traditional-jewish-food-arrangement_23-2148814478.jpg", imageAlt: "Fresh pita bread"
},
{
id: "6", name: "Frytki z Sosem", price: "15 zł", imageSrc: "http://img.b2bpic.net/free-photo/salad-with-herbs-fruits-vegetables-platter_114579-71330.jpg?_wi=1", imageAlt: "Fries with sauce"
id: "6", name: "Frytki z Sosem", price: "15 zł", imageSrc: "http://img.b2bpic.net/free-photo/salad-with-herbs-fruits-vegetables-platter_114579-71330.jpg", imageAlt: "Fries with sauce"
}
]}
/>
@@ -144,11 +144,11 @@ export default function LandingPage() {
testimonials={[
{
id: "1", name: "Marta Kowalski", handle: "@marta_k", testimonial: "Zamówiliśmy greckie bifteki oraz filet z kurczaka mięso było dobrze doprawione i soczyste. Frytki bardzo smaczne, a świeża sałatka z sosem idealnie dopełniała zestaw. Za dwa obiady zapłaciliśmy tylko 60 zł świetna jakość w rewelacyjnej cenie.", rating: 5,
imageSrc: "http://img.b2bpic.net/free-photo/closeup-shot-handsome-male-smiling_181624-41237.jpg?_wi=1", imageAlt: "Marta Kowalski"
imageSrc: "http://img.b2bpic.net/free-photo/closeup-shot-handsome-male-smiling_181624-41237.jpg", imageAlt: "Marta Kowalski"
},
{
id: "2", name: "Piotr Nowak", handle: "@piotr_bbq", testimonial: "Wszystko na 5! Niepozorny lokal, ale przepyszne jedzenie i przesympatyczna obsługa. Smakuje dokładnie tak jak w Grecji. Już trzeci raz tutaj wracam z przyjaciółmi. Polecam każdemu!", rating: 5,
imageSrc: "http://img.b2bpic.net/free-photo/closeup-smiling-beautiful-adult-businesswoman_1262-1760.jpg?_wi=1", imageAlt: "Piotr Nowak"
imageSrc: "http://img.b2bpic.net/free-photo/closeup-smiling-beautiful-adult-businesswoman_1262-1760.jpg", imageAlt: "Piotr Nowak"
},
{
id: "3", name: "Anna Lewandowska", handle: "@anna_travels", testimonial: "Najlepsza pitka jaką jadłam w Polsce myślałam że po ten smak trzeba jechać do Grecji. Mięso idealne, przyprawy wspaniałe, atmosfera przeurocza. Moja rodzina i ja nie możemy się doczekać następnej wizyty!", rating: 5,
@@ -160,11 +160,11 @@ export default function LandingPage() {
},
{
id: "5", name: "Katarzyna Mróz", handle: "@kasia_gourmet", testimonial: "Niesamowite doświadczenie kulinarne za przystępną cenę. Grillowanie tutaj to sztuka widać pasję każdego pracownika. Mięso zawsze świeże, sosy domowe, porcie duże. To moje nowe ulubione miejsce!", rating: 5,
imageSrc: "http://img.b2bpic.net/free-photo/closeup-shot-handsome-male-smiling_181624-41237.jpg?_wi=2", imageAlt: "Katarzyna Mróz"
imageSrc: "http://img.b2bpic.net/free-photo/closeup-shot-handsome-male-smiling_181624-41237.jpg", imageAlt: "Katarzyna Mróz"
},
{
id: "6", name: "Michał Szulc", handle: "@michał_test", testimonial: "Grill Time to odkrycie roku! Zamawialiśmy dla całej rodziny - każdy znalazł coś dla siebie. Szef tutaj wie co robi z mięsem. Cena uczciwa, atmosfera rodzinna. Polecanko gorące!", rating: 5,
imageSrc: "http://img.b2bpic.net/free-photo/closeup-smiling-beautiful-adult-businesswoman_1262-1760.jpg?_wi=2", imageAlt: "Michał Szulc"
imageSrc: "http://img.b2bpic.net/free-photo/closeup-smiling-beautiful-adult-businesswoman_1262-1760.jpg", imageAlt: "Michał Szulc"
}
]}
/>
@@ -180,7 +180,7 @@ export default function LandingPage() {
features={[
{
id: "gallery-feature-1", title: "Mięsa Grillowane na Otwartym Ogniu", tags: ["Specjalność", "Domowa Atmosfera"],
imageSrc: "http://img.b2bpic.net/free-photo/barbecue-background_23-2147819242.jpg?_wi=2", imageAlt: "Grilled meat on fire"
imageSrc: "http://img.b2bpic.net/free-photo/barbecue-background_23-2147819242.jpg", imageAlt: "Grilled meat on fire"
},
{
id: "gallery-feature-2", title: "Autentyczne Greckie Smaki", tags: ["Tradycyjna Receptura", "Świeże Składniki"],
@@ -188,7 +188,7 @@ export default function LandingPage() {
},
{
id: "gallery-feature-3", title: "Wnętrze Wypełnione Ciepłem", tags: ["Rodzinna Atmosfera", "Zapraszająca"],
imageSrc: "http://img.b2bpic.net/free-photo/delicious-gulas-dish-assortment_23-2149072593.jpg?_wi=2", imageAlt: "Restaurant interior"
imageSrc: "http://img.b2bpic.net/free-photo/delicious-gulas-dish-assortment_23-2149072593.jpg", imageAlt: "Restaurant interior"
},
{
id: "gallery-feature-4", title: "Kuchnia Otwarta - Obserwuj Magię", tags: ["Profesjonalizm", "Przejrzystość"],
@@ -200,7 +200,7 @@ export default function LandingPage() {
},
{
id: "gallery-feature-6", title: "Doskonała Prezentacja Każdego Dania", tags: ["Staranność", "Smak"],
imageSrc: "http://img.b2bpic.net/free-photo/salad-with-herbs-fruits-vegetables-platter_114579-71330.jpg?_wi=2", imageAlt: "Perfectly plated dish"
imageSrc: "http://img.b2bpic.net/free-photo/salad-with-herbs-fruits-vegetables-platter_114579-71330.jpg", imageAlt: "Perfectly plated dish"
}
]}
/>

View File

@@ -1,51 +1,33 @@
"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;
}
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 = '',
textClassName = '',
}) => {
return (
<svg
ref={svgRef}
viewBox={viewBox}
className={cls("w-full", className)}
style={{ aspectRatio: aspectRatio }}
preserveAspectRatio="none"
role="img"
aria-label={`${logoText} logo`}
className={className}
viewBox={`0 0 ${text.length * 60} 100`}
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="50%"
y="50%"
textAnchor="middle"
dominantBaseline="middle"
className={textClassName}
>
{logoText}
{text}
</text>
</svg>
);
});
SvgTextLogo.displayName = "SvgTextLogo";
};
export default SvgTextLogo;