diff --git a/ghost/portal/src/App.js b/ghost/portal/src/App.js index df23bd7c1c..8e63a19fca 100644 --- a/ghost/portal/src/App.js +++ b/ghost/portal/src/App.js @@ -143,7 +143,7 @@ export default class App extends React.Component { showPopup: true, site: Fixtures.site, member: Fixtures.member.free, - page: 'accountHome' + page: 'signup' }; } return {}; diff --git a/ghost/portal/src/components/Frame.styles.js b/ghost/portal/src/components/Frame.styles.js index ba43bc2598..1584139da5 100644 --- a/ghost/portal/src/components/Frame.styles.js +++ b/ghost/portal/src/components/Frame.styles.js @@ -7,6 +7,7 @@ import {ActionButtonStyles} from './common/ActionButton'; import {SwitchStyles} from './common/Switch'; import {AccountHomePageStyles} from './pages/AccountHomePage'; import {InputFieldStyles} from './common/InputField'; +import {SignupPageStyles} from './pages/SignupPage'; // Global styles export const GlobalStyles = ` @@ -155,6 +156,7 @@ export const GlobalStyles = ` font-size: 13px; margin-bottom: 2px; font-weight: 500; + color: #333; } /* Buttons @@ -199,6 +201,20 @@ export const GlobalStyles = ` stroke: currentColor; } + .gh-portal-btn-link { + background: none; + padding: 0; + line-height: 1; + height: unset; + box-shadow: none; + border: none; + } + + .gh-portal-btn-link:hover { + box-shadow: none; + opacity: 0.85; + } + /* Global layout styles /* ----------------------------------------------------- */ .gh-portal-popup-container { @@ -269,6 +285,7 @@ const FrameStyle = AccountHomePageStyles + InputFieldStyles + SwitchStyles + - ActionButtonStyles; + ActionButtonStyles + + SignupPageStyles; export default FrameStyle; \ No newline at end of file diff --git a/ghost/portal/src/components/common/InputField.js b/ghost/portal/src/components/common/InputField.js index ebd7505a80..3a14f01115 100644 --- a/ghost/portal/src/components/common/InputField.js +++ b/ghost/portal/src/components/common/InputField.js @@ -20,6 +20,10 @@ export const InputFieldStyles = ` border: 1px solid transparent; box-shadow: 0 0 0 2px var(--brandcolor); } + + .gh-portal-input::placeholder { + color: #929292; + } `; function InputField({name, id, label, type, value, placeholder, disabled, onChange, brandColor}) { diff --git a/ghost/portal/src/components/pages/SignupPage.js b/ghost/portal/src/components/pages/SignupPage.js index d25b158641..4acdb08294 100644 --- a/ghost/portal/src/components/pages/SignupPage.js +++ b/ghost/portal/src/components/pages/SignupPage.js @@ -5,6 +5,36 @@ import PlansSection from '../common/PlansSection'; const React = require('react'); +export const SignupPageStyles = ` + .gh-portal-signup-logo { + position: relative; + display: block; + width: 68px; + height: 68px; + margin-bottom: 16px; + background-position: 50%; + background-size: cover; + border-radius: 999px; + box-shadow: 0 0 0 3px #fff + } + + .gh-portal-signup-header { + margin-top: 24px; + } + + .gh-portal-signup-footer { + font-size: 1.3rem; + margin-top: 8px; + color: #929292; + } + + .gh-portal-signup-footer button { + font-size: 1.3rem; + font-weight: 400; + margin-left: 4px; + } +`; + class SignupPage extends React.Component { static contextType = AppContext; @@ -154,14 +184,14 @@ class SignupPage extends React.Component { name: { type: 'text', value: this.state.name, - placeholder: 'Name...', + placeholder: 'Jamie Larson', label: 'Name', name: 'name' }, email: { type: 'email', value: this.state.email, - placeholder: 'Email...', + placeholder: 'jamie@example.com', label: 'Email', name: 'email' } @@ -182,9 +212,9 @@ class SignupPage extends React.Component { renderLoginMessage() { const {brandColor, onAction} = this.context; return ( -