From e45663dcb01ce10bcdf784e81b72ba44824f63e7 Mon Sep 17 00:00:00 2001 From: Peter Zimon Date: Mon, 20 Jul 2020 16:21:14 +0200 Subject: [PATCH] Added free account home screen styles no refs. - updated inline styles to CSS classes for free account home screen --- ghost/portal/src/components/Frame.styles.js | 27 +++++- .../src/components/pages/AccountHomePage.js | 86 ++++++++++++------- 2 files changed, 81 insertions(+), 32 deletions(-) diff --git a/ghost/portal/src/components/Frame.styles.js b/ghost/portal/src/components/Frame.styles.js index dd0c42033e..a236f519f4 100644 --- a/ghost/portal/src/components/Frame.styles.js +++ b/ghost/portal/src/components/Frame.styles.js @@ -81,7 +81,7 @@ export const GlobalStyles = ` /* Typography /* ----------------------------------------------------- */ - h1, h2, h3, h4, h5, h6 { + h1, h2, h3, h4, h5, h6, p { padding: 0; margin: 0; } @@ -98,10 +98,35 @@ export const GlobalStyles = ` letter-spacing: 0.2px; } + p { + font-size: 15px; + line-height: 1.55em; + margin-bottom: 24px; + } + + strong { + font-weight: 600; + } + + a, + .gh-portal-link { + cursor: pointer; + } + .gh-portal-main-title { color: #333; } + .gh-portal-text-disabled { + color: #484848; + opacity: 0.35; + font-weight: normal; + } + + .gh-portal-text-center { + text-align: center; + } + /* Global layout styles /* ----------------------------------------------------- */ .gh-portal-popup-container { diff --git a/ghost/portal/src/components/pages/AccountHomePage.js b/ghost/portal/src/components/pages/AccountHomePage.js index cd3b18f529..e9b9e27c7f 100644 --- a/ghost/portal/src/components/pages/AccountHomePage.js +++ b/ghost/portal/src/components/pages/AccountHomePage.js @@ -13,6 +13,40 @@ export const AccountHomePageStyles = ` align-items: center; margin-bottom: 20px; } + + .gh-portal-account-footer { + display: flex; + margin-top: -16px; + } + + .gh-portal-account-footermenu { + display: flex; + list-style: none; + padding: 0; + margin: 0; + } + + .gh-portal-account-footermenu li { + margin-right: 16px; + } + + .gh-portal-account-footermenu li:last-of-type { + margin-right: 0; + } + + /* Avatar styles */ + .gh-portal-avatar-container { + position: relative; + display: flex; + align-items: center; + justify-content: center; + overflow: hidden; + width: 64px; + height: 64px; + margin-bottom: 8px; + border-radius: 999px; + box-shadow: 0 0 0 3px #fff; + } `; const Divider = () => { @@ -22,21 +56,8 @@ const Divider = () => { }; const UserAvatar = ({avatar}) => { - const avatarContainerStyle = { - position: 'relative', - display: 'flex', - width: '64px', - height: '64px', - marginBottom: '8px', - borderRadius: '999px', - boxShadow: '0 0 0 3px #fff', - overflow: 'hidden', - justifyContent: 'center', - alignItems: 'center' - }; - return ( -
+
); @@ -44,15 +65,18 @@ const UserAvatar = ({avatar}) => { const AccountFooter = ({onLogout, onSettings, brandColor}) => { return ( - //
-
-
Contact support
-
- {onSettings - ?
Settings
- : null - } -
Logout
+
+
    +
  • Contact support
  • +
+
+
    + {onSettings + ?
  • Settings
  • + : null + } +
  • Logout
  • +
); @@ -108,10 +132,10 @@ class FreeAccountHomePage extends React.Component { return (
-
- Hey {firstname || name || email}! - You are subscribed to free updates from {siteTitle}, but you don't have a paid subscription to unlock full access -
+

+ Hey {firstname || name || email}! + You are subscribed to free updates from {siteTitle}, but you don't have a paid subscription to unlock full access +

{this.renderSubscribeButton()}
); @@ -143,10 +167,10 @@ class PaidAccountHomePage extends React.Component { return (
-
- Hey {firstname || name || email}! - You have an active {siteTitle} account with access to all areas. Get in touch if you have any problems or need some help getting things updated, and thanks for subscribing. -
+

+ Hey {firstname || name || email}! + You have an active {siteTitle} account with access to all areas. Get in touch if you have any problems or need some help getting things updated, and thanks for subscribing. +

); }