Merge version_1 into main #2
@@ -20,7 +20,7 @@ export default function LandingPage() {
|
||||
borderRadius="rounded"
|
||||
contentWidth="mediumSmall"
|
||||
sizing="mediumLargeSizeLargeTitles"
|
||||
background="aurora"
|
||||
background="circleGradient"
|
||||
cardStyle="soft-shadow"
|
||||
primaryButtonStyle="flat"
|
||||
secondaryButtonStyle="radial-glow"
|
||||
@@ -47,18 +47,18 @@ export default function LandingPage() {
|
||||
tag="Premium Organic"
|
||||
tagIcon={Leaf}
|
||||
tagAnimation="slide-up"
|
||||
background={{ variant: "aurora" }}
|
||||
background={{ variant: "sparkles-gradient" }}
|
||||
leftCarouselItems={[
|
||||
{ imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=9yeji4&_wi=1", imageAlt: "Organic granola product vibrant fresh" },
|
||||
{ imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=zfn63o&_wi=1", imageAlt: "Healthy snack bowl fresh ingredients" },
|
||||
{ imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=9yeji4", imageAlt: "Organic granola product vibrant fresh" },
|
||||
{ imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=zfn63o", imageAlt: "Healthy snack bowl fresh ingredients" },
|
||||
{ imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=b5hvgn", imageAlt: "Organic food assortment natural" },
|
||||
{ imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=qg9zpe", imageAlt: "Farm fresh food product natural" }
|
||||
]}
|
||||
rightCarouselItems={[
|
||||
{ imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=71fw0h", imageAlt: "Eco-friendly food packaging organic" },
|
||||
{ imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=voej1p", imageAlt: "Food product closeup fresh quality" },
|
||||
{ imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=9yeji4&_wi=2", imageAlt: "Organic granola cereal breakfast" },
|
||||
{ imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=zfn63o&_wi=2", imageAlt: "Healthy snack bowl arrangement" }
|
||||
{ imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=9yeji4", imageAlt: "Organic granola cereal breakfast" },
|
||||
{ imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=zfn63o", imageAlt: "Healthy snack bowl arrangement" }
|
||||
]}
|
||||
buttons={[
|
||||
{ text: "Shop Collection", href: "products" },
|
||||
@@ -145,10 +145,10 @@ export default function LandingPage() {
|
||||
<TestimonialCardTwo
|
||||
testimonials={[
|
||||
{
|
||||
id: "1", name: "Sarah Johnson", role: "Wellness Coach", testimonial: "FreshBite products are a game-changer for my clients. The quality is outstanding and the taste is even better. I recommend them all the time!", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=zxwv5a&_wi=1", imageAlt: "Sarah Johnson, Wellness Coach"
|
||||
id: "1", name: "Sarah Johnson", role: "Wellness Coach", testimonial: "FreshBite products are a game-changer for my clients. The quality is outstanding and the taste is even better. I recommend them all the time!", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=zxwv5a", imageAlt: "Sarah Johnson, Wellness Coach"
|
||||
},
|
||||
{
|
||||
id: "2", name: "Michael Chen", role: "Fitness Enthusiast", testimonial: "Finally, a snack brand that doesn't compromise on taste or nutrition. Their energy bars are my go-to pre-workout fuel.", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=dczvy6&_wi=1", imageAlt: "Michael Chen, Fitness Enthusiast"
|
||||
id: "2", name: "Michael Chen", role: "Fitness Enthusiast", testimonial: "Finally, a snack brand that doesn't compromise on taste or nutrition. Their energy bars are my go-to pre-workout fuel.", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=dczvy6", imageAlt: "Michael Chen, Fitness Enthusiast"
|
||||
},
|
||||
{
|
||||
id: "3", name: "Emma Rodriguez", role: "Nutritionist", testimonial: "I love recommending FreshBite to my patients. The transparency about ingredients and sourcing is exactly what we need in the food industry.", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=0d5rrh", imageAlt: "Emma Rodriguez, Nutritionist"
|
||||
@@ -157,10 +157,10 @@ export default function LandingPage() {
|
||||
id: "4", name: "David Kim", role: "Busy Parent", testimonial: "My kids ask for FreshBite snacks now instead of processed junk. As a parent, that's the highest compliment I can give.", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=qi8p0n", imageAlt: "David Kim, Busy Parent"
|
||||
},
|
||||
{
|
||||
id: "5", name: "Lisa Thompson", role: "Environmental Advocate", testimonial: "Their commitment to sustainable packaging is inspiring. I feel good about supporting a brand that truly cares about our planet.", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=zxwv5a&_wi=2", imageAlt: "Lisa Thompson, Environmental Advocate"
|
||||
id: "5", name: "Lisa Thompson", role: "Environmental Advocate", testimonial: "Their commitment to sustainable packaging is inspiring. I feel good about supporting a brand that truly cares about our planet.", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=zxwv5a", imageAlt: "Lisa Thompson, Environmental Advocate"
|
||||
},
|
||||
{
|
||||
id: "6", name: "James Martinez", role: "Chef", testimonial: "The quality of their organic ingredients shines through in every product. I use their nut butter in my recipes all the time.", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=dczvy6&_wi=2", imageAlt: "James Martinez, Chef"
|
||||
id: "6", name: "James Martinez", role: "Chef", testimonial: "The quality of their organic ingredients shines through in every product. I use their nut butter in my recipes all the time.", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=dczvy6", imageAlt: "James Martinez, Chef"
|
||||
}
|
||||
]}
|
||||
title="Loved by Our Community"
|
||||
|
||||
@@ -1,51 +1,44 @@
|
||||
"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;
|
||||
fontSize?: number;
|
||||
fillColor?: 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,
|
||||
fontSize = 24,
|
||||
fillColor = '#000000',
|
||||
className = '',
|
||||
}) => {
|
||||
const textWidth = text.length * (fontSize * 0.6);
|
||||
const padding = 20;
|
||||
const width = textWidth + padding * 2;
|
||||
const height = fontSize + padding * 2;
|
||||
|
||||
return (
|
||||
<svg
|
||||
ref={svgRef}
|
||||
viewBox={viewBox}
|
||||
className={cls("w-full", className)}
|
||||
style={{ aspectRatio: aspectRatio }}
|
||||
preserveAspectRatio="none"
|
||||
role="img"
|
||||
aria-label={`${logoText} logo`}
|
||||
width={width}
|
||||
height={height}
|
||||
viewBox={`0 0 ${width} ${height}`}
|
||||
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={padding}
|
||||
y={padding + fontSize * 0.75}
|
||||
fontSize={fontSize}
|
||||
fill={fillColor}
|
||||
fontWeight="bold"
|
||||
fontFamily="Arial, sans-serif"
|
||||
dominantBaseline="middle"
|
||||
>
|
||||
{logoText}
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
};
|
||||
|
||||
export default SvgTextLogo;
|
||||
|
||||
Reference in New Issue
Block a user