Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix UI style for responsive #32

Merged
merged 2 commits into from
Apr 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,6 @@ function nav() {
text: "Gas Tank API",
link: "/gas-tank/gas-tank-api",
},
{ text: "Swap Widget", link: "/swap-widget/widget-integration" },
{
text: "Chains Lib",
link: "/chains-lib/chains-lib",
Expand Down
7 changes: 3 additions & 4 deletions campaigns/campaigns-service-api.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
---
prev:
text: Routing API
link: /routing/introduction
next: false
next:
text: 📒 Chains Lib
link: /chains-lib/chains-lib
---

# Campaigns Service API
Expand Down
6 changes: 4 additions & 2 deletions components/AddressCheckV2.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,15 @@ export default function AddressCheckV2() {
)}
</button>
</div>
<div className="my-4 rounded-lg max-h-[600px] overflow-auto bg-[#F6F6F7] text-[#24292E] dark:bg-[#161618] dark:text-[#E1E4E8]">
<div className="my-4 rounded-lg bg-[#F6F6F7] text-[#24292E] dark:bg-[#161618] dark:text-[#E1E4E8]">
<div className="px-5 border-b border-[#e2e2e3] dark:border-black">
<span className="inline-block border-b-2 border-[#3451b2] dark:border-[#a8b1ff] text-[14px] leading-[48px]">
Response
</span>
</div>
<pre className="p-5">{JSON.stringify(response, null, 2)}</pre>
<pre className="p-5 max-h-[600px] overflow-auto">
{JSON.stringify(response, null, 2)}
</pre>
</div>
</>
);
Expand Down
6 changes: 4 additions & 2 deletions components/AssetsCryptoCurrencies.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,13 +103,15 @@ const CryptoCurrencies = () => {
)}
</button>
</div>
<div className="my-4 rounded-lg max-h-[600px] overflow-auto bg-[#F6F6F7] text-[#24292E] dark:bg-[#161618] dark:text-[#E1E4E8]">
<div className="my-4 rounded-lg bg-[#F6F6F7] text-[#24292E] dark:bg-[#161618] dark:text-[#E1E4E8]">
<div className="px-5 border-b border-[#e2e2e3] dark:border-black">
<span className="inline-block border-b-2 border-[#3451b2] dark:border-[#a8b1ff] text-[14px] leading-[48px]">
Response
</span>
</div>
<pre className="p-5">{JSON.stringify(response, null, 2)}</pre>
<pre className="p-5 max-h-[600px] overflow-auto">
{JSON.stringify(response, null, 2)}
</pre>
</div>
</>
);
Expand Down
6 changes: 4 additions & 2 deletions components/AssetsFiatCurrencies.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,13 +97,15 @@ const FiatCurrencies = () => {
)}
</button>
</div>
<div className="my-4 rounded-lg max-h-[600px] overflow-auto bg-[#F6F6F7] text-[#24292E] dark:bg-[#161618] dark:text-[#E1E4E8]">
<div className="my-4 rounded-lg bg-[#F6F6F7] text-[#24292E] dark:bg-[#161618] dark:text-[#E1E4E8]">
<div className="px-5 border-b border-[#e2e2e3] dark:border-black">
<span className="inline-block border-b-2 border-[#3451b2] dark:border-[#a8b1ff] text-[14px] leading-[48px]">
Response
</span>
</div>
<pre className="p-5">{JSON.stringify(response, null, 2)}</pre>
<pre className="p-5 max-h-[600px] overflow-auto">
{JSON.stringify(response, null, 2)}
</pre>
</div>
</>
);
Expand Down
6 changes: 4 additions & 2 deletions components/AssetsLPTokens.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,13 +119,15 @@ const AssetsLPTokens = () => {
)}
</button>
</div>
<div className="my-4 rounded-lg max-h-[600px] overflow-auto bg-[#F6F6F7] text-[#24292E] dark:bg-[#161618] dark:text-[#E1E4E8]">
<div className="my-4 rounded-lg bg-[#F6F6F7] text-[#24292E] dark:bg-[#161618] dark:text-[#E1E4E8]">
<div className="px-5 border-b border-[#e2e2e3] dark:border-black">
<span className="inline-block border-b-2 border-[#3451b2] dark:border-[#a8b1ff] text-[14px] leading-[48px]">
Response
</span>
</div>
<pre className="p-5">{JSON.stringify(response, null, 2)}</pre>
<pre className="p-5 max-h-[600px] overflow-auto">
{JSON.stringify(response, null, 2)}
</pre>
</div>
</>
);
Expand Down
4 changes: 2 additions & 2 deletions components/AssetsTokens.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,13 +110,13 @@ const AssetsTokens = () => {
)}
</button>
</div>
<div className="my-4 rounded-lg max-h-[600px] overflow-auto bg-[#F6F6F7] text-[#24292E] dark:bg-[#161618] dark:text-[#E1E4E8]">
<div className="my-4 rounded-lg bg-[#F6F6F7] text-[#24292E] dark:bg-[#161618] dark:text-[#E1E4E8]">
<div className="px-5 border-b border-[#e2e2e3] dark:border-black">
<span className="inline-block border-b-2 border-[#3451b2] dark:border-[#a8b1ff] text-[14px] leading-[48px]">
Response
</span>
</div>
<pre className="p-5">{JSON.stringify(response, null, 2)}</pre>
<pre className="p-5 ">{JSON.stringify(response, null, 2)}</pre>
</div>
</>
);
Expand Down
6 changes: 4 additions & 2 deletions components/BridgeableTokens.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,15 @@ export default function BridgeableTokens() {
)}
</button>
</div>
<div className="my-4 rounded-lg max-h-[600px] overflow-auto bg-[#F6F6F7] text-[#24292E] dark:bg-[#161618] dark:text-[#E1E4E8]">
<div className="my-4 rounded-lg bg-[#F6F6F7] text-[#24292E] dark:bg-[#161618] dark:text-[#E1E4E8]">
<div className="px-5 border-b border-[#e2e2e3] dark:border-black">
<span className="inline-block border-b-2 border-[#3451b2] dark:border-[#a8b1ff] text-[14px] leading-[48px]">
Response
</span>
</div>
<pre className="p-5">{JSON.stringify(response, null, 2)}</pre>
<pre className="p-5 max-h-[600px] overflow-auto">
{JSON.stringify(response, null, 2)}
</pre>
</div>
</>
);
Expand Down
12 changes: 7 additions & 5 deletions components/BroadcastTransaction.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ const BroadcastTransaction = () => {

return (
<>
<div className="flex items-center gap-4">
<div className="flex items-center gap-4 max-sm:flex-col max-sm:items-start">
<div className="flex items-center gap-4">
<span>Chain:</span>
<div className="border border-[#e2e2e3] dark:border-[#2e2e32] hover:border-[#3451b2] rounded-lg overflow-hidden w-fit">
Expand All @@ -97,15 +97,15 @@ const BroadcastTransaction = () => {
</select>
</div>
</div>
<div className="flex items-center gap-4">
<div className="flex items-center gap-4 max-sm:flex-col max-sm:items-start">
<span>Raw Transaction Hex:</span>
<div className="border border-[#e2e2e3] dark:border-[#2e2e32] hover:border-[#3451b2] rounded-lg overflow-hidden w-fit">
<input
type="text"
id="raw-hex"
name="Raw Hex"
value={rawHex}
className="bg-gray-50 text-gray-900 px-2 py-1 dark:bg-gray-700 dark:placeholder-gray-400 dark:text-white"
className="max-sm:w-[300px] bg-gray-50 text-gray-900 px-2 py-1 dark:bg-gray-700 dark:placeholder-gray-400 dark:text-white"
placeholder="Enter an raw transaction hex"
onChange={(e) => setRawHex(e.target.value)}
/>
Expand All @@ -131,13 +131,15 @@ const BroadcastTransaction = () => {
)}
</button>
</div>
<div className="my-4 rounded-lg max-h-[600px] overflow-auto bg-[#F6F6F7] text-[#24292E] dark:bg-[#161618] dark:text-[#E1E4E8]">
<div className="my-4 rounded-lg bg-[#F6F6F7] text-[#24292E] dark:bg-[#161618] dark:text-[#E1E4E8]">
<div className="px-5 border-b border-[#e2e2e3] dark:border-black">
<span className="inline-block border-b-2 border-[#3451b2] dark:border-[#a8b1ff] text-[14px] leading-[48px]">
Response
</span>
</div>
<pre className="p-5">{JSON.stringify(response, null, 2)}</pre>
<pre className="p-5 max-h-[600px] overflow-auto">
{JSON.stringify(response, null, 2)}
</pre>
</div>
</>
);
Expand Down
6 changes: 4 additions & 2 deletions components/ChainV2GraphQL.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,15 @@ export default function ChainV2GraphQL() {
)}
</button>
</div>
<div className="my-4 rounded-lg max-h-[600px] overflow-auto bg-[#F6F6F7] text-[#24292E] dark:bg-[#161618] dark:text-[#E1E4E8]">
<div className="my-4 rounded-lg bg-[#F6F6F7] text-[#24292E] dark:bg-[#161618] dark:text-[#E1E4E8]">
<div className="px-5 border-b border-[#e2e2e3] dark:border-black">
<span className="inline-block border-b-2 border-[#3451b2] dark:border-[#a8b1ff] text-[14px] leading-[48px]">
Response
</span>
</div>
<pre className="p-5">{JSON.stringify(response, null, 2)}</pre>
<pre className="p-5 max-h-[600px] overflow-auto">
{JSON.stringify(response, null, 2)}
</pre>
</div>
</>
);
Expand Down
6 changes: 4 additions & 2 deletions components/ChainsV2.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,15 @@ export default function ChainsV2() {
)}
</button>
</div>
<div className="my-4 rounded-lg max-h-[600px] overflow-auto bg-[#F6F6F7] text-[#24292E] dark:bg-[#161618] dark:text-[#E1E4E8]">
<div className="my-4 rounded-lg bg-[#F6F6F7] text-[#24292E] dark:bg-[#161618] dark:text-[#E1E4E8]">
<div className="px-5 border-b border-[#e2e2e3] dark:border-black">
<span className="inline-block border-b-2 border-[#3451b2] dark:border-[#a8b1ff] text-[14px] leading-[48px]">
Response
</span>
</div>
<pre className="p-5">{JSON.stringify(response, null, 2)}</pre>
<pre className="p-5 max-h-[600px] overflow-auto">
{JSON.stringify(response, null, 2)}
</pre>
</div>
</>
);
Expand Down
6 changes: 4 additions & 2 deletions components/ChainsV2GraphQL.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,15 @@ export default function ChainsV2GraphQL() {
)}
</button>
</div>
<div className="my-4 rounded-lg max-h-[600px] overflow-auto bg-[#F6F6F7] text-[#24292E] dark:bg-[#161618] dark:text-[#E1E4E8]">
<div className="my-4 rounded-lg bg-[#F6F6F7] text-[#24292E] dark:bg-[#161618] dark:text-[#E1E4E8]">
<div className="px-5 border-b border-[#e2e2e3] dark:border-black">
<span className="inline-block border-b-2 border-[#3451b2] dark:border-[#a8b1ff] text-[14px] leading-[48px]">
Response
</span>
</div>
<pre className="p-5">{JSON.stringify(response, null, 2)}</pre>
<pre className="p-5 max-h-[600px] overflow-auto">
{JSON.stringify(response, null, 2)}
</pre>
</div>
</>
);
Expand Down
6 changes: 4 additions & 2 deletions components/DailyVolume.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,15 @@ export default function DailyVolume() {
)}
</button>
</div>
<div className="my-4 rounded-lg max-h-[600px] overflow-auto bg-[#F6F6F7] text-[#24292E] dark:bg-[#161618] dark:text-[#E1E4E8]">
<div className="my-4 rounded-lg bg-[#F6F6F7] text-[#24292E] dark:bg-[#161618] dark:text-[#E1E4E8]">
<div className="px-5 border-b border-[#e2e2e3] dark:border-black">
<span className="inline-block border-b-2 border-[#3451b2] dark:border-[#a8b1ff] text-[14px] leading-[48px]">
Response
</span>
</div>
<pre className="p-5">{JSON.stringify(response, null, 2)}</pre>
<pre className="p-5 max-h-[600px] overflow-auto">
{JSON.stringify(response, null, 2)}
</pre>
</div>
</>
);
Expand Down
4 changes: 2 additions & 2 deletions components/DetectWallet.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@ const DetectWallet = ({ chainId, subChainId }) => {
</button>
</div>
{address && (
<div className="my-4 rounded-lg max-h-[600px] overflow-auto bg-[#F6F6F7] text-[#24292E] dark:bg-[#161618] dark:text-[#E1E4E8]">
<div className="my-4 rounded-lg bg-[#F6F6F7] text-[#24292E] dark:bg-[#161618] dark:text-[#E1E4E8]">
<div className="px-5 border-b border-[#e2e2e3] dark:border-black">
<span className="inline-block border-b-2 border-[#3451b2] dark:border-[#a8b1ff] text-[14px] leading-[48px]">
Address
</span>
</div>
<pre className="p-5">{address}</pre>
<pre className="p-5 max-h-[600px] overflow-auto">{address}</pre>
</div>
)}
</>
Expand Down
12 changes: 7 additions & 5 deletions components/GetBalance.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ const GetBalance = () => {

return (
<>
<div className="flex items-center gap-4">
<div className="flex items-center gap-4 max-sm:flex-col max-sm:items-start">
<div className="flex items-center gap-4">
<span>Chain:</span>
<div className="border border-[#e2e2e3] dark:border-[#2e2e32] hover:border-[#3451b2] rounded-lg overflow-hidden w-fit">
Expand All @@ -194,15 +194,15 @@ const GetBalance = () => {
</select>
</div>
</div>
<div className="flex items-center gap-4">
<div className="flex items-center gap-4 max-sm:flex-col max-sm:items-start max-sm:gap-2">
<span>Address:</span>
<div className="border border-[#e2e2e3] dark:border-[#2e2e32] hover:border-[#3451b2] rounded-lg overflow-hidden w-fit">
<input
type="text"
id="address"
name="Address"
value={address}
className="bg-gray-50 text-gray-900 px-2 py-1 dark:bg-gray-700 dark:placeholder-gray-400 dark:text-white"
className="max-sm:w-300px] bg-gray-50 text-gray-900 px-2 py-1 dark:bg-gray-700 dark:placeholder-gray-400 dark:text-white"
placeholder="Enter an address"
onChange={(e) => setAddress(e.target.value)}
/>
Expand All @@ -228,13 +228,15 @@ const GetBalance = () => {
)}
</button>
</div>
<div className="my-4 rounded-lg max-h-[600px] overflow-auto bg-[#F6F6F7] text-[#24292E] dark:bg-[#161618] dark:text-[#E1E4E8]">
<div className="my-4 rounded-lg bg-[#F6F6F7] text-[#24292E] dark:bg-[#161618] dark:text-[#E1E4E8]">
<div className="px-5 border-b border-[#e2e2e3] dark:border-black">
<span className="inline-block border-b-2 border-[#3451b2] dark:border-[#a8b1ff] text-[14px] leading-[48px]">
Response
</span>
</div>
<pre className="p-5">{JSON.stringify(response, null, 2)}</pre>
<pre className="p-5 max-h-[600px] overflow-auto">
{JSON.stringify(response, null, 2)}
</pre>
</div>
</>
);
Expand Down
8 changes: 5 additions & 3 deletions components/GetGasFee.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ const GetGasFee = () => {

return (
<>
<div className="flex items-center gap-4">
<div className="flex items-center gap-4 max-sm:flex-col max-sm:items-start">
<div className="flex items-center gap-4">
<span>Chain:</span>
<div className="border border-[#e2e2e3] dark:border-[#2e2e32] hover:border-[#3451b2] rounded-lg overflow-hidden w-fit">
Expand Down Expand Up @@ -141,13 +141,15 @@ const GetGasFee = () => {
)}
</button>
</div>
<div className="my-4 rounded-lg max-h-[600px] overflow-auto bg-[#F6F6F7] text-[#24292E] dark:bg-[#161618] dark:text-[#E1E4E8]">
<div className="my-4 rounded-lg bg-[#F6F6F7] text-[#24292E] dark:bg-[#161618] dark:text-[#E1E4E8]">
<div className="px-5 border-b border-[#e2e2e3] dark:border-black">
<span className="inline-block border-b-2 border-[#3451b2] dark:border-[#a8b1ff] text-[14px] leading-[48px]">
Response
</span>
</div>
<pre className="p-5">{JSON.stringify(response, null, 2)}</pre>
<pre className="p-5 max-h-[600px] overflow-auto">
{JSON.stringify(response, null, 2)}
</pre>
</div>
</>
);
Expand Down
12 changes: 7 additions & 5 deletions components/GetTransactions.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ const GetTransactions = () => {

return (
<>
<div className="flex items-center gap-4">
<div className="flex items-center gap-4 max-sm:flex-col max-sm:items-start">
<div className="flex items-center gap-4">
<span>Chain:</span>
<div className="border border-[#e2e2e3] dark:border-[#2e2e32] hover:border-[#3451b2] rounded-lg overflow-hidden w-fit">
Expand All @@ -247,15 +247,15 @@ const GetTransactions = () => {
</select>
</div>
</div>
<div className="flex items-center gap-4">
<div className="flex items-center gap-4 max-sm:flex-col max-sm:items-start max-sm:gap-2">
<span>Address:</span>
<div className="border border-[#e2e2e3] dark:border-[#2e2e32] hover:border-[#3451b2] rounded-lg overflow-hidden w-fit">
<input
type="text"
id="address"
name="Address"
value={address}
className="bg-gray-50 text-gray-900 px-2 py-1 dark:bg-gray-700 dark:placeholder-gray-400 dark:text-white"
className="max-sm:w-[300px] bg-gray-50 text-gray-900 px-2 py-1 dark:bg-gray-700 dark:placeholder-gray-400 dark:text-white"
placeholder="Enter an address"
onChange={(e) => setAddress(e.target.value)}
/>
Expand All @@ -281,13 +281,15 @@ const GetTransactions = () => {
)}
</button>
</div>
<div className="my-4 rounded-lg max-h-[600px] overflow-auto bg-[#F6F6F7] text-[#24292E] dark:bg-[#161618] dark:text-[#E1E4E8]">
<div className="my-4 rounded-lg bg-[#F6F6F7] text-[#24292E] dark:bg-[#161618] dark:text-[#E1E4E8]">
<div className="px-5 border-b border-[#e2e2e3] dark:border-black">
<span className="inline-block border-b-2 border-[#3451b2] dark:border-[#a8b1ff] text-[14px] leading-[48px]">
Response
</span>
</div>
<pre className="p-5">{JSON.stringify(response, null, 2)}</pre>
<pre className="p-5 max-h-[600px] overflow-auto">
{JSON.stringify(response, null, 2)}
</pre>
</div>
</>
);
Expand Down
Loading
Loading