summaryrefslogtreecommitdiff
path: root/web-ui/app
diff options
context:
space:
mode:
authorTayane Fernandes <tayane.rmf@gmail.com>2017-02-06 19:01:09 -0200
committerTayane Fernandes <tayane.rmf@gmail.com>2017-02-06 19:02:20 -0200
commitb2b05f3868055578b8d0cafb7d08dd7742bd4bed (patch)
tree642df7644c39eb1855e35768bb4492bab9cf87b8 /web-ui/app
parenteab587344a275d7d4afb05b8682e4ff76df5da61 (diff)
[#922] Add back link
with @anikarni
Diffstat (limited to 'web-ui/app')
-rw-r--r--web-ui/app/js/account_recovery.js2
-rw-r--r--web-ui/app/js/account_recovery/page.js6
-rw-r--r--web-ui/app/scss/account_recovery/page.scss52
3 files changed, 45 insertions, 15 deletions
diff --git a/web-ui/app/js/account_recovery.js b/web-ui/app/js/account_recovery.js
index a48415f8..441a8936 100644
--- a/web-ui/app/js/account_recovery.js
+++ b/web-ui/app/js/account_recovery.js
@@ -3,6 +3,8 @@ import { render } from 'react-dom'
import Page from 'js/account_recovery/page'
import a11y from 'react-a11y'
+import 'font-awesome/scss/font-awesome.scss'
+
if(process.env.NODE_ENV === 'development') a11y(React);
render(
diff --git a/web-ui/app/js/account_recovery/page.js b/web-ui/app/js/account_recovery/page.js
index 4dda8fff..5d4f2c36 100644
--- a/web-ui/app/js/account_recovery/page.js
+++ b/web-ui/app/js/account_recovery/page.js
@@ -14,6 +14,12 @@ const Page = () => (
<label className="animated-label" htmlFor="email">Digite seu e-mail de recuperação</label>
</div>
<button>Adicionar e-mail</button>
+ <div>
+ <a href="/">
+ <i className="fa fa-angle-left" aria-hidden="true"></i>
+ <span>Voltar</span>
+ </a>
+ </div>
</form>
</div>
);
diff --git a/web-ui/app/scss/account_recovery/page.scss b/web-ui/app/scss/account_recovery/page.scss
index 9fe85d5c..8bba1b5a 100644
--- a/web-ui/app/scss/account_recovery/page.scss
+++ b/web-ui/app/scss/account_recovery/page.scss
@@ -29,6 +29,20 @@ p {
margin-after: 0.5em;
}
+a {
+ text-decoration: none;
+ color: $dark_blue;
+ font-style: italic;
+
+ .fa {
+ font-size: 1.6em;
+ position: relative;
+ top: 3px;
+ margin-right: 0.3em;
+ }
+
+}
+
.field-group {
position:relative;
margin: 1.5em 0;
@@ -83,6 +97,7 @@ button {
border-radius: 2px;
font-weight: 300;
width: 100%;
+ margin-bottom: 1em;
}
.container {
@@ -110,10 +125,17 @@ img {
font-size: 1.3em;
}
- .field-group, button {
- width: 70%;
- -webkit-align-self: center;
- align-self: center;
+ form {
+ display: flex;
+ -webkit-display: flex;
+ -webkit-flex-direction: column;
+ flex-direction: column;
+
+ .field-group, button, div {
+ width: 70%;
+ -webkit-align-self: center;
+ align-self: center;
+ }
}
}
@@ -130,21 +152,21 @@ img {
form {
margin-left: 2.5em;
- }
- img {
- width: 300px;
- }
+ .field-group, button, div {
+ width: 300px;
+ -webkit-align-self: flex-start;
+ align-self: flex-start;
+ }
- .field-group, button {
- width: 300px;
- -webkit-align-self: center;
- align-self: center;
+ .field-group {
+ margin-top: 3em;
+ font-size: 1em;
+ }
}
- .field-group {
- margin-top: 3em;
- font-size: 1em;
+ img {
+ width: 300px;
}
button {