diff options
author | Brandon Millman <brandon.millman@gmail.com> | 2018-12-11 11:27:27 +0800 |
---|---|---|
committer | Brandon Millman <brandon.millman@gmail.com> | 2018-12-11 11:31:45 +0800 |
commit | c46870d296e29399ebf9ce8a9c904f170f8a638a (patch) | |
tree | 372bb9c9d52a9145cff3239a3aee4f109a90faf9 /packages/website | |
parent | 4200064eab2bb5b227653bf9848e73227f36df7b (diff) | |
download | dexon-sol-tools-c46870d296e29399ebf9ce8a9c904f170f8a638a.tar dexon-sol-tools-c46870d296e29399ebf9ce8a9c904f170f8a638a.tar.gz dexon-sol-tools-c46870d296e29399ebf9ce8a9c904f170f8a638a.tar.bz2 dexon-sol-tools-c46870d296e29399ebf9ce8a9c904f170f8a638a.tar.lz dexon-sol-tools-c46870d296e29399ebf9ce8a9c904f170f8a638a.tar.xz dexon-sol-tools-c46870d296e29399ebf9ce8a9c904f170f8a638a.tar.zst dexon-sol-tools-c46870d296e29399ebf9ce8a9c904f170f8a638a.zip |
feature(website): add 0x Instant as a track in the docs
Diffstat (limited to 'packages/website')
4 files changed, 16 insertions, 0 deletions
diff --git a/packages/website/public/images/developers/tutorials/integrate_0x_instant.svg b/packages/website/public/images/developers/tutorials/integrate_0x_instant.svg new file mode 100644 index 000000000..e9c9278a8 --- /dev/null +++ b/packages/website/public/images/developers/tutorials/integrate_0x_instant.svg @@ -0,0 +1,3 @@ +<svg width="32" height="39" viewBox="0 0 32 39" fill="none" xmlns="http://www.w3.org/2000/svg"> +<path d="M16 1L1 23.242H16L16.0412 38L31 15.7159H16V1Z" stroke="#3289F1" stroke-width="1.5" stroke-miterlimit="10" stroke-linejoin="round"/> +</svg> diff --git a/packages/website/translations/english.json b/packages/website/translations/english.json index 78f29d0f6..8f882f506 100644 --- a/packages/website/translations/english.json +++ b/packages/website/translations/english.json @@ -92,6 +92,9 @@ "ORDER_BASICS_DESCRIPTION": "Tutorial on how to create, validate and fill an order using 0x", "USE_NETWORKED_LIQUIDITY": "use networked liquidity", "USE_NETWORKED_LIQUIDITY_DESCRIPTION": "Learn how to tap into networked liquidity using the Standard Relayer API", + "INTEGRATE_0X_INSTANT": "integrate 0x Instant and AssetBuyer", + "INTEGRATE_0X_INSTANT_DESCRIPTION": + "Add 0x Instant to your app or website, or use AssetBuyer to programmatically make market buys", "VIEW_ALL_DOCUMENTATION": "view all documentation", "SANDBOX": "0x.js sandbox", "GITHUB": "github", diff --git a/packages/website/ts/pages/documentation/docs_home.tsx b/packages/website/ts/pages/documentation/docs_home.tsx index f68d2892f..9dc779e96 100644 --- a/packages/website/ts/pages/documentation/docs_home.tsx +++ b/packages/website/ts/pages/documentation/docs_home.tsx @@ -44,6 +44,14 @@ const TUTORIALS: TutorialInfo[] = [ to: `${WebsitePaths.Wiki}#Find,-Submit,-Fill-Order-From-Relayer`, }, }, + { + iconUrl: '/images/developers/tutorials/integrate_0x_instant.svg', + description: Key.Integrate0xInstantDescription, + link: { + title: Key.Integrate0xInstant, + to: `${WebsitePaths.Wiki}#Get-Started-With-Instant`, + }, + }, ]; const CATEGORY_TO_PACKAGES: ObjectMap<Package[]> = { diff --git a/packages/website/ts/types.ts b/packages/website/ts/types.ts index b20dd7095..2967fdac5 100644 --- a/packages/website/ts/types.ts +++ b/packages/website/ts/types.ts @@ -474,6 +474,8 @@ export enum Key { OrderBasicsDescription = 'ORDER_BASICS_DESCRIPTION', UseNetworkedLiquidity = 'USE_NETWORKED_LIQUIDITY', UseNetworkedLiquidityDescription = 'USE_NETWORKED_LIQUIDITY_DESCRIPTION', + Integrate0xInstant = 'INTEGRATE_0X_INSTANT', + Integrate0xInstantDescription = 'INTEGRATE_0X_INSTANT_DESCRIPTION', ViewAllDocumentation = 'VIEW_ALL_DOCUMENTATION', Sandbox = 'SANDBOX', Github = 'GITHUB', |