You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/ENVS.md
+18Lines changed: 18 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -144,6 +144,7 @@ Also, be aware that if you customize the name of the currency or any of its deno
144
144
| NEXT_PUBLIC_HOMEPAGE_CHARTS |`Array<'daily_txs' \| 'daily_operational_txs' \| 'coin_price' \| 'secondary_coin_price' \| 'market_cap' \| 'tvl'>`| List of charts displayed on the home page | - | - |`['daily_txs','coin_price','market_cap']`| v1.0.x+ |
145
145
| NEXT_PUBLIC_HOMEPAGE_STATS |`Array<'latest_batch' \| 'total_blocks' \| 'average_block_time' \| 'total_txs' \| 'total_operational_txs' \| 'latest_l1_state_batch' \| 'wallet_addresses' \| 'gas_tracker' \| 'btc_locked' \| 'current_epoch'>`| List of stats widgets displayed on the home page | - | For zkSync, zkEvm and Arbitrum rollups: `['latest_batch','average_block_time','total_txs','wallet_addresses','gas_tracker']`, for other cases: `['total_blocks','average_block_time','total_txs','wallet_addresses','gas_tracker']`|`['total_blocks','total_txs','wallet_addresses']`| v1.35.x+ |
146
146
| NEXT_PUBLIC_HOMEPAGE_HERO_BANNER_CONFIG |`HeroBannerConfig`, see details [below](#hero-banner-configuration-properties)| Configuration of hero banner appearance. | - | - | See [below](#hero-banner-configuration-properties)| v1.35.0+ |
147
+
| NEXT_PUBLIC_HOMEPAGE_HIGHLIGHTS_CONFIG |`string`| URL of the file (in `.json` format only) that contains the configuration for banners on the application's homepage, showcasing some of its key functionality. See the full config format [below](#highlights-banner-configuration-properties). The config should contain at least 2 banners, but only 3 banners will be visible at the same time. A larger number of banners in the config allows for random banner rotation upon page load. | - | - | See [below](#highlights-banner-configuration-properties)| upcoming |
147
148
148
149
#### Hero banner configuration properties
149
150
@@ -157,6 +158,23 @@ _Note_ Here, all values are arrays of up to two strings. The first string repres
157
158
| search |`{ border_width: [string, string] }`| Search bar customization. Currently supports only width of the border (in px). | - | - |`{ 'border_width': ['0px', '2px'] }`|
158
159
| button |`Partial<Record<'_default' \| '_hover' \| '_selected', {'background'?: [string, string]; 'text_color?:[string, string]'}>>`| The button on the banner. It has three possible states: `_default`, `_hover`, and `_selected`. The `_selected` state reflects when the user is logged in or their wallet is connected to the app. | - | - |`{'_default':{'background':['deeppink'],'text_color':['white']}}`|
159
160
161
+
#### Highlights banner configuration properties
162
+
163
+
_Note_ Some properties can hold an array of up to two strings. The first string represents the value for the light color mode, while the second string represents the value for the dark color mode. If the array contains only one string, it will be used for both color modes.
164
+
165
+
| Variable | Type| Description | Compulsoriness | Default value | Example value |
166
+
| --- | --- | --- | --- | --- | --- |
167
+
| title |`string`| Title on the banner | Required | - |`Duck Deep into Transactions`|
168
+
| description |`string`| Short description of the feature | Required | - |`Explore and track all blockchain transactions`|
169
+
| title_color |`[string, string]`| Text color of the title. | - |`['#101112', '#F8FCFF']`|`['#FFB8D4', '#D9FE41']`|
170
+
| description_color |`[string, string]`| Text color of the description. | - |`['#718096', '#AEB1B6']`|`['#FFB8D4', '#D9FE41']`|
171
+
| background |`[string, string]`| Banner background (could be a solid color, gradient or picture). The string should be a valid `background` CSS property value. | - |`['#EFF7FF', '#2A3340']`|`['deeppink']`|
172
+
| side_img_url |`[string, string]`| URL of an image that appears on the right side of the banner. | - | - |`https://placekitten/1400/200`|
173
+
| is_pinned |`boolean`| Indicates whether the banner should remain always visible despite potential rotation. | - | - |`https://placekitten/1400/200`|
174
+
| page_path |`string`| Internal page path for constructing the banner link. | - | - |`/pools`|
175
+
| redirect_url |`string`| External link on the banner. | - | - |`https://example.com`|
0 commit comments