Commit bc14f172bd811513e2ff886b6d81438f843d3132

Authored by Marcelo Puebla
1 parent 2091357cd6

Creado componente formas de pago

src/app/app-routing.module.ts
1 1 import { NgModule } from '@angular/core';
2 2 import { Routes, RouterModule } from '@angular/router';
3 3 import { SplashScreenComponent } from './modules/splash-screen/splash-screen.component';
  4 +import { AdminComponent } from './modules/admin/admin.component';
  5 +import { FormasPagoModule } from './modules/formas-pago/formas-pago.module';
4 6  
5 7 const routes: Routes = [
6 8 { path: '', component: SplashScreenComponent },
  9 + {
  10 + path: '',
  11 + component: AdminComponent,
  12 + children: [
  13 + { path: 'formas-pago', loadChildren: () => FormasPagoModule },
  14 + ]
  15 + },
  16 + { path: '**', redirectTo: '', pathMatch: 'full' },
7 17 ];
8 18  
9 19 @NgModule({
src/app/app.module.ts
... ... @@ -5,12 +5,14 @@ import { AppRoutingModule } from './app-routing.module';
5 5 import { AppComponent } from './app.component';
6 6 import { SplashScreenComponent } from './modules/splash-screen/splash-screen.component';
7 7 import { SplitPipe } from './pipes/split.pipe';
  8 +import { AdminComponent } from './modules/admin/admin.component';
8 9  
9 10 @NgModule({
10 11 declarations: [
11 12 AppComponent,
12 13 SplashScreenComponent,
13   - SplitPipe
  14 + SplitPipe,
  15 + AdminComponent
14 16 ],
15 17 imports: [
16 18 BrowserModule,
src/app/modules/admin/admin.component.html
... ... @@ -0,0 +1,2 @@
  1 +<router-outlet></router-outlet>
  2 +<div class="h-8 bg-dark"></div>
0 3 \ No newline at end of file
src/app/modules/admin/admin.component.scss
src/app/modules/admin/admin.component.spec.ts
... ... @@ -0,0 +1,25 @@
  1 +import { async, ComponentFixture, TestBed } from '@angular/core/testing';
  2 +
  3 +import { AdminComponent } from './admin.component';
  4 +
  5 +describe('AdminComponent', () => {
  6 + let component: AdminComponent;
  7 + let fixture: ComponentFixture<AdminComponent>;
  8 +
  9 + beforeEach(async(() => {
  10 + TestBed.configureTestingModule({
  11 + declarations: [ AdminComponent ]
  12 + })
  13 + .compileComponents();
  14 + }));
  15 +
  16 + beforeEach(() => {
  17 + fixture = TestBed.createComponent(AdminComponent);
  18 + component = fixture.componentInstance;
  19 + fixture.detectChanges();
  20 + });
  21 +
  22 + it('should create', () => {
  23 + expect(component).toBeTruthy();
  24 + });
  25 +});
src/app/modules/admin/admin.component.ts
... ... @@ -0,0 +1,15 @@
  1 +import { Component, OnInit } from '@angular/core';
  2 +
  3 +@Component({
  4 + selector: 'app-admin',
  5 + templateUrl: './admin.component.html',
  6 + styleUrls: ['./admin.component.scss']
  7 +})
  8 +export class AdminComponent implements OnInit {
  9 +
  10 + constructor() { }
  11 +
  12 + ngOnInit() {
  13 + }
  14 +
  15 +}
src/app/modules/formas-pago/formas-pago-routing.module.ts
... ... @@ -0,0 +1,13 @@
  1 +import { NgModule } from '@angular/core';
  2 +import { Routes, RouterModule } from '@angular/router';
  3 +import { FormasPagoComponent } from './formas-pago.component';
  4 +
  5 +const routes: Routes = [
  6 + { path: '', component: FormasPagoComponent },
  7 +];
  8 +
  9 +@NgModule({
  10 + imports: [RouterModule.forChild(routes)],
  11 + exports: [RouterModule]
  12 +})
  13 +export class FormasPagoRoutingModule { }
src/app/modules/formas-pago/formas-pago.component.html
... ... @@ -0,0 +1,7 @@
  1 +<div class="h-92 bg-white">
  2 + <div class="row mx-0 h-15">
  3 + <div class="col-12 px-0 h-80 my-auto">
  4 + <img class="d-block mx-auto h-100" src="assets/img/logo-spot.svg">
  5 + </div>
  6 + </div>
  7 +</div>
0 8 \ No newline at end of file
src/app/modules/formas-pago/formas-pago.component.scss
src/app/modules/formas-pago/formas-pago.component.spec.ts
... ... @@ -0,0 +1,25 @@
  1 +import { async, ComponentFixture, TestBed } from '@angular/core/testing';
  2 +
  3 +import { FormasPagoComponent } from './formas-pago.component';
  4 +
  5 +describe('FormasPagoComponent', () => {
  6 + let component: FormasPagoComponent;
  7 + let fixture: ComponentFixture<FormasPagoComponent>;
  8 +
  9 + beforeEach(async(() => {
  10 + TestBed.configureTestingModule({
  11 + declarations: [ FormasPagoComponent ]
  12 + })
  13 + .compileComponents();
  14 + }));
  15 +
  16 + beforeEach(() => {
  17 + fixture = TestBed.createComponent(FormasPagoComponent);
  18 + component = fixture.componentInstance;
  19 + fixture.detectChanges();
  20 + });
  21 +
  22 + it('should create', () => {
  23 + expect(component).toBeTruthy();
  24 + });
  25 +});
src/app/modules/formas-pago/formas-pago.component.ts
... ... @@ -0,0 +1,15 @@
  1 +import { Component, OnInit } from '@angular/core';
  2 +
  3 +@Component({
  4 + selector: 'app-formas-pago',
  5 + templateUrl: './formas-pago.component.html',
  6 + styleUrls: ['./formas-pago.component.scss']
  7 +})
  8 +export class FormasPagoComponent implements OnInit {
  9 +
  10 + constructor() { }
  11 +
  12 + ngOnInit() {
  13 + }
  14 +
  15 +}
src/app/modules/formas-pago/formas-pago.module.ts
... ... @@ -0,0 +1,15 @@
  1 +import { NgModule } from '@angular/core';
  2 +import { CommonModule } from '@angular/common';
  3 +
  4 +import { FormasPagoRoutingModule } from './formas-pago-routing.module';
  5 +import { FormasPagoComponent } from './formas-pago.component';
  6 +
  7 +
  8 +@NgModule({
  9 + declarations: [FormasPagoComponent],
  10 + imports: [
  11 + CommonModule,
  12 + FormasPagoRoutingModule
  13 + ]
  14 +})
  15 +export class FormasPagoModule { }
src/app/modules/splash-screen/splash-screen.component.html
... ... @@ -11,7 +11,7 @@
11 11 <div class="col-12 px-0 h-100 my-auto">
12 12 <div class="row mx-0 h-15">
13 13 <div class="col-12 px-0 h-80 my-auto">
14   - <img class="d-block mx-auto h-100 focus-in-blur" src="assets/img/negativo-spot.svg">
  14 + <img class="d-block mx-auto h-100" src="assets/img/negativo-spot.svg">
15 15 </div>
16 16 </div>
17 17 <div class="row mx-0 h-75 justify-content-center text-white text-center">
... ... @@ -32,7 +32,9 @@
32 32 </div>
33 33 </div>
34 34 </div>
35   - <div class="row mx-0 h-10 loop-color cursor-pointer">
  35 + <div
  36 + class="row mx-0 h-10 loop-color cursor-pointer"
  37 + [routerLink]="['formas-pago']">
36 38 <div class="col-12 text-center align-self-center px-0">
37 39 <p class="h6 text-white">TOCA PARA COMENZAR</p>
38 40 </div>
... ... @@ -18,6 +18,7 @@ body {
18 18 background-color: #fcf2e3;
19 19 font-family: "Gotham";
20 20 overflow: hidden;
  21 + user-select: none;
21 22 }
22 23  
23 24 .cursor-pointer {