Merge pull request #18 from simple-login/product-tour

Product tour
This commit is contained in:
Son Nguyen Kim 2020-01-02 12:17:06 +01:00 committed by GitHub
commit d589a63278
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 54 additions and 52 deletions

View file

@ -34,32 +34,32 @@
</button> </button>
</form> </form>
<div class="btn-group" role="group"> <div class="btn-group" role="group">
<form method="post"> <form method="post">
<input type="hidden" name="form-name" value="create-random-email"> <input type="hidden" name="form-name" value="create-random-email">
<button data-toggle="tooltip" <button data-toggle="tooltip"
title="Create a totally random alias" title="Create a totally random alias"
class="btn btn-success">Random Alias class="btn btn-success">Random Alias
</button>
</form>
<button id="btnGroupDrop1" type="button" class="btn btn-success dropdown-toggle"
data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
</button> </button>
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="btnGroupDrop1"> </form>
<div class=""> <button id="btnGroupDrop1" type="button" class="btn btn-success dropdown-toggle"
<form method="post"> data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<input type="hidden" name="form-name" value="create-random-email"> </button>
<input type="hidden" name="generator_scheme" value="{{ AliasGeneratorEnum.word.value }}"> <div class="dropdown-menu dropdown-menu-right" aria-labelledby="btnGroupDrop1">
<button class="dropdown-item">By random words</button> <div class="">
</form> <form method="post">
</div> <input type="hidden" name="form-name" value="create-random-email">
<div class=""> <input type="hidden" name="generator_scheme" value="{{ AliasGeneratorEnum.word.value }}">
<form method="post"> <button class="dropdown-item">By random words</button>
<input type="hidden" name="form-name" value="create-random-email"> </form>
<input type="hidden" name="generator_scheme" value="{{ AliasGeneratorEnum.uuid.value }}">
<button class="dropdown-item">By UUID</button>
</form>
</div>
</div> </div>
<div class="">
<form method="post">
<input type="hidden" name="form-name" value="create-random-email">
<input type="hidden" name="generator_scheme" value="{{ AliasGeneratorEnum.uuid.value }}">
<button class="dropdown-item">By UUID</button>
</form>
</div>
</div>
</div> </div>
</div> </div>
</div> </div>
@ -70,17 +70,17 @@
{% for alias_info in aliases %} {% for alias_info in aliases %}
{% set gen_email = alias_info.gen_email %} {% set gen_email = alias_info.gen_email %}
<div class="col-md-6" <div class="col-md-6">
{% if loop.index ==1 %}
data-intro="This is an <b>alias</b>. <br><br>
<b>All</b> emails sent to an alias will be forwarded to your inbox. <br><br>
Alias is a great way to hide your personal email address so feel free to
use it whenever possible, for example on untrusted websites 😎"
{% endif %}
>
<div class="card p-3 {% if alias_info.highlight %} highlight-row {% endif %}"> <div class="card p-3 {% if alias_info.highlight %} highlight-row {% endif %}">
<div> <div>
<span class="clipboard cursor mb-0" <span class="clipboard cursor mb-0"
{% if loop.index ==1 %}
data-intro="This is an <em>alias</em>. <br><br>
<b>All</b> emails sent to an alias will be <em>forwarded</em> to your inbox. <br><br>
Alias is a great way to hide your personal email address so feel free to
use it whenever possible, for example when signing up for a newsletter or creating a new account on a suspicious website 😎"
data-step="2"
{% endif %}
{% if gen_email.enabled %} {% if gen_email.enabled %}
data-toggle="tooltip" data-toggle="tooltip"
title="Copy to clipboard" title="Copy to clipboard"
@ -127,11 +127,12 @@
{% endif %} {% endif %}
{% if loop.index ==1 %} {% if loop.index ==1 %}
data-intro="By turning off an alias, emails sent to this alias will <b>NOT</b> data-intro="By turning off an alias, emails sent to this alias will <em>not</em>
be forwarded to your inbox. <br><br> be forwarded to your inbox. <br><br>
This should be used with care as others might This should be used with care as others might
not be able to reach you after ... not be able to reach you after ...
" "
data-step="3"
{% endif %} {% endif %}
style="padding-left: 0px" style="padding-left: 0px"
> >
@ -149,7 +150,11 @@
{% if gen_email.enabled %} {% if gen_email.enabled %}
<a href="{{ url_for('dashboard.alias_contact_manager', alias=gen_email.email) }}" <a href="{{ url_for('dashboard.alias_contact_manager', alias=gen_email.email) }}"
{% if alias_info.show_intro_test_send_email %} {% if alias_info.show_intro_test_send_email %}
data-intro="Not only alias can receive emails, it can send emails too!" data-intro="Not only alias can receive emails, it can <em>send</em> emails too! <br><br>
You can add a new <em>contact</em> to for your alias here. <br><br>
To send an email to your contact, SimpleLogin will create a <em>special</em> email address: <br>
sending an email to this email address will <em>forward</em> your email to your contact"
data-step="4"
{% endif %} {% endif %}
class="btn btn-sm btn-outline-primary" class="btn btn-sm btn-outline-primary"
data-toggle="tooltip" data-toggle="tooltip"
@ -183,10 +188,12 @@
{% if client_users %} {% if client_users %}
<div class="page-header row"> <div class="page-header row">
<h3 class="page-title col" data-intro="Here you can find the list of website/app on which <h3 class="page-title col"
you have used the <b>Connect with SimpleLogin</b> button <br><br> data-intro="Here you can find the list of website/app on which
You also see what information that SimpleLogin has communicated to these website/app when you sign in. you have used the <em>Connect with SimpleLogin</em> button <br><br>
"> You also see what information that SimpleLogin has communicated to these website/app when you sign in."
data-step="5"
>
Apps Apps
</h3> </h3>
</div> </div>

