Merge version_1 into main #2
@@ -47,7 +47,7 @@ export default function LandingPage() {
|
||||
title="Traditional Caltagirone Ceramics – Handmade in Sicily"
|
||||
description="Beautiful lava stone tables and decorative ceramics, crafted with tradition and shipped worldwide. Discover authentic Sicilian artisan pieces for your home."
|
||||
tag="Welcome to Our Showroom"
|
||||
imageSrc="http://img.b2bpic.net/free-photo/fresh-sour-oranges-wooden-plate_114579-22304.jpg?_wi=1"
|
||||
imageSrc="http://img.b2bpic.net/free-photo/fresh-sour-oranges-wooden-plate_114579-22304.jpg"
|
||||
imageAlt="Handcrafted lava stone table with traditional decorations"
|
||||
showBlur={true}
|
||||
showDimOverlay={false}
|
||||
@@ -67,10 +67,11 @@ export default function LandingPage() {
|
||||
{ value: "30+", title: "Years of Excellence" },
|
||||
{ value: "4.7★", title: "Customer Rating" }
|
||||
]}
|
||||
imageSrc="http://img.b2bpic.net/free-photo/young-woman-chooses-baskets-home-interior-home-improvement-store_169016-49294.jpg?_wi=1"
|
||||
imageSrc="http://img.b2bpic.net/free-photo/young-woman-chooses-baskets-home-interior-home-improvement-store_169016-49294.jpg"
|
||||
imageAlt="Our ceramic showroom filled with handmade pieces"
|
||||
useInvertedBackground={false}
|
||||
mediaAnimation="slide-up"
|
||||
metricsAnimation="slide-up"
|
||||
/>
|
||||
</div>
|
||||
|
||||
@@ -81,7 +82,7 @@ export default function LandingPage() {
|
||||
tag="Signature Collections"
|
||||
features={[
|
||||
{
|
||||
title: "Lava Stone Tables", description: "Custom-decorated tables crafted from natural lava stone with hand-painted details", imageSrc: "http://img.b2bpic.net/free-photo/fresh-sour-oranges-wooden-plate_114579-22304.jpg?_wi=2", imageAlt: "Handcrafted lava stone table", buttonIcon: ArrowRight,
|
||||
title: "Lava Stone Tables", description: "Custom-decorated tables crafted from natural lava stone with hand-painted details", imageSrc: "http://img.b2bpic.net/free-photo/fresh-sour-oranges-wooden-plate_114579-22304.jpg", imageAlt: "Handcrafted lava stone table", buttonIcon: ArrowRight,
|
||||
buttonHref: "#contact"
|
||||
},
|
||||
{
|
||||
@@ -113,7 +114,7 @@ export default function LandingPage() {
|
||||
{ id: "3", value: "🌍", title: "Shipping", description: "Worldwide Delivery", icon: Globe },
|
||||
{ id: "4", value: "👨👩👧👦", title: "Family", description: "Trusted Local Business", icon: Heart }
|
||||
]}
|
||||
gridVariant="four-items-2x2-equal-grid"
|
||||
gridVariant="uniform-all-items-equal"
|
||||
animationType="slide-up"
|
||||
textboxLayout="default"
|
||||
useInvertedBackground={true}
|
||||
@@ -144,10 +145,10 @@ export default function LandingPage() {
|
||||
id: "1", name: "Ceramic Display Collection", price: "Contact for pricing", variant: "In-store viewing available", imageSrc: "http://img.b2bpic.net/free-photo/handmade-copper-cezve-turkish-traditional-tableware-shelf-kitchen-home-restaurant-selective-focus_166373-4560.jpg", imageAlt: "Ceramic display in showroom"
|
||||
},
|
||||
{
|
||||
id: "2", name: "Lava Stone Exhibition", price: "Custom quotes available", variant: "Made-to-order designs", imageSrc: "http://img.b2bpic.net/free-photo/fresh-sour-oranges-wooden-plate_114579-22304.jpg?_wi=3", imageAlt: "Lava stone table in showroom"
|
||||
id: "2", name: "Lava Stone Exhibition", price: "Custom quotes available", variant: "Made-to-order designs", imageSrc: "http://img.b2bpic.net/free-photo/fresh-sour-oranges-wooden-plate_114579-22304.jpg", imageAlt: "Lava stone table in showroom"
|
||||
},
|
||||
{
|
||||
id: "3", name: "Artisan Workshop Tour", price: "By appointment", variant: "See craftsmen at work", imageSrc: "http://img.b2bpic.net/free-photo/young-woman-chooses-baskets-home-interior-home-improvement-store_169016-49294.jpg?_wi=2", imageAlt: "Artisan workshop area"
|
||||
id: "3", name: "Artisan Workshop Tour", price: "By appointment", variant: "See craftsmen at work", imageSrc: "http://img.b2bpic.net/free-photo/young-woman-chooses-baskets-home-interior-home-improvement-store_169016-49294.jpg", imageAlt: "Artisan workshop area"
|
||||
}
|
||||
]}
|
||||
title="Visit Our Showroom"
|
||||
@@ -176,7 +177,7 @@ export default function LandingPage() {
|
||||
|
||||
<div id="footer" data-section="footer">
|
||||
<FooterMedia
|
||||
imageSrc="http://img.b2bpic.net/free-photo/young-woman-chooses-baskets-home-interior-home-improvement-store_169016-49294.jpg?_wi=3"
|
||||
imageSrc="http://img.b2bpic.net/free-photo/young-woman-chooses-baskets-home-interior-home-improvement-store_169016-49294.jpg"
|
||||
imageAlt="Ceramiche Ernesto Boria showroom"
|
||||
logoText="Ceramiche Ernesto Boria"
|
||||
copyrightText="© 2025 Ceramiche Ernesto Boria Srl. All rights reserved."
|
||||
|
||||
@@ -1,51 +1,36 @@
|
||||
"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;
|
||||
}
|
||||
|
||||
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 = '' }) => {
|
||||
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 300 100"
|
||||
className={className}
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
>
|
||||
<defs>
|
||||
<linearGradient id="textGradient" x1="0%" y1="0%" x2="100%" y2="0%">
|
||||
<stop offset="0%" style={{ stopColor: '#3b82f6', stopOpacity: 1 }} />
|
||||
<stop offset="100%" style={{ stopColor: '#8b5cf6', stopOpacity: 1 }} />
|
||||
</linearGradient>
|
||||
</defs>
|
||||
<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="48"
|
||||
fontWeight="bold"
|
||||
fill="url(#textGradient)"
|
||||
textAnchor="middle"
|
||||
dominantBaseline="central"
|
||||
>
|
||||
{logoText}
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
};
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
|
||||
export default SvgTextLogo;
|
||||
export default SvgTextLogo;
|
||||
Reference in New Issue
Block a user