Merge version_1 into main #1
@@ -9,7 +9,7 @@ import TestimonialCardThirteen from '@/components/sections/testimonial/Testimoni
|
||||
import BlogCardThree from '@/components/sections/blog/BlogCardThree';
|
||||
import TestimonialAboutCard from '@/components/sections/about/TestimonialAboutCard';
|
||||
import FooterBaseCard from '@/components/sections/footer/FooterBaseCard';
|
||||
import { Sparkles, Hand, Cup, Zap, Plus, TrendingUp, Star, Palette, CircleDot, Square, Droplet, Heart, Cookie, Flame, MapPin, Navigation } from 'lucide-react';
|
||||
import { Sparkles, Hand, Zap, Plus, TrendingUp, Star, Palette, CircleDot, Square, Droplet, Heart, Cookie, Flame, MapPin, Navigation } from 'lucide-react';
|
||||
|
||||
export default function LandingPage() {
|
||||
return (
|
||||
@@ -42,7 +42,7 @@ export default function LandingPage() {
|
||||
<HeroBillboard
|
||||
title="Create Your Perfect Frozen Yogurt"
|
||||
description="Choose your flavor, add unlimited toppings, and enjoy the sweetest experience in Islamabad."
|
||||
background={{ variant: "circleGradient" }}
|
||||
background={{ variant: "plain" }}
|
||||
tag="Premium Experience"
|
||||
tagIcon={Sparkles}
|
||||
buttons={[
|
||||
@@ -62,7 +62,7 @@ export default function LandingPage() {
|
||||
tag="Self-Service"
|
||||
tagIcon={Hand}
|
||||
features={[
|
||||
{ icon: Cup, title: "Pick Your Cup", description: "Choose from our selection of cup sizes to perfectly match your appetite." },
|
||||
{ icon: Zap, title: "Pick Your Cup", description: "Choose from our selection of cup sizes to perfectly match your appetite." },
|
||||
{ icon: Zap, title: "Choose Flavor", description: "Select from 6+ delicious frozen yogurt flavors made fresh daily." },
|
||||
{ icon: Plus, title: "Add Toppings", description: "Mix and match from over 30 premium toppings to create your dream dessert." },
|
||||
{ icon: TrendingUp, title: "Pay by Weight", description: "Pay only for what you take - transparency and value in every cup." }
|
||||
|
||||
@@ -1,51 +1,43 @@
|
||||
"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;
|
||||
fill?: string;
|
||||
textAnchor?: 'start' | 'middle' | 'end';
|
||||
dominantBaseline?: 'hanging' | 'middle' | 'auto' | 'baseline' | 'inherit';
|
||||
}
|
||||
|
||||
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 = '',
|
||||
fontSize = 24,
|
||||
fontWeight = 700,
|
||||
fill = 'currentColor',
|
||||
textAnchor = 'middle',
|
||||
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 80"
|
||||
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="100"
|
||||
y="40"
|
||||
fontSize={fontSize}
|
||||
fontWeight={fontWeight}
|
||||
fill={fill}
|
||||
textAnchor={textAnchor}
|
||||
dominantBaseline={dominantBaseline}
|
||||
>
|
||||
{logoText}
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
};
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
|
||||
export default SvgTextLogo;
|
||||
export default SvgTextLogo;
|
||||
Reference in New Issue
Block a user