Merge version_1 into main #2

Merged
bender merged 2 commits from version_1 into main 2026-03-11 07:32:16 +00:00
2 changed files with 24 additions and 44 deletions

View File

@@ -50,6 +50,7 @@ export default function LandingPage() {
imageAlt="Fresh market produce display"
mediaAnimation="blur-reveal"
imagePosition="right"
background={{ variant: "glowing-orb" }}
useInvertedBackground={false}
buttons={[
{ text: "Learn More", href: "#about" },
@@ -59,15 +60,15 @@ export default function LandingPage() {
testimonials={[
{
name: "田中美咲", handle: "常連客", testimonial: "毎日新鮮な野菜が手に入ります。質が高くて、地元の人たちにとても愛されています。", rating: 5,
imageSrc: "http://img.b2bpic.net/free-photo/woman-with-food-package_23-2148869394.jpg?_wi=1"
imageSrc: "http://img.b2bpic.net/free-photo/woman-with-food-package_23-2148869394.jpg"
},
{
name: "佐藤太郎", handle: "近所の方", testimonial: "このお店がないと生活できません。毎週通っています。スタッフも親切です。", rating: 5,
imageSrc: "http://img.b2bpic.net/free-photo/close-up-smiling-young-woman-wearing-life-jacket_23-2147562086.jpg?_wi=1"
imageSrc: "http://img.b2bpic.net/free-photo/close-up-smiling-young-woman-wearing-life-jacket_23-2147562086.jpg"
},
{
name: "鈴木花子", handle: "ファミリー", testimonial: "子どもたちも新鮮な野菜が大好きになりました。家族みんなでいつも利用しています。", rating: 5,
imageSrc: "http://img.b2bpic.net/free-photo/expressive-young-girl-posing-studio_176474-65995.jpg?_wi=1"
imageSrc: "http://img.b2bpic.net/free-photo/expressive-young-girl-posing-studio_176474-65995.jpg"
}
]}
testimonialRotationInterval={5000}
@@ -100,7 +101,7 @@ export default function LandingPage() {
tagAnimation="slide-up"
features={[
{
title: "100% Organic Selection", description: "Carefully sourced organic produce from trusted local farmers", imageSrc: "http://img.b2bpic.net/free-photo/food-vegetable-colorful-background-tasty-fresh-vegetables-wooden-table-top-view-with-copy-space_1220-1220.jpg?_wi=1", imageAlt: "Organic fresh vegetables", buttonIcon: Leaf,
title: "100% Organic Selection", description: "Carefully sourced organic produce from trusted local farmers", imageSrc: "http://img.b2bpic.net/free-photo/food-vegetable-colorful-background-tasty-fresh-vegetables-wooden-table-top-view-with-copy-space_1220-1220.jpg", imageAlt: "Organic fresh vegetables", buttonIcon: Leaf,
buttonHref: "#products"
},
{
@@ -112,7 +113,7 @@ export default function LandingPage() {
buttonHref: "#products"
},
{
title: "Daily Fresh Delivery", description: "New stock arrives daily to guarantee peak freshness", imageSrc: "http://img.b2bpic.net/free-photo/food-vegetable-colorful-background-tasty-fresh-vegetables-wooden-table-top-view-with-copy-space_1220-1220.jpg?_wi=2", imageAlt: "Fresh daily delivery", buttonIcon: Truck,
title: "Daily Fresh Delivery", description: "New stock arrives daily to guarantee peak freshness", imageSrc: "http://img.b2bpic.net/free-photo/food-vegetable-colorful-background-tasty-fresh-vegetables-wooden-table-top-view-with-copy-space_1220-1220.jpg", imageAlt: "Fresh daily delivery", buttonIcon: Truck,
buttonHref: "#about"
}
]}
@@ -189,13 +190,13 @@ export default function LandingPage() {
<TestimonialCardTwelve
testimonials={[
{
id: "1", name: "田中美咲", imageSrc: "http://img.b2bpic.net/free-photo/woman-with-food-package_23-2148869394.jpg?_wi=2", imageAlt: "田中美咲"
id: "1", name: "田中美咲", imageSrc: "http://img.b2bpic.net/free-photo/woman-with-food-package_23-2148869394.jpg", imageAlt: "田中美咲"
},
{
id: "2", name: "佐藤太郎", imageSrc: "http://img.b2bpic.net/free-photo/close-up-smiling-young-woman-wearing-life-jacket_23-2147562086.jpg?_wi=2", imageAlt: "佐藤太郎"
id: "2", name: "佐藤太郎", imageSrc: "http://img.b2bpic.net/free-photo/close-up-smiling-young-woman-wearing-life-jacket_23-2147562086.jpg", imageAlt: "佐藤太郎"
},
{
id: "3", name: "鈴木花子", imageSrc: "http://img.b2bpic.net/free-photo/expressive-young-girl-posing-studio_176474-65995.jpg?_wi=2", imageAlt: "鈴木花子"
id: "3", name: "鈴木花子", imageSrc: "http://img.b2bpic.net/free-photo/expressive-young-girl-posing-studio_176474-65995.jpg", imageAlt: "鈴木花子"
},
{
id: "4", name: "伊藤健一", imageSrc: "http://img.b2bpic.net/free-photo/beautiful-woman-carrying-shopping-bags_23-2148660764.jpg", imageAlt: "伊藤健一"

View File

@@ -1,51 +1,30 @@
"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 ${text.length * 60} 100`}
className={className}
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"
fontSize="48"
fontWeight="bold"
fill="currentColor"
>
{logoText}
{text}
</text>
</svg>
);
});
SvgTextLogo.displayName = "SvgTextLogo";
};
export default SvgTextLogo;