Merge version_1 into main #2

Merged
bender merged 2 commits from version_1 into main 2026-03-10 20:49:52 +00:00
2 changed files with 30 additions and 45 deletions

View File

@@ -55,6 +55,7 @@ export default function LandingPage() {
imageSrc="http://img.b2bpic.net/free-photo/woman-sitting-cafe-drinking-coffee-working-computer_1303-14731.jpg"
imageAlt="Cozy Dua Pintu Coffee café interior with warm ambiance"
mediaAnimation="slide-up"
background={{ variant: "plain" }}
testimonials={[
{
name: "Ani Wijaya", handle: "Student, UI/UX Designer", testimonial: "The perfect place to hang out with friends! Great coffee and the vibe is absolutely amazing.", rating: 5,
@@ -152,13 +153,13 @@ export default function LandingPage() {
tagAnimation="slide-up"
metrics={[
{
id: "1", value: "4.7★", title: "Customer Rating", description: "Highly rated on Google by 566+ reviews", imageSrc: "http://img.b2bpic.net/free-photo/best-friends-eating-some-street-food_23-2149009629.jpg?_wi=1", imageAlt: "Satisfied customers enjoying time at café"
id: "1", value: "4.7★", title: "Customer Rating", description: "Highly rated on Google by 566+ reviews", imageSrc: "http://img.b2bpic.net/free-photo/best-friends-eating-some-street-food_23-2149009629.jpg", imageAlt: "Satisfied customers enjoying time at café"
},
{
id: "2", value: "7 Days", title: "Open Every Day", description: "09:00 23:00 for all your coffee cravings", imageSrc: "http://img.b2bpic.net/free-photo/young-woman-drinking-coffee-cafe_1303-25716.jpg?_wi=1", imageAlt: "Café open late evening with welcoming ambiance"
id: "2", value: "7 Days", title: "Open Every Day", description: "09:00 23:00 for all your coffee cravings", imageSrc: "http://img.b2bpic.net/free-photo/young-woman-drinking-coffee-cafe_1303-25716.jpg", imageAlt: "Café open late evening with welcoming ambiance"
},
{
id: "3", value: "100+", title: "Regular Customers", description: "Students, workers, and coffee lovers who call us home", imageSrc: "http://img.b2bpic.net/free-photo/woman-talking-mobile-phone-while-having-breakfast-caf_23-2147871281.jpg?_wi=1", imageAlt: "Friends and colleagues working together at café"
id: "3", value: "100+", title: "Regular Customers", description: "Students, workers, and coffee lovers who call us home", imageSrc: "http://img.b2bpic.net/free-photo/woman-talking-mobile-phone-while-having-breakfast-caf_23-2147871281.jpg", imageAlt: "Friends and colleagues working together at café"
}
]}
textboxLayout="default"
@@ -183,13 +184,13 @@ export default function LandingPage() {
id: "01", title: "Warm Interiors", description: "Cozy seating with aesthetic lighting perfect for photos and conversations", imageSrc: "http://img.b2bpic.net/free-photo/life-style_1122-1806.jpg", imageAlt: "Beautiful café interior with modern design"
},
{
id: "02", title: "Evening Vibes", description: "Late-night ambiance where friends gather for coffee and stories", imageSrc: "http://img.b2bpic.net/free-photo/young-woman-drinking-coffee-cafe_1303-25716.jpg?_wi=2", imageAlt: "Café evening atmosphere with warm lighting"
id: "02", title: "Evening Vibes", description: "Late-night ambiance where friends gather for coffee and stories", imageSrc: "http://img.b2bpic.net/free-photo/young-woman-drinking-coffee-cafe_1303-25716.jpg", imageAlt: "Café evening atmosphere with warm lighting"
},
{
id: "03", title: "Social Moments", description: "Perfect place to hang out, laugh, and create memories with friends", imageSrc: "http://img.b2bpic.net/free-photo/best-friends-eating-some-street-food_23-2149009629.jpg?_wi=2", imageAlt: "Friends enjoying time together at café"
id: "03", title: "Social Moments", description: "Perfect place to hang out, laugh, and create memories with friends", imageSrc: "http://img.b2bpic.net/free-photo/best-friends-eating-some-street-food_23-2149009629.jpg", imageAlt: "Friends enjoying time together at café"
},
{
id: "04", title: "Creative Workspace", description: "Inspiring environment for students and remote workers to pursue their passions", imageSrc: "http://img.b2bpic.net/free-photo/woman-talking-mobile-phone-while-having-breakfast-caf_23-2147871281.jpg?_wi=2", imageAlt: "Student or remote worker focused at café table"
id: "04", title: "Creative Workspace", description: "Inspiring environment for students and remote workers to pursue their passions", imageSrc: "http://img.b2bpic.net/free-photo/woman-talking-mobile-phone-while-having-breakfast-caf_23-2147871281.jpg", imageAlt: "Student or remote worker focused at café table"
}
]}
/>
@@ -238,7 +239,7 @@ export default function LandingPage() {
tagAnimation="slide-up"
background={{ variant: "sparkles-gradient" }}
useInvertedBackground={false}
imageSrc="http://img.b2bpic.net/free-photo/long-shot-man-walking-outside-with-medical-mask_23-2148693043.jpg?_wi=1"
imageSrc="http://img.b2bpic.net/free-photo/long-shot-man-walking-outside-with-medical-mask_23-2148693043.jpg"
imageAlt="Dua Pintu Coffee storefront location"
mediaAnimation="slide-up"
mediaPosition="right"
@@ -250,7 +251,7 @@ export default function LandingPage() {
<div id="footer" data-section="footer">
<FooterMedia
imageSrc="http://img.b2bpic.net/free-photo/long-shot-man-walking-outside-with-medical-mask_23-2148693043.jpg?_wi=2"
imageSrc="http://img.b2bpic.net/free-photo/long-shot-man-walking-outside-with-medical-mask_23-2148693043.jpg"
imageAlt="Dua Pintu Coffee café location"
logoText="Dua Pintu Coffee"
copyrightText="© 2025 Dua Pintu Coffee Pasar Ambacang. Ngopi Santai, Cerita Tak Pernah Habis."

View File

@@ -1,51 +1,35 @@
"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;
textClassName?: string;
dominantBaseline?: 'auto' | 'middle' | 'central' | 'hanging' | 'mathematical' | 'ideographic';
}
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 = '',
textClassName = '',
dominantBaseline = 'middle',
}) => {
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 200 50"
className={className}
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%"
dominantBaseline={dominantBaseline}
textAnchor="middle"
className={textClassName}
>
{logoText}
{text}
</text>
</svg>
);
});
};
SvgTextLogo.displayName = "SvgTextLogo";
export default SvgTextLogo;
export default SvgTextLogo;