@@ -3,11 +3,13 @@ import Chart from "../components/Chart";
33import NFTCard from "../components/NFTCard" ;
44import { subscribe , getPrice } from "../services/pythService" ;
55import { useState , useEffect } from "react" ;
6+ import { useWallet } from "@meshsdk/react" ;
67
78const ff =
89 "-apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', sans-serif" ;
910
1011export default function Dashboard ( ) {
12+ const { connected } = useWallet ( ) ;
1113 const [ price , setPrice ] = useState ( getPrice ( ) ) ;
1214 const [ priceDir , setPriceDir ] = useState < "up" | "down" | null > ( null ) ;
1315
@@ -195,6 +197,66 @@ export default function Dashboard() {
195197 </ div >
196198 </ section >
197199
200+ { /* Mint button — visible only when wallet is connected */ }
201+ { connected && (
202+ < div style = { { display : "flex" , justifyContent : "center" , gap : 16 , marginBottom : 40 } } >
203+ < button
204+ onClick = { ( ) => { } }
205+ style = { {
206+ background : "linear-gradient(135deg, #0071e3, #30d158)" ,
207+ border : "none" ,
208+ borderRadius : 980 ,
209+ color : "#fff" ,
210+ fontSize : 16 ,
211+ fontWeight : 600 ,
212+ padding : "14px 48px" ,
213+ cursor : "pointer" ,
214+ fontFamily : ff ,
215+ letterSpacing : "-0.2px" ,
216+ boxShadow : "0 4px 24px rgba(0,113,227,0.35)" ,
217+ transition : "transform 0.15s, box-shadow 0.15s" ,
218+ } }
219+ onMouseEnter = { ( e ) => {
220+ e . currentTarget . style . transform = "scale(1.03)" ;
221+ e . currentTarget . style . boxShadow = "0 6px 32px rgba(0,113,227,0.5)" ;
222+ } }
223+ onMouseLeave = { ( e ) => {
224+ e . currentTarget . style . transform = "scale(1)" ;
225+ e . currentTarget . style . boxShadow = "0 4px 24px rgba(0,113,227,0.35)" ;
226+ } }
227+ >
228+ Mint
229+ </ button >
230+ < button
231+ onClick = { ( ) => { } }
232+ style = { {
233+ background : "rgba(255,69,58,0.15)" ,
234+ border : "1px solid rgba(255,69,58,0.35)" ,
235+ borderRadius : 980 ,
236+ color : "#ff453a" ,
237+ fontSize : 16 ,
238+ fontWeight : 600 ,
239+ padding : "14px 48px" ,
240+ cursor : "pointer" ,
241+ fontFamily : ff ,
242+ letterSpacing : "-0.2px" ,
243+ boxShadow : "0 4px 24px rgba(255,69,58,0.15)" ,
244+ transition : "transform 0.15s, box-shadow 0.15s" ,
245+ } }
246+ onMouseEnter = { ( e ) => {
247+ e . currentTarget . style . transform = "scale(1.03)" ;
248+ e . currentTarget . style . boxShadow = "0 6px 32px rgba(255,69,58,0.3)" ;
249+ } }
250+ onMouseLeave = { ( e ) => {
251+ e . currentTarget . style . transform = "scale(1)" ;
252+ e . currentTarget . style . boxShadow = "0 4px 24px rgba(255,69,58,0.15)" ;
253+ } }
254+ >
255+ Burn
256+ </ button >
257+ </ div >
258+ ) }
259+
198260 { /* Chart card */ }
199261 < section
200262 style = { {
0 commit comments