@@ -47,25 +47,24 @@ export const PhantomWalletButton = ({ className = '' }) => {
4747 // If connected, show disconnect button
4848 if ( connected && walletAddress ) {
4949 return (
50- < div className = { `relative ${ className } ` } >
50+ < div className = { `ascii-wallet-button-container ${ className } ` } >
5151 < button
5252 onClick = { handleDisconnect }
53- className = "flex items-center gap-2 px-4 py-2 bg-green-600 text-white rounded-lg hover:bg-green-700 transition-colors "
53+ className = "ascii-wallet-button connected "
5454 title = { `Connected to ${ walletAddress } ` }
5555 >
56- < div className = "w-6 h-6 flex items-center justify-center " >
56+ < div className = "ascii-wallet-icon " >
5757 < Image
5858 src = "/images/phantom-logo.svg"
5959 alt = "Phantom"
60- width = { 16 }
61- height = { 16 }
60+ width = { 12 }
61+ height = { 12 }
6262 />
6363 </ div >
64- < div className = "w-2 h-2 bg-green-300 rounded-full" > </ div >
65- < span className = "hidden sm:inline " >
66- { ` ${ walletAddress . slice ( 0 , 4 ) } ... ${ walletAddress . slice ( - 4 ) } ` }
64+ < span className = "ascii-wallet-status-indicator" > ● </ span >
65+ < span className = "ascii-wallet-text " >
66+ CONNECT PHANTOM
6767 </ span >
68- < span className = "sm:hidden" > Connected</ span >
6968 </ button >
7069 </ div >
7170 ) ;
@@ -76,10 +75,10 @@ export const PhantomWalletButton = ({ className = '' }) => {
7675 return (
7776 < button
7877 disabled
79- className = { `flex items-center gap-2 px-4 py-2 bg-blue-500 text-white rounded-lg opacity-50 cursor-not-allowed ${ className } ` }
78+ className = { `ascii-wallet-button connecting ${ className } ` }
8079 >
81- < div className = "animate-spin rounded-full h-4 w-4 border-b-2 border-white" > </ div >
82- < span > Connecting ...</ span >
80+ < span className = "ascii-wallet-spinner" > ⟳ </ span >
81+ < span className = "ascii-wallet-text" > CONNECTING ...</ span >
8382 </ button >
8483 ) ;
8584 }
@@ -89,72 +88,70 @@ export const PhantomWalletButton = ({ className = '' }) => {
8988 < >
9089 < button
9190 onClick = { handleConnect }
92- className = { `flex items-center gap-2 px-4 py-2 bg-blue-500 text-white rounded-lg hover:bg-blue-600 transition-colors ${ className } ` }
91+ className = { `ascii-wallet-button ${ className } ` }
9392 >
94- < div className = "w-6 h-6 flex items-center justify-center " >
93+ < div className = "ascii-wallet-icon " >
9594 < Image
9695 src = "/images/phantom-logo.svg"
9796 alt = "Phantom"
98- width = { 16 }
99- height = { 16 }
97+ width = { 12 }
98+ height = { 12 }
10099 />
101100 </ div >
102- < span > Connect Phantom </ span >
101+ < span className = "ascii-wallet-text" > CONNECT PHANTOM </ span >
103102 </ button >
104103
105104 { /* Install Phantom Modal */ }
106105 { showInstallModal && (
107- < div className = "fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 p-4 " >
108- < div className = "bg-white rounded-lg p-6 w-full max-w-md relative " >
106+ < div className = "ascii-modal-backdrop " >
107+ < div className = "ascii-modal " >
109108 { /* Close button */ }
110109 < button
111110 onClick = { ( ) => setShowInstallModal ( false ) }
112- className = "absolute top-4 right-4 text-gray-400 hover:text-gray-600 "
111+ className = "ascii-modal-close "
113112 aria-label = "Close"
114113 >
115- < svg className = "w-6 h-6" fill = "none" stroke = "currentColor" viewBox = "0 0 24 24" >
116- < path strokeLinecap = "round" strokeLinejoin = "round" strokeWidth = { 2 } d = "M6 18L18 6M6 6l12 12" />
117- </ svg >
114+ ✕
118115 </ button >
119116
120117 { /* Modal content */ }
121- < div className = "pt-4 " >
122- < div className = "flex items-center justify-center mb-4 " >
118+ < div className = "ascii-modal-content " >
119+ < div className = "ascii-modal-icon " >
123120 < Image
124121 src = "/images/phantom-logo.svg"
125122 alt = "Phantom"
126- width = { 64 }
127- height = { 64 }
123+ width = { 32 }
124+ height = { 32 }
128125 />
129126 </ div >
130127
131- < h2 className = "text-xl font-bold text-center mb-4" > Install Phantom Wallet </ h2 >
128+ < h2 className = "ascii-modal-title" > INSTALL PHANTOM WALLET </ h2 >
132129
133- < p className = "text-gray-600 text-center mb-6 " >
134- Phantom wallet is required to use this application. It's a secure and easy-to-use Solana wallet .
130+ < p className = "ascii-modal- text" >
131+ PHANTOM WALLET IS REQUIRED TO USE THIS APPLICATION. IT'S A SECURE AND EASY-TO-USE SOLANA WALLET .
135132 </ p >
136133
137- < div className = "space-y-3 " >
134+ < div className = "ascii-modal-actions " >
138135 < a
139136 href = "https://phantom.app/"
140137 target = "_blank"
141138 rel = "noopener noreferrer"
142- className = "block w-full px-4 py-3 bg-purple-600 text-white text-center rounded-lg hover:bg-purple-700 transition-colors font-medium "
139+ className = "ascii-button primary "
143140 >
144- Download Phantom Wallet
141+ DOWNLOAD PHANTOM WALLET
145142 </ a >
146143
147144 < button
148145 onClick = { ( ) => setShowInstallModal ( false ) }
149- className = "block w-full px-4 py-3 bg-gray-200 text-gray-800 text-center rounded-lg hover:bg-gray-300 transition-colors "
146+ className = "ascii-button secondary "
150147 >
151- Cancel
148+ CANCEL
152149 </ button >
153150 </ div >
154151
155- < div className = "mt-4 p-3 bg-blue-50 rounded-lg " >
156- < p className = "text-sm text-blue-800 " >
157- < strong > Note: </ strong > After installing Phantom, refresh this page and try connecting again .
152+ < div className = "ascii-modal-note " >
153+ < p className = "ascii-modal-note-text " >
154+ NOTE: AFTER INSTALLING PHANTOM, REFRESH THIS PAGE AND TRY CONNECTING AGAIN .
158155 </ p >
159156 </ div >
160157 </ div >
@@ -164,7 +161,7 @@ export const PhantomWalletButton = ({ className = '' }) => {
164161
165162 { /* Error display */ }
166163 { error && (
167- < div className = "absolute top-full left-0 mt-2 p-2 bg-red-100 border border-red-400 text-red-700 rounded text-sm max-w-xs " >
164+ < div className = "ascii-error-tooltip " >
168165 { error }
169166 </ div >
170167 ) }
0 commit comments