diff --git a/src/routes/Settings/Settings.js b/src/routes/Settings/Settings.js index 0fb372e8d..feb6bb180 100644 --- a/src/routes/Settings/Settings.js +++ b/src/routes/Settings/Settings.js @@ -88,22 +88,34 @@ const Settings = () => { `url('${profile.auth.user.avatar}'), url('/images/default_avatar.png')` }} /> -
- {profile.auth === null ? 'Anonymous user' : profile.auth.user.email} +
+
+
+ {profile.auth === null ? 'Anonymous user' : profile.auth.user.email} +
+
+ { + profile.auth !== null ? + + : + null + }
{ profile.auth === null ?
:
} @@ -169,16 +181,6 @@ const Settings = () => {
Privacy Policy
- { - profile.auth !== null ? -
- -
- : - null - }
Player
diff --git a/src/routes/Settings/styles.less b/src/routes/Settings/styles.less index e803d4aa1..327799265 100644 --- a/src/routes/Settings/styles.less +++ b/src/routes/Settings/styles.less @@ -95,6 +95,67 @@ margin-bottom: 0; } + &.user-info-option-container { + height: 7rem; + + .avatar-container { + flex: none; + align-self: stretch; + width: 7rem; + margin-right: 1rem; + border-radius: 50%; + background-size: cover; + background-repeat: no-repeat; + background-position: center; + background-origin: content-box; + background-clip: content-box; + } + + .email-logout-container { + flex: 1; + align-self: stretch; + display: flex; + flex-direction: column; + padding: 1rem 0; + + .email-label-container, .logout-button-container { + display: flex; + flex-direction: row; + align-items: center; + } + + .email-label-container { + flex: 1 0 auto; + + .email-label { + flex: 1; + font-size: 1.4rem; + max-height: 2.4em; + color: var(--color-surfacelighter); + } + } + + .logout-button-container { + flex: 0 1 50%; + + &:hover, &:focus { + outline: none; + + .logout-label { + color: var(--color-surfacelighter); + text-decoration: underline; + } + } + + .logout-label { + flex: 1; + max-height: 1.2em; + color: var(--color-surface); + } + } + } + } + .option-name-container, .option-input-container { flex: 1 1 50%; display: flex; @@ -185,28 +246,6 @@ } } } - - .user-info-option-container { - .avatar-container { - flex: none; - width: 6rem; - height: 6rem; - border-radius: 50%; - background-size: cover; - background-repeat: no-repeat; - background-position: center; - background-origin: content-box; - background-clip: content-box; - } - - .email-label { - flex: 1; - font-size: 1.4rem; - max-height: 3.6em; - padding: 0 2rem; - color: var(--color-surfacelighter); - } - } } } }