Merge version_1 into main #2

Merged
bender merged 2 commits from version_1 into main 2026-03-12 16:58:21 +00:00
2 changed files with 52 additions and 59 deletions

View File

@@ -1,14 +1,14 @@
"use client"
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarLayoutFloatingInline from "@/components/navbar/NavbarLayoutFloatingInline";
import HeroBillboardCarousel from "@/components/sections/hero/HeroBillboardCarousel";
import FeatureCardMedia from "@/components/sections/feature/FeatureCardMedia";
import TestimonialCardTwelve from "@/components/sections/testimonial/TestimonialCardTwelve";
import TextAbout from "@/components/sections/about/TextAbout";
import ProductCardOne from "@/components/sections/product/ProductCardOne";
import ContactCTA from "@/components/sections/contact/ContactCTA";
import FooterLogoReveal from "@/components/sections/footer/FooterLogoReveal";
import NavbarLayoutFloatingInline from '@/components/navbar/NavbarLayoutFloatingInline';
import HeroBillboardCarousel from '@/components/sections/hero/HeroBillboardCarousel';
import FeatureCardMedia from '@/components/sections/feature/FeatureCardMedia';
import TestimonialCardTwelve from '@/components/sections/testimonial/TestimonialCardTwelve';
import TextAbout from '@/components/sections/about/TextAbout';
import ProductCardOne from '@/components/sections/product/ProductCardOne';
import ContactCTA from '@/components/sections/contact/ContactCTA';
import FooterLogoReveal from '@/components/sections/footer/FooterLogoReveal';
import { Sparkles, Star, Tv, Utensils, Heart, MapPin } from "lucide-react";
export default function LandingPage() {
@@ -19,7 +19,7 @@ export default function LandingPage() {
borderRadius="soft"
contentWidth="small"
sizing="mediumSizeLargeTitles"
background="aurora"
background="circleGradient"
cardStyle="outline"
primaryButtonStyle="shadow"
secondaryButtonStyle="radial-glow"
@@ -46,18 +46,18 @@ export default function LandingPage() {
tag="Babylon Bar"
tagIcon={Sparkles}
tagAnimation="slide-up"
background={{ variant: "aurora" }}
background={{ variant: "sparkles-gradient" }}
buttons={[
{ text: "Rezervă o masă", href: "reservation" },
{ text: "Vezi meciurile", href: "matches" }
]}
buttonAnimation="slide-up"
mediaItems={[
{ imageSrc: "http://img.b2bpic.net/free-photo/amazing-blonde-lady-sunglasses-resting-cafe-indoor-photo-lovely-young-woman-summer-dress-posing-with-glass-champagne-weekend_197531-9589.jpg?_wi=1", imageAlt: "Terasa Babylon Bar seara cu oameni" },
{ imageSrc: "http://img.b2bpic.net/free-photo/lot-delicious-food-beer-black-plates_114579-23345.jpg?_wi=1", imageAlt: "Bere rece la Babylon Bar" },
{ imageSrc: "http://img.b2bpic.net/free-photo/person-holding-glass-refreshing-cocktail-drink_23-2149384430.jpg?_wi=1", imageAlt: "Cocktail profesional la Babylon" },
{ imageSrc: "http://img.b2bpic.net/free-photo/fried-potatoes-wooden-table_140725-7324.jpg?_wi=1", imageAlt: "Snacks crispy la Babylon Bar" },
{ imageSrc: "http://img.b2bpic.net/free-photo/top-view-coffee-cups-with-roasted-beans_23-2148312106.jpg?_wi=1", imageAlt: "Cafea caldă la Babylon" }
{ imageSrc: "http://img.b2bpic.net/free-photo/amazing-blonde-lady-sunglasses-resting-cafe-indoor-photo-lovely-young-woman-summer-dress-posing-with-glass-champagne-weekend_197531-9589.jpg", imageAlt: "Terasa Babylon Bar seara cu oameni" },
{ imageSrc: "http://img.b2bpic.net/free-photo/lot-delicious-food-beer-black-plates_114579-23345.jpg", imageAlt: "Bere rece la Babylon Bar" },
{ imageSrc: "http://img.b2bpic.net/free-photo/person-holding-glass-refreshing-cocktail-drink_23-2149384430.jpg", imageAlt: "Cocktail profesional la Babylon" },
{ imageSrc: "http://img.b2bpic.net/free-photo/fried-potatoes-wooden-table_140725-7324.jpg", imageAlt: "Snacks crispy la Babylon Bar" },
{ imageSrc: "http://img.b2bpic.net/free-photo/top-view-coffee-cups-with-roasted-beans_23-2148312106.jpg", imageAlt: "Cafea caldă la Babylon" }
]}
ariaLabel="Hero section - Babylon Bar"
/>
@@ -72,16 +72,16 @@ export default function LandingPage() {
tagAnimation="slide-up"
features={[
{
id: "1", title: "Atmosferă Prietenoasă", description: "O vibe relaxată și plăcută unde fiecare se simte bine. Oameni drăguți care îți asigură o seară memorabilă.", tag: "Social", imageSrc: "http://img.b2bpic.net/free-photo/amazing-blonde-lady-sunglasses-resting-cafe-indoor-photo-lovely-young-woman-summer-dress-posing-with-glass-champagne-weekend_197531-9589.jpg?_wi=2", imageAlt: "Atmosferă prietenoasă la Babylon"
id: "1", title: "Atmosferă Prietenoasă", description: "O vibe relaxată și plăcută unde fiecare se simte bine. Oameni drăguți care îți asigură o seară memorabilă.", tag: "Social", imageSrc: "http://img.b2bpic.net/free-photo/amazing-blonde-lady-sunglasses-resting-cafe-indoor-photo-lovely-young-woman-summer-dress-posing-with-glass-champagne-weekend_197531-9589.jpg", imageAlt: "Atmosferă prietenoasă la Babylon"
},
{
id: "2", title: "Prețuri Corecte", description: "Băuturi de calitate la prețuri care nu sperie. Poți ieși fără să-ți gândești portofelul.", tag: "Accesibil", imageSrc: "http://img.b2bpic.net/free-photo/lot-delicious-food-beer-black-plates_114579-23345.jpg?_wi=2", imageAlt: "Bere la preț corect"
id: "2", title: "Prețuri Corecte", description: "Băuturi de calitate la prețuri care nu sperie. Poți ieși fără să-ți gândești portofelul.", tag: "Accesibil", imageSrc: "http://img.b2bpic.net/free-photo/lot-delicious-food-beer-black-plates_114579-23345.jpg", imageAlt: "Bere la preț corect"
},
{
id: "3", title: "Perfect pentru Meciuri", description: "Televizoare mari în interior și pe terasă. Urmărește fiecare meci cu prietenii și o bere rece.", tag: "Sporturi", imageSrc: "http://img.b2bpic.net/free-photo/fried-potatoes-wooden-table_140725-7324.jpg?_wi=2", imageAlt: "Meciuri live la Babylon"
id: "3", title: "Perfect pentru Meciuri", description: "Televizoare mari în interior și pe terasă. Urmărește fiecare meci cu prietenii și o bere rece.", tag: "Sporturi", imageSrc: "http://img.b2bpic.net/free-photo/fried-potatoes-wooden-table_140725-7324.jpg", imageAlt: "Meciuri live la Babylon"
},
{
id: "4", title: "Personal Profesionist", description: "Oameni care știu ce fac. Servire rapidă, băuturi bine pregătite și zâmbete sincere.", tag: "Calitate", imageSrc: "http://img.b2bpic.net/free-photo/person-holding-glass-refreshing-cocktail-drink_23-2149384430.jpg?_wi=2", imageAlt: "Personal profesionist"
id: "4", title: "Personal Profesionist", description: "Oameni care știu ce fac. Servire rapidă, băuturi bine pregătite și zâmbete sincere.", tag: "Calitate", imageSrc: "http://img.b2bpic.net/free-photo/person-holding-glass-refreshing-cocktail-drink_23-2149384430.jpg", imageAlt: "Personal profesionist"
}
]}
animationType="slide-up"
@@ -137,16 +137,16 @@ export default function LandingPage() {
tagAnimation="slide-up"
products={[
{
id: "1", name: "Bere Rece", price: "12 RON", imageSrc: "http://img.b2bpic.net/free-photo/lot-delicious-food-beer-black-plates_114579-23345.jpg?_wi=3", imageAlt: "Bere rece"
id: "1", name: "Bere Rece", price: "12 RON", imageSrc: "http://img.b2bpic.net/free-photo/lot-delicious-food-beer-black-plates_114579-23345.jpg", imageAlt: "Bere rece"
},
{
id: "2", name: "Cocktailuri Premium", price: "35 RON", imageSrc: "http://img.b2bpic.net/free-photo/person-holding-glass-refreshing-cocktail-drink_23-2149384430.jpg?_wi=3", imageAlt: "Cocktail"
id: "2", name: "Cocktailuri Premium", price: "35 RON", imageSrc: "http://img.b2bpic.net/free-photo/person-holding-glass-refreshing-cocktail-drink_23-2149384430.jpg", imageAlt: "Cocktail"
},
{
id: "3", name: "Snacks & Crispy", price: "18 RON", imageSrc: "http://img.b2bpic.net/free-photo/fried-potatoes-wooden-table_140725-7324.jpg?_wi=3", imageAlt: "Snacks crispy"
id: "3", name: "Snacks & Crispy", price: "18 RON", imageSrc: "http://img.b2bpic.net/free-photo/fried-potatoes-wooden-table_140725-7324.jpg", imageAlt: "Snacks crispy"
},
{
id: "4", name: "Cafea de Calitate", price: "8 RON", imageSrc: "http://img.b2bpic.net/free-photo/top-view-coffee-cups-with-roasted-beans_23-2148312106.jpg?_wi=2", imageAlt: "Cafea"
id: "4", name: "Cafea de Calitate", price: "8 RON", imageSrc: "http://img.b2bpic.net/free-photo/top-view-coffee-cups-with-roasted-beans_23-2148312106.jpg", imageAlt: "Cafea"
}
]}
gridVariant="uniform-all-items-equal"

View File

@@ -1,51 +1,44 @@
"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?: string | number;
fill?: string;
textAnchor?: 'start' | 'middle' | 'end';
dominantBaseline?: 'auto' | 'text-bottom' | 'alphabetic' | 'ideographic' | 'middle' | 'central' | 'mathematical' | 'hanging' | 'text-top';
}
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 = 32,
fontWeight = 'bold',
fill = 'currentColor',
textAnchor = 'middle',
dominantBaseline = 'middle',
}) => {
return (
<svg
ref={svgRef}
viewBox={viewBox}
className={cls("w-full", className)}
style={{ aspectRatio: aspectRatio }}
preserveAspectRatio="none"
viewBox={`0 0 ${text.length * fontSize * 0.6} ${fontSize * 1.5}`}
className={className}
role="img"
aria-label={`${logoText} logo`}
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="50%"
y="50%"
fontSize={fontSize}
fontWeight={fontWeight}
fill={fill}
textAnchor={textAnchor}
dominantBaseline={dominantBaseline}
>
{logoText}
{text}
</text>
</svg>
);
});
};
SvgTextLogo.displayName = "SvgTextLogo";
export default SvgTextLogo;
export default SvgTextLogo;