Merge version_1 into main #2
@@ -52,16 +52,16 @@ export default function LandingPage() {
|
||||
tagAnimation="slide-up"
|
||||
background={{ variant: "sparkles-gradient" }}
|
||||
leftCarouselItems={[
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/christmas-gifts-bed-pillows-christmas-gift-wrapping-concept_169016-14345.jpg?_wi=1", imageAlt: "Birthday magazine cover design" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/gentle-couple-waiting-baby-embracing_1153-2775.jpg?_wi=1", imageAlt: "Couple story magazine" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-vector/hand-drawn-flat-new-year-vertical-banners-set_23-2149169078.jpg?_wi=1", imageAlt: "Anniversary magazine" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/people-looking-picture-album_23-2149548423.jpg?_wi=1", imageAlt: "Friendship memories magazine" }
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/christmas-gifts-bed-pillows-christmas-gift-wrapping-concept_169016-14345.jpg", imageAlt: "Birthday magazine cover design" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/gentle-couple-waiting-baby-embracing_1153-2775.jpg", imageAlt: "Couple story magazine" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-vector/hand-drawn-flat-new-year-vertical-banners-set_23-2149169078.jpg", imageAlt: "Anniversary magazine" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/people-looking-picture-album_23-2149548423.jpg", imageAlt: "Friendship memories magazine" }
|
||||
]}
|
||||
rightCarouselItems={[
|
||||
{ imageSrc: "http://img.b2bpic.net/free-vector/creative-2018-calendar_23-2147701783.jpg?_wi=1", imageAlt: "Baby milestone magazine" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-vector/realistic-yearbook-template_23-2149364725.jpg?_wi=1", imageAlt: "Graduation magazine" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-vector/creative-2018-calendar_23-2147701783.jpg", imageAlt: "Baby milestone magazine" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-vector/realistic-yearbook-template_23-2149364725.jpg", imageAlt: "Graduation magazine" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/close-up-blank-magazine-held-by-woman_23-2148295528.jpg", imageAlt: "Premium magazine mockup" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-vector/hand-drawn-flat-new-year-vertical-banners-set_23-2149169078.jpg?_wi=2", imageAlt: "Anniversary magazine spread" }
|
||||
{ imageSrc: "http://img.b2bpic.net/free-vector/hand-drawn-flat-new-year-vertical-banners-set_23-2149169078.jpg", imageAlt: "Anniversary magazine spread" }
|
||||
]}
|
||||
carouselPosition="right"
|
||||
buttons={[
|
||||
@@ -86,6 +86,7 @@ export default function LandingPage() {
|
||||
imageSrc="http://img.b2bpic.net/free-photo/composition-mothers-day_23-2147789900.jpg"
|
||||
imageAlt="Magazine delivery moment"
|
||||
mediaAnimation="slide-up"
|
||||
metricsAnimation="slide-up"
|
||||
useInvertedBackground={false}
|
||||
/>
|
||||
</div>
|
||||
@@ -104,27 +105,27 @@ export default function LandingPage() {
|
||||
products={[
|
||||
{
|
||||
id: "1", brand: "The Print Story", name: "Birthday Memory Magazine", price: "₹2,499", rating: 5,
|
||||
reviewCount: "124", imageSrc: "http://img.b2bpic.net/free-photo/christmas-gifts-bed-pillows-christmas-gift-wrapping-concept_169016-14345.jpg?_wi=2", imageAlt: "Birthday magazine"
|
||||
reviewCount: "124", imageSrc: "http://img.b2bpic.net/free-photo/christmas-gifts-bed-pillows-christmas-gift-wrapping-concept_169016-14345.jpg", imageAlt: "Birthday magazine"
|
||||
},
|
||||
{
|
||||
id: "2", brand: "The Print Story", name: "Anniversary Love Story", price: "₹2,899", rating: 5,
|
||||
reviewCount: "98", imageSrc: "http://img.b2bpic.net/free-vector/hand-drawn-flat-new-year-vertical-banners-set_23-2149169078.jpg?_wi=3", imageAlt: "Anniversary magazine"
|
||||
reviewCount: "98", imageSrc: "http://img.b2bpic.net/free-vector/hand-drawn-flat-new-year-vertical-banners-set_23-2149169078.jpg", imageAlt: "Anniversary magazine"
|
||||
},
|
||||
{
|
||||
id: "3", brand: "The Print Story", name: "Couple Journey Magazine", price: "₹3,199", rating: 5,
|
||||
reviewCount: "156", imageSrc: "http://img.b2bpic.net/free-photo/gentle-couple-waiting-baby-embracing_1153-2775.jpg?_wi=2", imageAlt: "Couple story magazine"
|
||||
reviewCount: "156", imageSrc: "http://img.b2bpic.net/free-photo/gentle-couple-waiting-baby-embracing_1153-2775.jpg", imageAlt: "Couple story magazine"
|
||||
},
|
||||
{
|
||||
id: "4", brand: "The Print Story", name: "Baby Milestone Book", price: "₹2,599", rating: 5,
|
||||
reviewCount: "87", imageSrc: "http://img.b2bpic.net/free-vector/creative-2018-calendar_23-2147701783.jpg?_wi=2", imageAlt: "Baby milestone magazine"
|
||||
reviewCount: "87", imageSrc: "http://img.b2bpic.net/free-vector/creative-2018-calendar_23-2147701783.jpg", imageAlt: "Baby milestone magazine"
|
||||
},
|
||||
{
|
||||
id: "5", brand: "The Print Story", name: "Friendship Memories", price: "₹2,399", rating: 5,
|
||||
reviewCount: "142", imageSrc: "http://img.b2bpic.net/free-photo/people-looking-picture-album_23-2149548423.jpg?_wi=2", imageAlt: "Friendship magazine"
|
||||
reviewCount: "142", imageSrc: "http://img.b2bpic.net/free-photo/people-looking-picture-album_23-2149548423.jpg", imageAlt: "Friendship magazine"
|
||||
},
|
||||
{
|
||||
id: "6", brand: "The Print Story", name: "Graduation Keepsake", price: "₹2,799", rating: 5,
|
||||
reviewCount: "73", imageSrc: "http://img.b2bpic.net/free-vector/realistic-yearbook-template_23-2149364725.jpg?_wi=2", imageAlt: "Graduation magazine"
|
||||
reviewCount: "73", imageSrc: "http://img.b2bpic.net/free-vector/realistic-yearbook-template_23-2149364725.jpg", imageAlt: "Graduation magazine"
|
||||
}
|
||||
]}
|
||||
/>
|
||||
@@ -158,15 +159,15 @@ export default function LandingPage() {
|
||||
animationType="slide-up"
|
||||
plans={[
|
||||
{
|
||||
id: "classic", title: "Classic Edition", price: "₹1,999", period: "per magazine", imageSrc: "http://img.b2bpic.net/free-photo/christmas-gifts-bed-pillows-christmas-gift-wrapping-concept_169016-14345.jpg?_wi=3", imageAlt: "Classic magazine edition", features: ["20-40 pages of memories", "Premium glossy paper", "Hardcover binding", "Standard delivery (7-10 days)"],
|
||||
id: "classic", title: "Classic Edition", price: "₹1,999", period: "per magazine", imageSrc: "http://img.b2bpic.net/free-photo/christmas-gifts-bed-pillows-christmas-gift-wrapping-concept_169016-14345.jpg", imageAlt: "Classic magazine edition", features: ["20-40 pages of memories", "Premium glossy paper", "Hardcover binding", "Standard delivery (7-10 days)"],
|
||||
button: { text: "Order via Instagram", href: "https://instagram.com/theprintstoty_" }
|
||||
},
|
||||
{
|
||||
id: "premium", title: "Premium Deluxe", price: "₹2,999", period: "per magazine", imageSrc: "http://img.b2bpic.net/free-photo/gentle-couple-waiting-baby-embracing_1153-2775.jpg?_wi=3", imageAlt: "Premium magazine edition", features: ["40-60 pages of memories", "Premium matte & glossy mix", "Deluxe hardcover with dust jacket", "Express delivery (3-5 days)", "Personalized message page"],
|
||||
id: "premium", title: "Premium Deluxe", price: "₹2,999", period: "per magazine", imageSrc: "http://img.b2bpic.net/free-photo/gentle-couple-waiting-baby-embracing_1153-2775.jpg", imageAlt: "Premium magazine edition", features: ["40-60 pages of memories", "Premium matte & glossy mix", "Deluxe hardcover with dust jacket", "Express delivery (3-5 days)", "Personalized message page"],
|
||||
button: { text: "Order via Instagram", href: "https://instagram.com/theprintstoty_" }
|
||||
},
|
||||
{
|
||||
id: "luxury", title: "Luxury Collection", price: "₹4,999", period: "per magazine", imageSrc: "http://img.b2bpic.net/free-vector/hand-drawn-flat-new-year-vertical-banners-set_23-2149169078.jpg?_wi=4", imageAlt: "Luxury magazine edition", features: ["60-80 pages of premium memories", "Premium art paper & metallic finish", "Premium leather hardcover", "Priority overnight delivery", "Custom ribbon & embossing", "Luxury gift box packaging"],
|
||||
id: "luxury", title: "Luxury Collection", price: "₹4,999", period: "per magazine", imageSrc: "http://img.b2bpic.net/free-vector/hand-drawn-flat-new-year-vertical-banners-set_23-2149169078.jpg", imageAlt: "Luxury magazine edition", features: ["60-80 pages of premium memories", "Premium art paper & metallic finish", "Premium leather hardcover", "Priority overnight delivery", "Custom ribbon & embossing", "Luxury gift box packaging"],
|
||||
button: { text: "Order via Instagram", href: "https://instagram.com/theprintstoty_" }
|
||||
}
|
||||
]}
|
||||
@@ -223,7 +224,7 @@ export default function LandingPage() {
|
||||
textboxLayout="default"
|
||||
useInvertedBackground={false}
|
||||
mediaPosition="right"
|
||||
imageSrc="http://img.b2bpic.net/free-photo/portrait-smiling-woman-holds-tablet-pc-room-with-book-stands_613910-3272.jpg?_wi=1"
|
||||
imageSrc="http://img.b2bpic.net/free-photo/portrait-smiling-woman-holds-tablet-pc-room-with-book-stands_613910-3272.jpg"
|
||||
imageAlt="Magazine and coffee beautiful composition"
|
||||
mediaAnimation="slide-up"
|
||||
faqsAnimation="slide-up"
|
||||
@@ -265,7 +266,7 @@ export default function LandingPage() {
|
||||
tagAnimation="slide-up"
|
||||
background={{ variant: "sparkles-gradient" }}
|
||||
useInvertedBackground={false}
|
||||
imageSrc="http://img.b2bpic.net/free-photo/portrait-smiling-woman-holds-tablet-pc-room-with-book-stands_613910-3272.jpg?_wi=2"
|
||||
imageSrc="http://img.b2bpic.net/free-photo/portrait-smiling-woman-holds-tablet-pc-room-with-book-stands_613910-3272.jpg"
|
||||
imageAlt="Beautiful magazine and coffee aesthetics"
|
||||
mediaAnimation="slide-up"
|
||||
mediaPosition="right"
|
||||
|
||||
@@ -1,51 +1,28 @@
|
||||
"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;
|
||||
}
|
||||
|
||||
const SvgTextLogo = memo<SvgTextLogoProps>(function SvgTextLogo({
|
||||
logoText,
|
||||
adjustHeightFactor,
|
||||
verticalAlign = "top",
|
||||
className = "",
|
||||
}) {
|
||||
const { svgRef, textRef, viewBox, aspectRatio } = useSvgTextLogo(logoText, false, adjustHeightFactor);
|
||||
|
||||
export function SvgTextLogo({ text, className = '' }: SvgTextLogoProps) {
|
||||
return (
|
||||
<svg
|
||||
ref={svgRef}
|
||||
viewBox={viewBox}
|
||||
className={cls("w-full", className)}
|
||||
style={{ aspectRatio: aspectRatio }}
|
||||
preserveAspectRatio="none"
|
||||
viewBox="0 0 200 50"
|
||||
className={className}
|
||||
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="10"
|
||||
y="35"
|
||||
fontSize="32"
|
||||
fontWeight="bold"
|
||||
fill="currentColor"
|
||||
dominantBaseline="middle"
|
||||
>
|
||||
{logoText}
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
|
||||
export default SvgTextLogo;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user