Merge version_1 into main #2

Merged
bender merged 2 commits from version_1 into main 2026-03-11 09:32:36 +00:00
2 changed files with 35 additions and 43 deletions

View File

@@ -49,7 +49,7 @@ export default function LandingPage() {
]}
buttonAnimation="slide-up"
background={{ variant: "sparkles-gradient" }}
imageSrc="http://img.b2bpic.net/free-photo/old-vase-with-stone-angels_53876-18208.jpg?_wi=1"
imageSrc="http://img.b2bpic.net/free-photo/old-vase-with-stone-angels_53876-18208.jpg"
imageAlt="KOIVU Café cozy Nordic interior with warm lighting"
mediaAnimation="opacity"
frameStyle="card"
@@ -65,7 +65,7 @@ export default function LandingPage() {
buttons={[
{ text: "Our Story", href: "#menu-highlights" }
]}
imageSrc="http://img.b2bpic.net/free-photo/beautiful-side-transparent-chrome-drip-coffee-maker-with-roasted-filtered-coffee-isolated-thick-wooden-table-cafe-shop-white-weights-steam-brutal_346278-1398.jpg?_wi=1"
imageSrc="http://img.b2bpic.net/free-photo/beautiful-side-transparent-chrome-drip-coffee-maker-with-roasted-filtered-coffee-isolated-thick-wooden-table-cafe-shop-white-weights-steam-brutal_346278-1398.jpg"
imageAlt="Skilled barista hand-pouring specialty coffee"
useInvertedBackground={true}
/>
@@ -76,7 +76,7 @@ export default function LandingPage() {
features={[
{
id: "1", title: "Specialty Coffees", author: "Hand-Poured by Barista", description: "Single-origin beans, pour-overs, and traditional espresso drinks crafted with precision and passion. Each cup tells a story of origin and expertise.", tags: ["Coffee", "Specialty"],
imageSrc: "http://img.b2bpic.net/free-photo/fresh-coffee-table_140725-9523.jpg?_wi=1", imageAlt: "Specialty coffee with latte art"
imageSrc: "http://img.b2bpic.net/free-photo/fresh-coffee-table_140725-9523.jpg", imageAlt: "Specialty coffee with latte art"
},
{
id: "2", title: "Homemade Cakes & Pastries", author: "Daily Baked", description: "Nordic and Eastern European classics baked fresh each morning. From delicate cardamom buns to rich berry tarts, pure comfort in every bite.", tags: ["Pastry", "Homemade"],
@@ -96,7 +96,7 @@ export default function LandingPage() {
},
{
id: "6", title: "Weekly Lunch Menus", author: "Chef's Selection", description: "Rotating daily specials showcasing seasonal ingredients and hidden Nordic-Eastern European treasures. Always something new to discover.", tags: ["Lunch", "Daily"],
imageSrc: "http://img.b2bpic.net/free-photo/fresh-coffee-table_140725-9523.jpg?_wi=2", imageAlt: "Weekly lunch menu special"
imageSrc: "http://img.b2bpic.net/free-photo/fresh-coffee-table_140725-9523.jpg", imageAlt: "Weekly lunch menu special"
}
]}
animationType="slide-up"
@@ -138,13 +138,13 @@ export default function LandingPage() {
<MetricCardEleven
metrics={[
{
id: "1", value: "09:0018:00", title: "MondayThursday", description: "Daily cozy vibes and craft coffee", imageSrc: "http://img.b2bpic.net/free-photo/old-vase-with-stone-angels_53876-18208.jpg?_wi=2", imageAlt: "KOIVU weekday hours"
id: "1", value: "09:0018:00", title: "MondayThursday", description: "Daily cozy vibes and craft coffee", imageSrc: "http://img.b2bpic.net/free-photo/old-vase-with-stone-angels_53876-18208.jpg", imageAlt: "KOIVU weekday hours"
},
{
id: "2", value: "09:0018:00", title: "FridaySunday", description: "Extended hours for weekend gatherings", imageSrc: "http://img.b2bpic.net/free-photo/beautiful-side-transparent-chrome-drip-coffee-maker-with-roasted-filtered-coffee-isolated-thick-wooden-table-cafe-shop-white-weights-steam-brutal_346278-1398.jpg?_wi=2", imageAlt: "KOIVU weekend hours"
id: "2", value: "09:0018:00", title: "FridaySunday", description: "Extended hours for weekend gatherings", imageSrc: "http://img.b2bpic.net/free-photo/beautiful-side-transparent-chrome-drip-coffee-maker-with-roasted-filtered-coffee-isolated-thick-wooden-table-cafe-shop-white-weights-steam-brutal_346278-1398.jpg", imageAlt: "KOIVU weekend hours"
},
{
id: "3", value: "07:3018:00", title: "Friday Market Season", description: "MarchNovember: Early opening for market crowds", imageSrc: "http://img.b2bpic.net/free-photo/fresh-coffee-table_140725-9523.jpg?_wi=3", imageAlt: "KOIVU market season hours"
id: "3", value: "07:3018:00", title: "Friday Market Season", description: "MarchNovember: Early opening for market crowds", imageSrc: "http://img.b2bpic.net/free-photo/fresh-coffee-table_140725-9523.jpg", imageAlt: "KOIVU market season hours"
}
]}
animationType="slide-up"
@@ -227,4 +227,4 @@ export default function LandingPage() {
</div>
</ThemeProvider>
);
}
}

View File

@@ -1,51 +1,43 @@
"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;
letterSpacing?: string;
dominantBaseline?: 'auto' | 'middle' | 'hanging' | 'mathematical';
}
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 = 700,
letterSpacing = '0.05em',
dominantBaseline = 'middle',
}) => {
return (
<svg
ref={svgRef}
viewBox={viewBox}
className={cls("w-full", className)}
style={{ aspectRatio: aspectRatio }}
preserveAspectRatio="none"
viewBox="0 0 300 100"
className={className}
aria-label={text}
role="img"
aria-label={`${logoText} logo`}
>
<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"
fontSize={fontSize}
fontWeight={fontWeight}
letterSpacing={letterSpacing}
dominantBaseline={dominantBaseline}
className="fill-current"
>
{logoText}
{text}
</text>
</svg>
);
});
SvgTextLogo.displayName = "SvgTextLogo";
};
export default SvgTextLogo;