diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index 355d6dc..ecc8ae4 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -9,6 +9,7 @@ import { AmbImagenesComponent } from './components/amb-imagenes/amb-imagenes.com import { PagoComponent } from './components/pago/pago.component'; import { CancelarCompraComponent } from './components/cancelar-compra/cancelar-compra.component'; import { MensajeFinalComponent } from './components/mensaje-final/mensaje-final.component'; +import { ComandaComponent } from './components/comanda/comanda.component'; const routes: Routes = [ { path: '', component: HomeComponent }, @@ -18,6 +19,7 @@ const routes: Routes = [ { path: 'pago', component: PagoComponent }, { path: 'cancelar-compra', component: CancelarCompraComponent }, { path: 'mensaje-final', component: MensajeFinalComponent }, + { path: 'comanda', component: ComandaComponent }, { path: '', component: MasterComponent, diff --git a/src/app/app.module.ts b/src/app/app.module.ts index a4eaaa9..0183ac1 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -31,6 +31,7 @@ import { AmbImagenesComponent } from './components/amb-imagenes/amb-imagenes.com import { PagoComponent } from './components/pago/pago.component'; import { CancelarCompraComponent } from './components/cancelar-compra/cancelar-compra.component'; import { MensajeFinalComponent } from './components/mensaje-final/mensaje-final.component'; +import { ComandaComponent } from './components/comanda/comanda.component'; //#endregion @NgModule({ @@ -48,7 +49,8 @@ import { MensajeFinalComponent } from './components/mensaje-final/mensaje-final. AmbImagenesComponent, PagoComponent, CancelarCompraComponent, - MensajeFinalComponent + MensajeFinalComponent, + ComandaComponent ], imports: [ BrowserModule, diff --git a/src/app/components/comanda/comanda.component.html b/src/app/components/comanda/comanda.component.html new file mode 100644 index 0000000..90e0a05 --- /dev/null +++ b/src/app/components/comanda/comanda.component.html @@ -0,0 +1,37 @@ +
+
+
+
+ +
+

Title

+

Text

+ + +
+
+ +
+
+ +
+
+
+
+
+
+
diff --git a/src/app/components/comanda/comanda.component.scss b/src/app/components/comanda/comanda.component.scss new file mode 100644 index 0000000..ded63f7 --- /dev/null +++ b/src/app/components/comanda/comanda.component.scss @@ -0,0 +1,28 @@ +@media (min-width: 1200px) { + .col-1-5 { + flex: 0 0 12.5%; + max-width: 12.5%; + position: relative; + width: 100%; + padding-right: 15px; + padding-left: 15px; + } +} + +.h7 { + font-size: 0.75rem; +} + +.red-card { + background-color: #8c000e; + .card-body { + color: #fff; + } +} + +.green-card { + background-color: #00751B; + .card-body { + color: #fff; + } +} diff --git a/src/app/components/comanda/comanda.component.spec.ts b/src/app/components/comanda/comanda.component.spec.ts new file mode 100644 index 0000000..e8ae342 --- /dev/null +++ b/src/app/components/comanda/comanda.component.spec.ts @@ -0,0 +1,25 @@ +import { async, ComponentFixture, TestBed } from '@angular/core/testing'; + +import { ComandaComponent } from './comanda.component'; + +describe('ComandaComponent', () => { + let component: ComandaComponent; + let fixture: ComponentFixture; + + beforeEach(async(() => { + TestBed.configureTestingModule({ + declarations: [ ComandaComponent ] + }) + .compileComponents(); + })); + + beforeEach(() => { + fixture = TestBed.createComponent(ComandaComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/src/app/components/comanda/comanda.component.ts b/src/app/components/comanda/comanda.component.ts new file mode 100644 index 0000000..c256e85 --- /dev/null +++ b/src/app/components/comanda/comanda.component.ts @@ -0,0 +1,19 @@ +import { Component, OnInit } from '@angular/core'; +import { appSettings } from 'src/etc/AppSettings'; + +@Component({ + selector: 'app-comanda', + templateUrl: './comanda.component.html', + styleUrls: ['./comanda.component.scss'] +}) +export class ComandaComponent implements OnInit { + + private apiImagenes = appSettings.apiImagenes; + private itemsArray = [{},{},{},{},{},{},{},{}] + + constructor() { } + + ngOnInit() { + } + +}