Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
#71 adding styles for login screen and defining default colors for bu…
…ttons
  • Loading branch information
enriquezrene committed Apr 7, 2020
commit 4772d4bbdc7b27f11c4c95b801b3aa77151110f8
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,8 @@
<h1 class="card-title">Activity</h1>
<div class="form-group">
<label for="name">Name:</label>
<input
class="form-control"
id="name"
type="text"
formControlName="name"
[class.is-invalid]="name.invalid && name.touched"
required
/>
<input class="form-control" id="name" type="text" formControlName="name"
[class.is-invalid]="name.invalid && name.touched" required />
<div class="text-danger" *ngIf="(name.dirty || name.touched) && name.invalid && name.errors.required">
Activity name is required.
</div>
Expand All @@ -22,9 +16,7 @@ <h1 class="card-title">Activity</h1>
</div>

<div class="btn-toolbar" role="toolbar">
<div class="btn-group mr-2" role="group">
<button class="btn save-button-style mb-2" type="submit" [disabled]="!activityForm.valid">Save</button>
</div>
<button class="btn btn-primary" type="submit" [disabled]="!activityForm.valid">Save</button>
</div>
</form>
</div>
</div>
15 changes: 14 additions & 1 deletion src/app/modules/login/login.component.html
Original file line number Diff line number Diff line change
@@ -1 +1,14 @@
<button (click)="login()">login</button>
<div class="login-container">

<div class="login-header">
<img src="../../../assets/img/ioet.png" />
</div>
<div class="login-body">
<h1>Please sign in</h1>
</div>

<div class="login-controls">
<button (click)="login()" class="btn btn-primary">login</button>
</div>

</div>
38 changes: 38 additions & 0 deletions src/app/modules/login/login.component.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
@import '../../../scss/orange-theme';

.login-container {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
margin: auto;
padding: 50px;
}

.login-header {
margin: 5px;
text-align: center;
img {
max-width: 200px;
height: auto;
}
}

.login-body {
margin: 5px;
text-align: center;
}

.login-controls {
margin: 5px;
display: flex;
text-align: center;
min-width: 250px;
button {
flex-grow: 1;
}
}

h1 {
color: $dark;
}
15 changes: 2 additions & 13 deletions src/app/modules/time-clock/pages/time-clock.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -57,24 +57,13 @@ <h6 class="text-left"><strong>Projects</strong></h6>
<hr />
<div class="container">
<div class="row">
<div class="col text-left">
<button
class="btn btn-light btn-sm dropdown-toggle"
type="button"
data-toggle="dropdown"
aria-haspopup="true"
aria-expanded="false"
>
Options
</button>
</div>
<div class="col text-right">
<button *ngIf="isClockIn" class="btn button-clock-in-style btn-sm" type="button" (click)="employeClockIn()">
<button *ngIf="isClockIn" class="btn btn-primary" type="button" (click)="employeClockIn()">
Clock In
</button>
<button
*ngIf="!isClockIn"
class="btn button-clock-out-style btn-sm"
class="btn btn-primary"
type="button"
(click)="employeClockOut()"
>
Expand Down
10 changes: 0 additions & 10 deletions src/app/modules/time-clock/pages/time-clock.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,6 @@
justify-content: center;
}

.button-clock-in-style {
background-image: $button-primary-color;
color: white;
}

.button-clock-out-style {
background: $button-secondary-color;
color: white;
}

.text-clock-in-color {
color: $modal-button-secondary;
}
29 changes: 29 additions & 0 deletions src/scss/_orange-theme.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
$primary:#fc5630;
$secondary:#ff3f56;
$success:#16bac5;
$info:#30bced;
$warning:#fc5630;
$danger:#ff3663;
$light:#ffffff;
$dark:#5c4e63;

.bg-primary,
.btn-primary,
.badge-primary,
.alert-primary {
background-image: linear-gradient(
to right,
#ff3948,
#ff384d,
#ff3752,
#ff3657,
#ff365c,
#ff385a,
#ff3b59,
#ff3d57,
#ff434e,
#ff4944,
#fe4f3a,
#fc5630
);
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can move this file to a new directory /themes

3 changes: 3 additions & 0 deletions src/styles.scss
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
/* You can add global styles to this file, and also import other style files */

@import "scss/orange-theme";
@import "~bootstrap/scss/bootstrap";