Skip to content

Commit b0f933c

Browse files
committed
network badge
1 parent 291cac9 commit b0f933c

File tree

2 files changed

+36
-6
lines changed

2 files changed

+36
-6
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,8 @@ furnished to do so, subject to the following conditions:
123123
The above copyright notice and this permission notice shall be included in all
124124
copies or substantial portions of the Software.
125125

126+
Users of this software must include an attribution to ZenGo by mentioning "Powered by ZenGo" or "Built with ZenGo technology" in their applications, documentation, and marketing materials.
127+
126128
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
127129
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
128130
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE

src/App.tsx

Lines changed: 34 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -718,12 +718,20 @@ export default function App() {
718718
alt="ZenGo Solana Wallet Connect Demo"
719719
className="h-24 mx-auto mb-8 animate-fadeIn"
720720
/>
721-
{/* <h1 className="text-2xl font-bold mb-4 text-slate-800">
722-
Solana Wallet Connect
723-
</h1> */}
724-
<p className="mb-8 text-slate-600">
725-
Connect your wallet to experience the power of Solana blockchain
726-
</p>
721+
<p className="mb-8 text-slate-600">Connected Network:</p>
722+
723+
{/* Network badge - show the current network */}
724+
<div className="mb-4 flex justify-center">
725+
<span
726+
className={`px-3 py-1 text-sm font-semibold rounded-full ${
727+
isDevnet
728+
? "bg-amber-100 text-amber-800"
729+
: "bg-emerald-100 text-emerald-800"
730+
}`}
731+
>
732+
{isDevnet ? "Devnet" : "Mainnet"}
733+
</span>
734+
</div>
727735
<div className="inline-block">
728736
<appkit-button />
729737
</div>
@@ -1102,6 +1110,26 @@ export default function App() {
11021110
<footer className="mt-12 py-6 border-t border-slate-200">
11031111
<div className="max-w-6xl mx-auto px-6 text-center text-slate-500 text-sm">
11041112
ZenGo Solana Wallet Connect Demo • All rights reserved
1113+
<div className="mt-2">
1114+
<a
1115+
href="https://github.com/ZenGo-X/solana-test-dapp"
1116+
target="_blank"
1117+
rel="noopener noreferrer"
1118+
className="text-indigo-500 hover:text-indigo-600 hover:underline flex items-center justify-center gap-1"
1119+
>
1120+
<svg
1121+
xmlns="http://www.w3.org/2000/svg"
1122+
width="16"
1123+
height="16"
1124+
fill="currentColor"
1125+
className="bi bi-github"
1126+
viewBox="0 0 16 16"
1127+
>
1128+
<path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.012 8.012 0 0 0 16 8c0-4.42-3.58-8-8-8z" />
1129+
</svg>
1130+
<span>GitHub Repository</span>
1131+
</a>
1132+
</div>
11051133
</div>
11061134
</footer>
11071135
</div>

0 commit comments

Comments
 (0)