Merge version_1 into main #4
@@ -79,15 +79,15 @@ export default function LandingPage() {
|
||||
features={[
|
||||
{
|
||||
id: "1", title: "Complete Anonymity", tags: ["Privacy", "Security"],
|
||||
imageSrc: "http://img.b2bpic.net/free-vector/data-protection-line-banners-set_1284-7762.jpg?_wi=1", imageAlt: "Anonymous protection icon"
|
||||
imageSrc: "http://img.b2bpic.net/free-vector/data-protection-line-banners-set_1284-7762.jpg", imageAlt: "Anonymous protection icon"
|
||||
},
|
||||
{
|
||||
id: "2", title: "Moderated Community", tags: ["Safety", "Trust"],
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/woman-going-through-notes-notebook_53876-30773.jpg?_wi=1", imageAlt: "Content moderation process"
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/woman-going-through-notes-notebook_53876-30773.jpg", imageAlt: "Content moderation process"
|
||||
},
|
||||
{
|
||||
id: "3", title: "Emotional Relief", tags: ["Wellness", "Support"],
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/coffee-notebook-autumn-leaves-background_23-2148255760.jpg?_wi=1", imageAlt: "Personal healing and catharsis"
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/coffee-notebook-autumn-leaves-background_23-2148255760.jpg", imageAlt: "Personal healing and catharsis"
|
||||
}
|
||||
]}
|
||||
animationType="slide-up"
|
||||
@@ -106,13 +106,13 @@ export default function LandingPage() {
|
||||
tag="Community"
|
||||
products={[
|
||||
{
|
||||
id: "1", name: "No Real Names", price: "Keep it Anonymous", imageSrc: "http://img.b2bpic.net/free-vector/data-protection-line-banners-set_1284-7762.jpg?_wi=2", imageAlt: "Anonymous protection"
|
||||
id: "1", name: "No Real Names", price: "Keep it Anonymous", imageSrc: "http://img.b2bpic.net/free-vector/data-protection-line-banners-set_1284-7762.jpg", imageAlt: "Anonymous protection"
|
||||
},
|
||||
{
|
||||
id: "2", name: "No Locations", price: "Protect Identities", imageSrc: "http://img.b2bpic.net/free-photo/woman-going-through-notes-notebook_53876-30773.jpg?_wi=2", imageAlt: "Location privacy"
|
||||
id: "2", name: "No Locations", price: "Protect Identities", imageSrc: "http://img.b2bpic.net/free-photo/woman-going-through-notes-notebook_53876-30773.jpg", imageAlt: "Location privacy"
|
||||
},
|
||||
{
|
||||
id: "3", name: "No Hate or Threats", price: "Maintain Respect", imageSrc: "http://img.b2bpic.net/free-photo/coffee-notebook-autumn-leaves-background_23-2148255760.jpg?_wi=2", imageAlt: "Safe community"
|
||||
id: "3", name: "No Hate or Threats", price: "Maintain Respect", imageSrc: "http://img.b2bpic.net/free-photo/coffee-notebook-autumn-leaves-background_23-2148255760.jpg", imageAlt: "Safe community"
|
||||
}
|
||||
]}
|
||||
gridVariant="three-columns-all-equal-width"
|
||||
@@ -141,7 +141,6 @@ export default function LandingPage() {
|
||||
id: "4", name: "Casey R., Advocate", date: "Date: 05 January 2025", title: "A safe space that works", quote: "The moderation here is thoughtful and the community feels genuinely supportive. This is what an anonymous platform should be—honest, safe, and kind.", tag: "Community", avatarSrc: "http://img.b2bpic.net/free-photo/medium-shot-unknown-woman-posing_23-2149417556.jpg", avatarAlt: "Casey R.", imageSrc: "http://img.b2bpic.net/free-photo/medium-shot-unknown-woman-posing_23-2149417556.jpg", imageAlt: "Casey's story"
|
||||
}
|
||||
]}
|
||||
animationType="slide-up"
|
||||
textboxLayout="default"
|
||||
useInvertedBackground={true}
|
||||
/>
|
||||
|
||||
@@ -1,51 +1,28 @@
|
||||
"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";
|
||||
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> = ({ 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 200 40"
|
||||
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="10"
|
||||
y="30"
|
||||
fontSize="24"
|
||||
fontWeight="bold"
|
||||
dominantBaseline="middle"
|
||||
fill="currentColor"
|
||||
>
|
||||
{logoText}
|
||||
Logo
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
};
|
||||
|
||||
export default SvgTextLogo;
|
||||
|
||||
Reference in New Issue
Block a user