-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add welcome dialog (holidays change)
- Loading branch information
Sebastian Cabeza
committed
Feb 19, 2021
1 parent
90a975b
commit b7d086d
Showing
7 changed files
with
124 additions
and
3 deletions.
There are no files selected for viewing
41 changes: 41 additions & 0 deletions
41
RepoWebShop/src/app/home/components/welcome-dialog/welcome-dialog.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<h2 mat-dialog-title>Cambios en la forma de comprar</h2> | ||
|
||
<mat-dialog-content style="font-family: Noto Serif"> | ||
|
||
<p> | ||
Hola, gracias por visitarnos! | ||
</p> | ||
<p> | ||
Queriamos avisarte que a modo de prueba, las cosas van a ser un poco distintas desde el Martes 22 de Febrero, hasta el Domingo 14 de Marzo. | ||
</p> | ||
<ul> | ||
<li> | ||
Durante este tiempo vamos a tomar pedidos a través de nuestro WhatsApp solamente. | ||
</li> | ||
<li> | ||
Solo vamos a tomar pedidos de nuestro catálo de productos dulces. | ||
</li> | ||
<li> | ||
Las compras se podrán retirar los días Sábados entre las 9hs y 14hs. | ||
</li> | ||
</ul> | ||
|
||
|
||
<div> | ||
<p> | ||
Con mucho cariño, | ||
<br> | ||
De las Artes | ||
</p> | ||
</div> | ||
|
||
</mat-dialog-content> | ||
|
||
<mat-dialog-actions> | ||
<div style="display: grid; grid-template-columns: auto auto; gap: 10px; width: 100%;"> | ||
<a href='https://api.whatsapp.com/send?phone=5491127778899' target="_blank" style="display: flex; align-items: center; color: black; margin-right: auto;"> | ||
<img src="../../../assets/images/icons/whapp.png" style="width:25px; height: 25px; margin-right: 10px;" class="icon">11 2777 8899 | ||
</a> | ||
<button style="margin-left: auto;" mat-button color="primary" (click)="close()">Entendido</button> | ||
</div> | ||
</mat-dialog-actions> |
Empty file.
25 changes: 25 additions & 0 deletions
25
RepoWebShop/src/app/home/components/welcome-dialog/welcome-dialog.component.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; | ||
|
||
import { WelcomeDialogComponent } from './welcome-dialog.component'; | ||
|
||
describe('HoursComponent', () => { | ||
let component: WelcomeDialogComponent; | ||
let fixture: ComponentFixture<WelcomeDialogComponent>; | ||
|
||
beforeEach(async(() => { | ||
TestBed.configureTestingModule({ | ||
declarations: [ WelcomeDialogComponent ] | ||
}) | ||
.compileComponents(); | ||
})); | ||
|
||
beforeEach(() => { | ||
fixture = TestBed.createComponent(WelcomeDialogComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
33 changes: 33 additions & 0 deletions
33
RepoWebShop/src/app/home/components/welcome-dialog/welcome-dialog.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import { Component, OnInit, OnDestroy, Inject } from '@angular/core'; | ||
import { CalendarService } from '../../services/calendar.service'; | ||
import { Subscription } from 'rxjs'; | ||
import { IPublicCalendar } from '../../interfaces/ipublic-calendar'; | ||
import { map, tap, groupBy, switchMap, toArray, mergeMap } from 'rxjs/operators'; | ||
import { IWorkingHour } from '../../interfaces/iworking-hour'; | ||
import { IPublicHoliday } from '../../interfaces/ipublic-holiday'; | ||
import { IVacation } from '../../interfaces/ivacation'; | ||
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material'; | ||
|
||
@Component({ | ||
selector: 'app-welcome-dialog', | ||
templateUrl: './welcome-dialog.component.html', | ||
styleUrls: ['./welcome-dialog.component.scss'] | ||
}) | ||
export class WelcomeDialogComponent implements OnInit, OnDestroy { | ||
|
||
constructor( | ||
private dialogRef: MatDialogRef<WelcomeDialogComponent>, | ||
@Inject(MAT_DIALOG_DATA) data) { | ||
} | ||
|
||
ngOnInit() { | ||
|
||
} | ||
|
||
ngOnDestroy() { | ||
} | ||
|
||
close() { | ||
this.dialogRef.close(); | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
RepoWebShop/src/app/home/containers/home-shell/home-shell.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters