Skip to content

Commit 8ba6b58

Browse files
authored
JBDS-4444 Move Account page after Confirmation page (#791)
1 parent 01de1d4 commit 8ba6b58

21 files changed

Lines changed: 379 additions & 95 deletions

browser/app.css

Lines changed: 51 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ footer {
103103
}
104104

105105
.login-title {
106-
margin-top: 100px;
106+
margin-top: 60px;
107107
margin-left: 25px;
108108
}
109109

@@ -149,7 +149,7 @@ footer {
149149
float: left;
150150
text-align: center;
151151
color: #d1d1d1;
152-
width: 25%;
152+
width: 19.5%;
153153
position: relative;
154154
padding-top: 15px;
155155
}
@@ -175,9 +175,37 @@ footer {
175175
background: #0088ce;
176176
}
177177

178+
.about-section {
179+
width:100%;
180+
padding: 2% 5% 0% 5%;
181+
position: relative;
182+
}
183+
184+
.about-subsection {
185+
width: 33%;
186+
float: left;
187+
padding: 12px;
188+
position: relative;
189+
}
190+
191+
.about-name {
192+
color: #c00;
193+
text-align: center;
194+
text-transform: uppercase;
195+
font-weight: bold;
196+
font-size: 14px;
197+
padding: 5% 0% 5% 0%;
198+
}
199+
200+
.about-img {
201+
display: block;
202+
margin: 0 auto;
203+
}
204+
178205
#login-section {
179206
float: left;
180207
width: 50%;
208+
margin-top: 12%;
181209
}
182210

183211
#accountForm {
@@ -194,8 +222,9 @@ footer {
194222
}
195223

196224
.login-form-error-container {
197-
float: right;
225+
float: left;
198226
width: 296px;
227+
margin-left: 116px;
199228
}
200229

