Skip to content

Commit

Permalink
feat(ux): suggest ipfs-desktop when no node is found (#726)
Browse files Browse the repository at this point in the history
* feat(ux): mention ipfs-desktop when no node is found
* style: tweaked copy on welcome screen
* style: simplify cli instructions @ welcome screen
  • Loading branch information
lidel authored Jun 7, 2019
1 parent 9ebc2f6 commit adefd87
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 13 deletions.
20 changes: 12 additions & 8 deletions add-on/_locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -543,17 +543,21 @@
"message": "Discover what you <0>can do with Companion</0> and dive into the distributed web with IPFS!",
"description": "Ready message copy (page_landingWelcome_welcome_discover)"
},
"page_landingWelcome_installSteps_title": {
"message": "Is your IPFS daemon running?",
"page_landingWelcome_installSteps_notRunning_title": {
"message": "IPFS does not seem to be running",
"description": "Install steps title (page_landingWelcome_installSteps_title)"
},
"page_landingWelcome_installSteps_install": {
"message": "If you haven't installed IPFS please do so <0>with these instructions</0>.",
"description": "Install steps copy (page_landingWelcome_installSteps_install)"
"page_landingWelcome_installSteps_desktop_install": {
"message": "Get <0>IPFS Desktop</0> and you will be all set!",
"description": "Install steps copy (page_landingWelcome_installSteps_install_desktop)"
},
"page_landingWelcome_installSteps_cli_title": {
"message": "Prefer to use the command line?",
"description": "Install steps title (page_landingWelcome_installSteps_title_desktop)"
},
"page_landingWelcome_installSteps_run": {
"message": "Then make sure to have an IPFS daemon running in your terminal:",
"description": "Install steps run message (page_landingWelcome_installSteps_run)"
"page_landingWelcome_installSteps_cli_install": {
"message": "Follow <0>these instructions</0>, then start an IPFS daemon in your terminal:",
"description": "Install steps copy (page_landingWelcome_installSteps_install)"
},
"page_landingWelcome_resources_title_new_ipfs": {
"message": "New to IPFS?",
Expand Down
11 changes: 6 additions & 5 deletions add-on/src/landing-pages/welcome/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,11 @@ const renderInstallSteps = (i18n, isIpfsOnline) => {

return html`
<div class="w-80 mt3 flex flex-column transition-all ${stateUnknown && 'state-unknown'}">
<p class="mt0 mb2 yellow f4 lh-title">${i18n.getMessage('page_landingWelcome_installSteps_title')}</p>
<p class="${copyClass}">${renderTranslatedLinks('page_landingWelcome_installSteps_install', ['https://docs.ipfs.io/introduction/install/'], `target="_blank" class="${anchorClass}"`)}</p>
<p class="${copyClass}">${i18n.getMessage('page_landingWelcome_installSteps_run')}</p>
<div className='db w-100 mt3 pa3 bg-black-70 bt bw4 br2 snow f7'>
<p class="mt0 mb2 yellow f4 lh-title">${i18n.getMessage('page_landingWelcome_installSteps_notRunning_title')}</p>
<p class="${copyClass}">${renderTranslatedLinks('page_landingWelcome_installSteps_desktop_install', ['https://github.com/ipfs-shipyard/ipfs-desktop#ipfs-desktop'], `target="_blank" class="${anchorClass}"`)}</p>
<p class="mb2 yellow f4 lh-title">${i18n.getMessage('page_landingWelcome_installSteps_cli_title')}</p>
<p class="${copyClass}">${renderTranslatedLinks('page_landingWelcome_installSteps_cli_install', ['https://docs.ipfs.io/introduction/usage/'], `target="_blank" class="${anchorClass}"`)}</p>
<div className='db w-100 mw6 mv3 pa3 bg-black-70 bt bw4 br2 snow f7'>
<code className='db'>$ ipfs daemon</code>
<code className='db'>Initializing daemon...</code>
<code className='db'>API server listening on /ip4/127.0.0.1/tcp/5001</code>
Expand Down Expand Up @@ -128,7 +129,7 @@ const renderResources = (i18n) => {
<p class="${copyClass}">${renderTranslatedLinks('page_landingWelcome_resources_got_questions', ['https://discuss.ipfs.io'], `target="_blank" class="${anchorClass}"`)}</p>
<p class="${labelClass}">${i18n.getMessage('page_landingWelcome_resources_title_want_to_help')}</p>
<p class="${copyClass} mv0">${renderTranslatedLinks('page_landingWelcome_resources_want_to_help', ['https://github.com/ipfs/community/#community', 'https://github.com/ipfs/ipfs#project-links', 'https://github.com/ipfs/docs', 'https://www.transifex.com/ipfs/public', 'https://discuss.ipfs.io/c/help'], `target="_blank" class="${anchorClass}"`)}</p>
<p class="${copyClass} mv0">${renderTranslatedLinks('page_landingWelcome_resources_want_to_help', ['https://github.com/ipfs/community/#community', 'https://github.com/ipfs/ipfs#project-links', 'https://github.com/ipfs/docs', 'https://github.com/ipfs/i18n#ipfs-translation-project--%EF%B8%8F', 'https://discuss.ipfs.io/c/help'], `target="_blank" class="${anchorClass}"`)}</p>
</div>
`
}
Expand Down

0 comments on commit adefd87

Please sign in to comment.