Merge version_1 into main #2
@@ -42,7 +42,7 @@ export default function LandingPage() {
|
||||
title="Fresh Chicken Meals in Nairobi – Fast, Affordable & Delicious"
|
||||
description="Family-friendly restaurant serving quality meals every day. Open from 10 AM daily."
|
||||
tag="Premium Chicken Restaurant"
|
||||
imageSrc="http://img.b2bpic.net/free-photo/top-view-delicious-fried-chicken-with-seasonings-vegetables-dark-space_140725-75662.jpg?_wi=1"
|
||||
imageSrc="http://img.b2bpic.net/free-photo/top-view-delicious-fried-chicken-with-seasonings-vegetables-dark-space_140725-75662.jpg"
|
||||
imageAlt="Fresh crispy fried chicken meal"
|
||||
showBlur={true}
|
||||
showDimOverlay={true}
|
||||
@@ -65,6 +65,7 @@ export default function LandingPage() {
|
||||
imageSrc="http://img.b2bpic.net/free-photo/table-set-dinning-table_1339-3434.jpg"
|
||||
imageAlt="Modern, clean restaurant interior"
|
||||
mediaAnimation="slide-up"
|
||||
metricsAnimation="slide-up"
|
||||
useInvertedBackground={false}
|
||||
/>
|
||||
</div>
|
||||
@@ -75,22 +76,22 @@ export default function LandingPage() {
|
||||
description="Explore our most popular chicken dishes and meals"
|
||||
products={[
|
||||
{
|
||||
id: "1", name: "Fried Chicken Combo", price: "KSh 650", imageSrc: "http://img.b2bpic.net/free-photo/top-view-delicious-fried-chicken-with-seasonings-vegetables-dark-space_140725-75662.jpg?_wi=2", imageAlt: "Crispy fried chicken with sides", initialQuantity: 1
|
||||
id: "1", name: "Fried Chicken Combo", price: "KSh 650", imageSrc: "http://img.b2bpic.net/free-photo/top-view-delicious-fried-chicken-with-seasonings-vegetables-dark-space_140725-75662.jpg", imageAlt: "Crispy fried chicken with sides", initialQuantity: 1
|
||||
},
|
||||
{
|
||||
id: "2", name: "Roasted Chicken Platter", price: "KSh 750", imageSrc: "http://img.b2bpic.net/free-photo/top-view-delicious-turkey-tray_23-2148664035.jpg?_wi=1", imageAlt: "Juicy roasted chicken meal", initialQuantity: 1
|
||||
id: "2", name: "Roasted Chicken Platter", price: "KSh 750", imageSrc: "http://img.b2bpic.net/free-photo/top-view-delicious-turkey-tray_23-2148664035.jpg", imageAlt: "Juicy roasted chicken meal", initialQuantity: 1
|
||||
},
|
||||
{
|
||||
id: "3", name: "Crispy Chicken Burger", price: "KSh 550", imageSrc: "http://img.b2bpic.net/free-photo/delicious-sandwiches-fries-chicken-nuggets-black-cutting-board-fries-pepper-dark-mix-colored-blurred-surface_179666-42229.jpg?_wi=1", imageAlt: "Gourmet chicken burger with fries", initialQuantity: 1
|
||||
id: "3", name: "Crispy Chicken Burger", price: "KSh 550", imageSrc: "http://img.b2bpic.net/free-photo/delicious-sandwiches-fries-chicken-nuggets-black-cutting-board-fries-pepper-dark-mix-colored-blurred-surface_179666-42229.jpg", imageAlt: "Gourmet chicken burger with fries", initialQuantity: 1
|
||||
},
|
||||
{
|
||||
id: "4", name: "Chips & Spiced Chicken", price: "KSh 500", imageSrc: "http://img.b2bpic.net/free-photo/top-view-delicious-fried-chicken-with-seasonings-vegetables-dark-space_140725-75662.jpg?_wi=3", imageAlt: "Spiced chicken with golden fries", initialQuantity: 1
|
||||
id: "4", name: "Chips & Spiced Chicken", price: "KSh 500", imageSrc: "http://img.b2bpic.net/free-photo/top-view-delicious-fried-chicken-with-seasonings-vegetables-dark-space_140725-75662.jpg", imageAlt: "Spiced chicken with golden fries", initialQuantity: 1
|
||||
},
|
||||
{
|
||||
id: "5", name: "Family Chicken Feast", price: "KSh 1,200", imageSrc: "http://img.b2bpic.net/free-photo/top-view-delicious-turkey-tray_23-2148664035.jpg?_wi=2", imageAlt: "Large family portion chicken meal", initialQuantity: 1
|
||||
id: "5", name: "Family Chicken Feast", price: "KSh 1,200", imageSrc: "http://img.b2bpic.net/free-photo/top-view-delicious-turkey-tray_23-2148664035.jpg", imageAlt: "Large family portion chicken meal", initialQuantity: 1
|
||||
},
|
||||
{
|
||||
id: "6", name: "Chicken Meal with Drink", price: "KSh 600", imageSrc: "http://img.b2bpic.net/free-photo/delicious-sandwiches-fries-chicken-nuggets-black-cutting-board-fries-pepper-dark-mix-colored-blurred-surface_179666-42229.jpg?_wi=2", imageAlt: "Chicken meal with cold drink", initialQuantity: 1
|
||||
id: "6", name: "Chicken Meal with Drink", price: "KSh 600", imageSrc: "http://img.b2bpic.net/free-photo/delicious-sandwiches-fries-chicken-nuggets-black-cutting-board-fries-pepper-dark-mix-colored-blurred-surface_179666-42229.jpg", imageAlt: "Chicken meal with cold drink", initialQuantity: 1
|
||||
}
|
||||
]}
|
||||
gridVariant="three-columns-all-equal-width"
|
||||
@@ -122,22 +123,22 @@ export default function LandingPage() {
|
||||
tag="Customer Reviews"
|
||||
testimonials={[
|
||||
{
|
||||
id: "1", name: "David Kariuki, Office Manager", date: "Date: 15 January 2025", title: "Best lunch spot in Nairobi!", quote: "I visit PFC Restaurant almost every day for lunch. The chicken is always fresh, the service is incredibly fast, and the prices are unbeatable. Highly recommend!", tag: "Regular Customer", avatarSrc: "http://img.b2bpic.net/free-photo/portrait-beautiful-business-office-business-center_1303-20365.jpg", avatarAlt: "professional headshot portrait man", imageSrc: "http://img.b2bpic.net/free-photo/happy-friends-table-with-burgers_23-2148705555.jpg?_wi=1", imageAlt: "diverse happy customers enjoying food"
|
||||
id: "1", name: "David Kariuki, Office Manager", date: "Date: 15 January 2025", title: "Best lunch spot in Nairobi!", quote: "I visit PFC Restaurant almost every day for lunch. The chicken is always fresh, the service is incredibly fast, and the prices are unbeatable. Highly recommend!", tag: "Regular Customer", avatarSrc: "http://img.b2bpic.net/free-photo/portrait-beautiful-business-office-business-center_1303-20365.jpg", avatarAlt: "professional headshot portrait man", imageSrc: "http://img.b2bpic.net/free-photo/happy-friends-table-with-burgers_23-2148705555.jpg", imageAlt: "diverse happy customers enjoying food"
|
||||
},
|
||||
{
|
||||
id: "2", name: "Sarah Njeri, Family of Four", date: "Date: 12 January 2025", title: "Family-friendly and delicious", quote: "We took our kids to PFC last weekend. The food was amazing, the restaurant is clean, and the staff treated us like family. We're definitely coming back!", tag: "Family Dining", avatarSrc: "http://img.b2bpic.net/free-photo/girl-casualwear_1098-13407.jpg", avatarAlt: "professional headshot portrait woman", imageSrc: "http://img.b2bpic.net/free-photo/happy-friends-table-with-burgers_23-2148705555.jpg?_wi=2", imageAlt: "diverse happy customers enjoying food"
|
||||
id: "2", name: "Sarah Njeri, Family of Four", date: "Date: 12 January 2025", title: "Family-friendly and delicious", quote: "We took our kids to PFC last weekend. The food was amazing, the restaurant is clean, and the staff treated us like family. We're definitely coming back!", tag: "Family Dining", avatarSrc: "http://img.b2bpic.net/free-photo/girl-casualwear_1098-13407.jpg", avatarAlt: "professional headshot portrait woman", imageSrc: "http://img.b2bpic.net/free-photo/happy-friends-table-with-burgers_23-2148705555.jpg", imageAlt: "diverse happy customers enjoying food"
|
||||
},
|
||||
{
|
||||
id: "3", name: "Ahmed Hassan, Student", date: "Date: 10 January 2025", title: "Great value, amazing taste", quote: "As a student, PFC is my go-to. Quality chicken at prices I can actually afford. Every meal is satisfying and fills me up.", tag: "Budget-Friendly", avatarSrc: "http://img.b2bpic.net/free-photo/medium-shot-queer-person-work_23-2150617717.jpg", avatarAlt: "professional headshot portrait diverse", imageSrc: "http://img.b2bpic.net/free-photo/happy-friends-table-with-burgers_23-2148705555.jpg?_wi=3", imageAlt: "diverse happy customers enjoying food"
|
||||
id: "3", name: "Ahmed Hassan, Student", date: "Date: 10 January 2025", title: "Great value, amazing taste", quote: "As a student, PFC is my go-to. Quality chicken at prices I can actually afford. Every meal is satisfying and fills me up.", tag: "Budget-Friendly", avatarSrc: "http://img.b2bpic.net/free-photo/medium-shot-queer-person-work_23-2150617717.jpg", avatarAlt: "professional headshot portrait diverse", imageSrc: "http://img.b2bpic.net/free-photo/happy-friends-table-with-burgers_23-2148705555.jpg", imageAlt: "diverse happy customers enjoying food"
|
||||
},
|
||||
{
|
||||
id: "4", name: "Grace Mwangi, Takeout Regular", date: "Date: 8 January 2025", title: "Perfect for quick orders", quote: "I order takeout from PFC twice a week. Fast service, hot food, and always fresh. This is my favorite restaurant in Nairobi!", tag: "Takeout Fan", avatarSrc: "http://img.b2bpic.net/free-photo/young-businessman-happy-expression_1194-1604.jpg", avatarAlt: "professional headshot portrait smile", imageSrc: "http://img.b2bpic.net/free-photo/happy-friends-table-with-burgers_23-2148705555.jpg?_wi=4", imageAlt: "diverse happy customers enjoying food"
|
||||
id: "4", name: "Grace Mwangi, Takeout Regular", date: "Date: 8 January 2025", title: "Perfect for quick orders", quote: "I order takeout from PFC twice a week. Fast service, hot food, and always fresh. This is my favorite restaurant in Nairobi!", tag: "Takeout Fan", avatarSrc: "http://img.b2bpic.net/free-photo/young-businessman-happy-expression_1194-1604.jpg", avatarAlt: "professional headshot portrait smile", imageSrc: "http://img.b2bpic.net/free-photo/happy-friends-table-with-burgers_23-2148705555.jpg", imageAlt: "diverse happy customers enjoying food"
|
||||
},
|
||||
{
|
||||
id: "5", name: "James Kipchoge, Businessman", date: "Date: 5 January 2025", title: "Reliable and professional", quote: "I've been ordering catering from PFC for our office events. Always professional, reliable, and the food quality never disappoints.", tag: "Corporate Events", avatarSrc: "http://img.b2bpic.net/free-photo/portrait-beautiful-business-office-business-center_1303-20365.jpg", avatarAlt: "professional headshot portrait man", imageSrc: "http://img.b2bpic.net/free-photo/happy-friends-table-with-burgers_23-2148705555.jpg?_wi=5", imageAlt: "diverse happy customers enjoying food"
|
||||
id: "5", name: "James Kipchoge, Businessman", date: "Date: 5 January 2025", title: "Reliable and professional", quote: "I've been ordering catering from PFC for our office events. Always professional, reliable, and the food quality never disappoints.", tag: "Corporate Events", avatarSrc: "http://img.b2bpic.net/free-photo/portrait-beautiful-business-office-business-center_1303-20365.jpg", avatarAlt: "professional headshot portrait man", imageSrc: "http://img.b2bpic.net/free-photo/happy-friends-table-with-burgers_23-2148705555.jpg", imageAlt: "diverse happy customers enjoying food"
|
||||
},
|
||||
{
|
||||
id: "6", name: "Monica Ochieng, Regular Customer", date: "Date: 2 January 2025", title: "Consistent excellence", quote: "I've been a customer for months now. PFC consistently delivers fresh, delicious meals. The best chicken restaurant in the area!", tag: "Loyal Customer", avatarSrc: "http://img.b2bpic.net/free-photo/girl-casualwear_1098-13407.jpg", avatarAlt: "professional headshot portrait woman", imageSrc: "http://img.b2bpic.net/free-photo/happy-friends-table-with-burgers_23-2148705555.jpg?_wi=6", imageAlt: "diverse happy customers enjoying food"
|
||||
id: "6", name: "Monica Ochieng, Regular Customer", date: "Date: 2 January 2025", title: "Consistent excellence", quote: "I've been a customer for months now. PFC consistently delivers fresh, delicious meals. The best chicken restaurant in the area!", tag: "Loyal Customer", avatarSrc: "http://img.b2bpic.net/free-photo/girl-casualwear_1098-13407.jpg", avatarAlt: "professional headshot portrait woman", imageSrc: "http://img.b2bpic.net/free-photo/happy-friends-table-with-burgers_23-2148705555.jpg", imageAlt: "diverse happy customers enjoying food"
|
||||
}
|
||||
]}
|
||||
textboxLayout="default"
|
||||
|
||||
@@ -1,51 +1,54 @@
|
||||
"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?: number | string;
|
||||
letterSpacing?: number;
|
||||
fill?: string;
|
||||
id?: 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 = '',
|
||||
fontSize = 48,
|
||||
fontWeight = 700,
|
||||
letterSpacing = 0,
|
||||
fill = 'currentColor',
|
||||
id,
|
||||
}) => {
|
||||
const textLength = text.length;
|
||||
const charWidth = fontSize * 0.6;
|
||||
const width = charWidth * textLength + letterSpacing * (textLength - 1);
|
||||
const height = fontSize * 1.2;
|
||||
|
||||
return (
|
||||
<svg
|
||||
ref={svgRef}
|
||||
viewBox={viewBox}
|
||||
className={cls("w-full", className)}
|
||||
style={{ aspectRatio: aspectRatio }}
|
||||
preserveAspectRatio="none"
|
||||
width={width}
|
||||
height={height}
|
||||
viewBox={`0 0 ${width} ${height}`}
|
||||
className={className}
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
role="img"
|
||||
aria-label={`${logoText} logo`}
|
||||
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={0}
|
||||
y={fontSize * 0.75}
|
||||
fontSize={fontSize}
|
||||
fontWeight={fontWeight}
|
||||
letterSpacing={letterSpacing}
|
||||
fill={fill}
|
||||
fontFamily="inherit"
|
||||
dominantBaseline="middle"
|
||||
id={id}
|
||||
>
|
||||
{logoText}
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
};
|
||||
|
||||
export default SvgTextLogo;
|
||||
|
||||
Reference in New Issue
Block a user