mirror of
https://github.com/onsonr/sonr.git
synced 2025-03-10 21:09:11 +00:00
* fix: correct HTTP error handling in gateway * refactor: migrate database and ORM to internal modules * feat: introduce taskfile build system for improved workflow management * refactor: update taskfiles to use relative paths * feat: add profile status field * refactor: move rendering logic to context package * fix: improve error handling in credentials retrieval * refactor: optimize HTTP request handling in Wasm environment * refactor: refactor config loading in motr command * chore: add process-compose for service management * chore: remove default task and update gum format command * fix: update project dependencies * refactor: improve code readability and maintainability * refactor: consolidate error handling components * refactor: update index handler to use new context package * refactor: consolidate database scripts and move to deploy directory * feat: Update flake.nix with development tools and environment configuration * fix: ignore flake.lock file * refactor: migrate build process to use taskfiles for improved modularity and maintainability * refactor: improve GatewayContext and reorganize handlers * refactor: Remove unused profile creation functions * (chore): templ generation * test: add test file for vaults.go * maintenance: remove defunct Discord server link * docs: update checks workflow documentation * test: remove obsolete vaults test file * refactor: move version bumping logic to release workflow
39 lines
1.1 KiB
Plaintext
39 lines
1.1 KiB
Plaintext
package islands
|
|
|
|
templ CardAccount(addr, name, handle, creationBlock string) {
|
|
<div class="profile-card min-w-[320px]">
|
|
<div class="text-white max-w-xs my-auto mx-auto bg-gradient-to-r from-cyan-600 to-cyan-300 p-4 py-5 px-5 rounded-xl">
|
|
<div class="flex justify-between">
|
|
<div>
|
|
<h2>sonr-testnet-1</h2>
|
|
<p class="text-2xl font-bold">{ handle }</p>
|
|
</div>
|
|
<div class="flex items-center opacity-60">
|
|
<sl-icon style="font-size: 52px;" library="sonr" name="sonr-fill"></sl-icon>
|
|
</div>
|
|
</div>
|
|
<div class="mt-5 flex justify-between items-center w-52">
|
|
<span class="text-lg font-mono">{ shortenAddress(addr) }</span>
|
|
</div>
|
|
<div class="flex justify-between mt-5 w-48 ">
|
|
<div>
|
|
<h3 class="text-xs">Block Created </h3>
|
|
<p class="font-bold"><span>#</span>{ creationBlock }</p>
|
|
</div>
|
|
<div>
|
|
<h3 class="text-xs">Issued to</h3>
|
|
<p class="font-bold">{ name }</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
}
|
|
|
|
// Helper function to shorten address
|
|
func shortenAddress(address string) string {
|
|
if len(address) <= 20 {
|
|
return address
|
|
}
|
|
return address[:16] + "..." + address[len(address)-4:]
|
|
}
|