diff --git a/bun.lockb b/bun.lockb index 3d8dd136..3f271957 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/messages/en.json b/messages/en.json index c07b3b06..23eba416 100644 --- a/messages/en.json +++ b/messages/en.json @@ -1,10 +1,14 @@ { "$schema": "https://inlang.com/schema/inlang-message-format", + "_500_per_day": "$500/day", "account_page": "Account Page", "accounts_using_public_key": "Associated Accounts", "active_session": "Active Session", "block_height_numbered": "Block #{height}", "block_height_numbered_description": "Block #{height} was produced by {producer} on {timestamp}, which included {transactions} transactions performing {actions} actions.", + "buy_eos_with_coinbase": "Buy EOS with Coinbase", + "buy_or_transfer_crypto": "Buy or transfer EOS", + "coinbase_service_unavailable": "Coinbase service is currently unavailable.", "common_about_something": "About {thing}", "common_action": "Action", "common_amount_exceeds_balance": "Amount exceeds available balance.", @@ -90,17 +94,26 @@ "contract_tables_view_title": "Table: {table}", "contract_view_description": "An overview of the {contract} smart contract on the {network} network. This contract contains {actions} actions, {tables} tables, and {structs} structs.", "contract_view_title": "Contract: {contract} | {network}", + "debit_and_credit_cards_supported": "Debit and credit cards supported", "delegation_metadata_refund_description": "Claim previously delegated {network} tokens.", "delegation_metadata_refund_title": "Refund Delegated {network} Tokens", + "details": "Details", "error_loading_accounts": "Error loading accounts: {error}", + "exchanges": "Exchanges", "form_validation_insufficient_balance": "Insufficient {unit} balance. Please enter a smaller amount.", "form_validation_invalid_number_decimals": "Invalid number, too many decimal places.", + "fund_account": "Fund Account", + "fund_account_description": "Purchase EOS tokens to fund your account", "key_page_description": "A public key associated with {accounts} account(s) on the {network} network.", "key_page_subtitle": "The {accounts} account(s) associated with this public key", "key_page_title": "Public Key", "legacy_key": "Legacy Key", + "limits": "Limits", "loading_accounts": "Loading accounts...", + "must_be_logged_in_for_feature": "You must be logged in with an account to use this feature.", "no_accounts_found": "No accounts found", + "no_supported_funding_methods": "No supported funding methods for this blockchain.", + "processing_fees": "Processing fees", "ram_available_balance": "RAM Available", "ram_form_buy_amount": "Amount of RAM to buy:", "ram_metadata_buy_description": "Exchange {token} for RAM on the {network} network using an {network} compatible wallet.", @@ -114,6 +127,7 @@ "ram_to_purchase": "RAM to be bought", "ram_to_sell": "RAM to be sold", "search_view_type": "View {type}", + "select_provider": "Select provider", "send_amount_to_send": "Amount to send", "send_enter_amount": "Enter the amount of {token} to send", "send_memo_placeholder": "Specify a public memo for this transfer (optional)", @@ -148,5 +162,9 @@ "staking_network_title": "{network} Network Staking", "staking_withdraw_timeframe": "Withdrawable in 21 days", "test_locale_string": "This is a test", - "total_proceeds": "Total Proceeds" + "tokens_purchase_providers": "Tokens can be purchased directly through the following providers:", + "total_proceeds": "Total Proceeds", + "where_eos_can_be_purchased": "EOS can be purchased through a number of platforms, depending on the users needs and location.\n\tBelow are some of the most popular options available.", + "fund_account_seo_description": "Learn how to fund your account with EOS tokens through various methods including cryptocurrency exchanges and on-ramp providers.", + "token_purchase_providers": "Token Purchase Providers" } diff --git a/src/lib/assets/exchanges/binance.webp b/src/lib/assets/exchanges/binance.webp new file mode 100644 index 00000000..050aec76 Binary files /dev/null and b/src/lib/assets/exchanges/binance.webp differ diff --git a/src/lib/assets/exchanges/coinbase-icon.webp b/src/lib/assets/exchanges/coinbase-icon.webp new file mode 100644 index 00000000..2a732019 Binary files /dev/null and b/src/lib/assets/exchanges/coinbase-icon.webp differ diff --git a/src/lib/assets/exchanges/coinbase.svg b/src/lib/assets/exchanges/coinbase.svg new file mode 100644 index 00000000..db989cf2 --- /dev/null +++ b/src/lib/assets/exchanges/coinbase.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/src/lib/assets/exchanges/gate-io.webp b/src/lib/assets/exchanges/gate-io.webp new file mode 100644 index 00000000..cb53091e Binary files /dev/null and b/src/lib/assets/exchanges/gate-io.webp differ diff --git a/src/lib/assets/exchanges/huobi.webp b/src/lib/assets/exchanges/huobi.webp new file mode 100644 index 00000000..10ff703f Binary files /dev/null and b/src/lib/assets/exchanges/huobi.webp differ diff --git a/src/lib/assets/exchanges/kraken.webp b/src/lib/assets/exchanges/kraken.webp new file mode 100644 index 00000000..ad981c67 Binary files /dev/null and b/src/lib/assets/exchanges/kraken.webp differ diff --git a/src/lib/assets/exchanges/kucoin.webp b/src/lib/assets/exchanges/kucoin.webp new file mode 100644 index 00000000..c32540b6 Binary files /dev/null and b/src/lib/assets/exchanges/kucoin.webp differ diff --git a/src/lib/assets/exchanges/okx.webp b/src/lib/assets/exchanges/okx.webp new file mode 100644 index 00000000..46a23e72 Binary files /dev/null and b/src/lib/assets/exchanges/okx.webp differ diff --git a/src/lib/assets/exchanges/upbit.webp b/src/lib/assets/exchanges/upbit.webp new file mode 100644 index 00000000..8e14b0f7 Binary files /dev/null and b/src/lib/assets/exchanges/upbit.webp differ diff --git a/src/lib/components/descriptionlist/dd.svelte b/src/lib/components/descriptionlist/dd.svelte index 5a6a5af2..84b7e0f7 100644 --- a/src/lib/components/descriptionlist/dd.svelte +++ b/src/lib/components/descriptionlist/dd.svelte @@ -1,5 +1,9 @@ -
{@render props.children()}
+
+ {@render props.children()} +
diff --git a/src/lib/components/layout/page/multicard.svelte b/src/lib/components/layout/page/multicard.svelte index 08ac2ee8..ea05ac25 100644 --- a/src/lib/components/layout/page/multicard.svelte +++ b/src/lib/components/layout/page/multicard.svelte @@ -4,6 +4,7 @@ import type { HTMLAttributes } from 'svelte/elements'; interface Props extends HTMLAttributes { + tag?: string; children: Snippet; class?: string; } @@ -13,8 +14,9 @@ -
{@render props.children()} -
+ diff --git a/src/routes/[network]/(account)/fund/+page.svelte b/src/routes/[network]/(account)/fund/+page.svelte index 5ae9daa2..079ce164 100644 --- a/src/routes/[network]/(account)/fund/+page.svelte +++ b/src/routes/[network]/(account)/fund/+page.svelte @@ -1,15 +1,91 @@ -

