2020-07-10 22:11:07 -07:00
|
|
|
import React from "react";
|
|
|
|
import clsx from "clsx";
|
|
|
|
import Layout from "@theme/Layout";
|
|
|
|
import Link from "@docusaurus/Link";
|
|
|
|
import useDocusaurusContext from "@docusaurus/useDocusaurusContext";
|
|
|
|
import useBaseUrl from "@docusaurus/useBaseUrl";
|
|
|
|
import styles from "./styles.module.css";
|
|
|
|
|
|
|
|
const features = [
|
|
|
|
{
|
2020-11-03 12:53:17 -08:00
|
|
|
title: <>⛏ Start Building</>,
|
|
|
|
imageUrl: "developing/programming-model/overview",
|
2020-08-04 10:51:25 -07:00
|
|
|
description: <>Get started building your decentralized app or marketplace.</>,
|
2020-07-10 22:11:07 -07:00
|
|
|
},
|
|
|
|
{
|
2020-08-06 12:19:35 -07:00
|
|
|
title: <>🎛 Run a Validator Node</>,
|
2020-08-04 10:51:25 -07:00
|
|
|
imageUrl: "running-validator",
|
|
|
|
description: <>Validate transactions, secure the network, and earn rewards.</>,
|
2020-07-10 22:11:07 -07:00
|
|
|
},
|
|
|
|
{
|
2020-08-04 10:51:25 -07:00
|
|
|
title: <>🏛 Create an SPL Token</>,
|
2020-08-06 12:19:35 -07:00
|
|
|
imageUrl: "https://spl.solana.com/token",
|
2020-07-10 22:11:07 -07:00
|
|
|
description: (
|
|
|
|
<>
|
2020-08-04 10:51:25 -07:00
|
|
|
Launch your own SPL Token, Solana's equivalent of ERC-20.
|
2020-07-10 22:11:07 -07:00
|
|
|
</>
|
|
|
|
),
|
|
|
|
},
|
|
|
|
{
|
2020-08-04 10:51:25 -07:00
|
|
|
title: <>🏦 Integrate an Exchange</>,
|
2020-07-15 13:11:51 -07:00
|
|
|
imageUrl: "integrations/exchange",
|
2020-07-10 22:11:07 -07:00
|
|
|
description: (
|
|
|
|
<>
|
|
|
|
Follow our extensive integration guide to ensure a seamless user
|
|
|
|
experience.
|
|
|
|
</>
|
|
|
|
),
|
|
|
|
},
|
|
|
|
{
|
2020-08-04 10:51:25 -07:00
|
|
|
title: <>📲 Manage a Wallet</>,
|
2020-07-15 13:11:51 -07:00
|
|
|
imageUrl: "wallet-guide",
|
2020-07-10 22:11:07 -07:00
|
|
|
description: (
|
|
|
|
<>
|
2020-08-04 10:51:25 -07:00
|
|
|
Create a wallet, check your balance, and learn about wallet options.
|
2020-07-10 22:11:07 -07:00
|
|
|
</>
|
|
|
|
),
|
|
|
|
},
|
|
|
|
{
|
2020-08-04 10:51:25 -07:00
|
|
|
title: <>🤯 Learn How Solana Works</>,
|
2020-07-15 13:11:51 -07:00
|
|
|
imageUrl: "cluster/overview",
|
2020-07-10 22:11:07 -07:00
|
|
|
description: (
|
|
|
|
<>
|
2020-08-04 10:51:25 -07:00
|
|
|
Get a high-level understanding of Solana's architecture.
|
2020-07-10 22:11:07 -07:00
|
|
|
</>
|
|
|
|
),
|
|
|
|
}, //
|
|
|
|
// {
|
|
|
|
// title: <>Understand Our Economic Design</>,
|
2020-07-17 10:48:07 -07:00
|
|
|
// imageUrl: "implemented-proposals/ed_overview/ed_overview",
|
2020-07-10 22:11:07 -07:00
|
|
|
// description: (
|
|
|
|
// <>
|
|
|
|
// Solana's Economic Design provides a scalable blueprint for long term
|
|
|
|
// economic development and prosperity.
|
|
|
|
// </>
|
|
|
|
// ),
|
|
|
|
// }
|
|
|
|
];
|
|
|
|
|
|
|
|
function Feature({ imageUrl, title, description }) {
|
|
|
|
const imgUrl = useBaseUrl(imageUrl);
|
|
|
|
return (
|
|
|
|
<div className={clsx("col col--4", styles.feature)}>
|
|
|
|
{imgUrl && (
|
|
|
|
<Link className="navbar__link" to={imgUrl}>
|
|
|
|
<div className="card">
|
|
|
|
<div className="card__header">
|
|
|
|
<h3>{title}</h3>
|
|
|
|
</div>
|
|
|
|
<div className="card__body">
|
|
|
|
<p>{description}</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</Link>
|
|
|
|
)}
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
function Home() {
|
|
|
|
const context = useDocusaurusContext();
|
|
|
|
const { siteConfig = {} } = context;
|
|
|
|
return (
|
|
|
|
<Layout
|
|
|
|
title="Homepage"
|
2020-09-16 09:29:48 -07:00
|
|
|
description="Solana Documentation"
|
2020-07-10 22:11:07 -07:00
|
|
|
>
|
|
|
|
{/* <header className={clsx("hero hero--primary", styles.heroBanner)}> */}
|
|
|
|
{/* <div className="container">
|
|
|
|
<h1 className="hero__title">{siteConfig.title}</h1>
|
|
|
|
<p className="hero__subtitle">{siteConfig.tagline}</p> */}
|
|
|
|
{/* <div className={styles.buttons}>
|
|
|
|
<Link
|
|
|
|
className={clsx(
|
|
|
|
'button button--outline button--secondary button--lg',
|
|
|
|
styles.getStarted,
|
|
|
|
)}
|
|
|
|
to={useBaseUrl('docs/')}>
|
|
|
|
Get Started
|
|
|
|
</Link>
|
|
|
|
</div> */}
|
|
|
|
{/* </div> */}
|
|
|
|
{/* </header> */}
|
|
|
|
<main>
|
|
|
|
{features && features.length > 0 && (
|
|
|
|
<section className={styles.features}>
|
|
|
|
<div className="container">
|
|
|
|
<div className="row cards__container">
|
|
|
|
{features.map((props, idx) => (
|
|
|
|
<Feature key={idx} {...props} />
|
|
|
|
))}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
)}
|
|
|
|
</main>
|
|
|
|
</Layout>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
export default Home;
|