Skip to content

Commit 834eda2

Browse files
authored
Fix checkout auth page for UI mockups (#68)
1 parent 6e145ee commit 834eda2

File tree

2 files changed

+98
-12
lines changed

2 files changed

+98
-12
lines changed

src/containers/CheckoutAuthPage.jsx

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ import ReactRouterPropTypes from 'react-router-prop-types';
2424
import intl from 'react-intl-universal';
2525
import { login, loginRegistered } from '../utils/AuthService';
2626
import cortexFetch from '../utils/Cortex';
27+
import './CheckoutAuthPage.less';
2728

2829
const Config = require('Config');
2930

@@ -128,15 +129,15 @@ class CheckoutAuthPage extends React.Component {
128129
<div>
129130
<div className="app-main" data-region="appMain" style={{ display: 'block' }}>
130131
<div className="container">
131-
<h3>
132+
<h3 className="view-title">
132133
{intl.get('sign-in-to-proceed')}
133134
</h3>
134135
<div className="checkout-auth-option-list equalize">
135-
<div data-region="checkoutAutRegisterOptionRegion" style={{ display: 'block' }}>
136-
<div className="checkout-auth-option-container" style={{ minHeight: '259px' }}>
137-
<h3>
136+
<div className="checkoutAutRegisterOptionRegion" data-region="checkoutAutRegisterOptionRegion" style={{ display: 'block' }}>
137+
<div className="checkout-auth-option-container">
138+
<h2>
138139
{intl.get('create-an-account')}
139-
</h3>
140+
</h2>
140141
<p>
141142
{intl.get('create-an-account-message')}
142143
</p>
@@ -145,11 +146,11 @@ class CheckoutAuthPage extends React.Component {
145146
</button>
146147
</div>
147148
</div>
148-
<div data-region="checkoutAuthLoginOptionRegion" style={{ display: 'block' }}>
149-
<div className="checkout-auth-option-container" style={{ minHeight: '259px' }}>
150-
<h3>
149+
<div className="checkoutAuthLoginOptionRegion" data-region="checkoutAuthLoginOptionRegion" style={{ display: 'block' }}>
150+
<div className="checkout-auth-option-container">
151+
<h2>
151152
{intl.get('i-have-an-account')}
152-
</h3>
153+
</h2>
153154
<form onSubmit={this.loginRegisteredUser}>
154155
<div className="auth-feedback-container" data-region="authLoginFormFeedbackRegion">
155156
{failedLogin ? intl.get('invalid-username-or-password') : ''}
@@ -185,11 +186,11 @@ class CheckoutAuthPage extends React.Component {
185186
</form>
186187
</div>
187188
</div>
188-
<div data-region="checkoutAuthAnonymousOptionRegion" style={{ display: 'block' }}>
189+
<div className="checkoutAuthAnonymousOptionRegion" data-region="checkoutAuthAnonymousOptionRegion" style={{ display: 'block' }}>
189190
<div className="checkout-auth-option-container">
190-
<h3>
191+
<h2>
191192
{intl.get('continue-without-account')}
192-
</h3>
193+
</h2>
193194
<p>
194195
{intl.get('continue-without-account-message')}
195196
{' '}
Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
/**
2+
* Copyright © 2018 Elastic Path Software Inc. All rights reserved.
3+
*
4+
* This is free software: you can redistribute it and/or modify
5+
* it under the terms of the GNU General Public License as published by
6+
* the Free Software Foundation, either version 3 of the License, or
7+
* (at your option) any later version.
8+
*
9+
* This software is distributed in the hope that it will be useful,
10+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
* GNU General Public License for more details.
13+
*
14+
* You should have received a copy of the GNU General Public License
15+
* along with this license. If not, see
16+
*
17+
* https://www.gnu.org/licenses/
18+
*
19+
*
20+
*/
21+
22+
@import './../style/common.less';
23+
24+
.checkout-auth-option-list {
25+
h2 {
26+
font-size: 18px;
27+
margin-top: 20px;
28+
margin-bottom: 10px;
29+
}
30+
31+
.control-label {
32+
.required-label {
33+
color: red;
34+
font-size: 16px;
35+
font-weight: bold;
36+
}
37+
}
38+
39+
.form-control {
40+
display: block;
41+
height: 34px;
42+
padding: 6px 12px;
43+
font-size: 14px;
44+
color: #555555;
45+
background-color: #ffffff;
46+
border: 1px solid #cccccc;
47+
border-radius: 4px;
48+
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
49+
}
50+
51+
.checkout-auth-option-container {
52+
padding-bottom: 40px;
53+
}
54+
55+
.btn {
56+
text-shadow: none;
57+
color: @complimentBlueColor;
58+
background-color: #ffffff;
59+
border: solid 1px @complimentBlueColor;
60+
border-radius: 0;
61+
text-align: middle;
62+
box-shadow: none;
63+
white-space: nowrap;
64+
height: auto;
65+
display: inline-block;
66+
width: 90px;
67+
height: 30px;
68+
margin-right: 10px;
69+
}
70+
71+
.btn-primary {
72+
padding: 8px 14px;
73+
width: 100%;
74+
height: 40px;
75+
background-color: @mainBlueColor;
76+
font-size: 12px;
77+
font-weight: bold;
78+
color: #ffffff;
79+
border: 0;
80+
border-radius: 0;
81+
text-transform: uppercase;
82+
margin-top: 10px;
83+
max-width: 280px;
84+
}
85+
}

0 commit comments

Comments
 (0)