Skip to content

Commit 1266efd

Browse files
committed
feat(styling): added pentagon, updated chain icon to use local icons
1 parent c848283 commit 1266efd

File tree

5 files changed

+20
-8
lines changed

5 files changed

+20
-8
lines changed

chains/mainnet/chain.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,15 @@
3333
"coin_type": "118",
3434
"min_tx_fee": "800",
3535
"addr_prefix": "cosmos",
36-
"logo": "/logos/cosmos.svg",
36+
"logo": "/logo.svg",
3737
"theme_color": "#6e6e6e",
3838
"assets": [
3939
{
4040
"base": "uatom",
4141
"symbol": "ATOM",
4242
"exponent": "6",
4343
"coingecko_id": "cosmos",
44-
"logo": "/logos/cosmos.svg"
44+
"logo": "/logo.svg"
4545
}
4646
]
47-
}
47+
}

src/assets/pentagon.svg

Lines changed: 9 additions & 0 deletions
Loading

src/layouts/components/ChainProfile.vue

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@ function changeEndpoint(item: Endpoint) {
1515
<div class="dropdown">
1616
<label tabindex="0" class="flex items-center">
1717
<div class="p-1 relative mr-3 cursor-pointer">
18-
<img v-lazy="chainStore.logo" class="w-9 h-9 rounded-full" />
18+
<div class="relative">
19+
<img src='../../assets/pentagon.svg' class="w-9 scale-[1.3] absolute h-9 rounded-full" />
20+
<img v-lazy="chainStore.logo" class="w-9 h-9 rounded-full" />
21+
</div>
1922
<div class="w-2 h-2 rounded-full absolute right-0 bottom-0 shadow" :class="{
2023
'bg-success': baseStore.connected,
2124
'bg-error': !baseStore.connected
@@ -38,13 +41,13 @@ function changeEndpoint(item: Endpoint) {
3841
</div>
3942
</div>
4043
</label>
41-
<div tabindex="0" class="dropdown-content -left-6 w-80 menu shadow bg-vector-bg rounded-box overflow-auto">
44+
<div tabindex="0" class="dropdown-content -left-6 w-80 menu shadow bg-[#212121] rounded-box overflow-auto">
4245
<!-- rest -->
4346
<div class="px-4 py-2 text-sm text-gray-200" v-if="chainStore.current?.endpoints?.rest">
4447
Rest Endpoint
4548
</div>
4649
<div v-for="(item, index) in chainStore.current?.endpoints?.rest"
47-
class="px-4 py-2 w-full hover:bg-gray-100 dark:hover:bg-[#212121] cursor-pointer" :key="index"
50+
class="px-4 py-2 w-full hover:bg-gray-100 dark:hover:bg-[#121212a4] cursor-pointer" :key="index"
4851
@click="changeEndpoint(item)">
4952
<div class="flex flex-col">
5053
<div class="flex items-center justify-between w-full">

src/pages/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ function handleKeyPress(event: KeyboardEvent) {
6161
</h1>
6262
<div class="w-full max-w-[600px]">
6363
<div class="flex w-full max-w-[600px]">
64-
<input class="input flex-1 w-full !input-bordered !rounded-r-none" @keypress="handleKeyPress"
64+
<input class="input text-center flex-1 w-full !input-bordered !rounded-r-none" @keypress="handleKeyPress"
6565
v-model="searchQuery" autofocus placeholder="Search for Height/Transaction/Account Address" />
6666
<div class="">
6767
<button class=" btn !rounded-l-none btn-primary" @click="confirm">

src/stores/useDashboard.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ export function fromLocal(lc: LocalConfig): ChainConfig {
185185
}
186186
}
187187
conf.features = lc.features
188-
conf.logo = lc.logo.startsWith('http') ? lc.logo : `https://ping.pub${lc.logo}`;
188+
conf.logo = lc.logo;
189189
conf.keplrFeatures = lc.keplr_features;
190190
conf.keplrPriceStep = lc.keplr_price_step;
191191
conf.themeColor = lc.theme_color;

0 commit comments

Comments
 (0)