Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dc092fc
commit 2377ea0
Showing
3 changed files
with
112 additions
and
4 deletions.
There are no files selected for viewing
57 changes: 57 additions & 0 deletions
57
packages/demo/pages/courses/intro-to-web3/basic-transactions/send-lovelace.tsx
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,57 @@ | ||
import type { NextPage } from 'next'; | ||
import Link from 'next/link'; | ||
import CourseLayout from '../../../../components/courses/layout'; | ||
import Codeblock from '../../../../components/ui/codeblock'; | ||
import Sidebar from './../common/sidebar'; | ||
|
||
const CoursesSendLovelacePage: NextPage = () => { | ||
return ( | ||
<CourseLayout | ||
coursesSidebar={<Sidebar />} | ||
title={`Send Lovelace`} | ||
desc={`A nice description here`} | ||
// youtubeId="ITxcbrfEcIY" | ||
> | ||
<Content /> | ||
</CourseLayout> | ||
); | ||
}; | ||
|
||
export default CoursesSendLovelacePage; | ||
|
||
function Content() { | ||
return ( | ||
<> | ||
<p>some intro</p> | ||
<p>what is lovelace</p> | ||
<p> | ||
what is transaction, since this is first time transaction is mentioned | ||
in the course | ||
</p> | ||
<p>If need image, put image into <code>public/courses/intro-to-web3/</code>:</p> | ||
<figure> | ||
<img src="/courses/intro-to-web3/starter-template.png" alt="" /> | ||
<figcaption>Visual Studio Code workspace setup</figcaption> | ||
</figure> | ||
<h3>Concise heading</h3> | ||
<p>some more words.</p> | ||
<p>if need inline code to say <code>BrowserWallet</code>.</p> | ||
<p>If need code</p> | ||
<Codeblock | ||
data={`tx.sendLovelace(address: string, lovelace: string);`} | ||
isJson={false} | ||
/> | ||
<p> | ||
If need link to internal page:{' '} | ||
<Link href="/starter-templates">starter templates</Link> | ||
</p> | ||
<p> | ||
if need external page{' '} | ||
<a href="http://localhost:3000" target="_blank" rel="noreferrer"> | ||
http://localhost:3000 | ||
</a> | ||
. | ||
</p> | ||
</> | ||
); | ||
} |
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
51 changes: 51 additions & 0 deletions
51
packages/demo/pages/courses/intro-to-web3/welcome/template.tsx
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,51 @@ | ||
import type { NextPage } from 'next'; | ||
import Link from 'next/link'; | ||
import CourseLayout from '../../../../components/courses/layout'; | ||
import Codeblock from '../../../../components/ui/codeblock'; | ||
import Sidebar from './../common/sidebar'; | ||
|
||
const CoursesSendLovelacePage: NextPage = () => { | ||
return ( | ||
<CourseLayout | ||
coursesSidebar={<Sidebar />} | ||
title={`Send Lovelace`} | ||
desc={`A nice description here`} | ||
// youtubeId="ITxcbrfEcIY" | ||
> | ||
<Content /> | ||
</CourseLayout> | ||
); | ||
}; | ||
|
||
export default CoursesSendLovelacePage; | ||
|
||
function Content() { | ||
return ( | ||
<> | ||
<p>say some intro</p> | ||
<p>If need image:</p> | ||
<figure> | ||
<img src="/courses/intro-to-web3/starter-template.png" alt="" /> | ||
<figcaption>Visual Studio Code workspace setup</figcaption> | ||
</figure> | ||
<h3>If need heading</h3> | ||
<p>some more words.</p> | ||
<p> | ||
If need link to internal page:{' '} | ||
<Link href="/starter-templates">starter templates</Link> | ||
</p> | ||
<p>If need code</p> | ||
<Codeblock | ||
data={'npx create-mesh-app . -t starter -s next -l ts'} | ||
isJson={false} | ||
/> | ||
<p> | ||
if need external page{' '} | ||
<a href="http://localhost:3000" target="_blank" rel="noreferrer"> | ||
http://localhost:3000 | ||
</a> | ||
. | ||
</p> | ||
</> | ||
); | ||
} |