From 375448f1c27fa3fefc7e9b8091beb0a9065970b5 Mon Sep 17 00:00:00 2001 From: "Hong Jing (Jingles)" Date: Mon, 9 Dec 2024 14:31:17 +0800 Subject: [PATCH] update website --- README.md | 16 +++--- apps/playground/src/components/link/index.tsx | 2 +- .../src/components/site/navbar/index.tsx | 2 +- .../site/navbar/menu-item-dropdown.tsx | 2 +- .../src/components/site/navbar/menu-item.tsx | 2 +- .../site/navbar/submenu-item-dropdown.tsx | 4 +- .../components/site/navbar/submenu-item.tsx | 2 +- apps/playground/src/data/catalyst.ts | 11 ++-- apps/playground/src/data/links-api.ts | 2 +- apps/playground/src/pages/guides/nextjs.mdx | 30 +++++----- apps/playground/src/pages/home/intro.tsx | 4 +- .../src/pages/react/getting-started/index.tsx | 6 +- .../pages/react/getting-started/install.tsx | 28 ---------- .../src/pages/react/getting-started/setup.tsx | 41 ++++++++++++++ .../pages/svelte/getting-started/index.tsx | 6 +- .../{install.tsx => setup.tsx} | 21 +++++-- apps/playground/tailwind.config.js | 20 +++---- packages/mesh-core/README.md | 56 +++++++++++++------ scripts/mesh-cli/src/actions/create.ts | 2 +- 19 files changed, 153 insertions(+), 104 deletions(-) delete mode 100644 apps/playground/src/pages/react/getting-started/install.tsx create mode 100644 apps/playground/src/pages/react/getting-started/setup.tsx rename apps/playground/src/pages/svelte/getting-started/{install.tsx => setup.tsx} (55%) diff --git a/README.md b/README.md index ae8e261ed..d0358fd71 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,12 @@ Mesh is an open-source library designed to make building dApps accessible. Wheth Explore the features on [Mesh Playground](https://meshjs.dev/). +Instant setup a new project with a single command using Mesh CLI and start building: + +``` +npx meshjs your-app-name +``` + ## What's inside? ### Architecture Overview @@ -109,15 +115,7 @@ Here's a list of open-source smart contracts, complete with documentation, live | Swap | Facilitates the exchange of assets between two parties | [[demo](https://meshjs.dev/smart-contracts/swap)] [[source](https://github.com/MeshJS/mesh/tree/main/packages/mesh-contract/src/swap)] [[docs](https://docs.meshjs.dev/contracts/classes/MeshSwapContract)] | | Vesting | Allows users to lock tokens for a period of time and withdraw the funds after the lockup period | [[demo](https://meshjs.dev/smart-contracts/vesting)] [[source](https://github.com/MeshJS/mesh/tree/main/packages/mesh-contract/src/vesting)] [[docs](https://docs.meshjs.dev/contracts/classes/MeshVestingContract)] | -## Getting Started - -### Usage - -To use Mesh in your project, run the following command to install the core package: - -``` -npm install @meshsdk/core -``` +## Usage ### Install diff --git a/apps/playground/src/components/link/index.tsx b/apps/playground/src/components/link/index.tsx index b0f298f78..c80a20ba5 100644 --- a/apps/playground/src/components/link/index.tsx +++ b/apps/playground/src/components/link/index.tsx @@ -17,7 +17,7 @@ export default function Link({ return ( diff --git a/apps/playground/src/components/site/navbar/index.tsx b/apps/playground/src/components/site/navbar/index.tsx index 9d386ef70..106ba116d 100644 --- a/apps/playground/src/components/site/navbar/index.tsx +++ b/apps/playground/src/components/site/navbar/index.tsx @@ -90,7 +90,7 @@ export default function Navbar() { {!isSSR && (