From 2ad2098bbaa4db05a7c42b5cffff29a5e679ab64 Mon Sep 17 00:00:00 2001 From: Peter Zimon Date: Wed, 29 Jul 2020 16:54:20 +0200 Subject: [PATCH] Unify free + paid account home pages no refs. - used similar design patterns for free and paid home pages --- ghost/portal/src/App.js | 4 +- ghost/portal/src/components/Frame.styles.js | 2 +- .../src/components/common/MemberGravatar.js | 2 +- .../src/components/pages/AccountHomePage.js | 63 ++++++++++++++----- .../components/pages/AccountProfilePage.js | 23 ------- 5 files changed, 50 insertions(+), 44 deletions(-) diff --git a/ghost/portal/src/App.js b/ghost/portal/src/App.js index 25fed99dcf..616284bd15 100644 --- a/ghost/portal/src/App.js +++ b/ghost/portal/src/App.js @@ -142,8 +142,8 @@ export default class App extends React.Component { return { showPopup: true, site: Fixtures.site, - member: Fixtures.member.paid, - page: 'signup' + member: Fixtures.member.free, + page: 'accountHome' }; } return {}; diff --git a/ghost/portal/src/components/Frame.styles.js b/ghost/portal/src/components/Frame.styles.js index 8b8d283b2d..ea7da47c59 100644 --- a/ghost/portal/src/components/Frame.styles.js +++ b/ghost/portal/src/components/Frame.styles.js @@ -33,7 +33,7 @@ const GlobalStyles = ` --grey10: #dcdcdc; --grey11: #e1e1e1; --grey12: #eaeaea; - --grey13: #f8f8f8; + --grey13: #f9f9f9; --white: #fff; } diff --git a/ghost/portal/src/components/common/MemberGravatar.js b/ghost/portal/src/components/common/MemberGravatar.js index d780589918..7a6629ec3a 100644 --- a/ghost/portal/src/components/common/MemberGravatar.js +++ b/ghost/portal/src/components/common/MemberGravatar.js @@ -8,7 +8,7 @@ export const AvatarStyles = ` align-items: center; justify-content: center; overflow: hidden; - margin: 6px 0 8px; + margin-bottom: 8px; border-radius: 999px; } diff --git a/ghost/portal/src/components/pages/AccountHomePage.js b/ghost/portal/src/components/pages/AccountHomePage.js index e69d1f9a31..7b92b35039 100644 --- a/ghost/portal/src/components/pages/AccountHomePage.js +++ b/ghost/portal/src/components/pages/AccountHomePage.js @@ -20,6 +20,10 @@ export const AccountHomePageStyles = ` margin: 0 0 32px; } + .gh-portal-account-header .gh-portal-avatar { + margin: 6px 0 8px !important; + } + .gh-portal-account-footer { display: flex; margin-top: 32px; @@ -63,6 +67,10 @@ export const AccountHomePageStyles = ` flex-direction: column; flex-grow: 1; } + + .gh-portal-free-ctatext { + margin-top: -12px; + } `; const UserAvatar = ({avatar, brandColor}) => { @@ -77,13 +85,7 @@ const AccountFooter = ({onLogout, onSettings, brandColor}) => { return (