Merge version_1 into main #1
@@ -13,7 +13,7 @@ import FooterBaseCard from "@/components/sections/footer/FooterBaseCard";
|
||||
import {
|
||||
Zap,
|
||||
Dices,
|
||||
Spades,
|
||||
Spade,
|
||||
Circle,
|
||||
Wand,
|
||||
Crown,
|
||||
@@ -73,7 +73,7 @@ export default function LandingPage() {
|
||||
imagePosition="right"
|
||||
marqueeItems={[
|
||||
{ type: "text-icon", text: "Slots", icon: Dices },
|
||||
{ type: "text-icon", text: "Poker", icon: Spades },
|
||||
{ type: "text-icon", text: "Poker", icon: Spade },
|
||||
{ type: "text-icon", text: "Roulette", icon: Circle },
|
||||
{ type: "text-icon", text: "Blackjack", icon: Wand },
|
||||
{ type: "text-icon", text: "Baccarat", icon: Crown },
|
||||
@@ -236,7 +236,7 @@ export default function LandingPage() {
|
||||
{
|
||||
id: "5", title: "Is responsible gaming supported?", content: "Yes, we take responsible gaming seriously. Features include deposit limits, loss limits, session time reminders, self-exclusion options, and access to gambling support resources. Help is available 24/7 through our support team."},
|
||||
{
|
||||
id: "6", title: "How do I join the VIP program?", content: "VIP tiers are based on your total gaming activity and spending. Earn points with every bet—higher spend = faster tier progression. VIP members enjoy exclusive games, higher limits, personal concierge, and monthly bonuses."},
|
||||
id: "6", title: "How do I join the VIP program?", content: "VIP tiers are based on your total gaming activity and spending. Earn points with every bet—higher spend = faster tier progression. VIP members enjoy exclusive games, higher limits, personal concierge, and monthly bonuses."}
|
||||
]}
|
||||
textPosition="left"
|
||||
useInvertedBackground={false}
|
||||
|
||||
@@ -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";
|
||||
text: string;
|
||||
className?: string;
|
||||
}
|
||||
|
||||
const SvgTextLogo = memo<SvgTextLogoProps>(function SvgTextLogo({
|
||||
logoText,
|
||||
adjustHeightFactor,
|
||||
verticalAlign = "top",
|
||||
className = "",
|
||||
}) {
|
||||
const { svgRef, textRef, viewBox, aspectRatio } = useSvgTextLogo(logoText, false, adjustHeightFactor);
|
||||
|
||||
export default function SvgTextLogo({ text, className = '' }: SvgTextLogoProps) {
|
||||
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 50"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
className={className}
|
||||
>
|
||||
<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%"
|
||||
dominantBaseline="middle"
|
||||
textAnchor="middle"
|
||||
fontSize="24"
|
||||
fontWeight="bold"
|
||||
fill="currentColor"
|
||||
>
|
||||
{logoText}
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
|
||||
export default SvgTextLogo;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user