Merge version_1 into main #2
@@ -70,7 +70,7 @@ export default function LandingPage() {
|
||||
{ title: "Matcha, Chai & Specialty Drinks", description: "Ceremonial-style matcha, velvety chai lattes, hot chocolate, and seasonal specials for every preference." },
|
||||
{ title: "Warm, Knowledgeable Team", description: "A team that remembers you, knows your order, and creates an atmosphere of genuine hospitality that keeps bringing you back.", icon: Users }
|
||||
]}
|
||||
imageSrc="http://img.b2bpic.net/free-photo/front-view-cup-coffee-with-muffin_23-2148337164.jpg?_wi=1"
|
||||
imageSrc="http://img.b2bpic.net/free-photo/front-view-cup-coffee-with-muffin_23-2148337164.jpg"
|
||||
imageAlt="OP's Coffee Co welcoming interior"
|
||||
mediaAnimation="slide-up"
|
||||
/>
|
||||
@@ -83,19 +83,19 @@ export default function LandingPage() {
|
||||
tag="Our Strengths"
|
||||
features={[
|
||||
{
|
||||
id: "1", tag: "Quality", title: "Best Coffee in Town", description: "Hand-selected, expertly prepared. From our House espresso to specialty blends, customers travel across the region for a cup.", imageSrc: "http://img.b2bpic.net/free-photo/high-angle-arrangement-with-beverages_23-2148865606.jpg?_wi=1", imageAlt: "Specialty coffee with latte art"
|
||||
id: "1", tag: "Quality", title: "Best Coffee in Town", description: "Hand-selected, expertly prepared. From our House espresso to specialty blends, customers travel across the region for a cup.", imageSrc: "http://img.b2bpic.net/free-photo/high-angle-arrangement-with-beverages_23-2148865606.jpg", imageAlt: "Specialty coffee with latte art"
|
||||
},
|
||||
{
|
||||
id: "2", tag: "Famous", title: "Legendary Buns & Bagels", description: "The most incredible cinnamon buns and loaded bagels. Nearly every review mentions them. They're the reason people keep coming back.", imageSrc: "http://img.b2bpic.net/free-photo/tofu-burger-with-vegetables-plate_1220-7121.jpg?_wi=1", imageAlt: "Fresh loaded bagels and pastries"
|
||||
id: "2", tag: "Famous", title: "Legendary Buns & Bagels", description: "The most incredible cinnamon buns and loaded bagels. Nearly every review mentions them. They're the reason people keep coming back.", imageSrc: "http://img.b2bpic.net/free-photo/tofu-burger-with-vegetables-plate_1220-7121.jpg", imageAlt: "Fresh loaded bagels and pastries"
|
||||
},
|
||||
{
|
||||
id: "3", tag: "Inclusive", title: "Something for Everyone", description: "Ceremonial-style matcha, chai lattes, velvety hot chocolate, and sweet treats. Whether you're a coffee devotee or not, we have your ritual.", imageSrc: "http://img.b2bpic.net/free-photo/top-view-woman-holding-hands-trendy-green-matcha-drink-with-latte-art_169016-34119.jpg?_wi=1", imageAlt: "Matcha latte specialty drink"
|
||||
id: "3", tag: "Inclusive", title: "Something for Everyone", description: "Ceremonial-style matcha, chai lattes, velvety hot chocolate, and sweet treats. Whether you're a coffee devotee or not, we have your ritual.", imageSrc: "http://img.b2bpic.net/free-photo/top-view-woman-holding-hands-trendy-green-matcha-drink-with-latte-art_169016-34119.jpg", imageAlt: "Matcha latte specialty drink"
|
||||
},
|
||||
{
|
||||
id: "4", tag: "Atmosphere", title: "Calm, Stylish Space", description: "A design-led refuge to slow down, work, or simply sit with a good book. Warm, welcoming, and genuinely peaceful.", imageSrc: "http://img.b2bpic.net/free-photo/wooden-sauna-with-mountain-view-panoramic-calm_169016-70823.jpg?_wi=1", imageAlt: "Cozy cafe interior seating area"
|
||||
id: "4", tag: "Atmosphere", title: "Calm, Stylish Space", description: "A design-led refuge to slow down, work, or simply sit with a good book. Warm, welcoming, and genuinely peaceful.", imageSrc: "http://img.b2bpic.net/free-photo/wooden-sauna-with-mountain-view-panoramic-calm_169016-70823.jpg", imageAlt: "Cozy cafe interior seating area"
|
||||
},
|
||||
{
|
||||
id: "5", tag: "Service", title: "Warm, Knowledgeable Team", description: "Staff that remembers you, knows your preferences, and makes you feel genuinely welcome every single visit.", imageSrc: "http://img.b2bpic.net/free-photo/team-young-colleagues-having-meeting-cafe_273609-16250.jpg?_wi=1", imageAlt: "Friendly barista team portrait"
|
||||
id: "5", tag: "Service", title: "Warm, Knowledgeable Team", description: "Staff that remembers you, knows your preferences, and makes you feel genuinely welcome every single visit.", imageSrc: "http://img.b2bpic.net/free-photo/team-young-colleagues-having-meeting-cafe_273609-16250.jpg", imageAlt: "Friendly barista team portrait"
|
||||
},
|
||||
{
|
||||
id: "6", tag: "Community", title: "Community Events & Gatherings", description: "From Run & Rave to specialty launches, we're more than a café. We're a local brand building genuine connections.", imageSrc: "http://img.b2bpic.net/free-photo/happy-women-dancing-party_23-2148231998.jpg", imageAlt: "Community event gathering"
|
||||
@@ -117,16 +117,16 @@ export default function LandingPage() {
|
||||
animationType="slide-up"
|
||||
metrics={[
|
||||
{
|
||||
id: "1", value: "5★", title: "Loved for Atmosphere", description: "Consistently praised for calm, welcoming, stylish space.", imageSrc: "http://img.b2bpic.net/free-photo/front-view-cup-coffee-with-muffin_23-2148337164.jpg?_wi=2", imageAlt: "OP's cozy atmosphere"
|
||||
id: "1", value: "5★", title: "Loved for Atmosphere", description: "Consistently praised for calm, welcoming, stylish space.", imageSrc: "http://img.b2bpic.net/free-photo/front-view-cup-coffee-with-muffin_23-2148337164.jpg", imageAlt: "OP's cozy atmosphere"
|
||||
},
|
||||
{
|
||||
id: "2", value: "Worth the Trip", title: "Coffee Customers Travel For", description: "People across the region make the journey specifically for our coffee and buns.", imageSrc: "http://img.b2bpic.net/free-photo/high-angle-arrangement-with-beverages_23-2148865606.jpg?_wi=2", imageAlt: "Premium specialty coffee"
|
||||
id: "2", value: "Worth the Trip", title: "Coffee Customers Travel For", description: "People across the region make the journey specifically for our coffee and buns.", imageSrc: "http://img.b2bpic.net/free-photo/high-angle-arrangement-with-beverages_23-2148865606.jpg", imageAlt: "Premium specialty coffee"
|
||||
},
|
||||
{
|
||||
id: "3", value: "Warm", title: "Service People Mention", description: "Staff who remember you and make every visit feel personal and welcoming.", imageSrc: "http://img.b2bpic.net/free-photo/team-young-colleagues-having-meeting-cafe_273609-16250.jpg?_wi=2", imageAlt: "Friendly OP's team"
|
||||
id: "3", value: "Warm", title: "Service People Mention", description: "Staff who remember you and make every visit feel personal and welcoming.", imageSrc: "http://img.b2bpic.net/free-photo/team-young-colleagues-having-meeting-cafe_273609-16250.jpg", imageAlt: "Friendly OP's team"
|
||||
},
|
||||
{
|
||||
id: "4", value: "Calm", title: "Vibe People Return For", description: "A peaceful refuge that keeps customers coming back week after week.", imageSrc: "http://img.b2bpic.net/free-photo/wooden-sauna-with-mountain-view-panoramic-calm_169016-70823.jpg?_wi=2", imageAlt: "Peaceful cafe space"
|
||||
id: "4", value: "Calm", title: "Vibe People Return For", description: "A peaceful refuge that keeps customers coming back week after week.", imageSrc: "http://img.b2bpic.net/free-photo/wooden-sauna-with-mountain-view-panoramic-calm_169016-70823.jpg", imageAlt: "Peaceful cafe space"
|
||||
}
|
||||
]}
|
||||
/>
|
||||
@@ -143,22 +143,22 @@ export default function LandingPage() {
|
||||
gridVariant="three-columns-all-equal-width"
|
||||
products={[
|
||||
{
|
||||
id: "1", name: "House Espresso", price: "From £2.50", imageSrc: "http://img.b2bpic.net/free-photo/high-angle-arrangement-with-beverages_23-2148865606.jpg?_wi=3", imageAlt: "House espresso shot"
|
||||
id: "1", name: "House Espresso", price: "From £2.50", imageSrc: "http://img.b2bpic.net/free-photo/high-angle-arrangement-with-beverages_23-2148865606.jpg", imageAlt: "House espresso shot"
|
||||
},
|
||||
{
|
||||
id: "2", name: "Flat White", price: "From £3.50", imageSrc: "http://img.b2bpic.net/free-photo/high-angle-arrangement-with-beverages_23-2148865606.jpg?_wi=4", imageAlt: "Creamy flat white"
|
||||
id: "2", name: "Flat White", price: "From £3.50", imageSrc: "http://img.b2bpic.net/free-photo/high-angle-arrangement-with-beverages_23-2148865606.jpg", imageAlt: "Creamy flat white"
|
||||
},
|
||||
{
|
||||
id: "3", name: "PRS Signature Blend", price: "From £3.75", imageSrc: "http://img.b2bpic.net/free-photo/high-angle-arrangement-with-beverages_23-2148865606.jpg?_wi=5", imageAlt: "PRS signature blend coffee"
|
||||
id: "3", name: "PRS Signature Blend", price: "From £3.75", imageSrc: "http://img.b2bpic.net/free-photo/high-angle-arrangement-with-beverages_23-2148865606.jpg", imageAlt: "PRS signature blend coffee"
|
||||
},
|
||||
{
|
||||
id: "4", name: "Legendary Cinnamon Bun", price: "£4.50", imageSrc: "http://img.b2bpic.net/free-photo/tofu-burger-with-vegetables-plate_1220-7121.jpg?_wi=2", imageAlt: "Fresh cinnamon bun with coffee"
|
||||
id: "4", name: "Legendary Cinnamon Bun", price: "£4.50", imageSrc: "http://img.b2bpic.net/free-photo/tofu-burger-with-vegetables-plate_1220-7121.jpg", imageAlt: "Fresh cinnamon bun with coffee"
|
||||
},
|
||||
{
|
||||
id: "5", name: "Loaded Pastrami Bagel", price: "From £6.50", imageSrc: "http://img.b2bpic.net/free-photo/tofu-burger-with-vegetables-plate_1220-7121.jpg?_wi=3", imageAlt: "Premium loaded bagel"
|
||||
id: "5", name: "Loaded Pastrami Bagel", price: "From £6.50", imageSrc: "http://img.b2bpic.net/free-photo/tofu-burger-with-vegetables-plate_1220-7121.jpg", imageAlt: "Premium loaded bagel"
|
||||
},
|
||||
{
|
||||
id: "6", name: "Ceremonial Matcha Latte", price: "£4.25", imageSrc: "http://img.b2bpic.net/free-photo/top-view-woman-holding-hands-trendy-green-matcha-drink-with-latte-art_169016-34119.jpg?_wi=2", imageAlt: "Ceremonial matcha latte"
|
||||
id: "6", name: "Ceremonial Matcha Latte", price: "£4.25", imageSrc: "http://img.b2bpic.net/free-photo/top-view-woman-holding-hands-trendy-green-matcha-drink-with-latte-art_169016-34119.jpg", imageAlt: "Ceremonial matcha latte"
|
||||
}
|
||||
]}
|
||||
/>
|
||||
@@ -250,7 +250,7 @@ export default function LandingPage() {
|
||||
|
||||
<div id="footer" data-section="footer">
|
||||
<FooterMedia
|
||||
imageSrc="http://img.b2bpic.net/free-photo/front-view-cup-coffee-with-muffin_23-2148337164.jpg?_wi=3"
|
||||
imageSrc="http://img.b2bpic.net/free-photo/front-view-cup-coffee-with-muffin_23-2148337164.jpg"
|
||||
imageAlt="OP's Coffee Co"
|
||||
logoText="OP's | OP Coffee Co"
|
||||
copyrightText="© 2025 OP's Coffee Co. All rights reserved."
|
||||
|
||||
@@ -1,51 +1,35 @@
|
||||
"use client";
|
||||
import React, { SVGProps } from 'react';
|
||||
|
||||
import { memo } from "react";
|
||||
import useSvgTextLogo from "./useSvgTextLogo";
|
||||
import { cls } from "@/lib/utils";
|
||||
|
||||
interface SvgTextLogoProps {
|
||||
logoText: string;
|
||||
adjustHeightFactor?: number;
|
||||
verticalAlign?: "top" | "center";
|
||||
interface SvgTextLogoProps extends SVGProps<SVGSVGElement> {
|
||||
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 = '',
|
||||
...props
|
||||
}) => {
|
||||
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 * 100} 200`}
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
className={className}
|
||||
{...props}
|
||||
>
|
||||
<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="middle"
|
||||
textAnchor="middle"
|
||||
fontSize="120"
|
||||
fontWeight="bold"
|
||||
fill="currentColor"
|
||||
>
|
||||
{logoText}
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
};
|
||||
|
||||
export default SvgTextLogo;
|
||||
|
||||
Reference in New Issue
Block a user