|
1 | 1 | import React from 'react';
|
2 |
| -import clsx from 'clsx'; |
3 |
| -import styles from './styles.module.css'; |
| 2 | +import '../../css/homepage-features.css'; |
| 3 | +import Link from '@docusaurus/Link'; |
4 | 4 |
|
5 | 5 | type FeatureItem = {
|
6 | 6 | title: string;
|
| 7 | + link: string; |
7 | 8 | Svg: React.ComponentType<React.ComponentProps<'svg'>>;
|
8 | 9 | description: JSX.Element;
|
9 | 10 | };
|
10 | 11 |
|
11 | 12 | const FeatureList: FeatureItem[] = [
|
12 | 13 | {
|
13 |
| - title: 'Wasm + EVM', |
14 |
| - Svg: require('@site/static/img/wasm-evm.svg').default, |
| 14 | + title: 'Start Building', |
| 15 | + link: '/docs/quickstart/', |
| 16 | + Svg: require('@site/static/img/wrench.svg').default, |
15 | 17 | description: (
|
16 | 18 | <>
|
17 |
| - Focus on developing your dapps, and well handle the rest. Astar built with Substrate, a blazing fast and modular blockchain framework |
18 |
| - built by Parity and written in Rust. |
| 19 | + This section gives you the resources you need to get started testing, |
| 20 | + deploying, and interacting with smart contracts on the network. |
19 | 21 | </>
|
20 | 22 | ),
|
21 | 23 | },
|
22 | 24 | {
|
23 |
| - title: 'Multi-Chain', |
24 |
| - Svg: require('@site/static/img/multichain.svg').default, |
| 25 | + title: 'Use EVM', |
| 26 | + link: '/docs/EVM/', |
| 27 | + Svg: require('@site/static/img/evm.svg').default, |
25 | 28 | description: (
|
26 | 29 | <>
|
27 |
| - Astar is a Polkadot parachain, providing access to an advanced cross-chain protocol called XCMP. |
| 30 | + Dive deeper into EVM on Astar and explains how EVM contracts can |
| 31 | + interact with other non-EVM modules through precompiles. |
28 | 32 | </>
|
29 | 33 | ),
|
30 | 34 | },
|
31 | 35 | {
|
32 |
| - title: 'Simplicity', |
33 |
| - Svg: require('@site/static/img/simple.svg').default, |
| 36 | + title: 'Use WebAssembly', |
| 37 | + link: '/docs/wasm/', |
| 38 | + Svg: require('@site/static/img/wasm.svg').default, |
34 | 39 | description: (
|
35 | 40 | <>
|
36 |
| - Astar was designed from the ground up to make it simple for developers to deploy |
37 |
| - their dapps and interact with other chains. |
| 41 | + Provide an overview of ink! and ask! WASM contract frameworks, examples |
| 42 | + for each framework,developer tooling and compiling Solidity to WASM. |
| 43 | + </> |
| 44 | + ), |
| 45 | + }, |
| 46 | + { |
| 47 | + title: 'Run A Node', |
| 48 | + link: '/docs/nodes/', |
| 49 | + Svg: require('@site/static/img/node.svg').default, |
| 50 | + description: ( |
| 51 | + <> |
| 52 | + Explain how to run full nodes, collators, indexers, and everything you |
| 53 | + need to know related to infrastructure. |
| 54 | + </> |
| 55 | + ), |
| 56 | + }, |
| 57 | + { |
| 58 | + title: 'Learn Cross Chain Message (XCM)', |
| 59 | + link: '/docs/xcm/', |
| 60 | + Svg: require('@site/static/img/broadcast.svg').default, |
| 61 | + description: ( |
| 62 | + <> |
| 63 | + Explain how XCM is used in Astar and how developers can use it to |
| 64 | + interact with the rest of the Polkadot network. |
| 65 | + </> |
| 66 | + ), |
| 67 | + }, |
| 68 | + { |
| 69 | + title: 'Integrate Toolings', |
| 70 | + link: '/docs/integrations/', |
| 71 | + Svg: require('@site/static/img/tool.svg').default, |
| 72 | + description: ( |
| 73 | + <> |
| 74 | + Provide relevant information about the wallets, bridges, indexers, and |
| 75 | + oracles that are integrated with the network. |
38 | 76 | </>
|
39 | 77 | ),
|
40 | 78 | },
|
41 | 79 | ];
|
42 | 80 |
|
43 |
| -function Feature({title, Svg, description}: FeatureItem) { |
| 81 | +function Feature({ title, Svg, description, link }: FeatureItem) { |
44 | 82 | return (
|
45 |
| - <div className={clsx('col col--4')}> |
46 |
| - <div className="text--center"> |
47 |
| - <Svg className={styles.featureSvg} role="img" /> |
| 83 | + <Link to={link} className="box"> |
| 84 | + <div className="row--title"> |
| 85 | + <Svg className="icon" role="img" /> |
| 86 | + <span className="text--title">{title}</span> |
48 | 87 | </div>
|
49 |
| - <div className="text--center padding-horiz--md"> |
50 |
| - <h3>{title}</h3> |
51 |
| - <p>{description}</p> |
| 88 | + <div className="row--description"> |
| 89 | + <span className="text--description">{description}</span> |
52 | 90 | </div>
|
53 |
| - </div> |
| 91 | + </Link> |
54 | 92 | );
|
55 | 93 | }
|
56 | 94 |
|
57 | 95 | export default function HomepageFeatures(): JSX.Element {
|
58 | 96 | return (
|
59 |
| - <section className={styles.features}> |
60 |
| - <div className="container"> |
61 |
| - <div className="row"> |
62 |
| - {FeatureList.map((props, idx) => ( |
63 |
| - <Feature key={idx} {...props} /> |
64 |
| - ))} |
65 |
| - </div> |
| 97 | + <section className="section--front-page"> |
| 98 | + <div className="container--front-page"> |
| 99 | + {FeatureList.map((props, idx) => ( |
| 100 | + <Feature key={idx} {...props} /> |
| 101 | + ))} |
66 | 102 | </div>
|
67 | 103 | </section>
|
68 | 104 | );
|
|
0 commit comments