From e1cc9008f3ba1ee67b7030af87a8386294344cec Mon Sep 17 00:00:00 2001 From: vivomo <929992114@qq.com> Date: Sun, 22 Oct 2023 00:48:09 +0800 Subject: [PATCH] feat: add loot --- packages/client/src/assets/img/loot1.png | Bin 0 -> 1693 bytes packages/client/src/assets/img/loot2.png | Bin 0 -> 2600 bytes .../client/src/components/UserInfo/index.tsx | 12 ++++++++++-- .../client/src/components/UserInfo/styles.scss | 10 ++++++++++ packages/client/src/pages/home/index.tsx | 6 +++++- 5 files changed, 25 insertions(+), 3 deletions(-) create mode 100644 packages/client/src/assets/img/loot1.png create mode 100644 packages/client/src/assets/img/loot2.png diff --git a/packages/client/src/assets/img/loot1.png b/packages/client/src/assets/img/loot1.png new file mode 100644 index 0000000000000000000000000000000000000000..84aeb2b30e5259b8389fd1b73d1fe653c9be58cd GIT binary patch literal 1693 zcmeHI`Ck$S6t^sGnpP|Ez@*JJKh2}hGA|N{Nrh&h1d6v^9;vBQBtf8L>vE~BQfDaQ zMH1eEihx@3v3buk6U1uHgQvp(n!9Syr~iGQu7rE}380mohqo|C$y?F%xIEUs^*YFlb+YumTBA$IT4 z2zHRMpu1nC6Wmkz{c4YwK z=;-Kkt+{3Ef!2S(0@?%#>TCk|TyC&P5G@n%qNNShHu$OnTHk}|Mu4q9wm#d&Z>hbP z&Kfi@v~a~6nmc=4k&A;YpecAm5HzqNSmZxk86t=E*#tIJ2}w#$^tiCm973vNxF*-Q zQa0+KBa$@Z&gH4z&exK(Ip;19*+d`9jS!!*_Le1WrZwB$(%oh8;%Wc+QC^g<`qz%K zv+UWYxlXackN`;XQn5udd3AniUe>gMSDR>pL*-)1&|RQYhpdUHNTM-AA_2n;mxPXz z)7c$&jI2A9iV;OB<^8)DO5_}f?pFq6K*)Rslp+vbT`UyR)Z)N~I2P@AiKIs3gmNU# zOG$ytN7iNr*c;|x#mvFQ#W(GQRwYxv_UG-#Q~w1owqJ>XF}s+FI6*^f`fowSf=U(C z!~-xWb`Q$phvG(rcLLiw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P}() zN}R=NF7`QXYwI*@c?)O@h0wbn{6eQ5ebiAG$lBW$F!b~!p1-{nDvY1(%|gTMT(#%k zSHmKQ0jGYen8;{1gkoS9kJ|H|G0c6T{^eGV%)js7Lf_)53{ssy)6dIC(2b5>Cj zB`>x`tL$lLKds>>_wx-7$R5JwDon|Yt0_TPqd#RRBw*lfEw#4$)n$TH(a|q!|ds4bwW(B9L`!O$67O!&YrW0?Z601ps%`g zwq%dI0SeeW;#y!Gzc$NaEc^?2`mL^ay>WX|DSUP*bmlFslYwetq^ag)XpYEAtxhou zQba-os_9gu$4sabXEPqmJX+v&JhC*KXHy*S?MzyEXk9eEc2mfyD~-23R^twmoPBji zeo1MTbgWHJpZM9Z>Z%iqT1$v16zU0mvjEbBWrx#uEmGz5eUuiM<^vFODU}Lu%L=@(L3jAh!}yF3_UdZwb4E-qbNI z<>lV5yz??4u+*?QtKPe9+)2>Fat0 zG`0RN-z}nB@UPqn>2YlGflb z1QNL7xlD@O;SJr7+FHI)E<%j>#((Y)7-_s-P61mbuU~mgpB}RAF4#l@*0|XC{yG-iCsnU#){&`!VDZ--`Qrcc zhd)=(u7fk~QZ!_nU5tU$8xk&k@73*WwcqaTyWy6Z4=3YW)p>ZY?ziM)hQ`Gx-GOow z3+Tnmd=KmCE+@1mbiW(rp?`u3&Da9^P4(2?ow0YbFA)fnz~u1rj}hO^E=C&ix0o}% z=m(g+I?&>#rc>RE>UMV8TxfCFnf$5yip5)jQi0I?^O_jpJlj(}z2$wRchAgDw?>3! zaA+wfvaGP$NTMv1sxy&>wvSbMETzO3&r`rq5uE@ literal 0 HcmV?d00001 diff --git a/packages/client/src/components/UserInfo/index.tsx b/packages/client/src/components/UserInfo/index.tsx index 1d21e15b..8de8ca88 100644 --- a/packages/client/src/components/UserInfo/index.tsx +++ b/packages/client/src/components/UserInfo/index.tsx @@ -8,11 +8,19 @@ interface IProps { head: string; clothes: string; handheld: string; + minting: boolean; } const UserInfo = (props: IProps) => { - const { handheld, head, clothes } = props; + const { handheld, head, clothes, minting } = props; + + + // useEffect(() => { + // setTimeout(() => { + // setLoading(false) + // }, 2000) + // }, []) return (
@@ -24,7 +32,7 @@ const UserInfo = (props: IProps) => {
-
+
diff --git a/packages/client/src/components/UserInfo/styles.scss b/packages/client/src/components/UserInfo/styles.scss index c7162dbc..cd48fd4d 100644 --- a/packages/client/src/components/UserInfo/styles.scss +++ b/packages/client/src/components/UserInfo/styles.scss @@ -39,6 +39,16 @@ justify-content: space-between; flex-direction: column; height: 100%; + + &.loaded { + .loot-detail:nth-child(1) { + background: url("../../assets/img/loot1.png") no-repeat center / 100%; + } + + .loot-detail:nth-child(2) { + background: url("../../assets/img/loot2.png") no-repeat center / 100%; + } + } } .loot-detail { diff --git a/packages/client/src/pages/home/index.tsx b/packages/client/src/pages/home/index.tsx index 870b473f..44299792 100644 --- a/packages/client/src/pages/home/index.tsx +++ b/packages/client/src/pages/home/index.tsx @@ -20,6 +20,8 @@ const Home = () => { title: '', }); + const [minting, setMinting] = useState(true); + const navigate = useNavigate(); useEffect(() => { @@ -82,6 +84,8 @@ const Home = () => { setHandheld(handheld); setHead(head); + setMinting(false); + setTimeout(() => { navigate('/game', { state: { @@ -132,7 +136,7 @@ const Home = () => {

HOME

- +