Commit 4176cd7090b42d7a914002ece52595c9ddeb3211
1 parent
d8f7daded9
Exists in
master
and in
1 other branch
Cambio de tamaño de imagen.
Showing
1 changed file
with
3 additions
and
3 deletions
Show diff stats
src/app/components/inicio/inicio.component.html
1 | <div class="row m-0 fade-in"> | 1 | <div class="row m-0 fade-in"> |
2 | <div class="col-12 p-0"> | 2 | <div class="col-12 p-0"> |
3 | 3 | ||
4 | <!-- NOMBRE DE SECCION --> | 4 | <!-- NOMBRE DE SECCION --> |
5 | <div class="row m-0"> | 5 | <div class="row m-0"> |
6 | <div class="col-12 p-0"> | 6 | <div class="col-12 p-0"> |
7 | <p class="h5 py-1 bg-gray text-muted text-center">Inicio</p> | 7 | <p class="h5 py-1 bg-gray text-muted text-center">Inicio</p> |
8 | </div> | 8 | </div> |
9 | </div> | 9 | </div> |
10 | 10 | ||
11 | <div class="row m-3 d-flex align-items-start disable-user-select"> | 11 | <div class="row m-3 d-flex align-items-start disable-user-select"> |
12 | <div class="col-md-5 d-flex align-items-end flex-column"> | 12 | <div class="col-md-5 d-flex align-items-end flex-column"> |
13 | 13 | ||
14 | <!-- PROMOCIONES --> | 14 | <!-- PROMOCIONES --> |
15 | <div | 15 | <div |
16 | (click)="irBusquedaProductos(false)" | 16 | (click)="irBusquedaProductos(false)" |
17 | class="card card-effect bg-white border-0 shadow rounded w-100 mb-auto"> | 17 | class="card card-effect bg-white border-0 shadow rounded w-100 mb-auto"> |
18 | <div class="card-body text-left px-4 py-3"> | 18 | <div class="card-body text-left px-4 py-3"> |
19 | <div class="row"> | 19 | <div class="row"> |
20 | <div class="col-7"> | 20 | <div class="col-7"> |
21 | <p class="h3 card-title">Promociones</p> | 21 | <p class="h3 card-title">Promociones</p> |
22 | </div> | 22 | </div> |
23 | <div class="col-5 p-0"> | 23 | <div class="col-5 p-0"> |
24 | <img src="{{apiUrl}}/imagenes/primario.promociones.png" class="icon-dim m-0"> | 24 | <img src="{{apiUrl}}/imagenes/primario.promociones.png" class="icon-dim m-0"> |
25 | </div> | 25 | </div> |
26 | </div> | 26 | </div> |
27 | <p class="h5 card-text text-muted font-weight-light">Conozca las ofertas del momento.</p> | 27 | <p class="h5 card-text text-muted font-weight-light">Conozca las ofertas del momento.</p> |
28 | </div> | 28 | </div> |
29 | <div id="carouselIndicators" class="carousel slide" data-ride="carousel"> | 29 | <div id="carouselIndicators" class="carousel slide" data-ride="carousel"> |
30 | <div class="carousel-inner"> | 30 | <div class="carousel-inner"> |
31 | <div class="carousel-item active"> | 31 | <div class="carousel-item active"> |
32 | <img src="{{apiUrl}}/imagenes/testImg3.jpg" class="d-block w-100 m-auto rounded"> | 32 | <img src="{{apiUrl}}/imagenes/testImg3.jpg" class="d-block w-75 m-auto rounded"> |
33 | </div> | 33 | </div> |
34 | <div class="carousel-item"> | 34 | <div class="carousel-item"> |
35 | <img src="{{apiUrl}}/imagenes/testImg3.jpg" class="d-block w-100 m-auto rounded"> | 35 | <img src="{{apiUrl}}/imagenes/testImg3.jpg" class="d-block w-75 m-auto rounded"> |
36 | </div> | 36 | </div> |
37 | <div class="carousel-item"> | 37 | <div class="carousel-item"> |
38 | <img src="{{apiUrl}}/imagenes/testImg3.jpg" class="d-block w-100 m-auto rounded"> | 38 | <img src="{{apiUrl}}/imagenes/testImg3.jpg" class="d-block w-75 m-auto rounded"> |
39 | </div> | 39 | </div> |
40 | </div> | 40 | </div> |
41 | </div> | 41 | </div> |
42 | </div> | 42 | </div> |
43 | 43 | ||
44 | <!-- ORDENAR --> | 44 | <!-- ORDENAR --> |
45 | <div class="card card-effect bg-white border-0 shadow rounded w-100 mt-4"> | 45 | <div class="card card-effect bg-white border-0 shadow rounded w-100 mt-4"> |
46 | <div class="card-body text-left px-4 py-3"> | 46 | <div class="card-body text-left px-4 py-3"> |
47 | <div class="row"> | 47 | <div class="row"> |
48 | <div class="col-5"> | 48 | <div class="col-5"> |
49 | <p class="h3 card-title">Ordenar Pedido</p> | 49 | <p class="h3 card-title">Ordenar Pedido</p> |
50 | </div> | 50 | </div> |
51 | <div class="col-7 p-0"> | 51 | <div class="col-7 p-0"> |
52 | <img src="{{apiUrl}}/imagenes/primario.ordenar.png" class="icon-dim"> | 52 | <img src="{{apiUrl}}/imagenes/primario.ordenar.png" class="icon-dim"> |
53 | </div> | 53 | </div> |
54 | </div> | 54 | </div> |
55 | <p class="h5 card-text text-muted font-weight-light">Arme su pedido y solo pase a retirar.</p> | 55 | <p class="h5 card-text text-muted font-weight-light">Arme su pedido y solo pase a retirar.</p> |
56 | </div> | 56 | </div> |
57 | <img | 57 | <img |
58 | class="card-img-bottom d-block w-100 mx-auto rounded" | 58 | class="card-img-bottom d-block w-100 mx-auto rounded" |
59 | src="{{apiUrl}}/imagenes/cafe.jpg"> | 59 | src="{{apiUrl}}/imagenes/cafe.jpg"> |
60 | </div> | 60 | </div> |
61 | </div> | 61 | </div> |
62 | 62 | ||
63 | <div class="col-md-7 d-flex align-items-end flex-column mt-4 mt-md-0"> | 63 | <div class="col-md-7 d-flex align-items-end flex-column mt-4 mt-md-0"> |
64 | 64 | ||
65 | <!-- CARGAR PRODUCTOS --> | 65 | <!-- CARGAR PRODUCTOS --> |
66 | <ng-template #popTemplate> | 66 | <ng-template #popTemplate> |
67 | <app-popover-promos | 67 | <app-popover-promos |
68 | *ngIf="promociones.length > 0 && sinonimos.length === 0" | 68 | *ngIf="promociones.length > 0 && sinonimos.length === 0" |
69 | [popover]="popoverDirective" | 69 | [popover]="popoverDirective" |
70 | [popoverContent]="promociones" | 70 | [popoverContent]="promociones" |
71 | (promoSeleccionada)="promoSeleccionada($event)" | 71 | (promoSeleccionada)="promoSeleccionada($event)" |
72 | class="text-white rounded-sm border-0"> | 72 | class="text-white rounded-sm border-0"> |
73 | </app-popover-promos> | 73 | </app-popover-promos> |
74 | <app-popover-sinonimos | 74 | <app-popover-sinonimos |
75 | *ngIf="sinonimos.length > 0" | 75 | *ngIf="sinonimos.length > 0" |
76 | [popover]="popoverDirective" | 76 | [popover]="popoverDirective" |
77 | [popoverContent]="sinonimos" | 77 | [popoverContent]="sinonimos" |
78 | (sinonimoSeleccionado)="sinonimoSeleccionado($event)" | 78 | (sinonimoSeleccionado)="sinonimoSeleccionado($event)" |
79 | class="text-white rounded-sm border-0"> | 79 | class="text-white rounded-sm border-0"> |
80 | </app-popover-sinonimos> | 80 | </app-popover-sinonimos> |
81 | </ng-template> | 81 | </ng-template> |
82 | <div | 82 | <div |
83 | placement="left" | 83 | placement="left" |
84 | triggers="" | 84 | triggers="" |
85 | [popover]="popTemplate" | 85 | [popover]="popTemplate" |
86 | class="w-100" | 86 | class="w-100" |
87 | #pop="bs-popover"> | 87 | #pop="bs-popover"> |
88 | <div class="card bg-white border-0 shadow rounded mb-auto"> | 88 | <div class="card bg-white border-0 shadow rounded mb-auto"> |
89 | <div class="card-body text-left px-4 py-3"> | 89 | <div class="card-body text-left px-4 py-3"> |
90 | <div class="row"> | 90 | <div class="row"> |
91 | <div class="col-6"> | 91 | <div class="col-6"> |
92 | <p class="h3 card-title">Cargar Productos</p> | 92 | <p class="h3 card-title">Cargar Productos</p> |
93 | </div> | 93 | </div> |
94 | <div class="col-6 p-0"> | 94 | <div class="col-6 p-0"> |
95 | <img src="{{apiUrl}}/imagenes/escanear.png" class="icon-dim mb-2"> | 95 | <img src="{{apiUrl}}/imagenes/escanear.png" class="icon-dim mb-2"> |
96 | </div> | 96 | </div> |
97 | </div> | 97 | </div> |
98 | <p class="h5 card-text text-muted font-weight-light"> | 98 | <p class="h5 card-text text-muted font-weight-light"> |
99 | Coloque un producto frente<br> | 99 | Coloque un producto frente<br> |
100 | al lector de códigos o selecciónelo en pantalla | 100 | al lector de códigos o selecciónelo en pantalla |
101 | </p> | 101 | </p> |
102 | </div> | 102 | </div> |
103 | <div class="row m-4"> | 103 | <div class="row m-4"> |
104 | <div class="col card bg-white shadow border-0 w-75 p-0 mx-auto rounded-sm"> | 104 | <div class="col card bg-white shadow border-0 w-75 p-0 mx-auto rounded-sm"> |
105 | <!-- IMAGEN DE ESCANER --> | 105 | <!-- IMAGEN DE ESCANER --> |
106 | <img | 106 | <img |
107 | *ngIf="!productoAcargar" | 107 | *ngIf="!productoAcargar" |
108 | class="card-img-top d-block w-100 mx-auto rounded-sm" | 108 | class="card-img-top d-block w-100 mx-auto rounded-sm" |
109 | src="{{apiUrl}}/imagenes/escanner.jpg"> | 109 | src="{{apiUrl}}/imagenes/escanner.jpg"> |
110 | 110 | ||
111 | <!-- PRODUCTO A CARGAR --> | 111 | <!-- PRODUCTO A CARGAR --> |
112 | <div class="fade-in m-0" *ngIf="productoAcargar && !promoAcargar"> | 112 | <div class="fade-in m-0" *ngIf="productoAcargar && !promoAcargar"> |
113 | <img | 113 | <img |
114 | class="card-img-top d-block w-75 mx-auto rounded-sm" | 114 | class="card-img-top d-block w-75 mx-auto rounded-sm" |
115 | src="{{apiUrl}}/imagenes/{{productoAcargar.imagenes[0].imagen}}"> | 115 | src="{{apiUrl}}/imagenes/{{productoAcargar.imagenes[0].imagen}}"> |
116 | 116 | ||
117 | <div class="row justify-content-between m-3"> | 117 | <div class="row justify-content-between m-3"> |
118 | <div class="col-12 text-left px-1"> | 118 | <div class="col-12 text-left px-1"> |
119 | <p class="h6 font-weight-bold mb-0">{{productoAcargar.DetArt}}</p> | 119 | <p class="h6 font-weight-bold mb-0">{{productoAcargar.DetArt}}</p> |
120 | </div> | 120 | </div> |
121 | <div class="col-12 text-right mt-2"> | 121 | <div class="col-12 text-right mt-2"> |
122 | <p class="h5 font-weight-bold mb-0">{{productoAcargar.PreVen | currency}}</p> | 122 | <p class="h5 font-weight-bold mb-0">{{productoAcargar.PreVen | currency}}</p> |
123 | </div> | 123 | </div> |
124 | </div> | 124 | </div> |
125 | </div> | 125 | </div> |
126 | 126 | ||
127 | <!-- PROMO A CARGAR --> | 127 | <!-- PROMO A CARGAR --> |
128 | <div class="fade-in m-0" *ngIf="promoAcargar"> | 128 | <div class="fade-in m-0" *ngIf="promoAcargar"> |
129 | <img | 129 | <img |
130 | class="card-img-top d-block w-100 mx-auto rounded-sm" | 130 | class="card-img-top d-block w-100 mx-auto rounded-sm" |
131 | src="{{apiUrl}}/imagenes/{{promoAcargar.imagenes[0].imagen}}"> | 131 | src="{{apiUrl}}/imagenes/{{promoAcargar.imagenes[0].imagen}}"> |
132 | 132 | ||
133 | <div class="row justify-content-between m-3"> | 133 | <div class="row justify-content-between m-3"> |
134 | <div class="col-12 text-left px-1"> | 134 | <div class="col-12 text-left px-1"> |
135 | <p class="h6 font-weight-bold mb-0">{{promoAcargar.nombrePromo}}</p> | 135 | <p class="h6 font-weight-bold mb-0">{{promoAcargar.nombrePromo}}</p> |
136 | </div> | 136 | </div> |
137 | <div class="col-12 text-right mt-2 align-self-end"> | 137 | <div class="col-12 text-right mt-2 align-self-end"> |
138 | <p class="h5 font-weight-bold mb-0">{{promoAcargar.precioTotal | currency}}</p> | 138 | <p class="h5 font-weight-bold mb-0">{{promoAcargar.precioTotal | currency}}</p> |
139 | </div> | 139 | </div> |
140 | </div> | 140 | </div> |
141 | </div> | 141 | </div> |
142 | 142 | ||
143 | </div> | 143 | </div> |
144 | <!-- BOTONES DE CARGAR PRODUCTOS--> | 144 | <!-- BOTONES DE CARGAR PRODUCTOS--> |
145 | <div | 145 | <div |
146 | class="col-5 pr-0" | 146 | class="col-5 pr-0" |
147 | *ngIf="promociones.length > 0"> | 147 | *ngIf="promociones.length > 0"> |
148 | <button | 148 | <button |
149 | *ngIf="sinonimos.length > 0" | 149 | *ngIf="sinonimos.length > 0" |
150 | type="button" | 150 | type="button" |
151 | class="btn btn-light btn-block shadow-sm" | 151 | class="btn btn-light btn-block shadow-sm" |
152 | (click)="pop.show()"> | 152 | (click)="pop.show()"> |
153 | <span class="pr-2">Personalizar</span> | 153 | <span class="pr-2">Personalizar</span> |
154 | <i class="fa fa-hand-o-up text-purple" aria-hidden="true"></i> | 154 | <i class="fa fa-hand-o-up text-purple" aria-hidden="true"></i> |
155 | </button> | 155 | </button> |
156 | <button | 156 | <button |
157 | *ngIf="!promoAcargar" | 157 | *ngIf="!promoAcargar" |
158 | type="button" | 158 | type="button" |
159 | class="btn btn-primary btn-block shadow-sm" | 159 | class="btn btn-primary btn-block shadow-sm" |
160 | (click)="pop.show()"> | 160 | (click)="pop.show()"> |
161 | <span class="pr-2">Mostrar promociones</span> | 161 | <span class="pr-2">Mostrar promociones</span> |
162 | <i class="fa fa-bullhorn fa-flip-horizontal" aria-hidden="true"></i> | 162 | <i class="fa fa-bullhorn fa-flip-horizontal" aria-hidden="true"></i> |
163 | </button> | 163 | </button> |
164 | <button type="button" class="btn btn-light btn-block shadow-sm my-3"> | 164 | <button type="button" class="btn btn-light btn-block shadow-sm my-3"> |
165 | <span class="pr-2 font-weight-bold">Confirmar</span> | 165 | <span class="pr-2 font-weight-bold">Confirmar</span> |
166 | <i class="fa fa-check text-success" aria-hidden="true"></i> | 166 | <i class="fa fa-check text-success" aria-hidden="true"></i> |
167 | </button> | 167 | </button> |
168 | <button | 168 | <button |
169 | type="button" | 169 | type="button" |
170 | class="btn btn-light btn-block shadow-sm" | 170 | class="btn btn-light btn-block shadow-sm" |
171 | (click)="deshacerCarga()"> | 171 | (click)="deshacerCarga()"> |
172 | <span class="pr-2">Deshacer</span> | 172 | <span class="pr-2">Deshacer</span> |
173 | <i class="fa fa-undo text-warning" aria-hidden="true"></i> | 173 | <i class="fa fa-undo text-warning" aria-hidden="true"></i> |
174 | </button> | 174 | </button> |
175 | </div> | 175 | </div> |
176 | </div> | 176 | </div> |
177 | </div> | 177 | </div> |
178 | </div> | 178 | </div> |
179 | 179 | ||
180 | <!-- BUSCAR PRODUCTOS --> | 180 | <!-- BUSCAR PRODUCTOS --> |
181 | <div (click)="irBusquedaProductos(true)" | 181 | <div (click)="irBusquedaProductos(true)" |
182 | class="card card-effect bg-white border-0 shadow rounded w-100 mt-4"> | 182 | class="card card-effect bg-white border-0 shadow rounded w-100 mt-4"> |
183 | <div class="card-body text-left px-4 py-3"> | 183 | <div class="card-body text-left px-4 py-3"> |
184 | <div class="row"> | 184 | <div class="row"> |
185 | <div class="col-6"> | 185 | <div class="col-6"> |
186 | <p class="h3 card-title">Buscar Productos</p> | 186 | <p class="h3 card-title">Buscar Productos</p> |
187 | <p class="h5 card-text text-muted font-weight-light"> | 187 | <p class="h5 card-text text-muted font-weight-light"> |
188 | Busque aquí los productos<br> | 188 | Busque aquí los productos<br> |
189 | que no tienen código </p> | 189 | que no tienen código </p> |
190 | </div> | 190 | </div> |
191 | <div class="col-6 p-0"> | 191 | <div class="col-6 p-0"> |
192 | <img src="{{apiUrl}}/imagenes/primario.buscar.png" class="icon-dim mb-2"> | 192 | <img src="{{apiUrl}}/imagenes/primario.buscar.png" class="icon-dim mb-2"> |
193 | </div> | 193 | </div> |
194 | </div> | 194 | </div> |
195 | 195 | ||
196 | </div> | 196 | </div> |
197 | </div> | 197 | </div> |
198 | 198 | ||
199 | </div> | 199 | </div> |
200 | 200 | ||
201 | </div> | 201 | </div> |
202 | 202 | ||
203 | </div> | 203 | </div> |
204 | </div> | 204 | </div> |
205 | 205 |