-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #167 from figment-networks/LEA-415
Remove dynamic routing and loading
- Loading branch information
Showing
20 changed files
with
534 additions
and
401 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
/// <reference types="next" /> | ||
/// <reference types="next/types/global" /> | ||
/// <reference types="next/image-types/global" /> | ||
|
||
// NOTE: This file should not be edited | ||
// see https://nextjs.org/docs/basic-features/typescript for more information. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import Head from 'next/head'; | ||
import {CHAINS_CONFIG} from 'lib/constants'; | ||
import {CHAINS, ChainPropT} from 'types'; | ||
import {fetchMarkdownForChainId} from 'utils/markdown'; | ||
import WithLayoutAvalanche from 'components/protocols/avalanche'; | ||
|
||
export async function getStaticProps() { | ||
return { | ||
props: { | ||
chain: CHAINS_CONFIG[CHAINS.AVALANCHE], | ||
markdown: fetchMarkdownForChainId(CHAINS.AVALANCHE), | ||
}, | ||
}; | ||
} | ||
|
||
const Avalanche = (props: ChainPropT) => { | ||
const {chain, markdown} = props; | ||
|
||
return ( | ||
<> | ||
<Head> | ||
<title>{`Figment Learn - ${chain.label} Pathway`}</title> | ||
<meta name="description" content="Generated by create next app" /> | ||
<link rel="icon" href="/favicon.ico" /> | ||
</Head> | ||
<WithLayoutAvalanche chain={chain} markdown={markdown} /> | ||
</> | ||
); | ||
}; | ||
|
||
export default Avalanche; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import Head from 'next/head'; | ||
import {CHAINS_CONFIG} from 'lib/constants'; | ||
import {CHAINS, ChainPropT} from 'types'; | ||
import {fetchMarkdownForChainId} from 'utils/markdown'; | ||
import WithLayoutCelo from 'components/protocols/celo'; | ||
|
||
export async function getStaticProps() { | ||
return { | ||
props: { | ||
chain: CHAINS_CONFIG[CHAINS.CELO], | ||
markdown: fetchMarkdownForChainId(CHAINS.CELO), | ||
}, | ||
}; | ||
} | ||
|
||
const Celo = (props: ChainPropT) => { | ||
const {chain, markdown} = props; | ||
|
||
return ( | ||
<> | ||
<Head> | ||
<title>{`Figment Learn - ${chain.label} Pathway`}</title> | ||
<meta name="description" content="Generated by create next app" /> | ||
<link rel="icon" href="/favicon.ico" /> | ||
</Head> | ||
<WithLayoutCelo chain={chain} markdown={markdown} /> | ||
</> | ||
); | ||
}; | ||
|
||
export default Celo; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import Head from 'next/head'; | ||
import {CHAINS_CONFIG} from 'lib/constants'; | ||
import {CHAINS, ChainPropT} from 'types'; | ||
import {fetchMarkdownForChainId} from 'utils/markdown'; | ||
import WithLayoutCeramic from 'components/protocols/ceramic'; | ||
|
||
export async function getStaticProps() { | ||
return { | ||
props: { | ||
chain: CHAINS_CONFIG[CHAINS.CERAMIC], | ||
markdown: fetchMarkdownForChainId(CHAINS.CERAMIC), | ||
}, | ||
}; | ||
} | ||
|
||
const Ceramic = (props: ChainPropT) => { | ||
const {chain, markdown} = props; | ||
|
||
return ( | ||
<> | ||
<Head> | ||
<title>{`Figment Learn - ${chain.label} Pathway`}</title> | ||
<meta name="description" content="Generated by create next app" /> | ||
<link rel="icon" href="/favicon.ico" /> | ||
</Head> | ||
<WithLayoutCeramic chain={chain} markdown={markdown} /> | ||
</> | ||
); | ||
}; | ||
|
||
export default Ceramic; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import Head from 'next/head'; | ||
import {CHAINS_CONFIG} from 'lib/constants'; | ||
import {CHAINS, ChainPropT} from 'types'; | ||
import {fetchMarkdownForChainId} from 'utils/markdown'; | ||
import WithLayoutNear from 'components/protocols/near'; | ||
|
||
export async function getStaticProps() { | ||
return { | ||
props: { | ||
chain: CHAINS_CONFIG[CHAINS.NEAR], | ||
markdown: fetchMarkdownForChainId(CHAINS.NEAR), | ||
}, | ||
}; | ||
} | ||
|
||
const Near = (props: ChainPropT) => { | ||
const {chain, markdown} = props; | ||
|
||
return ( | ||
<> | ||
<Head> | ||
<title>{`Figment Learn - ${chain.label} Pathway`}</title> | ||
<meta name="description" content="Generated by create next app" /> | ||
<link rel="icon" href="/favicon.ico" /> | ||
</Head> | ||
<WithLayoutNear chain={chain} markdown={markdown} /> | ||
</> | ||
); | ||
}; | ||
|
||
export default Near; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import Head from 'next/head'; | ||
import {CHAINS_CONFIG} from 'lib/constants'; | ||
import {CHAINS, ChainPropT} from 'types'; | ||
import {fetchMarkdownForChainId} from 'utils/markdown'; | ||
import WithLayoutPolkadot from 'components/protocols/polkadot'; | ||
|
||
export async function getStaticProps() { | ||
return { | ||
props: { | ||
chain: CHAINS_CONFIG[CHAINS.POLKADOT], | ||
markdown: fetchMarkdownForChainId(CHAINS.POLKADOT), | ||
}, | ||
}; | ||
} | ||
|
||
const Polkadot = (props: ChainPropT) => { | ||
const {chain, markdown} = props; | ||
|
||
return ( | ||
<> | ||
<Head> | ||
<title>{`Figment Learn - ${chain.label} Pathway`}</title> | ||
<meta name="description" content="Generated by create next app" /> | ||
<link rel="icon" href="/favicon.ico" /> | ||
</Head> | ||
<WithLayoutPolkadot chain={chain} markdown={markdown} /> | ||
</> | ||
); | ||
}; | ||
|
||
export default Polkadot; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import Head from 'next/head'; | ||
import {CHAINS_CONFIG} from 'lib/constants'; | ||
import {CHAINS, ChainPropT} from 'types'; | ||
import {fetchMarkdownForChainId} from 'utils/markdown'; | ||
import WithLayoutPolygon from 'components/protocols/polygon'; | ||
|
||
export async function getStaticProps() { | ||
return { | ||
props: { | ||
chain: CHAINS_CONFIG[CHAINS.POLYGON], | ||
markdown: fetchMarkdownForChainId(CHAINS.POLYGON), | ||
}, | ||
}; | ||
} | ||
|
||
const Polygon = (props: ChainPropT) => { | ||
const {chain, markdown} = props; | ||
|
||
return ( | ||
<> | ||
<Head> | ||
<title>{`Figment Learn - ${chain.label} Pathway`}</title> | ||
<meta name="description" content="Generated by create next app" /> | ||
<link rel="icon" href="/favicon.ico" /> | ||
</Head> | ||
<WithLayoutPolygon chain={chain} markdown={markdown} /> | ||
</> | ||
); | ||
}; | ||
|
||
export default Polygon; |
Oops, something went wrong.