From cf7637bda716e95404afbeb1f0e61b5a9809d9e6 Mon Sep 17 00:00:00 2001 From: Daniel Helm Date: Sat, 5 Aug 2023 17:15:44 -0500 Subject: [PATCH 1/2] developer doc content updates, fix frontpage links --- astro-i18next.config.ts | 2 +- public/locales/en/translation.json | 22 +++- src/components/ClickToZoom.astro | 4 +- src/config/sidebar.ts | 79 ++++++++++-- .../developers/_images/injectedProviderMM.png | Bin 0 -> 16168 bytes .../developers/_images/mmNetworkSelection.png | Bin 0 -> 23502 bytes .../en/developers/alpha-testnet-contracts.mdx | 70 ---------- .../en/developers/developer-quickstart.mdx | 121 +++++++++++------- ...dx => ethereum-and-scroll-differences.mdx} | 60 +++++---- src/content/docs/en/developers/index.mdx | 18 ++- .../erc1155-token-bridge.mdx | 4 +- .../l1-and-l2-bridging/erc721-nft-bridge.mdx | 2 +- .../eth-and-erc20-token-bridge.mdx | 4 +- .../the-scroll-messenger.mdx | 2 +- .../docs/en/developers/scroll-contracts.mdx | 94 ++++++++++++++ .../developers/verifying-smart-contracts.mdx | 24 ++-- src/pages/en/home/QuickStart.astro | 16 +-- 17 files changed, 332 insertions(+), 190 deletions(-) create mode 100644 src/content/docs/en/developers/_images/injectedProviderMM.png create mode 100644 src/content/docs/en/developers/_images/mmNetworkSelection.png delete mode 100644 src/content/docs/en/developers/alpha-testnet-contracts.mdx rename src/content/docs/en/developers/{ethereum-and-alpha-testnet-differences.mdx => ethereum-and-scroll-differences.mdx} (56%) create mode 100644 src/content/docs/en/developers/scroll-contracts.mdx diff --git a/astro-i18next.config.ts b/astro-i18next.config.ts index 539545585..a5a275af0 100644 --- a/astro-i18next.config.ts +++ b/astro-i18next.config.ts @@ -2,5 +2,5 @@ export default { defaultLocale: "en", showDefaultLocale: true, - locales: ["en", "zh"], + locales: ["en", "zh", "es"], } diff --git a/public/locales/en/translation.json b/public/locales/en/translation.json index 34daca3ae..f80397d00 100644 --- a/public/locales/en/translation.json +++ b/public/locales/en/translation.json @@ -67,15 +67,27 @@ "buildingOnScroll": "Building on Scroll", "developerQuickstart": "Developer Quickstart", "verifyingSmartContracts": "Verifying Smart Contracts", - "alphaTestnetContracts": "Alpha Testnet Contracts", - "integrations": "Integrations", - "ethereum&AlphaTestnetDifferences": "Ethereum & Alpha Testnet Differences", + "scrollContracts": "Scroll Contracts", + "ethereumAndScrollDifferences": "Ethereum & Scroll Differences", + "l1AndL2Bridging": "L1 & L2 Bridging", + "ethAndErc20TokenBridge": "ETH & ERC20 Token Bridge", + "erc721NftBridge": "ERC721 NFT Bridge", + "erc1155TokenBridge": "ERC1155 Token Bridge", + "theScrollMessenger": "The Scroll Messenger", + "transactionFeesOnScroll": "Transaction Fees on Scroll", + "l2Fee": "L2 Fee", + "l1Fee": "L1 Fee", + "gasOracle": "Gas Oracle", + "future": "Future", "guides": "Guides", "contractDeploymentTutorial": "Contract Deployment Tutorial", + "crossChainInteraction": "Greeting Contract with Cross-chain Interaction", + "bridgingERC20TokenThroughCustomGateway": "Bridging ERC20 Token through Custom Gateway", + "bridgingERC721NftThroughCustomGateway": "Bridging ERC721 NFT through Custom Gateway", + "bridgingERC1155ThroughCustomGateway": "Bridging ERC1155 through Custom Gateway", + "estimatingGasAndTxFees": "Estimating Gas & Tx Fees", "resources": "Resources", "rollupExplorer": "Rollup Explorer", - "alphaBlockExplorer": "Alpha Block Explorer", - "goerliBlockExplorer": "Goerli Block Explorer", "scrollSepoliaBlockExplorer": "Scroll Sepolia Explorer", "sepoliaBlockExplorer": "Sepolia Explorer" }, diff --git a/src/components/ClickToZoom.astro b/src/components/ClickToZoom.astro index 47ecc9fc1..b4a181250 100644 --- a/src/components/ClickToZoom.astro +++ b/src/components/ClickToZoom.astro @@ -18,7 +18,9 @@ const { src, alt } = Astro.props as Props .click-to-zoom { cursor: zoom-in; height: auto; - width: 100%; + max-width: 100%; + margin: 3em auto !important; + display: block; }