Merge version_1 into main #2
@@ -50,7 +50,7 @@ export default function LandingPage() {
|
||||
]}
|
||||
buttonAnimation="slide-up"
|
||||
background={{ variant: "sparkles-gradient" }}
|
||||
imageSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AnmeJSTbbMsWYp9Wf41pwwJY7d/a-vibrant-gaming-hero-image-featuring-a--1773236882305-ec909a24.png?_wi=1"
|
||||
imageSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AnmeJSTbbMsWYp9Wf41pwwJY7d/a-vibrant-gaming-hero-image-featuring-a--1773236882305-ec909a24.png"
|
||||
imageAlt="Gaming arena with professional esports setup"
|
||||
mediaAnimation="opacity"
|
||||
frameStyle="browser"
|
||||
@@ -92,22 +92,22 @@ export default function LandingPage() {
|
||||
<FeatureCardTwentySix
|
||||
features={[
|
||||
{
|
||||
title: "Team Gaming", description: "Join forces with friends and compete in team-based tournaments with epic rewards", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AnmeJSTbbMsWYp9Wf41pwwJY7d/a-gaming-community-members-playing-toget-1773236884643-d16cceee.png?_wi=1", imageAlt: "Gaming team collaboration", buttonIcon: Gamepad2
|
||||
title: "Team Gaming", description: "Join forces with friends and compete in team-based tournaments with epic rewards", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AnmeJSTbbMsWYp9Wf41pwwJY7d/a-gaming-community-members-playing-toget-1773236884643-d16cceee.png", imageAlt: "Gaming team collaboration", buttonIcon: Gamepad2
|
||||
},
|
||||
{
|
||||
title: "Live Streaming", description: "Stream your gameplay directly to the community and build your gaming audience", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AnmeJSTbbMsWYp9Wf41pwwJY7d/gaming-streaming-setup-with-professional-1773236883109-0b535f59.png?_wi=1", imageAlt: "Gaming streaming setup", buttonIcon: Radio
|
||||
title: "Live Streaming", description: "Stream your gameplay directly to the community and build your gaming audience", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AnmeJSTbbMsWYp9Wf41pwwJY7d/gaming-streaming-setup-with-professional-1773236883109-0b535f59.png", imageAlt: "Gaming streaming setup", buttonIcon: Radio
|
||||
},
|
||||
{
|
||||
title: "Performance Analytics", description: "Track your gaming stats, improvement metrics, and compete on global leaderboards", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AnmeJSTbbMsWYp9Wf41pwwJY7d/advanced-gaming-analytics-dashboard-show-1773236883065-7ec5cf7b.png", imageAlt: "Gaming analytics dashboard", buttonIcon: BarChart3
|
||||
},
|
||||
{
|
||||
title: "Exclusive Events", description: "Access premium tournaments with massive prize pools and exclusive gaming content", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AnmeJSTbbMsWYp9Wf41pwwJY7d/a-vibrant-gaming-hero-image-featuring-a--1773236882305-ec909a24.png?_wi=2", imageAlt: "Gaming tournament event", buttonIcon: Trophy
|
||||
title: "Exclusive Events", description: "Access premium tournaments with massive prize pools and exclusive gaming content", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AnmeJSTbbMsWYp9Wf41pwwJY7d/a-vibrant-gaming-hero-image-featuring-a--1773236882305-ec909a24.png", imageAlt: "Gaming tournament event", buttonIcon: Trophy
|
||||
},
|
||||
{
|
||||
title: "Community Hub", description: "Connect with gamers, share strategies, and build your gaming network globally", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AnmeJSTbbMsWYp9Wf41pwwJY7d/a-gaming-community-members-playing-toget-1773236884643-d16cceee.png?_wi=2", imageAlt: "Gaming community interaction", buttonIcon: Users
|
||||
title: "Community Hub", description: "Connect with gamers, share strategies, and build your gaming network globally", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AnmeJSTbbMsWYp9Wf41pwwJY7d/a-gaming-community-members-playing-toget-1773236884643-d16cceee.png", imageAlt: "Gaming community interaction", buttonIcon: Users
|
||||
},
|
||||
{
|
||||
title: "Rewards Program", description: "Earn gaming credits, unlock achievements, and get exclusive rewards for playing", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AnmeJSTbbMsWYp9Wf41pwwJY7d/gaming-streaming-setup-with-professional-1773236883109-0b535f59.png?_wi=2", imageAlt: "Rewards and achievements", buttonIcon: Gift
|
||||
title: "Rewards Program", description: "Earn gaming credits, unlock achievements, and get exclusive rewards for playing", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AnmeJSTbbMsWYp9Wf41pwwJY7d/gaming-streaming-setup-with-professional-1773236883109-0b535f59.png", imageAlt: "Rewards and achievements", buttonIcon: Gift
|
||||
}
|
||||
]}
|
||||
title="Why GamingHub"
|
||||
@@ -128,7 +128,7 @@ export default function LandingPage() {
|
||||
{ id: "3", value: "150+", description: "Games Available" },
|
||||
{ id: "4", value: "99.9%", description: "Platform Uptime" }
|
||||
]}
|
||||
gridVariant="four-items-2x2-equal-grid"
|
||||
gridVariant="uniform-all-items-equal"
|
||||
animationType="scale-rotate"
|
||||
carouselMode="buttons"
|
||||
title="By The Numbers"
|
||||
|
||||
@@ -1,51 +1,44 @@
|
||||
"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;
|
||||
textAnchor?: 'start' | 'middle' | 'end';
|
||||
dominantBaseline?: 'auto' | 'text-bottom' | 'alphabetic' | 'ideographic' | 'middle' | 'central' | 'mathematical' | 'hanging';
|
||||
}
|
||||
|
||||
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 = '',
|
||||
fontSize = 48,
|
||||
fontWeight = 'bold',
|
||||
fill = 'currentColor',
|
||||
textAnchor = 'middle',
|
||||
dominantBaseline = 'middle',
|
||||
}) => {
|
||||
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 100"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
className={className}
|
||||
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="100"
|
||||
y="50"
|
||||
fontSize={fontSize}
|
||||
fontWeight={fontWeight}
|
||||
fill={fill}
|
||||
textAnchor={textAnchor}
|
||||
dominantBaseline={dominantBaseline}
|
||||
>
|
||||
{logoText}
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
};
|
||||
|
||||
export default SvgTextLogo;
|
||||
|
||||
Reference in New Issue
Block a user