Skip to content

Commit

Permalink
prepare send lovelace
Browse files Browse the repository at this point in the history
  • Loading branch information
jinglescode committed Nov 30, 2022
1 parent dc092fc commit 2377ea0
Show file tree
Hide file tree
Showing 3 changed files with 112 additions and 4 deletions.
@@ -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>
</>
);
}
8 changes: 4 additions & 4 deletions packages/demo/pages/courses/intro-to-web3/common/sidebar.tsx
Expand Up @@ -60,10 +60,10 @@ export default function Sidebar({}) {
label: 'Basic transactions',
url: 'basic-transactions',
children: [
{
label: 'Lovelace from faucet',
url: 'get-lovelace',
},
// {
// label: 'Lovelace from faucet',
// url: 'get-lovelace',
// },
{
label: 'Send lovelace',
url: 'send-lovelace',
Expand Down
51 changes: 51 additions & 0 deletions packages/demo/pages/courses/intro-to-web3/welcome/template.tsx
@@ -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>
</>
);
}

0 comments on commit 2377ea0

Please sign in to comment.