Skip to content

Commit 3f8a84f

Browse files
authored
Merge pull request #1 from celenium-io/dev
upd config
2 parents 1a7d89d + 35214d6 commit 3f8a84f

File tree

7 files changed

+40
-7
lines changed

7 files changed

+40
-7
lines changed

components/Feed.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ const getNetworkName = () => {
2121
case "mocha-4.celenium.io":
2222
return "Mocha-4"
2323
24+
case "dev.celenium.io":
25+
return "Development"
26+
2427
case "localhost":
2528
return "Local Environment"
2629
Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,33 @@ const props = defineProps({
1313
title: String,
1414
block: Object,
1515
})
16+
17+
const test = computed(() => {
18+
return {
19+
style: {
20+
fontFamily: "IBM+Plex+Mono",
21+
color: "rgba(255, 255, 255, 0.3)",
22+
},
23+
}
24+
})
25+
26+
const bgStyles = computed(() => {
27+
return {
28+
style: {
29+
position: "absolute",
30+
top: "0",
31+
left: "0",
32+
filter: "grayscale(1)",
33+
opacity: "0.08",
34+
},
35+
}
36+
})
1637
</script>
1738

1839
<template>
19-
<div class="w-full h-full" :style="{ background: '#17191b', padding: '60px' }">
40+
<div class="w-full h-full" :style="{ background: '#111111', padding: '60px' }">
41+
<img src="/img/bg.png" v-bind="bgStyles" />
42+
2043
<div :style="{ height: '100%', display: 'flex', flexDirection: 'column', justifyContent: 'space-between' }">
2144
<div :style="{ display: 'flex', alignItems: 'center', gap: '16px' }">
2245
<Icon name="logo" size="40" :style="{ fill: '#0ade71' }" />
@@ -30,8 +53,8 @@ const props = defineProps({
3053
</div>
3154

3255
<div :style="{ display: 'flex', flexDirection: 'column', gap: '16px' }">
33-
<span :style="{ fontSize: '40px', fontWeight: '500', color: 'rgba(255,255,255,30%)' }">Block</span>
34-
<h1 :style="{ fontSize: '80px', fontWeight: '500', color: 'rgba(255,255,255,90%)', margin: '0' }">
56+
<span v-bind="test" :style="{ fontSize: '40px', fontWeight: '500' }">Block</span>
57+
<h1 :style="{ fontSize: '80px', fontWeight: '500', color: 'rgba(255,255,255,0.9)', margin: '0' }">
3558
{{ comma(block.height) }}
3659
</h1>
3760

components/widgets/BlockWidget.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ const getNetworkName = () => {
5252
case "mocha-4.celenium.io":
5353
return "Mocha-4"
5454
55+
case "dev.celenium.io":
56+
return "Development"
57+
5558
case "localhost":
5659
return "Local Environment"
5760

nuxt.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export default defineNuxtConfig({
5757
},
5858

5959
ogImage: {
60-
fonts: ["Inter:400", "Inter:600"],
60+
fonts: ["Inter:400", "Inter:600", "IBM+Plex+Mono:400"],
6161
runtimeCacheStorage: {
6262
driver: "cloudflare-kv-binding",
6363
binding: "OG_IMAGE_CACHE",

pages/block/[height].vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ if (!rawBlock.value) {
2222
}
2323
2424
defineOgImage({
25-
title: "Test",
25+
title: "Block",
2626
block: block.value,
27-
component: "Custom",
27+
component: "BlockImage",
2828
cacheKey: `${block.value.height}`,
2929
})
3030

public/img/bg.png

65.5 KB
Loading

services/config.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
export const Server = {
22
API: {
3-
mainnet: "https://api-2.celenium.io/v1",
3+
mainnet: "https://api.celenium.io/v1",
44
mocha: "https://api-mocha-4.celenium.io/v1",
5+
dev: "https://api-dev.celenium.io/v1",
56
},
67
WSS: "wss://api.celestia.dipdup.net/v1/ws",
78
}
@@ -16,6 +17,9 @@ export const useServerURL = () => {
1617
case "mocha-4.celenium.io":
1718
return Server.API.mocha
1819

20+
case "dev.celenium.io":
21+
return Server.API.dev
22+
1923
default:
2024
return Server.API.mainnet
2125
}

0 commit comments

Comments
 (0)