From 2fdfcabce2d29cde26737354aa232020d1ed0363 Mon Sep 17 00:00:00 2001 From: Guillermo Alejandro Gallardo Diez Date: Tue, 3 Mar 2026 16:58:42 +0100 Subject: [PATCH] chore: switched theme to mint --- docs.json | 108 +++++++++++++++++--------------- index.mdx | 183 ++++++++++-------------------------------------------- style.css | 23 +++++++ 3 files changed, 112 insertions(+), 202 deletions(-) diff --git a/docs.json b/docs.json index 584d1e9..60faf0f 100644 --- a/docs.json +++ b/docs.json @@ -1,6 +1,6 @@ { "$schema": "https://mintlify.com/docs.json", - "theme": "maple", + "theme": "mint", "name": "NEAR Intents", "colors": { "primary": "#fb4d01", @@ -11,60 +11,15 @@ "navigation": { "tabs": [ { - "tab": "Swaps", + "tab": "Overview", "groups": [ - { - "group": "Welcome", - "pages": [ - "/index" - ] - }, { - "group": "Intents", + "group": "Introduction", "pages": [ "/getting-started/what-are-intents", "/resources/chain-support" ] }, - { - "group": "Swap API", - "openapi": "/api-reference/openapi.json", - "pages": [ - "integration/distribution-channels/1click-api/quickstart", - "integration/distribution-channels/1click-api/about-1click-api", - "integration/distribution-channels/1click-api/authentication", - "integration/distribution-channels/1click-api/fee-config", - { - "group": "API Reference", - "icon": "code", - "pages": [ - "GET /v0/tokens", - "POST /v0/quote", - "GET /v0/status", - "GET /v0/any-input/withdrawals", - "POST /v0/deposit/submit" - ] - }, - { - "group": "Explorer API", - "icon": "magnifying-glass", - "openapi": "/api-reference/explorer-openapi.yaml", - "pages": [ - "api-reference/explorer/introduction", - "GET /api/v0/transactions", - "GET /api/v0/transactions-pages" - ] - } - ] - }, - { - "group": "Developer ToolKit", - "pages": [ - "integration/devkit/react-widget", - "integration/devkit/sdk", - "integration/devkit/skills" - ] - }, { "group": "Resources", "pages": [ @@ -84,6 +39,53 @@ } ] }, + { + "tab": "API Reference", + "groups": [ + { + "group": " ", + "pages": [ + "integration/distribution-channels/1click-api/about-1click-api", + "integration/distribution-channels/1click-api/quickstart", + "integration/distribution-channels/1click-api/authentication", + "integration/distribution-channels/1click-api/fee-config" + ] + }, + { + "group": "API Reference", + "openapi": "/api-reference/openapi.json", + "pages": [ + "GET /v0/tokens", + "POST /v0/quote", + "GET /v0/status", + "GET /v0/any-input/withdrawals", + "POST /v0/deposit/submit" + ] + }, + { + "group": "Explorer API", + "openapi": "/api-reference/explorer-openapi.yaml", + "pages": [ + "api-reference/explorer/introduction", + "GET /api/v0/transactions", + "GET /api/v0/transactions-pages" + ] + } + ] + }, + { + "tab": "Toolkit", + "groups": [ + { + "group": " ", + "pages": [ + "integration/devkit/react-widget", + "integration/devkit/sdk", + "integration/devkit/skills" + ] + } + ] + }, { "tab": "Market Makers", "groups": [ @@ -157,7 +159,7 @@ "navbar": { "links": [ { - "label": "System Status", + "label": "Status", "href": "https://status.near-intents.org/posts/dashboard" }, { @@ -167,12 +169,16 @@ { "label": "Support", "href": "https://t.me/near_intents" + }, + { + "label": "Partners", + "href": "https://partners.near-intents.org/" } ], "primary": { "type": "button", - "label": "Partners", - "href": "https://partners.near-intents.org/" + "label": "App", + "href": "https://near.com/" } }, "contextual": { diff --git a/index.mdx b/index.mdx index 8f682cd..8184733 100644 --- a/index.mdx +++ b/index.mdx @@ -1,167 +1,48 @@ --- -hidden: true -mode: "wide" +mode: "custom" --- +
+
-

NEAR Intents

-

Welcome to the NEAR Intents Docs

+

+ NEAR Intents +

-
- -
-

1-Click Swap API

-

Request quotes, execute cross-chain swaps, and track their status.

-

Quickstart ->

-

Learn More ->

-
- - ```bash cURL - # Query supported tokens - curl https://1click.chaindefuser.com/v0/tokens +

Welcome to the NEAR Intents Docs

- # Request a quote - curl -X POST https://1click.chaindefuser.com/v0/quote \ - -H "Content-Type: application/json" \ - -H "Authorization: Bearer YOUR_JWT_TOKEN" \ - -d '{ - "swapType": "EXACT_INPUT", - "originAsset": "nep141:wrap.near", - "depositType": "ORIGIN_CHAIN", - "destinationAsset": "nep141:arb-0x912ce59144191c1204e64559fe8253a0e49e6548.omft.near", - "amount": "100000000000000000000000", - ... - }' - ``` +
- ```typescript TypeScript - // Query supported tokens - const tokensResponse = await fetch('https://1click.chaindefuser.com/v0/tokens'); - const tokens = await tokensResponse.json(); + + + Execute your first cross-chain swap in minutes. + - // Request a quote - const quote = await fetch('https://1click.chaindefuser.com/v0/quote', { - method: 'POST', - headers: { - 'Content-Type': 'application/json', - 'Authorization': 'Bearer YOUR_JWT_TOKEN' - }, - body: JSON.stringify({ - swapType: 'EXACT_INPUT', - originAsset: 'nep141:wrap.near', - depositType: 'ORIGIN_CHAIN', - destinationAsset: 'nep141:arb-0x912ce59144191c1204e64559fe8253a0e49e6548.omft.near', - amount: '100000000000000000000000', - // ... - }) - }); - const result = await quote.json(); - ``` + + Embed a customizable swap UI with a ready-to-use React component. + - ```python Python - import requests + + Build with TypeScript, Go, and Rust SDKs for typed API integration. + - # Query supported tokens - tokens_response = requests.get('https://1click.chaindefuser.com/v0/tokens') - tokens = tokens_response.json() + + Learn how the protocol works and core concepts. + + + + + Provide liquidity by fulfilling cross-chain swap intents. + - # Request a quote - quote = requests.post( - 'https://1click.chaindefuser.com/v0/quote', - headers={ - 'Content-Type': 'application/json', - 'Authorization': 'Bearer YOUR_JWT_TOKEN' - }, - json={ - 'swapType': 'EXACT_INPUT', - 'originAsset': 'nep141:wrap.near', - 'depositType': 'ORIGIN_CHAIN', - 'destinationAsset': 'nep141:arb-0x912ce59144191c1204e64559fe8253a0e49e6548.omft.near', - 'amount': '100000000000000000000000', - # ... - } - ) - result = quote.json() - ``` - - + + Interact with the smart contract for custom integrations. + - - Swap Widget UI -
-

React Widget

-

Integrate a customizable, cross-chain swap interface into your app with just a few lines of code.

-

Learn More ->

-
+
- - - -
-

SDK Libraries

-

Use SDKs for TypeScript, Go, and Rust to request quotes, submit deposits, and monitor execution status.

-

Learn More ->

-
- - ```typescript TypeScript - import { OpenAPI, OneClickService } from '@defuse-protocol/one-click-sdk-typescript'; - - OpenAPI.TOKEN = 'YOUR_JWT_TOKEN'; - - const tokens = await OneClickService.getTokens(); - console.log(tokens.length); - ``` - - ```go Go - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - - tokens, _, err := apiClient.OneClickAPI.GetTokens(context.Background()).Execute() - if err != nil { - panic(err) - } - ``` - - ```rust Rust - use one_click_sdk_rs::apis::one_click_api; - use one_click_sdk_rs::apis::configuration::Configuration; - - let config = Configuration::default(); - let tokens = one_click_api::get_tokens(&config).await?; - println!("{}", tokens.len()); - ``` - -
- -

Browse By Topic

- - - - Execute your first cross-chain swap in minutes. - - - - Embed a customizable swap UI with a ready-to-use React component. - - - - Build with TypeScript, Go, and Rust SDKs for typed API integration. - - - - Learn how the protocol works and core concepts. - - - - - Provide liquidity by fulfilling cross-chain swap intents. - - - - Interact with the smart contract for custom integrations. - - - +
+
\ No newline at end of file diff --git a/style.css b/style.css index 3ee6e6e..3b99875 100644 --- a/style.css +++ b/style.css @@ -3,6 +3,29 @@ overflow: auto; } +.landing-page { + min-height: calc(100vh - 7rem); + min-height: calc(100dvh - 7rem); + display: flex; + align-items: center; +} + +body:has(.landing) .nav-tabs-item[href="/getting-started/what-are-intents"] { + color: rgb(75 85 99) !important; + /* text-gray-600 */ + text-shadow: none !important; +} + +.dark body:has(.landing) .nav-tabs-item[href="/getting-started/what-are-intents"], +body.dark:has(.landing) .nav-tabs-item[href="/getting-started/what-are-intents"] { + color: rgb(156 163 175) !important; + /* dark:text-gray-400 */ +} + +body:has(.landing) .nav-tabs-item[href="/getting-started/what-are-intents"]>div { + background: transparent !important; +} + .primary { color: rgb(var(--primary)); }