for #20: start 3rd onboarding panel; update images
This commit is contained in:
parent
9b505a2c7d
commit
670a081f8a
5 changed files with 35 additions and 5 deletions
Binary file not shown.
Before Width: | Height: | Size: 3 KiB After Width: | Height: | Size: 27 KiB |
Binary file not shown.
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 28 KiB |
BIN
webextension/img/onboarding-3.png
Normal file
BIN
webextension/img/onboarding-3.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 22 KiB |
|
@ -11,6 +11,7 @@ const DEFAULT_ICON = "circle";
|
|||
// List of panels
|
||||
const P_ONBOARDING_1 = "onboarding1";
|
||||
const P_ONBOARDING_2 = "onboarding2";
|
||||
const P_ONBOARDING_3 = "onboarding3";
|
||||
const P_CONTAINERS_LIST = "containersList";
|
||||
const P_CONTAINERS_EDIT = "containersEdit";
|
||||
const P_CONTAINER_INFO = "containerInfo";
|
||||
|
@ -31,8 +32,10 @@ const Logic = {
|
|||
|
||||
// Routing to the correct panel.
|
||||
.then(() => {
|
||||
if (localStorage.getItem("onboarded2")) {
|
||||
if (localStorage.getItem("onboarded3")) {
|
||||
this.showPanel(P_CONTAINERS_LIST);
|
||||
} else if (localStorage.getItem("onboarded2")) {
|
||||
this.showPanel(P_ONBOARDING_3);
|
||||
} else if (localStorage.getItem("onboarded1")) {
|
||||
this.showPanel(P_ONBOARDING_2);
|
||||
} else {
|
||||
|
@ -133,7 +136,7 @@ Logic.registerPanel(P_ONBOARDING_1, {
|
|||
// This method is called when the object is registered.
|
||||
initialize() {
|
||||
// Let's move to the next panel.
|
||||
document.querySelector("#onboarding-next-button").addEventListener("click", () => {
|
||||
document.querySelector("#onboarding-start-button").addEventListener("click", () => {
|
||||
localStorage.setItem("onboarded1", true);
|
||||
Logic.showPanel(P_ONBOARDING_2);
|
||||
});
|
||||
|
@ -154,8 +157,29 @@ Logic.registerPanel(P_ONBOARDING_2, {
|
|||
// This method is called when the object is registered.
|
||||
initialize() {
|
||||
// Let's move to the containers list panel.
|
||||
document.querySelector("#onboarding-done-button").addEventListener("click", () => {
|
||||
document.querySelector("#onboarding-next-button").addEventListener("click", () => {
|
||||
localStorage.setItem("onboarded2", true);
|
||||
Logic.showPanel(P_ONBOARDING_3);
|
||||
});
|
||||
},
|
||||
|
||||
// This method is called when the panel is shown.
|
||||
prepare() {
|
||||
return Promise.resolve(null);
|
||||
},
|
||||
});
|
||||
|
||||
// P_ONBOARDING_2: Second page for Onboarding.
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
Logic.registerPanel(P_ONBOARDING_3, {
|
||||
panelSelector: ".onboarding-panel-3",
|
||||
|
||||
// This method is called when the object is registered.
|
||||
initialize() {
|
||||
// Let's move to the containers list panel.
|
||||
document.querySelector("#onboarding-done-button").addEventListener("click", () => {
|
||||
localStorage.setItem("onboarded3", true);
|
||||
Logic.showPanel(P_CONTAINERS_LIST);
|
||||
});
|
||||
},
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
<h3>A better way to manage all the things you do online</h3>
|
||||
<p>Use containers to organize tasks, manage accounts, and keep your focus where you want it.</p>
|
||||
<p class="spacing" ><a href="#">Learn more</a></p>
|
||||
<a href="#" id="onboarding-next-button" class="button expanded">Next</a>
|
||||
<a href="#" id="onboarding-start-button" class="button expanded">Get Started</a>
|
||||
</div>
|
||||
|
||||
|
||||
|
@ -20,9 +20,15 @@
|
|||
<img alt="How Containers Work" src="/img/onboarding-2.png" />
|
||||
<h3>Put containers to work for you.</h3>
|
||||
<p>Features like color-coding and separate container tabs help you find things easily, focus your attention, and minimize distractions.</p>
|
||||
<a href="#" id="onboarding-done-button" class="button expanded spacing">Done</a>
|
||||
<a href="#" id="onboarding-next-button" class="button expanded spacing">Next</a>
|
||||
</div>
|
||||
|
||||
<div class="panel onboarding onboarding-panel-3 hide" id="onboarding-panel-3">
|
||||
<img alt="How Containers Work" src="/img/onboarding-3.png" />
|
||||
<h3>A place for everything, and everything in its place.</h3>
|
||||
<p>Start with the containers we've created, or create your own.</p>
|
||||
<a href="#" id="onboarding-done-button" class="button expanded spacing">Done</a>
|
||||
</div>
|
||||
|
||||
<div class="panel container-panel" id="container-panel">
|
||||
<div class="row panel-header">
|
||||
|
|
Loading…
Add table
Reference in a new issue