Merge version_1 into main #2

Merged
bender merged 2 commits from version_1 into main 2026-03-12 08:08:33 +00:00
2 changed files with 38 additions and 48 deletions

View File

@@ -17,7 +17,7 @@ export default function LandingPage() {
borderRadius="rounded"
contentWidth="mediumLarge"
sizing="mediumLargeSizeLargeTitles"
background="grid"
background="circleGradient"
cardStyle="soft-shadow"
primaryButtonStyle="primary-glow"
secondaryButtonStyle="glass"
@@ -64,27 +64,27 @@ export default function LandingPage() {
products={[
{
id: "1", brand: "Class 15", name: "English Guide", price: "₹250", rating: 5,
reviewCount: "1.2k", imageSrc: "http://img.b2bpic.net/free-photo/happy-teen-girl-with-stacked-books_23-2147666644.jpg?_wi=1", imageAlt: "English Guide for primary students"
reviewCount: "1.2k", imageSrc: "http://img.b2bpic.net/free-photo/happy-teen-girl-with-stacked-books_23-2147666644.jpg", imageAlt: "English Guide for primary students"
},
{
id: "2", brand: "Class 15", name: "Mathematics Guide", price: "₹280", rating: 5,
reviewCount: "980", imageSrc: "http://img.b2bpic.net/free-photo/happy-teen-girl-with-stacked-books_23-2147666644.jpg?_wi=2", imageAlt: "Mathematics Guide for primary students"
reviewCount: "980", imageSrc: "http://img.b2bpic.net/free-photo/happy-teen-girl-with-stacked-books_23-2147666644.jpg", imageAlt: "Mathematics Guide for primary students"
},
{
id: "3", brand: "Class 15", name: "Science & Studies Guide", price: "₹300", rating: 5,
reviewCount: "1.1k", imageSrc: "http://img.b2bpic.net/free-photo/happy-teen-girl-with-stacked-books_23-2147666644.jpg?_wi=3", imageAlt: "Science and Bangladesh Studies Guide"
reviewCount: "1.1k", imageSrc: "http://img.b2bpic.net/free-photo/happy-teen-girl-with-stacked-books_23-2147666644.jpg", imageAlt: "Science and Bangladesh Studies Guide"
},
{
id: "4", brand: "BCS Preliminary", name: "General Knowledge", price: "₹450", rating: 5,
reviewCount: "2.3k", imageSrc: "http://img.b2bpic.net/free-photo/public-examination-preparation-concept_23-2149369844.jpg?_wi=1", imageAlt: "BCS General Knowledge Preparation Book"
reviewCount: "2.3k", imageSrc: "http://img.b2bpic.net/free-photo/public-examination-preparation-concept_23-2149369844.jpg", imageAlt: "BCS General Knowledge Preparation Book"
},
{
id: "5", brand: "BCS Preliminary", name: "Bangla & English Bundle", price: "₹650", rating: 5,
reviewCount: "1.8k", imageSrc: "http://img.b2bpic.net/free-photo/public-examination-preparation-concept_23-2149369844.jpg?_wi=2", imageAlt: "BCS Bangla and English Preparation"
reviewCount: "1.8k", imageSrc: "http://img.b2bpic.net/free-photo/public-examination-preparation-concept_23-2149369844.jpg", imageAlt: "BCS Bangla and English Preparation"
},
{
id: "6", brand: "BCS Preliminary", name: "Model Tests (100+ MCQs)", price: "₹550", rating: 5,
reviewCount: "2.1k", imageSrc: "http://img.b2bpic.net/free-photo/public-examination-preparation-concept_23-2149369844.jpg?_wi=3", imageAlt: "BCS Model Test Papers with Practice MCQs"
reviewCount: "2.1k", imageSrc: "http://img.b2bpic.net/free-photo/public-examination-preparation-concept_23-2149369844.jpg", imageAlt: "BCS Model Test Papers with Practice MCQs"
}
]}
/>
@@ -100,15 +100,15 @@ export default function LandingPage() {
features={[
{
id: 1,
title: "Clear Explanations", description: "Complex topics become easy to understand. Our guides break down difficult concepts into simple, digestible sections with real-world examples that students relate to.", imageSrc: "http://img.b2bpic.net/free-vector/young-people-reading-book-collection_23-2148246361.jpg?_wi=1", imageAlt: "Student learning with clear explanations"
title: "Clear Explanations", description: "Complex topics become easy to understand. Our guides break down difficult concepts into simple, digestible sections with real-world examples that students relate to.", imageSrc: "http://img.b2bpic.net/free-vector/young-people-reading-book-collection_23-2148246361.jpg", imageAlt: "Student learning with clear explanations"
},
{
id: 2,
title: "Well-Organized Content", description: "Structured chapters and topics make revision efficient. Quick-reference summaries and organized layouts help students find information instantly during exam prep.", imageSrc: "http://img.b2bpic.net/free-vector/young-people-reading-book-collection_23-2148246361.jpg?_wi=2", imageAlt: "Organized study material and revision notes"
title: "Well-Organized Content", description: "Structured chapters and topics make revision efficient. Quick-reference summaries and organized layouts help students find information instantly during exam prep.", imageSrc: "http://img.b2bpic.net/free-vector/young-people-reading-book-collection_23-2148246361.jpg", imageAlt: "Organized study material and revision notes"
},
{
id: 3,
title: "Exam-Focused Practice", description: "Practice questions designed to match real exam patterns. Our MCQs and model tests follow the exact format and difficulty level of actual exams like BCS Preliminary.", imageSrc: "http://img.b2bpic.net/free-vector/young-people-reading-book-collection_23-2148246361.jpg?_wi=3", imageAlt: "Practice questions and exam preparation"
title: "Exam-Focused Practice", description: "Practice questions designed to match real exam patterns. Our MCQs and model tests follow the exact format and difficulty level of actual exams like BCS Preliminary.", imageSrc: "http://img.b2bpic.net/free-vector/young-people-reading-book-collection_23-2148246361.jpg", imageAlt: "Practice questions and exam preparation"
}
]}
/>
@@ -141,7 +141,7 @@ export default function LandingPage() {
<ContactText
text="Start Learning Smarter with Global Publications. Whether you're a primary school student or preparing for BCS, our books help you study better and succeed."
animationType="entrance-slide"
background={{ variant: "grid" }}
background={{ variant: "radial-gradient" }}
useInvertedBackground={false}
buttons={[
{ text: "📚 View Books", href: "#products" },

View File

@@ -1,51 +1,41 @@
"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;
textClassName?: 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 = '',
textClassName = '',
}) => {
return (
<svg
ref={svgRef}
viewBox={viewBox}
className={cls("w-full", className)}
style={{ aspectRatio: aspectRatio }}
preserveAspectRatio="none"
role="img"
aria-label={`${logoText} logo`}
className={`w-full h-auto ${className}`}
viewBox={`0 0 ${text.length * 60} 100`}
xmlns="http://www.w3.org/2000/svg"
preserveAspectRatio="xMidYMid meet"
>
<defs>
<linearGradient id="textGradient" x1="0%" y1="0%" x2="100%" y2="0%">
<stop offset="0%" stopColor="#3b82f6" />
<stop offset="100%" stopColor="#8b5cf6" />
</linearGradient>
</defs>
<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="50%"
y="50%"
textAnchor="middle"
dominantBaseline="middle"
className={`text-3xl font-bold fill-blue-500 ${textClassName}`}
fill="url(#textGradient)"
>
{logoText}
{text}
</text>
</svg>
);
});
};
SvgTextLogo.displayName = "SvgTextLogo";
export default SvgTextLogo;
export default SvgTextLogo;