View file

@ -22,6 +22,14 @@
</a></li> </a></li>
<li class="list-inline-item"><a href="mailto:hi@simplelogin.io">Contact Us <li class="list-inline-item"><a href="mailto:hi@simplelogin.io">Contact Us
<i class="fe fe-external-link"></i></a></li> <i class="fe fe-external-link"></i></a></li>
<li class="list-inline-item intro-step-0">
<a onclick="startIntro()"
data-intro="Welcome to SimpleLogin! <br><br>
It seems that this is the first time you are here,
let's walk through some SimpleLogin features together! <br><br>
You can always show this tutorial again any time by clicking on this <i class='fe fe-help-circle'></i> icon below 👇"
data-step="1"
><i class="fe fe-help-circle"></i></a></li>
</ul> </ul>
</div> </div>
</div> </div>

View file

@ -12,16 +12,6 @@
</div> </div>
{% endif %} {% endif %}
<div class="dropdown d-none d-md-flex">
<a class="nav-link icon"
data-intro="Welcome to SimpleLogin! <br><br>
It seems that this is the first time you are here,
let's walk through some SimpleLogin features together! <br><br>
You can always show this tutorial again any time by clicking on this <i class='fe fe-help-circle'></i> icon above 👆"
onclick="startIntro()">
<i class="fe fe-help-circle"></i>
</a>
</div>
<div class="dropdown"> <div class="dropdown">
<a href="#" class="nav-link pr-0 leading-none" data-toggle="dropdown"> <a href="#" class="nav-link pr-0 leading-none" data-toggle="dropdown">
{% if current_user.profile_picture_id %} {% if current_user.profile_picture_id %}

View file

@ -40,10 +40,7 @@
</li> </li>
--> -->
<li class="nav-item" <li class="nav-item">
data-intro="If you want to add SimpleLogin to your website/application, this tab is for you 😀"
data-step="5"
>
<a href="{{ url_for('developer.index') }}" <a href="{{ url_for('developer.index') }}"
class="nav-link {{ 'active' if active_page == 'developer' }}"> class="nav-link {{ 'active' if active_page == 'developer' }}">
<i class="fe fe-terminal"></i> <i class="fe fe-terminal"></i>