Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add launchpad download section (#195)
* feat: add launchpad download section Adds section for Launchpad downloads. TODO: Js and YML needs to be updated to point to the launchpad binaries, with correct filters (when they exist) * feat: add launchpad downloads (#200) * feat: add launchpad downloads * feat: downloads updates * feat: replace testnet with stagenet * fix: remove testnet * Apply suggestions from code review Fixing links * feat: download button error handling (#201) --------- Co-authored-by: Erika <87762061+NovaT82@users.noreply.github.com>
- Loading branch information
Showing
17 changed files
with
361 additions
and
98 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
- type: Ubuntu | ||
elementID: ubuntu | ||
binaryDivID: linuxBinID | ||
archDropdownID: linuxArchID | ||
networkDropdownID: linuxNetworkID | ||
elementTabButtonID: ubuntu-btn | ||
title: Minotari Launchpad for Ubuntu | ||
subtitle: Download the binary, click through to install. Then you'll be | ||
automatically connected to the Minotari blockchain. | ||
downloadBtnID: linuxDL | ||
checksumDivID: linuxCSID | ||
version: Ubuntu 18.04 and higher | ||
source: https://github.com/tari-project/tari-launchpad | ||
background-image: /assets/img/downloads/launchpad-ubuntu.mp4 | ||
video-poster: /assets/img/downloads/ubuntu.png | ||
tutorial-video: /launchpad-guide/ | ||
logo: /img/downloads/ubuntu-logo.svg | ||
logo-active: /img/downloads/ubuntu-logo-active.svg | ||
defaultActive: active | ||
ctaText: Download for Ubuntu | ||
filter_spec: ubuntu | ||
archOptions: [{ value: x86_64, label: x86_64 }] | ||
networkOptions: [{ value: nextnet, label: Nextnet }] | ||
- type: Mac | ||
elementID: mac | ||
binaryDivID: osxBinID | ||
archDropdownID: osxArchID | ||
networkDropdownID: osxNetworkID | ||
elementTabButtonID: mac-btn | ||
title: Minotari Launchpad for Mac | ||
subtitle: Download the binary, click through to install. Then you'll be | ||
automatically connected to the Minotari blockchain. | ||
downloadBtnID: osxDL | ||
checksumDivID: osxCSID | ||
version: MacOS 10.15.0 (Catalina) and higher | ||
source: https://github.com/tari-project/tari-launchpad | ||
background-image: /assets/img/downloads/launchpad-mac.mp4 | ||
video-poster: /assets/img/downloads/mac.png | ||
tutorial-video: /launchpad-guide/ | ||
logo: /img/downloads/apple-logo.svg | ||
logo-active: /img/downloads/apple-logo-active.svg | ||
ctaText: Download for Mac | ||
filter_spec: osx-10.15 | ||
archOptions: [{ value: x86_64, label: x86_64 }] | ||
networkOptions: [{ value: nextnet, label: Nextnet }] | ||
- type: Windows | ||
elementID: windows | ||
binaryDivID: windowsBinID | ||
archDropdownID: windowsArchID | ||
networkDropdownID: windowsNetworkID | ||
elementTabButtonID: windows-btn | ||
title: Minotari Launchpad for Windows | ||
subtitle: Download the binary, click through to install. Then you'll be | ||
automatically connected to the Minotari blockchain. | ||
downloadBtnID: windowsDL | ||
checksumDivID: windowsCSID | ||
version: Windows 10 and higher | ||
source: https://github.com/tari-project/tari-launchpad | ||
background-image: /assets/img/downloads/launchpad-windows.mp4 | ||
video-poster: /assets/img/downloads/windows.png | ||
tutorial-video: /launchpad-guide/ | ||
logo: /img/downloads/windows-logo.svg | ||
logo-active: /img/downloads/windows-logo-active.svg | ||
ctaText: Download for Windows | ||
filter_spec: windows | ||
archOptions: [{ value: x64, label: x64 }] | ||
networkOptions: [{ value: nextnet, label: Nextnet }] | ||
- type: Libraries | ||
elementID: support | ||
binaryDivID: libWalletBinID | ||
elementTabButtonID: support-btn | ||
title: Minotari Support Libraries | ||
subtitle: Additional miscellaneous binaries and files to enable developers. | ||
downloadBtnID: null | ||
tutorial-video: /launchpad-guide/ | ||
background-image: /assets/img/downloads/support.mp4 | ||
video-poster: /assets/img/downloads/support.png | ||
logo: /img/downloads/support-logo.svg | ||
logo-active: /img/downloads/support-logo-active.svg | ||
ctaText: Support libraries | ||
filter_spec: libwallet |
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 |
---|---|---|
@@ -0,0 +1,136 @@ | ||
<div class="downloads-container"> | ||
<div class="tab-button-holder"> | ||
{% for os in site.data.suite_downloads %} | ||
{% if os.type != 'Libraries' %} | ||
<div | ||
id="{{ os.elementTabButtonID }}" | ||
class="tab-button" | ||
onclick="selectedOs('{{ os.elementTabButtonID }}','{{ os.elementID }}')" | ||
> | ||
<span> | ||
<img | ||
class="os-logo-img" | ||
src="{{ site.baseurl }}/assets{{os.logo}}" | ||
alt="{{os.elementID}}-Logo" | ||
/> | ||
<img | ||
class="os-logo-img-active" | ||
src="{{ site.baseurl }}/assets{{os.logo-active}}" | ||
alt="{{os.elementID}}-Logo" | ||
/> </span | ||
> | ||
{{ os.type}} | ||
</div> | ||
{% endif %} | ||
{% endfor %} | ||
</div> | ||
|
||
{% for os in site.data.suite_downloads %} | ||
|
||
<div class="download-content" id="{{ os.elementID }}"> | ||
<div class="dl-card"> | ||
<div class="dl-info-holder col-lg-7 col-md-7 col-sm-12"> | ||
<h2 class="dl-title">{{ os.title }}</h2> | ||
<p class="dl-subtitle"> | ||
{{ os.subtitle }} | ||
</p> | ||
{% if os.version %} | ||
<div class="version"> | ||
For {{ os.version }} | ||
|
||
</div> | ||
{% endif %} | ||
|
||
{% if os.downloadBtnID %} | ||
{% if os.networkOptions %} | ||
<div class="dropdown-container"> | ||
<p class="dropdown-label">Network</p> | ||
|
||
<select id="{{os.networkDropdownID}}"> | ||
{% for option in os.networkOptions %} | ||
<option value="{{ option.value }}">{{ option.label }}</option> | ||
{% endfor %} | ||
</select> | ||
</div> | ||
{% endif %} | ||
{% if os.archOptions %} | ||
<div class="dropdown-container"> | ||
<p class="dropdown-label">Architecture</p> | ||
|
||
<select id="{{os.archDropdownID}}"> | ||
{% for option in os.archOptions %} | ||
<option value="{{ option.value }}">{{ option.label }}</option> | ||
{% endfor %} | ||
</select> | ||
</div> | ||
{% endif %} | ||
<a class="btn" id="{{ os.downloadBtnID }}">{{os.ctaText}}</a> | ||
{% endif %} | ||
|
||
{% if os.tutorial-video %} | ||
<a href="{{ os.tutorial-video }}" class="tutorial-video"> | ||
<span | ||
><img | ||
src="{{ site.baseurl }}/assets/img/downloads/video-icon.svg" | ||
alt="" | ||
style="margin-top: -2px; max-width: 30px;" | ||
/></span> | ||
View the installation guide | ||
<br/><br/> | ||
</a> | ||
{% endif %} | ||
|
||
{% if os.source %} | ||
<a href="{{ os.source }}" class="source"> | ||
<span | ||
><img | ||
src="{{ site.baseurl }}/assets/img/downloads/github-logo.svg" | ||
alt="" | ||
style="margin-top: -3px;" | ||
/></span> | ||
Build from source for {{ os.type }} | ||
<br/><br/> | ||
</a> | ||
{% endif %} | ||
|
||
{% if os.checksumDivID %} | ||
<div id="{{ os.checksumDivID }}" class="checksum"></div> | ||
{% endif %} | ||
|
||
</div> | ||
<video class="dl-machine-img" muted autoplay playsinline poster="{{ site.baseurl }}{{os.video-poster}}"> | ||
<source src="{{ site.baseurl }}{{os.background-image}}" type="video/mp4"> | ||
</video> | ||
</div> | ||
|
||
|
||
<div class="past-versions-container"> | ||
<div class="past-versions-header"> | ||
<h2>Past Versions</h2> | ||
{% if os.downloadBtnID %} | ||
<div class="past"> | ||
<p class="select-network">Filter by Network: </p> | ||
{% for network in os.networkOptions %} | ||
<button id="{{ network.value }}" class="chip">{{ network.label }}</button> | ||
{% endfor %} | ||
<button id="all-networks" class="chip">All</button> | ||
</div> | ||
{% endif %} | ||
</div> | ||
<div class="binaries-container"> | ||
<div class="bin-headers"> | ||
<div class="bin-header"> | ||
<div class="header-text">Filename</div> | ||
</div> | ||
<div class="bin-header"> | ||
<div class="header-text">Last modified</div> | ||
</div> | ||
</div> | ||
<div id="{{ os.binaryDivID }}" class="bin-content"> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
{% endfor %} | ||
|
||
</div> |
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 |
---|---|---|
|
@@ -99,7 +99,7 @@ | |
dataKey: "tari-project/wallet-ios", | ||
elementPrefix: "wallet", | ||
} | ||
] | ||
], | ||
} | ||
</script> | ||
|
||
|
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
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.