Commit 2d44360e2e1dd5a98597a55224c3724444fb1b87
Exists in
develop
Merge branch 'develop' into 'develop'
Develop See merge request !53
Showing
5 changed files
Show diff stats
src/app/modules/info-formas-pago/info-formas-pago.component.html
1 | <div class="h-92 bg-white fade-in-left"> | 1 | <div class="h-92 bg-white fade-in-left"> |
2 | <div class="row mx-0 h-15"> | 2 | <div class="row mx-0 h-15"> |
3 | <div class="col-12 px-0 h-80 my-auto"> | 3 | <div class="col-12 px-0 h-80 my-auto"> |
4 | <img | 4 | <img |
5 | draggable="false" | 5 | draggable="false" |
6 | ondragstart="return false;" | 6 | ondragstart="return false;" |
7 | (contextmenu)="false" | 7 | (contextmenu)="false" |
8 | class="d-block mx-auto h-100" | 8 | class="d-block mx-auto h-100" |
9 | src="assets/img/logo-spot.svg"> | 9 | src="assets/img/logo-spot.svg"> |
10 | </div> | 10 | </div> |
11 | </div> | 11 | </div> |
12 | <div class="h-85"> | 12 | <div class="h-85"> |
13 | <div class="row h-auto mt-6 mx-0 justify-content-center text-center"> | 13 | <div class="row h-auto mt-6 mx-0 justify-content-center text-center"> |
14 | <div | 14 | <div |
15 | [routerLink]="['/opcion-pedido']" | 15 | [routerLink]="['/opcion-pedido']" |
16 | class="col-11 col-sm-10 col-md-7 col-lg-4 p-5 m-5 h-auto | 16 | class="col-11 col-sm-10 col-md-7 col-lg-4 p-5 m-5 h-auto |
17 | btn-effect align-self-end border border-secondary rounded"> | 17 | btn-effect align-self-end border border-secondary rounded reduce-card-1"> |
18 | <img | 18 | <img |
19 | draggable="false" | 19 | draggable="false" |
20 | ondragstart="return false;" | 20 | ondragstart="return false;" |
21 | (contextmenu)="false" | 21 | (contextmenu)="false" |
22 | class="img-in-top px-4 bg-white" | 22 | class="img-in-top px-4 bg-white" |
23 | src="assets/img/icono-tarjetas.svg"> | 23 | src="assets/img/icono-tarjetas.svg"> |
24 | <p class="h6 m-0">ESTA TERMINAL OPERA CON</p> | 24 | <p class="h6 m-0">ESTA TERMINAL OPERA CON</p> |
25 | <p class="h2 mb-3 text-secondary"> | 25 | <p class="h2 mb-3 text-secondary"> |
26 | tarjetas y | 26 | tarjetas y |
27 | <img | 27 | <img |
28 | draggable="false" | 28 | draggable="false" |
29 | ondragstart="return false;" | 29 | ondragstart="return false;" |
30 | (contextmenu)="false" | 30 | (contextmenu)="false" |
31 | class="icon-150" | 31 | class="icon-150" |
32 | src="assets/img/icono-mercado-pago.svg"> | 32 | src="assets/img/icono-mercado-pago.svg"> |
33 | </p> | 33 | </p> |
34 | <div class="d-inline-block py-1 btn-effect bg-secondary badge-pill text-white"> | 34 | <div class="d-inline-block py-1 btn-effect bg-secondary badge-pill text-white"> |
35 | CONTINUAR | 35 | CONTINUAR |
36 | <img | 36 | <img |
37 | draggable="false" | 37 | draggable="false" |
38 | ondragstart="return false;" | 38 | ondragstart="return false;" |
39 | (contextmenu)="false" | 39 | (contextmenu)="false" |
40 | class="icon-30" | 40 | class="icon-30" |
41 | src="assets/img/ir.svg"> | 41 | src="assets/img/ir.svg"> |
42 | </div> | 42 | </div> |
43 | </div> | 43 | </div> |
44 | <div class="col-11 col-sm-10 col-md-7 col-lg-4 p-5 m-5 h-auto align-self-center | 44 | <div |
45 | btn-effect border border-primary rounded reduce-card-2"> | 45 | class="col-11 col-sm-10 col-md-7 col-lg-4 p-5 m-5 h-auto align-self-center |
46 | btn-effect border border-primary rounded reduce-card-2" | ||
47 | (click)="openGoCaja(templateGoCaja)"> | ||
46 | <img | 48 | <img |
47 | draggable="false" | 49 | draggable="false" |
48 | ondragstart="return false;" | 50 | ondragstart="return false;" |
49 | (contextmenu)="false" | 51 | (contextmenu)="false" |
50 | class="img-in-top px-4 bg-white" | 52 | class="img-in-top px-4 bg-white" |
51 | src="assets/img/icono-efectivo.svg"> | 53 | src="assets/img/icono-efectivo.svg"> |
52 | <p class="h6 m-0">SI PREFERIS PAGAR EN EFECTIVO</p> | 54 | <p class="h6 m-0">SI PREFERIS PAGAR EN EFECTIVO</p> |
53 | <p class="h2 m-0 text-primary">haga su pedido<br>en caja</p> | 55 | <p class="h2 m-0 text-primary">haga su pedido<br>en caja</p> |
54 | </div> | 56 | </div> |
55 | </div> | 57 | </div> |
56 | </div> | 58 | </div> |
57 | </div> | 59 | </div> |
60 | |||
61 | <ng-template #templateGoCaja> | ||
62 | <div class="bg-primary rounded shadow text-white"> | ||
63 | <div class="modal-body text-center"> | ||
64 | Por favor, hace tu pedido en la caja. | ||
65 | </div> | ||
66 | </div> | ||
67 | </ng-template> | ||
58 | 68 |
src/app/modules/info-formas-pago/info-formas-pago.component.scss
1 | .mt-6 { | 1 | .mt-6 { |
2 | margin-top: 4.5rem; | 2 | margin-top: 4.5rem; |
3 | } | 3 | } |
4 | 4 | ||
5 | .reduce-card-1.media-pantalla { | 5 | .reduce-card-1.media-pantalla { |
6 | position: absolute; | 6 | flex: 0 0 35% !important; |
7 | bottom: 0; | 7 | max-width: 35% !important; |
8 | -webkit-box-flex: 0; | ||
9 | flex: 0 0 41.6666666667%; | ||
10 | max-width: 41.6666666667%; | ||
11 | left: 5%; | ||
12 | margin-left: 0 !important; | ||
13 | } | 8 | } |
14 | 9 | ||
15 | .reduce-card-2.media-pantalla { | 10 | .reduce-card-2.media-pantalla { |
16 | position: absolute; | 11 | flex: 0 0 35% !important; |
17 | bottom: 0; | 12 | max-width: 35% !important; |
18 | -webkit-box-flex: 0; | ||
19 | flex: 0 0 41.6666666667%; | ||
20 | max-width: 41.6666666667%; | ||
21 | right: 5%; | ||
22 | margin-right: 0 !important; | ||
23 | height: 202px !important; | ||
24 | } | 13 | } |
25 | 14 |
src/app/modules/info-formas-pago/info-formas-pago.component.ts
1 | import { Component, OnInit } from '@angular/core'; | 1 | import { Component, OnInit, TemplateRef } from '@angular/core'; |
2 | import { BsModalService } from 'ngx-bootstrap/modal'; | ||
2 | 3 | ||
3 | @Component({ | 4 | @Component({ |
4 | selector: 'app-formas-pago', | 5 | selector: 'app-formas-pago', |
5 | templateUrl: './info-formas-pago.component.html', | 6 | templateUrl: './info-formas-pago.component.html', |
6 | styleUrls: ['./info-formas-pago.component.scss'] | 7 | styleUrls: ['./info-formas-pago.component.scss'] |
7 | }) | 8 | }) |
8 | export class InfoFormasPagoComponent implements OnInit { | 9 | export class InfoFormasPagoComponent implements OnInit { |
9 | mediaPantalla = false; | 10 | mediaPantalla = false; |
10 | 11 | ||
11 | constructor() { } | 12 | constructor( |
13 | private modalService: BsModalService, | ||
14 | ) { } | ||
12 | 15 | ||
13 | ngOnInit() { | 16 | ngOnInit() { |
14 | this.reducirPantalla(); | ||
15 | } | 17 | } |
16 | 18 | ||
17 | reducirPantalla() { | 19 | openGoCaja(templateRef: TemplateRef<any>) { |
18 | if ($('body').hasClass('media-pantalla')) { | 20 | this.modalService.show(templateRef, { class: 'modal-promo modal-sm modal-dialog-centered' }); |
19 | $('.reduce-card-1,.reduce-card-2').addClass('media-pantalla'); | ||
20 | } |
src/scss/styles-bootstrap.scss
1 | @import "node_modules/bootstrap/scss/functions"; | 1 | @import "node_modules/bootstrap/scss/functions"; |
2 | @import "node_modules/bootstrap/scss/variables"; | 2 | @import "node_modules/bootstrap/scss/variables"; |
3 | @import "node_modules/bootstrap/scss/mixins"; | 3 | @import "node_modules/bootstrap/scss/mixins"; |
4 | 4 | ||
5 | $primary: #aa006b; | 5 | $primary: #aa006b; |
6 | $secondary: #00acd8; | 6 | $secondary: #00acd8; |
7 | $info: #f4b223; | 7 | $info: #f4b223; |
8 | $light: #e6e7e9; | 8 | $light: #e6e7e9; |
9 | $dark: #61666c; | 9 | $dark: #61666c; |
10 | $theme-colors: ( | 10 | $theme-colors: ( |
11 | primary: $primary, | 11 | primary: $primary, |
12 | secondary: $secondary, | 12 | secondary: $secondary, |
13 | info: $info, | 13 | info: $info, |
14 | light: $light, | 14 | light: $light, |
15 | dark: $dark | 15 | dark: $dark |
16 | ); | 16 | ); |
17 | $border-radius: 1.5rem; | 17 | $border-radius: 1.5rem; |
18 | $border-radius-lg: 2.5rem; | 18 | $border-radius-lg: 2.5rem; |
19 | $border-radius-sm: 0.5rem; | 19 | $border-radius-sm: 0.5rem; |
20 | 20 | ||
21 | .custom-modal { | 21 | .custom-modal { |
22 | max-width: 90% !important; | 22 | max-width: 90% !important; |
23 | & > .modal-content { | 23 | & > .modal-content { |
24 | background-color: $primary !important; | 24 | background-color: $primary !important; |
25 | color: white; | 25 | color: white; |
26 | border: none !important; | 26 | border: none !important; |
27 | border-radius: $border-radius !important; | 27 | border-radius: $border-radius !important; |
28 | box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important; | 28 | box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important; |
29 | } | 29 | } |
30 | } | 30 | } |
31 | 31 | ||
32 | .carousel-control { | 32 | .carousel-control { |
33 | visibility: hidden !important; | 33 | visibility: hidden !important; |
34 | } | 34 | } |
35 | 35 | ||
36 | .carousel, | 36 | .carousel, |
37 | .carousel-inner, | 37 | .carousel-inner, |
38 | .carousel-item, | 38 | .carousel-item, |
39 | .item { | 39 | .item { |
40 | height: 100% !important; | 40 | height: 100% !important; |
41 | } | 41 | } |
42 | 42 | ||
43 | .custom-checkbox .custom-control-input:checked ~ .custom-control-label::before { | 43 | .custom-checkbox .custom-control-input:checked ~ .custom-control-label::before { |
44 | background-color: $primary !important; | 44 | background-color: $primary !important; |
45 | } | 45 | } |
46 | 46 | ||
47 | .custom-control-input:checked ~ .custom-control-label::before { | 47 | .custom-control-input:checked ~ .custom-control-label::before { |
48 | border-color: $primary !important; | 48 | border-color: $primary !important; |
49 | background-color: $primary !important; | 49 | background-color: $primary !important; |
50 | } | 50 | } |
51 | 51 | ||
52 | .custom-control-input:checked ~ .custom-control-label::before { | 52 | .custom-control-input:checked ~ .custom-control-label::before { |
53 | color: #fff; | 53 | color: #fff; |
54 | border-color: $primary !important; | 54 | border-color: $primary !important; |
55 | background-color: $primary !important; | 55 | background-color: $primary !important; |
56 | } | 56 | } |
57 | 57 | ||
58 | .modal-promo > div { | 58 | .modal-promo > div { |
59 | border: none !important; | 59 | border: none !important; |
60 | border-radius: $border-radius; | 60 | border-radius: $border-radius; |
61 | margin-left: 10px !important; | 61 | margin-left: 10px !important; |
62 | } | 62 | } |
63 | 63 | ||
64 | .modal-content.media-pantalla { | ||
65 | margin-top: auto !important; | ||
66 | margin-bottom: 50px !important; | ||
67 | } | ||
68 | |||
64 | @import "node_modules/bootstrap/scss/bootstrap"; | 69 | @import "node_modules/bootstrap/scss/bootstrap"; |
65 | 70 |
src/styles.scss
1 | @import "scss/styles-bootstrap.scss"; | 1 | @import "scss/styles-bootstrap.scss"; |
2 | @import "scss/typography.scss"; | 2 | @import "scss/typography.scss"; |
3 | @import "scss/height-width.scss"; | 3 | @import "scss/height-width.scss"; |
4 | @import "scss/animations.scss"; | 4 | @import "scss/animations.scss"; |
5 | @import "scss/icons.scss"; | 5 | @import "scss/icons.scss"; |
6 | @import "scss/scroll.scss"; | 6 | @import "scss/scroll.scss"; |
7 | @import "node_modules/bootstrap/scss/_variables.scss"; | 7 | @import "node_modules/bootstrap/scss/_variables.scss"; |
8 | 8 | ||
9 | @font-face { | 9 | @font-face { |
10 | font-family: "Gotham"; | 10 | font-family: "Gotham"; |
11 | font-style: normal; | 11 | font-style: normal; |
12 | font-weight: normal; | 12 | font-weight: normal; |
13 | src: url("assets/fonts/gotham-medium.woff") format("woff"); | 13 | src: url("assets/fonts/gotham-medium.woff") format("woff"); |
14 | } | 14 | } |
15 | 15 | ||
16 | html, | 16 | html, |
17 | body { | 17 | body { |
18 | max-height: 100vh; | 18 | max-height: 100vh; |
19 | height: 100%; | 19 | height: 100%; |
20 | font-family: "Gotham"; | 20 | font-family: "Gotham"; |
21 | overflow: hidden; | 21 | overflow: hidden; |
22 | user-select: none; | 22 | user-select: none; |
23 | } | 23 | } |
24 | 24 | ||
25 | body.media-pantalla { | ||
26 | height: 50% !important; | ||
27 | position: absolute; | ||
28 | bottom: 0; | ||
29 | width: 100%; | ||
30 | } | ||
31 | |||
25 | .btn-effect { | 32 | .btn-effect { |
26 | transition: all 0.3s !important; | 33 | transition: all 0.3s !important; |
27 | &:hover { | 34 | &:hover { |
28 | cursor: pointer !important; | 35 | cursor: pointer !important; |
29 | opacity: 0.7 !important; | 36 | opacity: 0.7 !important; |
30 | } | 37 | } |
31 | &:active { | 38 | &:active { |
32 | transform: scale(1.02) !important; | 39 | transform: scale(1.02) !important; |
33 | } | 40 | } |
34 | } | 41 | } |
35 | 42 | ||
36 | .cursor-pointer { | 43 | .cursor-pointer { |
37 | cursor: pointer; | 44 | cursor: pointer; |
38 | } | 45 | } |
39 | 46 | ||
40 | p { | 47 | p { |
41 | margin: 0 !important; | 48 | margin: 0 !important; |
42 | } | 49 | } |
43 | 50 | ||
44 | .img-in-top { | 51 | .img-in-top { |
45 | position: absolute; | 52 | position: absolute; |
46 | top: -35px; | 53 | top: -35px; |
47 | left: 50%; | 54 | left: 50%; |
48 | height: 70px; | 55 | height: 70px; |
49 | -webkit-transform: translateX(-50%); | 56 | -webkit-transform: translateX(-50%); |
50 | transform: translateX(-50%); | 57 | transform: translateX(-50%); |
51 | } | 58 | } |
52 | 59 | ||
53 | .right-0 { | 60 | .right-0 { |
54 | right: 0; | 61 | right: 0; |
55 | } | 62 | } |
56 | 63 | ||
57 | .left-0 { | 64 | .left-0 { |
58 | left: 0; | 65 | left: 0; |
59 | } | 66 | } |
60 | 67 | ||
61 | .rotate-45 { | 68 | .rotate-45 { |
62 | transform: rotate(45deg); | 69 | transform: rotate(45deg); |
63 | } | 70 | } |
64 | 71 | ||
65 | .rotate-90 { | 72 | .rotate-90 { |
66 | transform: rotate(90deg); | 73 | transform: rotate(90deg); |
67 | } | 74 | } |
68 | 75 | ||
69 | .rotate-90-neg { | 76 | .rotate-90-neg { |
70 | transform: rotate(-90deg); | 77 | transform: rotate(-90deg); |
71 | } | 78 | } |
72 | 79 | ||
73 | .rotate-180-neg { | 80 | .rotate-180-neg { |
74 | transform: rotate(-180deg); | 81 | transform: rotate(-180deg); |
75 | } | 82 | } |
76 | 83 | ||
77 | .disabled { | 84 | .disabled { |
78 | opacity: 0.5; | 85 | opacity: 0.5; |
79 | } | 86 | } |
80 | |||
81 | body.media-pantalla { | ||
82 | height: 50% !important; | ||
83 | position: absolute; | ||
84 | bottom: 0; | ||
85 | width: 100%; |