Skip to content

Commit

Permalink
Update login component HTML and SCSS files
Browse files Browse the repository at this point in the history
  • Loading branch information
ianlabicani committed Mar 14, 2024
1 parent 47d097a commit 3560ec7
Show file tree
Hide file tree
Showing 2 changed files with 79 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/login/login.component.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div>
<h2>Register</h2>
<h2>Login</h2>
<form [formGroup]="loginForm" (ngSubmit)="login()">
<div>
<label for="email">Email:</label>
Expand Down
78 changes: 78 additions & 0 deletions src/app/login/login.component.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
/* login.component.scss */

div {
margin: 20px;
text-align: center;

h2 {
font-size: 24px;
margin-bottom: 20px;
}

form {
max-width: 400px;
margin: 0 auto;

div {
margin-bottom: 15px;

label {
display: block;
margin-bottom: 5px;
}

input {
width: 100%;
padding: 8px;
border-radius: 4px;
border: 1px solid #ccc;
transition: border-color 0.3s ease;

&:focus {
outline: none;
border-color: #007bff; /* Example focus color */
}
}

small {
color: red; /* Error message color */
display: block; /* Display error messages in block format */
margin-top: 5px; /* Add spacing above error messages */
}
}

button {
display: block;
width: 100%;
padding: 10px;
margin-top: 15px;
background-color: #007bff;
color: #fff;
border: none;
border-radius: 4px;
cursor: pointer;
transition: background-color 0.3s ease;

&:hover {
background-color: #0056b3; /* Darker color on hover */
}

&:disabled {
opacity: 0.6;
cursor: not-allowed;
}
}

p {
margin-top: 15px;
a {
color: #007bff;
text-decoration: none;

&:hover {
text-decoration: underline;
}
}
}
}
}

0 comments on commit 3560ec7

Please sign in to comment.