|
@@ -1,6 +1,6 @@
|
|
|
"use client";
|
|
|
|
|
|
-import { useRef, useState } from "react";
|
|
|
+import { useEffect, useRef, useState } from "react";
|
|
|
import LotteryWheel from "./LotteryWheel";
|
|
|
import styles from "./style.module.scss";
|
|
|
const CashMainCom = () => {
|
|
@@ -87,6 +87,11 @@ const DrawMain = () => {
|
|
|
},
|
|
|
]);
|
|
|
const myLucky = useRef<any>();
|
|
|
+ const titleRef = useRef<any>(null);
|
|
|
+
|
|
|
+ useEffect(() => {
|
|
|
+ const ctx = titleRef.current;
|
|
|
+ }, []);
|
|
|
return (
|
|
|
<div
|
|
|
className={"relative mt-[260px] flex h-[3rem] items-center justify-center"}
|
|
@@ -96,54 +101,35 @@ const DrawMain = () => {
|
|
|
<img
|
|
|
src="/wheels/header-bg.png"
|
|
|
alt=""
|
|
|
- className={"absolute -top-[15%] z-10 h-[1.4889rem]"}
|
|
|
+ className={"absolute -top-[13%] z-10 h-[1.4rem]"}
|
|
|
/>
|
|
|
+ <canvas id={"titleCanvas"} ref={titleRef} />
|
|
|
|
|
|
- <svg width="100%" height="2.7778rem" className={"absolute -top-[15%] z-[11]"}>
|
|
|
- <path
|
|
|
- d="M 63 162 C 119 36, 341 0,566 168"
|
|
|
- stroke="blue"
|
|
|
- stroke-width="4"
|
|
|
- id="circle"
|
|
|
- fill="transparent"
|
|
|
- />
|
|
|
- <text
|
|
|
- style={{
|
|
|
- fill: "#ff3333",
|
|
|
- fontSize: "20px",
|
|
|
- fontWeight: "bold",
|
|
|
- textShadow: "0.1em 0.1em rgba(0,0,0,0.5)",
|
|
|
- }}
|
|
|
- >
|
|
|
- <textPath xlinkHref="#circle" textAnchor="middle" startOffset="50%" dy="0">
|
|
|
- <tspan>Lorem ipsum dolor sit amet.</tspan>
|
|
|
- </textPath>
|
|
|
- </text>
|
|
|
- </svg>
|
|
|
- {/*<svg viewBox="0 -15 200 50" style={{ width: "100%", height: "100%" }}>*/}
|
|
|
- {/* /!*<path d="M0 30 C 50 5, 150 5 200 30" fill="transparent" id="circle" />*!/*/}
|
|
|
-
|
|
|
+ {/*<svg width="100%" height="2.7778rem" className={"absolute -top-[15%] z-[11]"}>*/}
|
|
|
{/* <path*/}
|
|
|
- {/* d="M0 100 C 100 0, 100 0, 200 100"*/}
|
|
|
- {/* fill="transparent"*/}
|
|
|
+ {/* d="M 63 162 C 119 36, 341 0,470 120"*/}
|
|
|
{/* stroke="blue"*/}
|
|
|
- {/* stroke-width="2"*/}
|
|
|
+ {/* stroke-width="4"*/}
|
|
|
{/* id="circle"*/}
|
|
|
+ {/* fill="transparent"*/}
|
|
|
{/* />*/}
|
|
|
|
|
|
{/* <text*/}
|
|
|
{/* style={{*/}
|
|
|
{/* fill: "#ff3333",*/}
|
|
|
- {/* fontSize: "20px",*/}
|
|
|
+ {/* fontSize: "30px",*/}
|
|
|
{/* fontWeight: "bold",*/}
|
|
|
{/* textShadow: "0.1em 0.1em rgba(0,0,0,0.5)",*/}
|
|
|
{/* }}*/}
|
|
|
{/* >*/}
|
|
|
{/* <textPath xlinkHref="#circle" textAnchor="middle" startOffset="50%" dy="0">*/}
|
|
|
- {/* <tspan>Lorem ipsum dolor sit amet.</tspan>*/}
|
|
|
+ {/* <tspan>*/}
|
|
|
+ {/* Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ipsam, libero.*/}
|
|
|
+ {/* </tspan>*/}
|
|
|
{/* </textPath>*/}
|
|
|
{/* </text>*/}
|
|
|
{/*</svg>*/}
|
|
|
+
|
|
|
<img src={"/wheels/outer-circle.png"} className={"absolute h-[100%]"} />
|
|
|
|
|
|
{/*<img src={"/wheels/inner-circle.png"} className={"absolute h-[98%]"} />*/}
|