Merge version_1 into main #2
@@ -21,7 +21,7 @@ export default function LandingPage() {
|
||||
borderRadius="pill"
|
||||
contentWidth="smallMedium"
|
||||
sizing="largeSizeMediumTitles"
|
||||
background="aurora"
|
||||
background="circleGradient"
|
||||
cardStyle="glass-depth"
|
||||
primaryButtonStyle="flat"
|
||||
secondaryButtonStyle="layered"
|
||||
@@ -48,7 +48,7 @@ export default function LandingPage() {
|
||||
tag="Legendárne Pivo"
|
||||
tagIcon={Beer}
|
||||
tagAnimation="slide-up"
|
||||
background={{ variant: "aurora" }}
|
||||
background={{ variant: "plain" }}
|
||||
buttons={[
|
||||
{ text: "Objednať Pivo", href: "#products" },
|
||||
{ text: "Viac Informácií", href: "#about" }
|
||||
@@ -56,11 +56,11 @@ export default function LandingPage() {
|
||||
buttonAnimation="slide-up"
|
||||
carouselItems={[
|
||||
{ id: "1", imageSrc: "http://img.b2bpic.net/free-photo/medium-shot-working-beer-factory_23-2150573969.jpg", imageAlt: "Pivovarňa interiér" },
|
||||
{ id: "2", imageSrc: "http://img.b2bpic.net/free-photo/people-drinking-kombucha-gathering_23-2150168509.jpg?_wi=1", imageAlt: "Tradičné pivovárske postupy" },
|
||||
{ id: "3", imageSrc: "http://img.b2bpic.net/free-photo/glass-beer-wood-background_93675-130670.jpg?_wi=1", imageAlt: "Zlatý Pilzner" },
|
||||
{ id: "4", imageSrc: "http://img.b2bpic.net/free-photo/crackers-glass-cold-beer-marble-surface-high-quality-photo_114579-67295.jpg?_wi=1", imageAlt: "Tmavý Jantár" },
|
||||
{ id: "5", imageSrc: "http://img.b2bpic.net/free-photo/christmas-beer-glass-gifts-high-angle_23-2149757175.jpg?_wi=1", imageAlt: "Pšenično Pivo" },
|
||||
{ id: "6", imageSrc: "http://img.b2bpic.net/free-photo/delicious-white-tuna-recipe-still-life_23-2151143270.jpg?_wi=1", imageAlt: "Jedlo a Pivo" }
|
||||
{ id: "2", imageSrc: "http://img.b2bpic.net/free-photo/people-drinking-kombucha-gathering_23-2150168509.jpg", imageAlt: "Tradičné pivovárske postupy" },
|
||||
{ id: "3", imageSrc: "http://img.b2bpic.net/free-photo/glass-beer-wood-background_93675-130670.jpg", imageAlt: "Zlatý Pilzner" },
|
||||
{ id: "4", imageSrc: "http://img.b2bpic.net/free-photo/crackers-glass-cold-beer-marble-surface-high-quality-photo_114579-67295.jpg", imageAlt: "Tmavý Jantár" },
|
||||
{ id: "5", imageSrc: "http://img.b2bpic.net/free-photo/christmas-beer-glass-gifts-high-angle_23-2149757175.jpg", imageAlt: "Pšenično Pivo" },
|
||||
{ id: "6", imageSrc: "http://img.b2bpic.net/free-photo/delicious-white-tuna-recipe-still-life_23-2151143270.jpg", imageAlt: "Jedlo a Pivo" }
|
||||
]}
|
||||
autoPlay={true}
|
||||
autoPlayInterval={4000}
|
||||
@@ -79,7 +79,7 @@ export default function LandingPage() {
|
||||
{ title: "Tradičné Metódy", description: "Ponechávame si starobylé postupy pivovárstva presne tak ako kedysi", icon: Hammer },
|
||||
{ title: "Bezpečnosť Kvality", description: "Každá dávka piva prechádza dôkladnou skúškou a kontrolou", icon: Shield }
|
||||
]}
|
||||
imageSrc="http://img.b2bpic.net/free-photo/people-drinking-kombucha-gathering_23-2150168509.jpg?_wi=2"
|
||||
imageSrc="http://img.b2bpic.net/free-photo/people-drinking-kombucha-gathering_23-2150168509.jpg"
|
||||
imageAlt="Tradičné pivovárske postupy"
|
||||
mediaAnimation="slide-up"
|
||||
textboxLayout="default"
|
||||
@@ -100,9 +100,9 @@ export default function LandingPage() {
|
||||
]}
|
||||
buttonAnimation="slide-up"
|
||||
products={[
|
||||
{ id: "1", name: "Zlatý Pilzner", price: "€4.50", imageSrc: "http://img.b2bpic.net/free-photo/glass-beer-wood-background_93675-130670.jpg?_wi=2", imageAlt: "Zlatý Pilzner pivo", initialQuantity: 1 },
|
||||
{ id: "2", name: "Tmavý Jantár", price: "€5.00", imageSrc: "http://img.b2bpic.net/free-photo/crackers-glass-cold-beer-marble-surface-high-quality-photo_114579-67295.jpg?_wi=2", imageAlt: "Tmavý Jantár pivo", initialQuantity: 1 },
|
||||
{ id: "3", name: "Pšenično Pivo", price: "€4.75", imageSrc: "http://img.b2bpic.net/free-photo/christmas-beer-glass-gifts-high-angle_23-2149757175.jpg?_wi=2", imageAlt: "Pšenično pivo", initialQuantity: 1 }
|
||||
{ id: "1", name: "Zlatý Pilzner", price: "€4.50", imageSrc: "http://img.b2bpic.net/free-photo/glass-beer-wood-background_93675-130670.jpg", imageAlt: "Zlatý Pilzner pivo", initialQuantity: 1 },
|
||||
{ id: "2", name: "Tmavý Jantár", price: "€5.00", imageSrc: "http://img.b2bpic.net/free-photo/crackers-glass-cold-beer-marble-surface-high-quality-photo_114579-67295.jpg", imageAlt: "Tmavý Jantár pivo", initialQuantity: 1 },
|
||||
{ id: "3", name: "Pšenično Pivo", price: "€4.75", imageSrc: "http://img.b2bpic.net/free-photo/christmas-beer-glass-gifts-high-angle_23-2149757175.jpg", imageAlt: "Pšenično pivo", initialQuantity: 1 }
|
||||
]}
|
||||
gridVariant="three-columns-all-equal-width"
|
||||
animationType="slide-up"
|
||||
@@ -127,12 +127,11 @@ export default function LandingPage() {
|
||||
{ id: "2", title: "Tmavý Jantár + Grilované Mäso", content: "Silnejší profil nášho tmavého jantára dokonale dopĺňa chutný grilovaný steak alebo kuracie prsie. Karamelové tóny piva zlepšujú mäsiť a robia menu nezabudnuteľným." },
|
||||
{ id: "3", title: "Pšenično Pivo + Dezerty", content: "Svetlé a sladkavé pšenično pivo je ideálnym spoločníkom k našim domácim dezertom. Jemnosť pšenično piva si získa vašu chuťovú skúsenosť." }
|
||||
]}
|
||||
imageSrc="http://img.b2bpic.net/free-photo/delicious-white-tuna-recipe-still-life_23-2151143270.jpg?_wi=2"
|
||||
imageSrc="http://img.b2bpic.net/free-photo/delicious-white-tuna-recipe-still-life_23-2151143270.jpg"
|
||||
imageAlt="Jedlo a pivo spárovaní"
|
||||
mediaAnimation="blur-reveal"
|
||||
useInvertedBackground={false}
|
||||
mediaPosition="left"
|
||||
textboxLayout="default"
|
||||
/>
|
||||
</div>
|
||||
|
||||
@@ -150,7 +149,7 @@ export default function LandingPage() {
|
||||
{ src: "http://img.b2bpic.net/free-photo/portrait-brunette-smiley-woman_23-2148728646.jpg", alt: "Lucia Balážová" }
|
||||
]}
|
||||
ratingAnimation="slide-up"
|
||||
avatarsAnimation="fade-in"
|
||||
avatarsAnimation="slide-up"
|
||||
useInvertedBackground={true}
|
||||
/>
|
||||
</div>
|
||||
@@ -201,7 +200,7 @@ export default function LandingPage() {
|
||||
{ text: "Kontaktovať Nás", href: "mailto:info@pivovar-streda.sk" },
|
||||
{ text: "Navštíviť Pivovarňu", href: "tel:+421987654321" }
|
||||
]}
|
||||
background={{ variant: "aurora" }}
|
||||
background={{ variant: "plain" }}
|
||||
useInvertedBackground={false}
|
||||
/>
|
||||
</div>
|
||||
|
||||
@@ -1,51 +1,34 @@
|
||||
"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;
|
||||
dominantBaseline?: 'auto' | 'baseline' | 'hanging' | 'ideographic' | 'mathematical' | 'middle';
|
||||
}
|
||||
|
||||
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 = '',
|
||||
dominantBaseline = 'middle',
|
||||
}) => {
|
||||
return (
|
||||
<svg
|
||||
ref={svgRef}
|
||||
viewBox={viewBox}
|
||||
className={cls("w-full", className)}
|
||||
style={{ aspectRatio: aspectRatio }}
|
||||
preserveAspectRatio="none"
|
||||
viewBox="0 0 200 60"
|
||||
className={`w-full h-auto ${className}`}
|
||||
role="img"
|
||||
aria-label={`${logoText} logo`}
|
||||
aria-label={`Logo: ${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%"
|
||||
textAnchor="middle"
|
||||
dominantBaseline={dominantBaseline}
|
||||
className="fill-current text-lg font-bold"
|
||||
>
|
||||
{logoText}
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
};
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
|
||||
export default SvgTextLogo;
|
||||
export default SvgTextLogo;
|
||||
Reference in New Issue
Block a user