Merge version_1 into main #2

Merged
bender merged 2 commits from version_1 into main 2026-03-12 13:40:19 +00:00
2 changed files with 40 additions and 48 deletions

View File

@@ -22,7 +22,7 @@ export default function LandingPage() {
borderRadius="rounded"
contentWidth="medium"
sizing="largeSmallSizeLargeTitles"
background="blurBottom"
background="circleGradient"
cardStyle="gradient-radial"
primaryButtonStyle="gradient"
secondaryButtonStyle="layered"
@@ -50,7 +50,7 @@ export default function LandingPage() {
description="Immerse yourself in our curated collection of premium e-books. Seamless reading experience across all your devices with interactive 3D animations."
tag="Premium E-Books"
tagAnimation="slide-up"
background={{ variant: "blurBottom" }}
background={{ variant: "canvas-reveal" }}
imageSrc="http://img.b2bpic.net/free-vector/library-flat-banners-set_1284-6711.jpg"
imageAlt="E-book platform dashboard preview"
buttons={[
@@ -136,20 +136,17 @@ export default function LandingPage() {
useInvertedBackground={true}
plans={[
{
id: "reader", tag: "Reader Plan", price: "$9.99", period: "/month", description: "Perfect for casual readers who love exploring new titles", button: { text: "Start Reading", href: "#contact" },
featuresTitle: "What's Included:", features: [
id: "reader", tag: "Reader Plan", price: "$9.99", period: "/month", description: "Perfect for casual readers who love exploring new titles", button: { text: "Start Reading", href: "#contact" }, featuresTitle: "What's Included:", features: [
"Unlimited book access", "Cloud sync across devices", "Offline reading mode", "Monthly recommendations", "Ad-free experience"
]
},
{
id: "collector", tag: "Collector Plan", price: "$24.99", period: "/month", description: "For avid readers who want premium features and exclusive content", button: { text: "Get Premium", href: "#contact" },
featuresTitle: "Everything in Reader, plus:", features: [
id: "collector", tag: "Collector Plan", price: "$24.99", period: "/month", description: "For avid readers who want premium features and exclusive content", button: { text: "Get Premium", href: "#contact" }, featuresTitle: "Everything in Reader, plus:", features: [
"Early access to new releases", "Exclusive author interviews", "Advanced annotation tools", "Custom reading lists", "Priority support", "Family sharing (up to 5)"
]
},
{
id: "enterprise", tag: "Enterprise Plan", price: "Custom", period: "/month", description: "Tailored solutions for institutions and organizations", button: { text: "Contact Sales", href: "#contact" },
featuresTitle: "Unlimited access for:", features: [
id: "enterprise", tag: "Enterprise Plan", price: "Custom", period: "/month", description: "Tailored solutions for institutions and organizations", button: { text: "Contact Sales", href: "#contact" }, featuresTitle: "Unlimited access for:", features: [
"Unlimited user accounts", "Institutional licensing", "Admin dashboard", "Custom integrations", "Dedicated support", "Analytics & reports", "White-label options"
]
}
@@ -201,11 +198,11 @@ export default function LandingPage() {
testimonials={[
{
id: "1", name: "Sarah Chen", role: "Book Blogger", company: "Literary Minds", rating: 5,
imageSrc: "http://img.b2bpic.net/free-photo/close-up-positive-executive-work_1098-519.jpg?_wi=1", imageAlt: "Portrait of Sarah Chen"
imageSrc: "http://img.b2bpic.net/free-photo/close-up-positive-executive-work_1098-519.jpg", imageAlt: "Portrait of Sarah Chen"
},
{
id: "2", name: "Michael Rodriguez", role: "Author & Educator", company: "Knowledge Hub", rating: 5,
imageSrc: "http://img.b2bpic.net/free-photo/front-view-smiley-man-with-backpack_23-2149915917.jpg?_wi=1", imageAlt: "Portrait of Michael Rodriguez"
imageSrc: "http://img.b2bpic.net/free-photo/front-view-smiley-man-with-backpack_23-2149915917.jpg", imageAlt: "Portrait of Michael Rodriguez"
},
{
id: "3", name: "Emma Thompson", role: "Book Club Director", company: "Reading Circles", rating: 5,
@@ -217,11 +214,11 @@ export default function LandingPage() {
},
{
id: "5", name: "Lisa Andersson", role: "University Librarian", company: "Academic Press", rating: 5,
imageSrc: "http://img.b2bpic.net/free-photo/close-up-positive-executive-work_1098-519.jpg?_wi=2", imageAlt: "Portrait of Lisa Andersson"
imageSrc: "http://img.b2bpic.net/free-photo/close-up-positive-executive-work_1098-519.jpg", imageAlt: "Portrait of Lisa Andersson"
},
{
id: "6", name: "David Kim", role: "Content Creator", company: "Digital Stories", rating: 5,
imageSrc: "http://img.b2bpic.net/free-photo/front-view-smiley-man-with-backpack_23-2149915917.jpg?_wi=2", imageAlt: "Portrait of David Kim"
imageSrc: "http://img.b2bpic.net/free-photo/front-view-smiley-man-with-backpack_23-2149915917.jpg", imageAlt: "Portrait of David Kim"
}
]}
/>

View File

@@ -1,51 +1,46 @@
"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;
fontFamily?: string;
fontWeight?: 'normal' | 'bold';
fill?: string;
className?: string;
dominantBaseline?: 'auto' | 'middle' | 'hanging' | 'mathematical';
}
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,
fontFamily = 'Arial',
fontWeight = 'bold',
fill = 'currentColor',
className = '',
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 ${text.length * fontSize * 0.6} ${fontSize * 1.5}`}
width="100%"
height="auto"
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={text.length * fontSize * 0.3}
y={fontSize * 0.75}
fontSize={fontSize}
fontFamily={fontFamily}
fontWeight={fontWeight}
fill={fill}
textAnchor="middle"
dominantBaseline={dominantBaseline}
>
{logoText}
{text}
</text>
</svg>
);
});
SvgTextLogo.displayName = "SvgTextLogo";
};
export default SvgTextLogo;