-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* new design of navigation buttons * redesign 1st step on the wizard * redesing set-provider step * redesign: set-datacenter step * add: 'cancel' button * redesing: progress bar * review feedback
- Loading branch information
Showing
16 changed files
with
283 additions
and
232 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 8 additions & 16 deletions
24
src/app/wizard/navigation-buttons/navigation-buttons.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,14 @@ | ||
<div class="km-buttom-navigation"> | ||
<button type="button" md-raised-button color="primary" (click)="stepBack()" [disabled]="step == 0"> | ||
<i class="fa fa-chevron-left" style="margin-right: 5px;" aria-hidden="true"></i>Back | ||
<button type="button" class="btn-back" md-raised-button (click)="stepBack()" *ngIf="step !== 0"> | ||
Back | ||
</button> | ||
<button type="button" md-raised-button color="primary" (click)="stepForward()" [disabled]="!nextStep"> | ||
<ng-container *ngIf="step == 0"> | ||
continue to select provider<i class="fa fa-chevron-right" aria-hidden="true"></i> | ||
</ng-container> | ||
<ng-container *ngIf="step == 1"> | ||
continue to select datacenter<i class="fa fa-chevron-right" aria-hidden="true"></i> | ||
</ng-container> | ||
<ng-container *ngIf="step == 2"> | ||
continue to add credentials and settings<i class="fa fa-chevron-right" aria-hidden="true"></i> | ||
</ng-container> | ||
<ng-container *ngIf="step == 3"> | ||
continue to review settings <i class="fa fa-chevron-right" aria-hidden="true"></i> | ||
</ng-container> | ||
<ng-container *ngIf="step == 4 || step == 5"> | ||
create cluster | ||
<ng-container *ngIf="step < 4; else summaryStep"> | ||
Next | ||
</ng-container> | ||
<ng-template #summaryStep> | ||
Create | ||
</ng-template> | ||
</button> | ||
<a type="button" class="cancel-button" routerLink="/clusters">Cancel</a> | ||
</div> |
36 changes: 29 additions & 7 deletions
36
src/app/wizard/navigation-buttons/navigation-buttons.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,36 @@ | ||
.km-buttom-navigation { | ||
margin-top: 10px; | ||
margin-bottom: 70px; | ||
margin-top: 35px; | ||
text-align: center; | ||
|
||
.mat-raised-button { | ||
line-height: 32px; | ||
} | ||
|
||
button { | ||
text-transform: uppercase; | ||
font-size: 12px; | ||
font-size: 14px; | ||
font-weight: 600; | ||
letter-spacing: 0.4px; | ||
|
||
i { | ||
margin-left: 5px; | ||
border-radius: 4px; | ||
&.btn-back { | ||
color: #444D58; | ||
} | ||
&.mat-raised-button.mat-primary { | ||
width: 110px; | ||
} | ||
&.mat-raised-button.mat-primary[disabled] { | ||
color: #fff; | ||
background-color: #BDC6D1; | ||
box-shadow: 0 3px 1px -2px rgba(0,0,0,.2), 0 2px 2px 0 rgba(0,0,0,.14), 0 1px 5px 0 rgba(0,0,0,.12); | ||
} | ||
} | ||
|
||
.cancel-button { | ||
position: absolute; | ||
right: 30px; | ||
bottom: 25px; | ||
color: #BDC6D1; | ||
text-decoration: none; | ||
font-size: 14px; | ||
font-weight: 600; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,32 @@ | ||
<md-card class="km-card-progress-bar" fxLayout fxLayoutGap="25px"> | ||
<md-card-title fxFlex class="wizard-step" > | ||
<span [style.cursor]="getCurser(0)" (click)="gotoStep(0)"> | ||
<small [ngClass]="getTitleClass(0)">Name</small> | ||
<i [ngClass]="getIconClass(0)"></i> | ||
<small>Cluster Name</small> | ||
</span> | ||
</md-card-title> | ||
<md-card-title fxFlex class="wizard-step"> | ||
<span [style.cursor]="getCurser(1)" (click)="gotoStep(1)"> | ||
<small [ngClass]="getTitleClass(1)">Provider</small> | ||
<i [ngClass]="getIconClass(1)"></i> | ||
<small>Provider</small> | ||
</span> | ||
</md-card-title> | ||
<md-card-title fxFlex class="wizard-step"> | ||
<span [style.cursor]="getCurser(2)" (click)="gotoStep(2)"> | ||
<small [ngClass]="getTitleClass(2)">Datacenter</small> | ||
<i [ngClass]="getIconClass(2)"></i> | ||
<small>Datacenter</small> | ||
</span> | ||
</md-card-title> | ||
<md-card-title fxFlex class="wizard-step"> | ||
<span [style.cursor]="getCurser(3)" (click)="gotoStep(3)"> | ||
<small [ngClass]="getTitleClass(3)">Settings</small> | ||
<i [ngClass]="getIconClass(3)"></i> | ||
<small>Settings</small> | ||
</span> | ||
</md-card-title> | ||
<md-card-title fxFlex class="wizard-step"> | ||
<span [style.cursor]="getCurser(4)" (click)="gotoStep(4)"> | ||
<small [ngClass]="getTitleClass(4)">Summary</small> | ||
<i [ngClass]="getIconClass(4)"></i> | ||
<small>Summary</small> | ||
</span> | ||
</md-card-title> | ||
</md-card> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 16 additions & 18 deletions
34
src/app/wizard/set-cluster-name/set-cluster-name.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,16 @@ | ||
<md-card> | ||
<md-card-header> | ||
<md-card-title> | ||
<h4>Name your Kubernetes cluster</h4> | ||
</md-card-title> | ||
</md-card-header> | ||
<md-card-content> | ||
<p>This is how you will identify your Kubernetes cluster instance. Choose a name that is easy for you to remember.</p> | ||
<form [connect]="['wizard', 'clusterNameForm']" [formGroup]="clusterNameForm" novalidate fxLayout="column"> | ||
<md-input-container fxFlex> | ||
<input id="name" mdInput formControlName="name" type="text" placeholder="Name" title="name"> | ||
</md-input-container> | ||
<div fxFlex> | ||
<button type="button" md-raised-button (click)="generateName()">Generate name</button> | ||
</div> | ||
</form> | ||
</md-card-content> | ||
</md-card> | ||
<md-card-header> | ||
<md-card-title> | ||
<h4>Name your Cluster</h4> | ||
</md-card-title> | ||
</md-card-header> | ||
<md-card-content> | ||
<p>This is how you will identify your Kubernetes cluster instance. Choose a name that is easy for you to remember</p> | ||
<form [connect]="['wizard', 'clusterNameForm']" [formGroup]="clusterNameForm" novalidate fxLayout="column"> | ||
<md-input-container fxFlex> | ||
<input id="name" mdInput formControlName="name" type="text" placeholder="Enter a cluster name" title="name"> | ||
</md-input-container> | ||
<div fxFlex> | ||
<button type="button" (click)="generateName()">Generate name</button> | ||
</div> | ||
</form> | ||
</md-card-content> |
65 changes: 43 additions & 22 deletions
65
src/app/wizard/set-cluster-name/set-cluster-name.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,51 @@ | ||
.mat-card { | ||
.mat-card-header { | ||
padding: 0; | ||
margin-bottom: 10px; | ||
} | ||
.mat-card-header { | ||
padding: 0; | ||
margin-bottom: 10px; | ||
border: none; | ||
} | ||
|
||
.mat-card-header-text { | ||
margin: 0; | ||
} | ||
.mat-card-header-text { | ||
margin: 0; | ||
} | ||
|
||
.mat-card-title { | ||
margin: 0; | ||
h4 { | ||
font-weight: 400; | ||
margin: 10px 0; | ||
font-size: 18px; | ||
color: #444D58; | ||
} | ||
.mat-card-title { | ||
margin: 0; | ||
h4 { | ||
font-weight: 600; | ||
margin: 10px 0; | ||
font-size: 18px; | ||
color: #444D58; | ||
} | ||
} | ||
|
||
.mat-card-content { | ||
form { | ||
padding-top: 10px; | ||
.mat-card-content { | ||
.mat-input-container { | ||
margin-top: 20px; | ||
.mat-input-placeholder-wrapper .mat-input-placeholder { | ||
color: #BDC6D1; | ||
font-weight: 600; | ||
font-size: 14px; | ||
} | ||
p { | ||
color: #444D58; | ||
margin: 0 0 5px; | ||
} | ||
form { | ||
padding-top: 10px; | ||
} | ||
p { | ||
color: #BDC6D1; | ||
font-size: 12px; | ||
margin: 0 0 5px; | ||
} | ||
button { | ||
background-color: transparent; | ||
border: none; | ||
color: #0288D1; | ||
outline: none; | ||
cursor: pointer; | ||
font-size: 14px; | ||
font-weight: 600; | ||
padding: 0; | ||
&:hover { | ||
color: #0288D1; | ||
} | ||
} | ||
} |
53 changes: 28 additions & 25 deletions
53
src/app/wizard/set-datacenter/set-datacenter.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,29 @@ | ||
<md-card> | ||
<md-card-header> | ||
<md-card-title> | ||
<h4>Select the datacenter of your cloud provider</h4> | ||
</md-card-title> | ||
</md-card-header> | ||
<md-card-content> | ||
<p>This is the cloud provider the Kubernetes nodes are deployed in by Kubermatic. | ||
Your nodes can be placed in any cloud you like, but for performance reasons as near to the master as possible.</p> | ||
<form *ngIf="datacenters" [connect]="['wizard', 'setDatacenterForm']" [formGroup]="setDatacenterForm" fxLayoutAlign="center" fxLayout="row wrap"> | ||
<label class="wizard-box" fxFlex="100px" *ngFor="let dc of datacenters[selectedProvider]; let i = index;" | ||
[ngClass]="{'selected': !!selectedDatacenter && selectedDatacenter.metadata.name === dc.metadata.name, 'wizard-box-color_primary': i % 2 === 0, 'wizard-box-color_secondary': i % 2 !== 0}" | ||
[attr.for]="dc.metadata.name"> | ||
<!-- TODO: OnClick go to next step --> | ||
<!-- TODO: Refresh Button is no region shown --> | ||
<div class="wizard-box-content"> | ||
<span class="{{'flag-icon flag-icon-' + dc.spec.country.toLowerCase()}}"></span> | ||
<div class="location"> | ||
{{dc.spec.location}} | ||
</div> | ||
<md-card-header> | ||
<md-card-title> | ||
<h4>Select the datacenter of your cloud provider</h4> | ||
</md-card-title> | ||
</md-card-header> | ||
<md-card-content> | ||
<p>This is the cloud provider the Kubernetes nodes are deployed in by Kubermatic. Your nodes can be placed in any cloud you | ||
like, but for performance reasons as near to the master as possible.</p> | ||
<form *ngIf="datacenters" [connect]="['wizard', 'setDatacenterForm']" [formGroup]="setDatacenterForm" fxLayoutAlign="left" | ||
fxLayout="row wrap"> | ||
<label class="wizard-box" | ||
fxFlex="90px" | ||
*ngFor="let dc of datacenters[selectedProvider]; let i = index;" | ||
[ngClass]="{ | ||
'selected': !!selectedDatacenter && selectedDatacenter.metadata.name === dc.metadata.name, | ||
'wizard-box-color_primary': i % 2 === 0, 'wizard-box-color_secondary': i % 2 !== 0}" | ||
[attr.for]="dc.metadata.name"> | ||
<!-- TODO: OnClick go to next step --> | ||
<!-- TODO: Refresh Button is no region shown --> | ||
<div class="wizard-box-content"> | ||
<span class="{{'flag-icon flag-icon-' + dc.spec.country.toLowerCase()}}"></span> | ||
<div class="location"> | ||
{{dc.spec.location}} | ||
</div> | ||
<input style="display: none" type="radio" [attr.name]="dc.metadata.name" formControlName="datacenter" [value]="dc" [attr.id]="dc.metadata.name"> | ||
</label> | ||
</form> | ||
</md-card-content> | ||
</md-card> | ||
</div> | ||
<input style="display: none" type="radio" [attr.name]="dc.metadata.name" formControlName="datacenter" [value]="dc" [attr.id]="dc.metadata.name"> | ||
</label> | ||
</form> | ||
</md-card-content> |
Oops, something went wrong.