Merge version_1 into main #2

Merged
bender merged 2 commits from version_1 into main 2026-03-12 17:34:52 +00:00
2 changed files with 24 additions and 45 deletions

View File

@@ -48,7 +48,7 @@ export default function LandingPage() {
tag="Now Streaming"
tagIcon={Play}
tagAnimation="slide-up"
background={{ variant: "glowing-orb" }}
background={{ variant: "floatingGradient" }}
imageSrc="http://img.b2bpic.net/free-psd/international-museum-day-poster-template_23-2151361099.jpg"
imageAlt="Steve Jobs visionary founder portrait"
imagePosition="right"
@@ -56,15 +56,15 @@ export default function LandingPage() {
testimonials={[
{
name: "Sarah Chen", handle: "Film Critic, Arts Weekly", testimonial: "A profound and intimate look at the man behind the innovation. Brilliantly crafted storytelling.", rating: 5,
imageSrc: "http://img.b2bpic.net/free-photo/smiling-man-sitting-cafe-table-gesturing_1262-1141.jpg?_wi=1"
imageSrc: "http://img.b2bpic.net/free-photo/smiling-man-sitting-cafe-table-gesturing_1262-1141.jpg"
},
{
name: "Michael Patterson", handle: "Business Editor, Tech Today", testimonial: "Essential viewing for anyone curious about technology and human ambition.", rating: 5,
imageSrc: "http://img.b2bpic.net/free-photo/close-up-labor-union-member_23-2150969905.jpg?_wi=1"
imageSrc: "http://img.b2bpic.net/free-photo/close-up-labor-union-member_23-2150969905.jpg"
},
{
name: "James Rivera", handle: "Documentary Producer", testimonial: "A masterclass in biographical filmmaking that captures the complexity of a visionary.", rating: 5,
imageSrc: "http://img.b2bpic.net/free-photo/confident-african-american-businessman-black-classic-jacket-isolated-dark-background_613910-17869.jpg?_wi=1"
imageSrc: "http://img.b2bpic.net/free-photo/confident-african-american-businessman-black-classic-jacket-isolated-dark-background_613910-17869.jpg"
}
]}
testimonialRotationInterval={5000}
@@ -131,15 +131,15 @@ export default function LandingPage() {
testimonials={[
{
id: "1", name: "Emily Walsh", role: "Film Enthusiast", company: "Cinema Society", rating: 5,
imageSrc: "http://img.b2bpic.net/free-photo/smiling-man-sitting-cafe-table-gesturing_1262-1141.jpg?_wi=2"
imageSrc: "http://img.b2bpic.net/free-photo/smiling-man-sitting-cafe-table-gesturing_1262-1141.jpg"
},
{
id: "2", name: "David Lin", role: "Technology Professional", company: "Tech Innovators Inc", rating: 5,
imageSrc: "http://img.b2bpic.net/free-photo/close-up-labor-union-member_23-2150969905.jpg?_wi=2"
imageSrc: "http://img.b2bpic.net/free-photo/close-up-labor-union-member_23-2150969905.jpg"
},
{
id: "3", name: "Priya Kapoor", role: "Educator", company: "Innovation Academy", rating: 5,
imageSrc: "http://img.b2bpic.net/free-photo/confident-african-american-businessman-black-classic-jacket-isolated-dark-background_613910-17869.jpg?_wi=2"
imageSrc: "http://img.b2bpic.net/free-photo/confident-african-american-businessman-black-classic-jacket-isolated-dark-background_613910-17869.jpg"
},
{
id: "4", name: "Robert Morrison", role: "Business Professor", company: "University of Commerce", rating: 5,
@@ -224,7 +224,7 @@ export default function LandingPage() {
{ text: "Join Our Newsletter", href: "#" }
]}
buttonAnimation="slide-up"
background={{ variant: "glowing-orb" }}
background={{ variant: "floatingGradient" }}
useInvertedBackground={true}
/>
</div>

View File

@@ -1,51 +1,30 @@
"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);
const SvgTextLogo: React.FC<SvgTextLogoProps> = ({ text, 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 300 100"
className={className}
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="50%"
y="50%"
textAnchor="middle"
dominantBaseline="middle"
fontSize="48"
fontWeight="bold"
fill="currentColor"
>
{logoText}
{text}
</text>
</svg>
);
});
};
SvgTextLogo.displayName = "SvgTextLogo";
export default SvgTextLogo;
export default SvgTextLogo;