Merge version_1 into main #2
@@ -16,7 +16,7 @@ export default function LandingPage() {
|
||||
return (
|
||||
<ThemeProvider
|
||||
defaultButtonVariant="hover-magnetic"
|
||||
defaultTextAnimation="reveal-blur"
|
||||
defaultTextAnimation="entrance-slide"
|
||||
borderRadius="pill"
|
||||
contentWidth="medium"
|
||||
sizing="largeSmall"
|
||||
@@ -93,11 +93,11 @@ export default function LandingPage() {
|
||||
features={[
|
||||
{
|
||||
id: "1", title: "STEM Excellence Initiative", author: "Dr. Sarah Mitchell", description: "Advanced programs in Science, Technology, Engineering, and Mathematics with hands-on laboratory experience and real-world applications.", tags: ["Science", "Technology", "Innovation"],
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/girl-studying-science-laboratory_23-2148581920.jpg?_wi=1", imageAlt: "STEM classroom with technology"
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/girl-studying-science-laboratory_23-2148581920.jpg", imageAlt: "STEM classroom with technology"
|
||||
},
|
||||
{
|
||||
id: "2", title: "Arts & Humanities Program", author: "Mr. James Anderson", description: "Comprehensive curriculum in literature, history, languages, and performing arts to develop critical thinking and cultural awareness.", tags: ["Arts", "Culture", "Expression"],
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/girl-studying-science-laboratory_23-2148581920.jpg?_wi=2", imageAlt: "Students in arts class"
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/girl-studying-science-laboratory_23-2148581920.jpg", imageAlt: "Students in arts class"
|
||||
}
|
||||
]}
|
||||
/>
|
||||
@@ -133,7 +133,7 @@ export default function LandingPage() {
|
||||
<TeamCardTen
|
||||
title="Meet Our Educational Leadership"
|
||||
tag="Our Team"
|
||||
tagAnimation="reveal-blur"
|
||||
tagAnimation="slide-up"
|
||||
membersAnimation="slide-up"
|
||||
memberVariant="card"
|
||||
useInvertedBackground={true}
|
||||
|
||||
@@ -1,51 +1,37 @@
|
||||
"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;
|
||||
width?: number;
|
||||
height?: number;
|
||||
}
|
||||
|
||||
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 = '',
|
||||
width = 400,
|
||||
height = 100,
|
||||
}) => {
|
||||
return (
|
||||
<svg
|
||||
ref={svgRef}
|
||||
viewBox={viewBox}
|
||||
className={cls("w-full", className)}
|
||||
style={{ aspectRatio: aspectRatio }}
|
||||
preserveAspectRatio="none"
|
||||
role="img"
|
||||
aria-label={`${logoText} logo`}
|
||||
width={width}
|
||||
height={height}
|
||||
viewBox={`0 0 ${width} ${height}`}
|
||||
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="50%"
|
||||
y="50%"
|
||||
textAnchor="middle"
|
||||
dominantBaseline="central"
|
||||
fontSize="48"
|
||||
fontWeight="bold"
|
||||
fill="currentColor"
|
||||
>
|
||||
{logoText}
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
|
||||
export default SvgTextLogo;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user