Merge version_1 into main #2

Merged
bender merged 2 commits from version_1 into main 2026-03-11 07:28:24 +00:00
2 changed files with 31 additions and 43 deletions

View File

@@ -56,10 +56,10 @@ export default function LandingPage() {
]}
mediaItems={[
{
imageSrc: "http://img.b2bpic.net/free-photo/front-view-young-male-sitting-sofa-reading-book-inside-room-job-work-house-evening_179666-30381.jpg?_wi=1", imageAlt: "Peaceful study environment at Edunest360"
imageSrc: "http://img.b2bpic.net/free-photo/front-view-young-male-sitting-sofa-reading-book-inside-room-job-work-house-evening_179666-30381.jpg", imageAlt: "Peaceful study environment at Edunest360"
},
{
imageSrc: "http://img.b2bpic.net/free-photo/front-view-young-male-sitting-sofa-reading-book-inside-room-job-work-house-evening_179666-30381.jpg?_wi=2", imageAlt: "Premium study space with comfortable seating"
imageSrc: "http://img.b2bpic.net/free-photo/front-view-young-male-sitting-sofa-reading-book-inside-room-job-work-house-evening_179666-30381.jpg", imageAlt: "Premium study space with comfortable seating"
}
]}
rating={5}
@@ -83,7 +83,7 @@ export default function LandingPage() {
imageSrc: "http://img.b2bpic.net/free-photo/asian-coder-with-physical-disability-working-with-african-american-developer-create-security-firewall-terminasl-window-it-engineer-wheelchair-programming-html-script-code_482257-60732.jpg"
},
phoneTwo: {
imageSrc: "http://img.b2bpic.net/free-photo/full-shot-smiley-woman-holding-smartphone_23-2149366482.jpg?_wi=1"
imageSrc: "http://img.b2bpic.net/free-photo/full-shot-smiley-woman-holding-smartphone_23-2149366482.jpg"
}
},
{
@@ -92,25 +92,25 @@ export default function LandingPage() {
imageSrc: "http://img.b2bpic.net/free-photo/desk-with-work-elements_1150-106.jpg"
},
phoneTwo: {
imageSrc: "http://img.b2bpic.net/free-photo/desk-arrangement-with-laptop_23-2148541546.jpg?_wi=1"
imageSrc: "http://img.b2bpic.net/free-photo/desk-arrangement-with-laptop_23-2148541546.jpg"
}
},
{
id: 3,
title: "Affordable Pricing", description: "Premium facilities and services at student-friendly prices. Quality education doesn't have to break the bank.", phoneOne: {
imageSrc: "http://img.b2bpic.net/free-photo/teenager-choosing-book-near-reading-friends_23-2147864011.jpg?_wi=1"
imageSrc: "http://img.b2bpic.net/free-photo/teenager-choosing-book-near-reading-friends_23-2147864011.jpg"
},
phoneTwo: {
imageSrc: "http://img.b2bpic.net/free-photo/full-shot-smiley-woman-holding-smartphone_23-2149366482.jpg?_wi=2"
imageSrc: "http://img.b2bpic.net/free-photo/full-shot-smiley-woman-holding-smartphone_23-2149366482.jpg"
}
},
{
id: 4,
title: "Clean & Comfortable", description: "Well-maintained facilities, comfortable seating, and optimal lighting designed for long study hours and maximum productivity.", phoneOne: {
imageSrc: "http://img.b2bpic.net/free-photo/desk-arrangement-with-laptop_23-2148541546.jpg?_wi=2"
imageSrc: "http://img.b2bpic.net/free-photo/desk-arrangement-with-laptop_23-2148541546.jpg"
},
phoneTwo: {
imageSrc: "http://img.b2bpic.net/free-photo/teenager-choosing-book-near-reading-friends_23-2147864011.jpg?_wi=2"
imageSrc: "http://img.b2bpic.net/free-photo/teenager-choosing-book-near-reading-friends_23-2147864011.jpg"
}
}
]}
@@ -247,6 +247,7 @@ export default function LandingPage() {
useInvertedBackground={false}
textPosition="left"
animationType="smooth"
faqsAnimation="slide-up"
/>
</div>

View File

@@ -1,51 +1,38 @@
"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;
fill?: 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 = 32,
fill = '#000000',
className,
}) => {
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={text.length * fontSize * 0.5}
height={fontSize * 1.2}
className={className}
>
<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"
}}
y={fontSize}
fontSize={fontSize}
fill={fill}
fontWeight="bold"
fontFamily="system-ui, -apple-system, sans-serif"
dominantBaseline="middle"
>
{logoText}
{text}
</text>
</svg>
);
});
SvgTextLogo.displayName = "SvgTextLogo";
};
export default SvgTextLogo;