201230
.login-form-label {
@@ -234,7 +263,7 @@ footer {
234263

235264
#account-form-btn-text {
236265
vertical-align: super;
237-
margin-right: 11px;
266+
margin-right: 13px;
238267
}
239268

240269
.spinner {
@@ -274,14 +303,23 @@ footer {
274303
/* width: auto; /* This doesn't work, just fix for unknown width elements */
275304
}
276305

277-
.has-spinner.btn.active .spinner {
278-
width: 24px;
306+
.forgot-password {
307+
margin-right: 121px;
308+
}
309+
310+
.last-field {
311+
margin-bottom: 5px;
279312
}
280313

281314
#welcome-text {
282-
padding-right: 2.5%;
315+
padding-right: 7%;
316+
margin-top: 12%;
283317
}
284318

319+
#welcome-text > p {
320+
line-height: 16px;
321+
margin-bottom: 16px;
322+
}
285323

286324
.product-container {
287325
padding-left: 10px;
@@ -292,7 +330,7 @@ footer {
292330
color: #c00;
293331
text-transform: uppercase;
294332
font-weight: bold;
295-
font-size: 22px;
333+
font-size: x-large;
296334
}
297335

298336
.product-version {
@@ -318,10 +356,6 @@ footer {
318356
cursor: pointer;
319357
}
320358

321-
#loginButton {
322-
margin-bottom: 3px;
323-
}
324-
325359
.btn-rightside {
326360
float: right;
327361
}
@@ -374,6 +408,10 @@ footer {
374408
right: 150px;
375409
}
376410

411+
.back-btn-spacer-account {
412+
right: 320px;
413+
}
414+
377415
.back-btn-spacer {
378416
right: 210px;
379417
}
@@ -590,7 +628,7 @@ footer {
590628

591629
.verticalLine {
592630
border-right: 2px solid #dddddd;
593-
margin-right: 5px;
631+
margin-right: 6%;
594632
}
595633

596634
.checkbox-container {
Lines changed: 75 additions & 0 deletions
Loading
17 KB
Loading
9.38 KB
Loading
14.2 KB
Loading

browser/main.js

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ import angular from 'angular';
44
import '@uirouter/angularjs';
55
import 'angular-base64';
66
import 'angular-messages';
7+
import 'ng-focus-if';
8+
import aboutCtrl from './pages/about/controller';
79
import acctCtrl from './pages/account/controller';
810
import locCtrl from './pages/location/controller';
911
import confCtrl from './pages/confirm/controller';
@@ -20,7 +22,8 @@ import Electron from 'electron';
2022
import request from 'request';
2123

2224
let mainModule =
23-
angular.module('devPlatInstaller', ['ui.router', 'base64', 'ngMessages'])
25+
angular.module('devPlatInstaller', ['ui.router', 'base64', 'ngMessages', 'focus-if'])
26+
.controller(aboutCtrl.name, aboutCtrl)
2427
.controller(acctCtrl.name, acctCtrl)
2528
.controller(locCtrl.name, locCtrl)
2629
.controller(confCtrl.name, confCtrl)
@@ -35,12 +38,12 @@ let mainModule =
3538
.directive(breadcrumb.name, breadcrumb)
3639
.directive(pathValidator.name, pathValidator)
3740
.config( ['$stateProvider', '$urlRouterProvider', ($stateProvider, $urlRouterProvider) => {
38-
$urlRouterProvider.otherwise('/account');
41+
$urlRouterProvider.otherwise('/about');
3942
$stateProvider
40-
.state('account', {
41-
url: '/account',
42-
controller: 'AccountController as acctCtrl',
43-
templateUrl: 'pages/account/account.html'
43+
.state('about', {
44+
url: '/about',
45+
controller: 'AboutController as aboutCtrl',
46+
templateUrl: 'pages/about/about.html'
4447
})
4548
.state('location', {
4649
url: '/location',
@@ -58,6 +61,14 @@ let mainModule =
5861
displayName: 'Confirmation'
5962
}
6063
})
64+
.state('account', {
65+
url: '/account',
66+
controller: 'AccountController as acctCtrl',
67+
templateUrl: 'pages/account/account.html',
68+
data: {
69+
displayName: 'Account'
70+
}
71+
})
6172
.state('install', {
6273
url: '/install',
6374
controller: 'InstallController as instCtrl',

browser/pages/about/about.html

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
<header>
2+
<div class="login-title">
3+
<img class="branding-title" src="images/RHDSP.svg"/><span class="login-title-post-text"></span>
4+
</div>
5+
</header>
6+
7+
<main>
8+
<form name="accountForm" id="aboutForm">
9+
<div class="about-section">
10+
<p>Welcome to Red Hat Development Suite! The best of Red Hat development tools,
11+
integrated together, in one easy to install bundle.
12+
</p>
13+
<p>This installer will help
14+
you install Red Hat JBoss Developer Studio with a full development environment
15+
for container based development using Red Hat Enterprise Linux and OpenShift.
16+
</p>
17+
<div class="about-subsection">
18+
<div>
19+
<img class="about-img" src="images/static_startinminutes.png" width="160" height="160">
20+
</div>
21+
<div class="about-name">START DEVELOPING IN MINUTES</div>
22+
<div>
23+
<p>A single installer handles all of the prerequisites and interdependencies
24+
for you, so that with just a few clicks you can have a world-class development environment.</p>
25+
</div>
26+
</div>
27+
<div class="about-subsection">
28+
<div>
29+
<img class="about-img" src="images/static_enterprisecontainerdev.png" width="160" height="160">
30+
</div>
31+
<div class="about-name">ENTERPRISE READY CONTAINER DEVELOPMENT</div>
32+
<div>
33+
<p>Easily create enterprise-ready containerized solutions and microservices,
34+
powered by Kubernetes and OpenShift 3 and running on Red Hat Enterprise Linux.</p>
35+
</div>
36+
</div>
37+
<div class="about-subsection">
38+
<div>
39+
<img class="about-img" src="images/static_powerwithchoice.png" width="160" height="160">
40+
</div>
41+
<div class="about-name">POWER WITH CHOICE</div>
42+
<div>
43+
<p>Pick and choose the tools and technologies you want, confident that the necessary integrations and dependencies will be handled and resolved for you.</p>
44+
</div>
45+
</div>
46+
</div>
47+
48+
</form>
49+
</main>
50+
51+
<footer id="footer-navigation" class="no-background-color">
52+
<div class="form-group pull-right form-buttons">
53+
<button id="aboutNextButton" type="button" id="confirm-install-btn" class="go-btn footer-btns btn btn-primary btn-med-size btn-lg" form="aboutForm"
54+
ng-click="aboutCtrl.next()" autofocus>
55+
<span id="about-form-btn-text">Next</span>
56+
</button>
57+
</div>
58+
<span class="footer-version">Version: {{version}}</span>
59+
</footer>

browser/pages/about/controller.js

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
'use strict';
2+
3+
class AboutController {
4+
5+
constructor($state, $scope, electron) {
6+
this.router = $state;
7+
this.scope = $scope;
8+
this.electron = electron;
9+
$scope.version = electron.remote.app.getVersion();
10+
}
11+
12+
next() {
13+
this.router.go('location');
14+
}
15+
16+
openDevSuiteOverview() {
17+
this.electron.shell.openExternal('https://developers.redhat.com');
18+
}
19+
20+
}
21+
22+
AboutController.$inject = ['$state', '$scope', 'electron'];
23+
24+
export default AboutController;

0 commit comments

Comments
 (0)