diff --git a/src/app/materilModule.ts b/src/app/materilModule.ts index beebe9f..9ba7a88 100644 --- a/src/app/materilModule.ts +++ b/src/app/materilModule.ts @@ -11,6 +11,7 @@ import { MatTableModule } from "@angular/material/table"; import { MatSelectModule } from "@angular/material/select"; import { MatAutocompleteModule } from '@angular/material/autocomplete'; import { MatPaginatorModule } from '@angular/material/paginator'; +import {MatSnackBarModule} from '@angular/material/snack-bar'; @NgModule({ imports: [ @@ -25,7 +26,8 @@ import { MatPaginatorModule } from '@angular/material/paginator'; MatSelectModule, MatOptionModule, MatAutocompleteModule, - MatPaginatorModule + MatPaginatorModule , + MatSnackBarModule ], exports: [ MatToolbarModule, @@ -39,7 +41,8 @@ import { MatPaginatorModule } from '@angular/material/paginator'; MatSelectModule, MatOptionModule, MatAutocompleteModule, - MatPaginatorModule + MatPaginatorModule, + MatSnackBarModule ] }) export class MaterialModule { } diff --git a/src/app/rooms/room-add/room-add.component.css b/src/app/rooms/room-add/room-add.component.css index e5d0fb8..4a1fe6c 100644 --- a/src/app/rooms/room-add/room-add.component.css +++ b/src/app/rooms/room-add/room-add.component.css @@ -1,4 +1,69 @@ -.form-group .form-control { - margin-top: 5px; - margin-bottom: 5px; -} \ No newline at end of file +/* Form Container */ +form { + max-width: 600px; + margin: 20px auto; + padding: 20px; + border: 1px solid #ccc; + border-radius: 8px; + background-color: #f9f9f9; + box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); +} + +/* Form Group */ +form div { + margin-bottom: 15px; +} + +/* Labels */ +label { + display: block; + margin-bottom: 5px; + font-weight: bold; + color: #333; +} + +/* Input Fields */ +input { + width: 100%; + padding: 8px; + margin-bottom: 5px; + border: 1px solid #ccc; + border-radius: 4px; + box-sizing: border-box; + font-size: 1em; + color: black; +} + +input:focus { + border-color: #007BFF; + outline: none; +} + +/* Error Messages */ +.error-message { + color: red; + font-size: 0.875em; + margin-top: 5px; +} + +/* Submit Button */ +button[type="submit"] { + width: 100%; + padding: 10px; + background-color: #007BFF; + color: white; + border: none; + border-radius: 4px; + cursor: pointer; + font-size: 1em; + transition: background-color 0.3s ease; +} + +button[type="submit"]:disabled { + background-color: #ccc; + cursor: not-allowed; +} + +button[type="submit"]:hover:not(:disabled) { + background-color: #0056b3; +} diff --git a/src/app/rooms/room-add/room-add.component.html b/src/app/rooms/room-add/room-add.component.html index fc35ad4..6fe8f26 100644 --- a/src/app/rooms/room-add/room-add.component.html +++ b/src/app/rooms/room-add/room-add.component.html @@ -1,50 +1,69 @@ -