Merge version_1 into main #2
@@ -21,7 +21,7 @@ export default function LandingPage() {
|
||||
borderRadius="pill"
|
||||
contentWidth="smallMedium"
|
||||
sizing="mediumLargeSizeMediumTitles"
|
||||
background="aurora"
|
||||
background="circleGradient"
|
||||
cardStyle="gradient-mesh"
|
||||
primaryButtonStyle="primary-glow"
|
||||
secondaryButtonStyle="solid"
|
||||
@@ -52,7 +52,7 @@ export default function LandingPage() {
|
||||
tag="The Future of Communication"
|
||||
tagIcon={Zap}
|
||||
tagAnimation="slide-up"
|
||||
background={{ variant: "aurora" }}
|
||||
background={{ variant: "canvas-reveal" }}
|
||||
buttons={[
|
||||
{ text: "Start Chatting Now", href: "#contact" },
|
||||
{ text: "Learn More", href: "#features" }
|
||||
@@ -80,30 +80,30 @@ export default function LandingPage() {
|
||||
id: 1,
|
||||
title: "Anonymous Messaging", description: "Connect with others without revealing your identity. Share thoughts freely while maintaining privacy. Choose to reveal your username anytime.", buttons: [{ text: "Try It", href: "#contact" }],
|
||||
phoneOne: {
|
||||
imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3ArRerindWNra0FPTigQEg7OdXp/close-up-of-a-messaging-interface-showin-1773348882517-3f9efd8a.png?_wi=1"
|
||||
imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3ArRerindWNra0FPTigQEg7OdXp/close-up-of-a-messaging-interface-showin-1773348882517-3f9efd8a.png"
|
||||
},
|
||||
phoneTwo: {
|
||||
imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3ArRerindWNra0FPTigQEg7OdXp/close-up-of-a-messaging-interface-showin-1773348882517-3f9efd8a.png?_wi=2"
|
||||
imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3ArRerindWNra0FPTigQEg7OdXp/close-up-of-a-messaging-interface-showin-1773348882517-3f9efd8a.png"
|
||||
}
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "Crystal Clear Voice Calls", description: "Browser-based WebRTC voice calls with zero lag. Mute, adjust volume, and hang up with intuitive controls. Perfect for deeper conversations.", buttons: [{ text: "Start Calling", href: "#contact" }],
|
||||
phoneOne: {
|
||||
imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3ArRerindWNra0FPTigQEg7OdXp/a-voice-call-interface-showing-two-user--1773348882574-7b7d0b56.png?_wi=1"
|
||||
imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3ArRerindWNra0FPTigQEg7OdXp/a-voice-call-interface-showing-two-user--1773348882574-7b7d0b56.png"
|
||||
},
|
||||
phoneTwo: {
|
||||
imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3ArRerindWNra0FPTigQEg7OdXp/a-voice-call-interface-showing-two-user--1773348882574-7b7d0b56.png?_wi=2"
|
||||
imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3ArRerindWNra0FPTigQEg7OdXp/a-voice-call-interface-showing-two-user--1773348882574-7b7d0b56.png"
|
||||
}
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "Play Games Together", description: "Launch mini-games while you chat: Tic Tac Toe, Connect 4, Chess, and a drawing game. Games appear in side panels—never lose the conversation.", buttons: [{ text: "Play Now", href: "#contact" }],
|
||||
phoneOne: {
|
||||
imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3ArRerindWNra0FPTigQEg7OdXp/a-mini-games-panel-showing-multiple-game-1773348882889-0a097035.png?_wi=1"
|
||||
imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3ArRerindWNra0FPTigQEg7OdXp/a-mini-games-panel-showing-multiple-game-1773348882889-0a097035.png"
|
||||
},
|
||||
phoneTwo: {
|
||||
imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3ArRerindWNra0FPTigQEg7OdXp/a-mini-games-panel-showing-multiple-game-1773348882889-0a097035.png?_wi=2"
|
||||
imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3ArRerindWNra0FPTigQEg7OdXp/a-mini-games-panel-showing-multiple-game-1773348882889-0a097035.png"
|
||||
}
|
||||
}
|
||||
]}
|
||||
@@ -146,16 +146,16 @@ export default function LandingPage() {
|
||||
tagAnimation="slide-up"
|
||||
products={[
|
||||
{
|
||||
id: "1", name: "Tic Tac Toe", price: "Free", variant: "Classic Strategy", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3ArRerindWNra0FPTigQEg7OdXp/a-mini-games-panel-showing-multiple-game-1773348882889-0a097035.png?_wi=3", imageAlt: "Tic Tac Toe Game", isFavorited: false
|
||||
id: "1", name: "Tic Tac Toe", price: "Free", variant: "Classic Strategy", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3ArRerindWNra0FPTigQEg7OdXp/a-mini-games-panel-showing-multiple-game-1773348882889-0a097035.png", imageAlt: "Tic Tac Toe Game", isFavorited: false
|
||||
},
|
||||
{
|
||||
id: "2", name: "Connect 4", price: "Free", variant: "Tactical Challenge", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3ArRerindWNra0FPTigQEg7OdXp/a-mini-games-panel-showing-multiple-game-1773348882889-0a097035.png?_wi=4", imageAlt: "Connect 4 Game", isFavorited: false
|
||||
id: "2", name: "Connect 4", price: "Free", variant: "Tactical Challenge", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3ArRerindWNra0FPTigQEg7OdXp/a-mini-games-panel-showing-multiple-game-1773348882889-0a097035.png", imageAlt: "Connect 4 Game", isFavorited: false
|
||||
},
|
||||
{
|
||||
id: "3", name: "Chess", price: "Free", variant: "Strategic Depth", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3ArRerindWNra0FPTigQEg7OdXp/a-mini-games-panel-showing-multiple-game-1773348882889-0a097035.png?_wi=5", imageAlt: "Chess Game", isFavorited: false
|
||||
id: "3", name: "Chess", price: "Free", variant: "Strategic Depth", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3ArRerindWNra0FPTigQEg7OdXp/a-mini-games-panel-showing-multiple-game-1773348882889-0a097035.png", imageAlt: "Chess Game", isFavorited: false
|
||||
},
|
||||
{
|
||||
id: "4", name: "Drawing Game", price: "Free", variant: "Creative Fun", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3ArRerindWNra0FPTigQEg7OdXp/a-mini-games-panel-showing-multiple-game-1773348882889-0a097035.png?_wi=6", imageAlt: "Drawing Game", isFavorited: false
|
||||
id: "4", name: "Drawing Game", price: "Free", variant: "Creative Fun", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3ArRerindWNra0FPTigQEg7OdXp/a-mini-games-panel-showing-multiple-game-1773348882889-0a097035.png", imageAlt: "Drawing Game", isFavorited: false
|
||||
}
|
||||
]}
|
||||
gridVariant="four-items-2x2-equal-grid"
|
||||
|
||||
@@ -1,51 +1,48 @@
|
||||
"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?: number | string;
|
||||
fill?: string;
|
||||
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 = 48,
|
||||
fontWeight = 'bold',
|
||||
fill = 'currentColor',
|
||||
letterSpacing = 0,
|
||||
}) => {
|
||||
const textLength = text.length;
|
||||
const estimatedWidth = textLength * (fontSize * 0.6) + letterSpacing * (textLength - 1);
|
||||
const padding = fontSize * 0.2;
|
||||
const width = estimatedWidth + padding * 2;
|
||||
const height = fontSize * 1.5;
|
||||
|
||||
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 ${width} ${height}`}
|
||||
className={className}
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
preserveAspectRatio="xMidYMid meet"
|
||||
>
|
||||
<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={padding}
|
||||
y={fontSize}
|
||||
fontSize={fontSize}
|
||||
fontWeight={fontWeight}
|
||||
fill={fill}
|
||||
letterSpacing={letterSpacing}
|
||||
dominantBaseline="middle"
|
||||
>
|
||||
{logoText}
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
};
|
||||
|
||||
export default SvgTextLogo;
|
||||
|
||||
Reference in New Issue
Block a user