Merge version_1 into main #2
@@ -53,7 +53,7 @@ export default function LandingPage() {
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/man-woman-hold-their-hands-up-while-dancing_1304-3741.jpg", imageAlt: "Church worship service"
|
||||
},
|
||||
{
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/low-angle-group-happy-diverse-friends-talking-each-other-laughing_181624-23675.jpg?_wi=1", imageAlt: "Church community fellowship"
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/low-angle-group-happy-diverse-friends-talking-each-other-laughing_181624-23675.jpg", imageAlt: "Church community fellowship"
|
||||
}
|
||||
]}
|
||||
rating={5}
|
||||
@@ -88,7 +88,7 @@ export default function LandingPage() {
|
||||
tag="Core Purpose"
|
||||
tagIcon={Flame}
|
||||
textboxLayout="default"
|
||||
animationType="blur-reveal"
|
||||
animationType="smooth"
|
||||
useInvertedBackground={false}
|
||||
features={[
|
||||
{
|
||||
@@ -101,7 +101,7 @@ export default function LandingPage() {
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "Victory in Life", description: "Empowering people to live victorious lives through Christ. We help believers overcome challenges, build strong families, and equip them to impact their communities with God's love.", imageSrc: "http://img.b2bpic.net/free-photo/low-angle-group-happy-diverse-friends-talking-each-other-laughing_181624-23675.jpg?_wi=2", imageAlt: "Community fellowship"
|
||||
title: "Victory in Life", description: "Empowering people to live victorious lives through Christ. We help believers overcome challenges, build strong families, and equip them to impact their communities with God's love.", imageSrc: "http://img.b2bpic.net/free-photo/low-angle-group-happy-diverse-friends-talking-each-other-laughing_181624-23675.jpg", imageAlt: "Community fellowship"
|
||||
}
|
||||
]}
|
||||
/>
|
||||
@@ -199,7 +199,7 @@ export default function LandingPage() {
|
||||
tag="Contact Information"
|
||||
tagIcon={MapPin}
|
||||
textboxLayout="default"
|
||||
animationType="blur-reveal"
|
||||
animationType="smooth"
|
||||
useInvertedBackground={true}
|
||||
faqsAnimation="slide-up"
|
||||
faqs={[
|
||||
|
||||
@@ -1,51 +1,39 @@
|
||||
"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;
|
||||
fontSize?: number;
|
||||
fontWeight?: 'bold' | 'normal' | 'semibold';
|
||||
letterSpacing?: number;
|
||||
}
|
||||
|
||||
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 = '',
|
||||
fontSize = 24,
|
||||
fontWeight = 'bold',
|
||||
letterSpacing = 0,
|
||||
}) => {
|
||||
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} ${fontSize * 1.5}`}
|
||||
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"
|
||||
}}
|
||||
y={fontSize}
|
||||
fontSize={fontSize}
|
||||
fontWeight={fontWeight}
|
||||
letterSpacing={letterSpacing}
|
||||
dominantBaseline="middle"
|
||||
className="fill-current"
|
||||
>
|
||||
{logoText}
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
};
|
||||
|
||||
export default SvgTextLogo;
|
||||
|
||||
Reference in New Issue
Block a user