2018-08-07 00:51:32 +02:00
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// P A C K A G E S
|
|
|
|
|
|
|
|
const dedent = require("dedent");
|
|
|
|
const html = require("choo-async/html");
|
|
|
|
const raw = require("nanohtml/raw");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// E X P O R T
|
|
|
|
|
2018-08-08 01:15:34 +02:00
|
|
|
module.exports = exports = () => dedent`
|
2018-08-07 00:51:32 +02:00
|
|
|
<section class="tour">
|
|
|
|
<ul class="tour__sidebar">
|
|
|
|
${raw(sidebar())}
|
|
|
|
</ul>
|
2018-08-08 01:15:34 +02:00
|
|
|
<section class="tour__content">${raw(step1())}</section>
|
2018-08-07 00:51:32 +02:00
|
|
|
</section>
|
|
|
|
`;
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-08-08 22:20:53 +02:00
|
|
|
function sidebar() { // TODO: Save tutorial position to localStorage
|
2018-08-07 00:51:32 +02:00
|
|
|
return dedent`
|
2018-08-08 22:20:53 +02:00
|
|
|
<li class="tour__sidebar__step" data-action="tour, step 1" data-step="1">
|
|
|
|
<button type="button">Resolve a claim</button>
|
2018-08-07 00:51:32 +02:00
|
|
|
<span>Get details of media (aka, "claim" metadata)</span>
|
|
|
|
</li>
|
|
|
|
|
2018-08-08 22:20:53 +02:00
|
|
|
<li class="tour__sidebar__step" data-action="tour, step 2" data-step="2">
|
|
|
|
<button type="button">Publish content</button>
|
2018-08-07 00:51:32 +02:00
|
|
|
<span>Create a meme and upload it to the LBRY blockchain</span>
|
|
|
|
</li>
|
|
|
|
|
2018-08-08 22:20:53 +02:00
|
|
|
<li class="tour__sidebar__step" data-action="tour, step 3" data-step="3">
|
|
|
|
<button type="button">Support with LBC</button>
|
2018-08-07 00:51:32 +02:00
|
|
|
<span>Support creators on LBRY with a tip, on us!</span>
|
|
|
|
</li>
|
|
|
|
`;
|
|
|
|
}
|
|
|
|
|
2018-08-08 01:15:34 +02:00
|
|
|
|
|
|
|
|
|
|
|
function step1() {
|
2018-08-07 00:51:32 +02:00
|
|
|
return html`
|
2018-08-08 01:15:34 +02:00
|
|
|
<div class="tour__content__urlbar">
|
2018-08-08 22:20:53 +02:00
|
|
|
<span>lbry://</span><input id="fetch-claim-uri" placeholder=" Enter a LBRY address or select an example below" type="text"/>
|
|
|
|
<button class="button" data-action="execute claim" type="button">Resolve</button>
|
2018-08-08 01:15:34 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="tour__content__trends" id="tour-loader"></div>
|
2018-08-08 22:20:53 +02:00
|
|
|
<div id="tour-results"></div>
|
2018-08-07 00:51:32 +02:00
|
|
|
`;
|
|
|
|
}
|