-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: refactor styles & add button component
- Loading branch information
Showing
6 changed files
with
290 additions
and
222 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,3 @@ | ||
<div class="container grid h-full place-items-center"> | ||
<button | ||
class="px-6 py-3 font-semibold text-white rounded-lg bg-primary-500 hover:bg-primary-400 transition ease-in-out duration-300" | ||
(click)="onClickSignIn()" | ||
> | ||
Sign in | ||
</button> | ||
<button class="btn btn-primary" (click)="onClickSignIn()">Sign in</button> | ||
</div> |
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
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 +1,51 @@ | ||
// here goes your button styles | ||
.btn { | ||
@apply px-6; | ||
@apply py-3; | ||
@apply font-semibold; | ||
@apply text-white; | ||
@apply rounded-lg; | ||
} | ||
|
||
.btn:focus { | ||
@apply ring-4; | ||
} | ||
|
||
.btn-primary { | ||
@apply bg-primary-500; | ||
} | ||
|
||
.btn-primary:hover { | ||
@apply bg-primary-400; | ||
} | ||
|
||
.btn-secondary { | ||
@apply bg-gray-500; | ||
} | ||
|
||
.btn-secondary:hover { | ||
@apply bg-gray-400; | ||
} | ||
|
||
.btn-success { | ||
@apply bg-success-500; | ||
} | ||
|
||
.btn-success:hover { | ||
@apply bg-success-400; | ||
} | ||
|
||
.btn-warning { | ||
@apply bg-warning-500; | ||
} | ||
|
||
.btn-warning:hover { | ||
@apply bg-warning-400; | ||
} | ||
|
||
.btn-danger { | ||
@apply bg-danger-500; | ||
} | ||
|
||
.btn-danger:hover { | ||
@apply bg-danger-400; | ||
} |
Oops, something went wrong.