diff --git a/frontend/src/app/app.component.html b/frontend/src/app/app.component.html index 67e7bd4..3c7c33b 100644 --- a/frontend/src/app/app.component.html +++ b/frontend/src/app/app.component.html @@ -1 +1,2 @@ - + + diff --git a/frontend/src/app/app.component.ts b/frontend/src/app/app.component.ts index 94bb796..8cb1fac 100644 --- a/frontend/src/app/app.component.ts +++ b/frontend/src/app/app.component.ts @@ -1,12 +1,13 @@ import { Component } from '@angular/core'; import { RouterOutlet } from '@angular/router'; +import { ErrorToastComponent } from './shared/components/error-toast/error-toast.component'; @Component({ selector: 'app-root', standalone: true, - imports: [RouterOutlet], + imports: [RouterOutlet, ErrorToastComponent], templateUrl: './app.component.html', - styleUrl: './app.component.scss' + styleUrl: './app.component.scss', }) export class AppComponent { title = 'frontend'; diff --git a/frontend/src/app/shared/components/error-toast/error-toast.component.html b/frontend/src/app/shared/components/error-toast/error-toast.component.html new file mode 100644 index 0000000..ad2b8c0 --- /dev/null +++ b/frontend/src/app/shared/components/error-toast/error-toast.component.html @@ -0,0 +1,3 @@ +
+
+
diff --git a/frontend/src/app/shared/components/error-toast/error-toast.component.scss b/frontend/src/app/shared/components/error-toast/error-toast.component.scss new file mode 100644 index 0000000..8245dce --- /dev/null +++ b/frontend/src/app/shared/components/error-toast/error-toast.component.scss @@ -0,0 +1,23 @@ +@import "./../../../../assets/style/colors.scss"; + +section { + position: relative; + width: 615px; + height: 80px; + padding: 24px 32px; + border-radius: 20px; + opacity: 0px; + background-color: $purple; +} + +.red { + position: absolute; + top: 0; + left: 0; + width: 38px; + height: 100%; + border-top-left-radius: 20px; + border-bottom-left-radius: 20px; + background-color: $red; + z-index: 2; +} diff --git a/frontend/src/app/shared/components/error-toast/error-toast.component.spec.ts b/frontend/src/app/shared/components/error-toast/error-toast.component.spec.ts new file mode 100644 index 0000000..a4f67c6 --- /dev/null +++ b/frontend/src/app/shared/components/error-toast/error-toast.component.spec.ts @@ -0,0 +1,23 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { ErrorToastComponent } from './error-toast.component'; + +describe('ErrorToastComponent', () => { + let component: ErrorToastComponent; + let fixture: ComponentFixture; + + beforeEach(async () => { + await TestBed.configureTestingModule({ + imports: [ErrorToastComponent] + }) + .compileComponents(); + + fixture = TestBed.createComponent(ErrorToastComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/frontend/src/app/shared/components/error-toast/error-toast.component.ts b/frontend/src/app/shared/components/error-toast/error-toast.component.ts new file mode 100644 index 0000000..f684fbc --- /dev/null +++ b/frontend/src/app/shared/components/error-toast/error-toast.component.ts @@ -0,0 +1,12 @@ +import { Component } from '@angular/core'; + +@Component({ + selector: 'app-error-toast', + standalone: true, + imports: [], + templateUrl: './error-toast.component.html', + styleUrl: './error-toast.component.scss' +}) +export class ErrorToastComponent { + +} diff --git a/frontend/src/assets/img/attention.svg b/frontend/src/assets/img/attention.svg new file mode 100644 index 0000000..2e9ee6f --- /dev/null +++ b/frontend/src/assets/img/attention.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/frontend/src/assets/style/colors.scss b/frontend/src/assets/style/colors.scss index 104b9be..1e77f45 100644 --- a/frontend/src/assets/style/colors.scss +++ b/frontend/src/assets/style/colors.scss @@ -5,3 +5,4 @@ $gray: #ababab; $blue: #2e3edf; $light-blue: #969eef; $red: #ff002e; +$purple: #2e3edf;