Skip to content

Commit

Permalink
feat: main page (#432)
Browse files Browse the repository at this point in the history
  • Loading branch information
FrancescoXX committed Mar 12, 2023
1 parent fa5c69c commit 91fad8b
Show file tree
Hide file tree
Showing 28 changed files with 437 additions and 727 deletions.
8 changes: 0 additions & 8 deletions docs/Solana/_category_.json

This file was deleted.

8 changes: 0 additions & 8 deletions docs/TwitterPosts/_category_.json

This file was deleted.

424 changes: 0 additions & 424 deletions docs/TwitterPosts/twitter-posts.md

This file was deleted.

6 changes: 1 addition & 5 deletions docs/blockchains/_category_.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
{
"label": "Blockchains",
"position": 6,
"link": {
"type": "generated-index",
"description": "Blockchains"
}
"position": 6
}
2 changes: 2 additions & 0 deletions docs/blockchains/blockchains.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
sidebar_position: 1


---

# Blockchains
Expand Down
File renamed without changes.
8 changes: 2 additions & 6 deletions docs/polygon/polygon.md → docs/blockchains/polygon.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
---
sidebar_position: 1
sidebar_position: 2
---

# ❇ Polygon
<!-- <div align="center">
<img src="assets/polygon.png">
</div> -->

# Polygon

Polygon (formerly MATIC Network) is an Indian blockchain scalability platform. It addresses the challenges faced by Ethereum such as high fees, poor user experience, and low transaction count per second. One of the methods used to address these issues is providing a framework for Proof of Stake transactions.

Expand Down
4 changes: 2 additions & 2 deletions docs/Solana/solana.md → docs/blockchains/solana.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
sidebar_position: 1
sidebar_position: 3
---

# 🔮 Solana
# Solana

![image](https://user-images.githubusercontent.com/89864818/193443511-1a552e0f-199f-465d-a492-187aca0620bf.png)
Solana is a public blockchain platform with smart contract functionality. Its native cryptocurrency is SOL.
Expand Down
8 changes: 0 additions & 8 deletions docs/ethereum/_category_.json

This file was deleted.

8 changes: 0 additions & 8 deletions docs/flow/_category_.json

This file was deleted.

16 changes: 0 additions & 16 deletions docs/flow/flow.md

This file was deleted.

8 changes: 0 additions & 8 deletions docs/how-to-start-blockchain/_category_.json

This file was deleted.

47 changes: 0 additions & 47 deletions docs/intro.md

This file was deleted.

156 changes: 80 additions & 76 deletions ...art-blockchain/how-to-start-blockchain.md → docs/introduction.md

Large diffs are not rendered by default.

8 changes: 0 additions & 8 deletions docs/polygon/_category_.json

This file was deleted.

8 changes: 0 additions & 8 deletions docs/tezos/_category_.json

This file was deleted.

17 changes: 0 additions & 17 deletions docs/tezos/tezos.md

This file was deleted.

6 changes: 3 additions & 3 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const config = {
baseUrl: "/",
onBrokenLinks: "throw",
onBrokenMarkdownLinks: "warn",
favicon: "img/favicon.ico",
favicon: "src/img/favicon-blue.ico",

// GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these.
Expand Down Expand Up @@ -87,7 +87,7 @@ const config = {
items: [
{
type: "doc",
docId: "intro",
docId: "introduction",
position: "left",
label: "Resources",
},
Expand All @@ -107,7 +107,7 @@ const config = {
items: [
{
label: "Tutorial",
to: "/docs/intro",
to: "/docs/introduction",
},
],
},
Expand Down
83 changes: 49 additions & 34 deletions src/components/HomepageFeatures/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,58 +4,73 @@ import styles from './styles.module.css';

const FeatureList = [
{
title: 'Easy to Use',
Svg: require('@site/static/img/undraw_docusaurus_mountain.svg').default,
description: (
<>
This is a simple and easy to use website to find resources for web3
</>
),
title: 'Getting Started',
icon: 'img/icons/rocket.svg',
items: [
{url: "docs/introduction", text: "Start here"}
]
},
{
title: 'Managed by a community',
Svg: require('@site/static/img/undraw_docusaurus_tree.svg').default,
description: (
<>
The 4c community is the community behind the free web3 resources site
</>
),
title: 'Beginner',
icon: 'img/icons/rocket.svg',
items: [
{url: "docs/introduction", text: "Beginner"}
]
},
{
title: 'Powered by Docusaurus',
Svg: require('@site/static/img/undraw_docusaurus_react.svg').default,
description: (
<>
The React Docusaurus framework for making documentation is what this site was built with.
</>
),
title: 'Intermediate',
icon: 'img/icons/rocket.svg',
items: [
{url: "docs/introduction", text: "Intermediate"}
]
},
{
title: 'Advanced',
icon: 'img/icons/rocket.svg',
items: [
{url: "docs/introduction", text: "Advanced"}
]
},

];

function Feature({Svg, title, description}) {
function FeatureItem({url, text}){
return (
<li><a className={styles.listContainerLink} href={url}>{text}</a></li>
);
}


function Feature({title, icon, items }) {


return (
<div className={clsx('col col--4')}>
{/* <div className="text--center">
<Svg className={styles.featureSvg} role="img" />
</div> */}
<div className="text--center padding-horiz--md ">
<h3>{title}</h3>
<p>{description}</p>
<article className={clsx('col col--4')}>
<div className={styles.homecard}>
<img src={icon} className={styles.homeIcon}></img>
<h2>{title}</h2>
<div className={styles.listContainer}>
<ul>
{items.map((props, idx) => (
<FeatureItem key={idx} {...props} />
))}
</ul>
</div>
</div>
</div>

</article>
);
}


export default function HomepageFeatures() {
return (
<section className={styles.features}>
<div className="container">
<div className="row">
<ul className={styles.grid3col}>
{FeatureList.map((props, idx) => (
<Feature key={idx} {...props} />
))}
</div>
</div>
</ul>
</section>
);
}
Loading

2 comments on commit 91fad8b

@vercel
Copy link

@vercel vercel bot commented on 91fad8b Mar 12, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 91fad8b Mar 12, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.