Onramps

-

- After logging in with your EOS account, EOS tokens can be purchased directly from the following - platforms and the tokens will immediately be sent to your on-chain account. -

-{#if !context.account} -

You must be logged in with an account to use this feature.

-{:else if !coinbaseInstance} -

No supported funding methods for this blockchain.

-{:else} - -{/if} + + +

{m.token_purchase_providers()}

+ + + {#each ON_RAMP_PROVIDERS as service} + +
+
+ {service.id} +
+
+ +
+

{service.fees.range}

+
+
+ +
+

{service.limits.daily}

+
+
+ + {#each service.details as detail} +
{detail}
+ {/each} +
+
+
+ +
+ {#if !context.account} +

{m.must_be_logged_in_for_feature()}

+ {:else} + + {/if} +
+
+ {/each} +
+
-

Exchanges

-

- EOS can be purchased through a number of platforms, depending on the users needs and location. - Below are some of the most popular options available. -

- + +

{m.exchanges()}

-{#if context.settings.data.debugMode} -

{m.common_debugging()}

+

{m.where_eos_can_be_purchased()}

- - {JSON.stringify(options, null, 2)} - + + {#each EXCHANGES as exchange} + + +
+ +
+

{exchange.name}

+
+
+ {/each} +
+
- - {JSON.stringify(coinbaseInstance, null, 2)} - -{/if} + {#if context.settings.data.debugMode} +

{m.common_debugging()}

+ + {JSON.stringify(coinbaseOptions, null, 2)} + + + {JSON.stringify(coinbaseInstance, null, 2)} + + {/if} +
diff --git a/src/routes/[network]/(account)/fund/+page.ts b/src/routes/[network]/(account)/fund/+page.ts index 1b17aa8c..6e5ecf27 100644 --- a/src/routes/[network]/(account)/fund/+page.ts +++ b/src/routes/[network]/(account)/fund/+page.ts @@ -1,12 +1,13 @@ import type { PageLoad } from './$types'; +import * as m from '$lib/paraglide/messages'; export const load: PageLoad = async () => { return { - title: 'Fund Account', - subtitle: 'Purchase EOS tokens to fund your account', + title: m.fund_account(), + subtitle: m.fund_account_description(), pageMetaTags: { - title: 'Fund Account', - description: 'Purchase EOS tokens to fund your account' + title: m.fund_account(), + description: m.fund_account_seo_description() } }; };