Skip to content

Commit

Permalink
feat(styling): added pentagon, updated chain icon to use local icons
Browse files Browse the repository at this point in the history
  • Loading branch information
Kahnix committed Dec 12, 2024
1 parent c848283 commit 1266efd
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 8 deletions.
6 changes: 3 additions & 3 deletions chains/mainnet/chain.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@
"coin_type": "118",
"min_tx_fee": "800",
"addr_prefix": "cosmos",
"logo": "/logos/cosmos.svg",
"logo": "/logo.svg",
"theme_color": "#6e6e6e",
"assets": [
{
"base": "uatom",
"symbol": "ATOM",
"exponent": "6",
"coingecko_id": "cosmos",
"logo": "/logos/cosmos.svg"
"logo": "/logo.svg"
}
]
}
}
9 changes: 9 additions & 0 deletions src/assets/pentagon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 6 additions & 3 deletions src/layouts/components/ChainProfile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ function changeEndpoint(item: Endpoint) {
<div class="dropdown">
<label tabindex="0" class="flex items-center">
<div class="p-1 relative mr-3 cursor-pointer">
<img v-lazy="chainStore.logo" class="w-9 h-9 rounded-full" />
<div class="relative">
<img src='../../assets/pentagon.svg' class="w-9 scale-[1.3] absolute h-9 rounded-full" />
<img v-lazy="chainStore.logo" class="w-9 h-9 rounded-full" />
</div>
<div class="w-2 h-2 rounded-full absolute right-0 bottom-0 shadow" :class="{
'bg-success': baseStore.connected,
'bg-error': !baseStore.connected
Expand All @@ -38,13 +41,13 @@ function changeEndpoint(item: Endpoint) {
</div>
</div>
</label>
<div tabindex="0" class="dropdown-content -left-6 w-80 menu shadow bg-vector-bg rounded-box overflow-auto">
<div tabindex="0" class="dropdown-content -left-6 w-80 menu shadow bg-[#212121] rounded-box overflow-auto">
<!-- rest -->
<div class="px-4 py-2 text-sm text-gray-200" v-if="chainStore.current?.endpoints?.rest">
Rest Endpoint
</div>
<div v-for="(item, index) in chainStore.current?.endpoints?.rest"
class="px-4 py-2 w-full hover:bg-gray-100 dark:hover:bg-[#212121] cursor-pointer" :key="index"
class="px-4 py-2 w-full hover:bg-gray-100 dark:hover:bg-[#121212a4] cursor-pointer" :key="index"
@click="changeEndpoint(item)">
<div class="flex flex-col">
<div class="flex items-center justify-between w-full">
Expand Down
2 changes: 1 addition & 1 deletion src/pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ function handleKeyPress(event: KeyboardEvent) {
</h1>
<div class="w-full max-w-[600px]">
<div class="flex w-full max-w-[600px]">
<input class="input flex-1 w-full !input-bordered !rounded-r-none" @keypress="handleKeyPress"
<input class="input text-center flex-1 w-full !input-bordered !rounded-r-none" @keypress="handleKeyPress"
v-model="searchQuery" autofocus placeholder="Search for Height/Transaction/Account Address" />
<div class="">
<button class=" btn !rounded-l-none btn-primary" @click="confirm">
Expand Down
2 changes: 1 addition & 1 deletion src/stores/useDashboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ export function fromLocal(lc: LocalConfig): ChainConfig {
}
}
conf.features = lc.features
conf.logo = lc.logo.startsWith('http') ? lc.logo : `https://ping.pub${lc.logo}`;
conf.logo = lc.logo;
conf.keplrFeatures = lc.keplr_features;
conf.keplrPriceStep = lc.keplr_price_step;
conf.themeColor = lc.theme_color;
Expand Down

0 comments on commit 1266efd

Please sign in to comment.