diff --git a/src/app/core/interfaces/site/site.ts b/src/app/core/interfaces/site/site.ts
index 9795920..bd1d9d8 100644
--- a/src/app/core/interfaces/site/site.ts
+++ b/src/app/core/interfaces/site/site.ts
@@ -20,5 +20,6 @@
phone_number_3?: string;
email?: string;
url?: string;
+ show_information?:boolean,
}
diff --git a/src/app/core/interfaces/site/site.ts b/src/app/core/interfaces/site/site.ts
index 9795920..bd1d9d8 100644
--- a/src/app/core/interfaces/site/site.ts
+++ b/src/app/core/interfaces/site/site.ts
@@ -20,5 +20,6 @@
phone_number_3?: string;
email?: string;
url?: string;
+ show_information?:boolean,
}
diff --git a/src/app/core/mocks/data.ts b/src/app/core/mocks/data.ts
index 02cf1c6..6e9afe4 100644
--- a/src/app/core/mocks/data.ts
+++ b/src/app/core/mocks/data.ts
@@ -11,7 +11,8 @@
length: -72.64797890311478
},
email: "Recuerdo-@gmail.com",
- url: "https://i.ibb.co/WKS0QnJ/Tienda-Polanco-1-1-1024x1024.jpg"
+ url: "https://i.ibb.co/WKS0QnJ/Tienda-Polanco-1-1-1024x1024.jpg",
+ show_information:false,
},
{
id: 1,
@@ -23,7 +24,8 @@
length: -72.6485850825132
},
email: "Deposito-@gmail.com",
- url: "https://i.ibb.co/P9n1k0x/Restaurantes-Bucaramanga-1.jpg"
+ url: "https://i.ibb.co/P9n1k0x/Restaurantes-Bucaramanga-1.jpg",
+ show_information:false,
},
{
id: 2,
@@ -35,7 +37,8 @@
length: -72.64887476144403
},
email: "Leoporinos-@gmail.com",
- url: "https://i.ibb.co/bgJtCyv/babette.jpg"
+ url: "https://i.ibb.co/bgJtCyv/babette.jpg",
+ show_information:false,
},
{
id: 3,
@@ -47,7 +50,8 @@
length: -73.64887476144403
},
email: "Restaurantegpuls@gmail.com",
- url: "https://media-cdn.tripadvisor.com/media/photo-s/11/e1/06/24/cornelia.jpg"
+ url: "https://media-cdn.tripadvisor.com/media/photo-s/11/e1/06/24/cornelia.jpg",
+ show_information:false,
},
{
id: 5,
@@ -59,7 +63,8 @@
length: -72.64797890311478
},
email: "Recuerdo-@gmail.com",
- url: "https://i.ibb.co/WKS0QnJ/Tienda-Polanco-1-1-1024x1024.jpg"
+ url: "https://i.ibb.co/WKS0QnJ/Tienda-Polanco-1-1-1024x1024.jpg",
+ show_information:false,
},
{
id: 6,
@@ -71,7 +76,8 @@
length: -72.6485850825132
},
email: "Deposito-@gmail.com",
- url: "https://i.ibb.co/P9n1k0x/Restaurantes-Bucaramanga-1.jpg"
+ url: "https://i.ibb.co/P9n1k0x/Restaurantes-Bucaramanga-1.jpg",
+ show_information:false,
},
{
id: 7,
@@ -83,7 +89,8 @@
length: -72.64887476144403
},
email: "Leoporinos-@gmail.com",
- url: "https://i.ibb.co/bgJtCyv/babette.jpg"
+ url: "https://i.ibb.co/bgJtCyv/babette.jpg",
+ show_information:false,
},
{
id: 8,
@@ -95,6 +102,7 @@
length: -73.64887476144403
},
email: "Restaurantegpuls@gmail.com",
- url: "https://media-cdn.tripadvisor.com/media/photo-s/11/e1/06/24/cornelia.jpg"
+ url: "https://media-cdn.tripadvisor.com/media/photo-s/11/e1/06/24/cornelia.jpg",
+ show_information:false,
},
]
diff --git a/src/app/core/interfaces/site/site.ts b/src/app/core/interfaces/site/site.ts
index 9795920..bd1d9d8 100644
--- a/src/app/core/interfaces/site/site.ts
+++ b/src/app/core/interfaces/site/site.ts
@@ -20,5 +20,6 @@
phone_number_3?: string;
email?: string;
url?: string;
+ show_information?:boolean,
}
diff --git a/src/app/core/mocks/data.ts b/src/app/core/mocks/data.ts
index 02cf1c6..6e9afe4 100644
--- a/src/app/core/mocks/data.ts
+++ b/src/app/core/mocks/data.ts
@@ -11,7 +11,8 @@
length: -72.64797890311478
},
email: "Recuerdo-@gmail.com",
- url: "https://i.ibb.co/WKS0QnJ/Tienda-Polanco-1-1-1024x1024.jpg"
+ url: "https://i.ibb.co/WKS0QnJ/Tienda-Polanco-1-1-1024x1024.jpg",
+ show_information:false,
},
{
id: 1,
@@ -23,7 +24,8 @@
length: -72.6485850825132
},
email: "Deposito-@gmail.com",
- url: "https://i.ibb.co/P9n1k0x/Restaurantes-Bucaramanga-1.jpg"
+ url: "https://i.ibb.co/P9n1k0x/Restaurantes-Bucaramanga-1.jpg",
+ show_information:false,
},
{
id: 2,
@@ -35,7 +37,8 @@
length: -72.64887476144403
},
email: "Leoporinos-@gmail.com",
- url: "https://i.ibb.co/bgJtCyv/babette.jpg"
+ url: "https://i.ibb.co/bgJtCyv/babette.jpg",
+ show_information:false,
},
{
id: 3,
@@ -47,7 +50,8 @@
length: -73.64887476144403
},
email: "Restaurantegpuls@gmail.com",
- url: "https://media-cdn.tripadvisor.com/media/photo-s/11/e1/06/24/cornelia.jpg"
+ url: "https://media-cdn.tripadvisor.com/media/photo-s/11/e1/06/24/cornelia.jpg",
+ show_information:false,
},
{
id: 5,
@@ -59,7 +63,8 @@
length: -72.64797890311478
},
email: "Recuerdo-@gmail.com",
- url: "https://i.ibb.co/WKS0QnJ/Tienda-Polanco-1-1-1024x1024.jpg"
+ url: "https://i.ibb.co/WKS0QnJ/Tienda-Polanco-1-1-1024x1024.jpg",
+ show_information:false,
},
{
id: 6,
@@ -71,7 +76,8 @@
length: -72.6485850825132
},
email: "Deposito-@gmail.com",
- url: "https://i.ibb.co/P9n1k0x/Restaurantes-Bucaramanga-1.jpg"
+ url: "https://i.ibb.co/P9n1k0x/Restaurantes-Bucaramanga-1.jpg",
+ show_information:false,
},
{
id: 7,
@@ -83,7 +89,8 @@
length: -72.64887476144403
},
email: "Leoporinos-@gmail.com",
- url: "https://i.ibb.co/bgJtCyv/babette.jpg"
+ url: "https://i.ibb.co/bgJtCyv/babette.jpg",
+ show_information:false,
},
{
id: 8,
@@ -95,6 +102,7 @@
length: -73.64887476144403
},
email: "Restaurantegpuls@gmail.com",
- url: "https://media-cdn.tripadvisor.com/media/photo-s/11/e1/06/24/cornelia.jpg"
+ url: "https://media-cdn.tripadvisor.com/media/photo-s/11/e1/06/24/cornelia.jpg",
+ show_information:false,
},
]
diff --git a/src/app/modules/public/discover/components/list-sites/list-sites.component.html b/src/app/modules/public/discover/components/list-sites/list-sites.component.html
index 2e70b45..9cf56d6 100644
--- a/src/app/modules/public/discover/components/list-sites/list-sites.component.html
+++ b/src/app/modules/public/discover/components/list-sites/list-sites.component.html
@@ -1,11 +1,24 @@
-
+
-
-
{{site!.name}}
+
{{ site!.name }}
@@ -16,7 +29,7 @@
-
+
Abierto
Cierra a las 21:00
@@ -32,11 +45,40 @@
salazones). combinandolos con nuevos sabores y texturas.
-
- {{site!.phone_number}}
-
- {{site!.email}}
+
+ {{ site!.phone_number }}
+
+ {{ site!.email }}
+
+
+
+
+
+
+ {{ page }}
+
+
...
+
+
+
diff --git a/src/app/core/interfaces/site/site.ts b/src/app/core/interfaces/site/site.ts
index 9795920..bd1d9d8 100644
--- a/src/app/core/interfaces/site/site.ts
+++ b/src/app/core/interfaces/site/site.ts
@@ -20,5 +20,6 @@
phone_number_3?: string;
email?: string;
url?: string;
+ show_information?:boolean,
}
diff --git a/src/app/core/mocks/data.ts b/src/app/core/mocks/data.ts
index 02cf1c6..6e9afe4 100644
--- a/src/app/core/mocks/data.ts
+++ b/src/app/core/mocks/data.ts
@@ -11,7 +11,8 @@
length: -72.64797890311478
},
email: "Recuerdo-@gmail.com",
- url: "https://i.ibb.co/WKS0QnJ/Tienda-Polanco-1-1-1024x1024.jpg"
+ url: "https://i.ibb.co/WKS0QnJ/Tienda-Polanco-1-1-1024x1024.jpg",
+ show_information:false,
},
{
id: 1,
@@ -23,7 +24,8 @@
length: -72.6485850825132
},
email: "Deposito-@gmail.com",
- url: "https://i.ibb.co/P9n1k0x/Restaurantes-Bucaramanga-1.jpg"
+ url: "https://i.ibb.co/P9n1k0x/Restaurantes-Bucaramanga-1.jpg",
+ show_information:false,
},
{
id: 2,
@@ -35,7 +37,8 @@
length: -72.64887476144403
},
email: "Leoporinos-@gmail.com",
- url: "https://i.ibb.co/bgJtCyv/babette.jpg"
+ url: "https://i.ibb.co/bgJtCyv/babette.jpg",
+ show_information:false,
},
{
id: 3,
@@ -47,7 +50,8 @@
length: -73.64887476144403
},
email: "Restaurantegpuls@gmail.com",
- url: "https://media-cdn.tripadvisor.com/media/photo-s/11/e1/06/24/cornelia.jpg"
+ url: "https://media-cdn.tripadvisor.com/media/photo-s/11/e1/06/24/cornelia.jpg",
+ show_information:false,
},
{
id: 5,
@@ -59,7 +63,8 @@
length: -72.64797890311478
},
email: "Recuerdo-@gmail.com",
- url: "https://i.ibb.co/WKS0QnJ/Tienda-Polanco-1-1-1024x1024.jpg"
+ url: "https://i.ibb.co/WKS0QnJ/Tienda-Polanco-1-1-1024x1024.jpg",
+ show_information:false,
},
{
id: 6,
@@ -71,7 +76,8 @@
length: -72.6485850825132
},
email: "Deposito-@gmail.com",
- url: "https://i.ibb.co/P9n1k0x/Restaurantes-Bucaramanga-1.jpg"
+ url: "https://i.ibb.co/P9n1k0x/Restaurantes-Bucaramanga-1.jpg",
+ show_information:false,
},
{
id: 7,
@@ -83,7 +89,8 @@
length: -72.64887476144403
},
email: "Leoporinos-@gmail.com",
- url: "https://i.ibb.co/bgJtCyv/babette.jpg"
+ url: "https://i.ibb.co/bgJtCyv/babette.jpg",
+ show_information:false,
},
{
id: 8,
@@ -95,6 +102,7 @@
length: -73.64887476144403
},
email: "Restaurantegpuls@gmail.com",
- url: "https://media-cdn.tripadvisor.com/media/photo-s/11/e1/06/24/cornelia.jpg"
+ url: "https://media-cdn.tripadvisor.com/media/photo-s/11/e1/06/24/cornelia.jpg",
+ show_information:false,
},
]
diff --git a/src/app/modules/public/discover/components/list-sites/list-sites.component.html b/src/app/modules/public/discover/components/list-sites/list-sites.component.html
index 2e70b45..9cf56d6 100644
--- a/src/app/modules/public/discover/components/list-sites/list-sites.component.html
+++ b/src/app/modules/public/discover/components/list-sites/list-sites.component.html
@@ -1,11 +1,24 @@
-
+
-
-
{{site!.name}}
+
{{ site!.name }}
@@ -16,7 +29,7 @@
-
+
Abierto
Cierra a las 21:00
@@ -32,11 +45,40 @@
salazones). combinandolos con nuevos sabores y texturas.
-
- {{site!.phone_number}}
-
- {{site!.email}}
+
+ {{ site!.phone_number }}
+
+ {{ site!.email }}
+
+
+
+
+
+
+ {{ page }}
+
+
...
+
+
+
diff --git a/src/app/modules/public/discover/components/list-sites/list-sites.component.scss b/src/app/modules/public/discover/components/list-sites/list-sites.component.scss
index c0014c9..ca15824 100644
--- a/src/app/modules/public/discover/components/list-sites/list-sites.component.scss
+++ b/src/app/modules/public/discover/components/list-sites/list-sites.component.scss
@@ -1,12 +1,10 @@
-
-
ul {
list-style-type: none;
padding-left: 0;
}
li {
- /* @media only screen and (min-width: 1500px) {
+ /* @media only screen and (min-width: 1500px) {
min-height: 250px;
width: 100%;
} */
@@ -17,7 +15,6 @@
}
.img-container {
-
}
.img-container div {
@@ -27,33 +24,69 @@
background-size: cover;
}
-.info-container{
+.info-container {
width: 60%;
}
-.list__gap{
+.list__gap {
gap: 1rem;
}
-.time-icon{
+.time-icon {
font-size: 25px;
color: var(--base-color-green);
}
-.open{
+.open {
color: var(--base-color-green);
}
-.call-icon,.mail-icon{
+.call-icon,
+.mail-icon {
font-size: 20px;
-
}
-.blue-color{
+.blue-color {
color: var(--base-color-blue-secondary);
}
-.user-icon,.score-icon{
- color:var(--base-color-gray-dark);
+.user-icon,
+.score-icon {
+ color: var(--base-color-gray-dark);
font-size: 25px;
}
+
+.arrow-icon{
+ width:1.438rem;
+ height:1.313rem;
+ color: white;
+}
+
+/* carousel */
+
+.slide {
+ margin: 20px 5px;
+ color: black;
+ height: 1.875rem;
+ width: 1.875rem;
+ border-radius:var(--base-rounded-medium);
+ cursor: pointer;
+ /* background: url('../../../../../../assets/images/svg/restaurant.svg'); */
+}
+
+button {
+ background-color: var(--base-color-primary);
+ color: inherit;
+ border: none;
+ padding: 0;
+ font: inherit;
+ cursor: pointer;
+ outline: inherit;
+ width: 2.938rem;
+ height: 2.188rem;
+ border-radius:var(--base-rounded-medium);
+}
+
+.page-select{
+ background-color: var(--base-color-gray-dark);
+}
diff --git a/src/app/core/interfaces/site/site.ts b/src/app/core/interfaces/site/site.ts
index 9795920..bd1d9d8 100644
--- a/src/app/core/interfaces/site/site.ts
+++ b/src/app/core/interfaces/site/site.ts
@@ -20,5 +20,6 @@
phone_number_3?: string;
email?: string;
url?: string;
+ show_information?:boolean,
}
diff --git a/src/app/core/mocks/data.ts b/src/app/core/mocks/data.ts
index 02cf1c6..6e9afe4 100644
--- a/src/app/core/mocks/data.ts
+++ b/src/app/core/mocks/data.ts
@@ -11,7 +11,8 @@
length: -72.64797890311478
},
email: "Recuerdo-@gmail.com",
- url: "https://i.ibb.co/WKS0QnJ/Tienda-Polanco-1-1-1024x1024.jpg"
+ url: "https://i.ibb.co/WKS0QnJ/Tienda-Polanco-1-1-1024x1024.jpg",
+ show_information:false,
},
{
id: 1,
@@ -23,7 +24,8 @@
length: -72.6485850825132
},
email: "Deposito-@gmail.com",
- url: "https://i.ibb.co/P9n1k0x/Restaurantes-Bucaramanga-1.jpg"
+ url: "https://i.ibb.co/P9n1k0x/Restaurantes-Bucaramanga-1.jpg",
+ show_information:false,
},
{
id: 2,
@@ -35,7 +37,8 @@
length: -72.64887476144403
},
email: "Leoporinos-@gmail.com",
- url: "https://i.ibb.co/bgJtCyv/babette.jpg"
+ url: "https://i.ibb.co/bgJtCyv/babette.jpg",
+ show_information:false,
},
{
id: 3,
@@ -47,7 +50,8 @@
length: -73.64887476144403
},
email: "Restaurantegpuls@gmail.com",
- url: "https://media-cdn.tripadvisor.com/media/photo-s/11/e1/06/24/cornelia.jpg"
+ url: "https://media-cdn.tripadvisor.com/media/photo-s/11/e1/06/24/cornelia.jpg",
+ show_information:false,
},
{
id: 5,
@@ -59,7 +63,8 @@
length: -72.64797890311478
},
email: "Recuerdo-@gmail.com",
- url: "https://i.ibb.co/WKS0QnJ/Tienda-Polanco-1-1-1024x1024.jpg"
+ url: "https://i.ibb.co/WKS0QnJ/Tienda-Polanco-1-1-1024x1024.jpg",
+ show_information:false,
},
{
id: 6,
@@ -71,7 +76,8 @@
length: -72.6485850825132
},
email: "Deposito-@gmail.com",
- url: "https://i.ibb.co/P9n1k0x/Restaurantes-Bucaramanga-1.jpg"
+ url: "https://i.ibb.co/P9n1k0x/Restaurantes-Bucaramanga-1.jpg",
+ show_information:false,
},
{
id: 7,
@@ -83,7 +89,8 @@
length: -72.64887476144403
},
email: "Leoporinos-@gmail.com",
- url: "https://i.ibb.co/bgJtCyv/babette.jpg"
+ url: "https://i.ibb.co/bgJtCyv/babette.jpg",
+ show_information:false,
},
{
id: 8,
@@ -95,6 +102,7 @@
length: -73.64887476144403
},
email: "Restaurantegpuls@gmail.com",
- url: "https://media-cdn.tripadvisor.com/media/photo-s/11/e1/06/24/cornelia.jpg"
+ url: "https://media-cdn.tripadvisor.com/media/photo-s/11/e1/06/24/cornelia.jpg",
+ show_information:false,
},
]
diff --git a/src/app/modules/public/discover/components/list-sites/list-sites.component.html b/src/app/modules/public/discover/components/list-sites/list-sites.component.html
index 2e70b45..9cf56d6 100644
--- a/src/app/modules/public/discover/components/list-sites/list-sites.component.html
+++ b/src/app/modules/public/discover/components/list-sites/list-sites.component.html
@@ -1,11 +1,24 @@
-
+
-
-
{{site!.name}}
+
{{ site!.name }}
@@ -16,7 +29,7 @@
-
+
Abierto
Cierra a las 21:00
@@ -32,11 +45,40 @@
salazones). combinandolos con nuevos sabores y texturas.
-
- {{site!.phone_number}}
-
- {{site!.email}}
+
+ {{ site!.phone_number }}
+
+ {{ site!.email }}
+
+
+
+
+
+
+ {{ page }}
+
+
...
+
+
+
diff --git a/src/app/modules/public/discover/components/list-sites/list-sites.component.scss b/src/app/modules/public/discover/components/list-sites/list-sites.component.scss
index c0014c9..ca15824 100644
--- a/src/app/modules/public/discover/components/list-sites/list-sites.component.scss
+++ b/src/app/modules/public/discover/components/list-sites/list-sites.component.scss
@@ -1,12 +1,10 @@
-
-
ul {
list-style-type: none;
padding-left: 0;
}
li {
- /* @media only screen and (min-width: 1500px) {
+ /* @media only screen and (min-width: 1500px) {
min-height: 250px;
width: 100%;
} */
@@ -17,7 +15,6 @@
}
.img-container {
-
}
.img-container div {
@@ -27,33 +24,69 @@
background-size: cover;
}
-.info-container{
+.info-container {
width: 60%;
}
-.list__gap{
+.list__gap {
gap: 1rem;
}
-.time-icon{
+.time-icon {
font-size: 25px;
color: var(--base-color-green);
}
-.open{
+.open {
color: var(--base-color-green);
}
-.call-icon,.mail-icon{
+.call-icon,
+.mail-icon {
font-size: 20px;
-
}
-.blue-color{
+.blue-color {
color: var(--base-color-blue-secondary);
}
-.user-icon,.score-icon{
- color:var(--base-color-gray-dark);
+.user-icon,
+.score-icon {
+ color: var(--base-color-gray-dark);
font-size: 25px;
}
+
+.arrow-icon{
+ width:1.438rem;
+ height:1.313rem;
+ color: white;
+}
+
+/* carousel */
+
+.slide {
+ margin: 20px 5px;
+ color: black;
+ height: 1.875rem;
+ width: 1.875rem;
+ border-radius:var(--base-rounded-medium);
+ cursor: pointer;
+ /* background: url('../../../../../../assets/images/svg/restaurant.svg'); */
+}
+
+button {
+ background-color: var(--base-color-primary);
+ color: inherit;
+ border: none;
+ padding: 0;
+ font: inherit;
+ cursor: pointer;
+ outline: inherit;
+ width: 2.938rem;
+ height: 2.188rem;
+ border-radius:var(--base-rounded-medium);
+}
+
+.page-select{
+ background-color: var(--base-color-gray-dark);
+}
diff --git a/src/app/modules/public/discover/components/list-sites/list-sites.component.ts b/src/app/modules/public/discover/components/list-sites/list-sites.component.ts
index bca2daa..8b744ea 100644
--- a/src/app/modules/public/discover/components/list-sites/list-sites.component.ts
+++ b/src/app/modules/public/discover/components/list-sites/list-sites.component.ts
@@ -4,20 +4,54 @@
@Component({
selector: 'app-list-sites',
templateUrl: './list-sites.component.html',
- styleUrls: ['./list-sites.component.scss']
+ styleUrls: ['./list-sites.component.scss'],
})
export class ListSitesComponent implements OnInit {
-
@Input() sites!: Site[];
@Output() emitAllyId = new EventEmitter();
- constructor() { }
+ numberPages = [1, 2, 3, 4, 5, 6];
+ numberPages2 = [2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16];
+ pageSelect = 0;
+ pageFin = 20;
- ngOnInit() {
- }
+ constructor() {}
+
+ ngOnInit() {}
handlePatternAllyId($event: number) {
this.emitAllyId.emit($event);
}
+ avanzar() {
+ if (this.pageSelect == 5 && this.numberPages[5] == 20) {
+ return;
+ } else {
+ if (this.pageSelect == 5) {
+ this.numberPages = this.numberPages.map(function (val) {
+ return ++val;
+ });
+ } else {
+ this.pageSelect += 1;
+ }
+ }
+ }
+
+ retroceder() {
+ if (this.pageSelect == 0 && this.numberPages[0] == 1) {
+ return;
+ } else {
+ if (this.pageSelect == 0) {
+ this.numberPages = this.numberPages.map(function (val) {
+ return --val;
+ });
+ } else {
+ this.pageSelect -= 1;
+ }
+ }
+ }
+
+ newPage(index: number) {
+ this.pageSelect = index;
+ }
}
diff --git a/src/app/core/interfaces/site/site.ts b/src/app/core/interfaces/site/site.ts
index 9795920..bd1d9d8 100644
--- a/src/app/core/interfaces/site/site.ts
+++ b/src/app/core/interfaces/site/site.ts
@@ -20,5 +20,6 @@
phone_number_3?: string;
email?: string;
url?: string;
+ show_information?:boolean,
}
diff --git a/src/app/core/mocks/data.ts b/src/app/core/mocks/data.ts
index 02cf1c6..6e9afe4 100644
--- a/src/app/core/mocks/data.ts
+++ b/src/app/core/mocks/data.ts
@@ -11,7 +11,8 @@
length: -72.64797890311478
},
email: "Recuerdo-@gmail.com",
- url: "https://i.ibb.co/WKS0QnJ/Tienda-Polanco-1-1-1024x1024.jpg"
+ url: "https://i.ibb.co/WKS0QnJ/Tienda-Polanco-1-1-1024x1024.jpg",
+ show_information:false,
},
{
id: 1,
@@ -23,7 +24,8 @@
length: -72.6485850825132
},
email: "Deposito-@gmail.com",
- url: "https://i.ibb.co/P9n1k0x/Restaurantes-Bucaramanga-1.jpg"
+ url: "https://i.ibb.co/P9n1k0x/Restaurantes-Bucaramanga-1.jpg",
+ show_information:false,
},
{
id: 2,
@@ -35,7 +37,8 @@
length: -72.64887476144403
},
email: "Leoporinos-@gmail.com",
- url: "https://i.ibb.co/bgJtCyv/babette.jpg"
+ url: "https://i.ibb.co/bgJtCyv/babette.jpg",
+ show_information:false,
},
{
id: 3,
@@ -47,7 +50,8 @@
length: -73.64887476144403
},
email: "Restaurantegpuls@gmail.com",
- url: "https://media-cdn.tripadvisor.com/media/photo-s/11/e1/06/24/cornelia.jpg"
+ url: "https://media-cdn.tripadvisor.com/media/photo-s/11/e1/06/24/cornelia.jpg",
+ show_information:false,
},
{
id: 5,
@@ -59,7 +63,8 @@
length: -72.64797890311478
},
email: "Recuerdo-@gmail.com",
- url: "https://i.ibb.co/WKS0QnJ/Tienda-Polanco-1-1-1024x1024.jpg"
+ url: "https://i.ibb.co/WKS0QnJ/Tienda-Polanco-1-1-1024x1024.jpg",
+ show_information:false,
},
{
id: 6,
@@ -71,7 +76,8 @@
length: -72.6485850825132
},
email: "Deposito-@gmail.com",
- url: "https://i.ibb.co/P9n1k0x/Restaurantes-Bucaramanga-1.jpg"
+ url: "https://i.ibb.co/P9n1k0x/Restaurantes-Bucaramanga-1.jpg",
+ show_information:false,
},
{
id: 7,
@@ -83,7 +89,8 @@
length: -72.64887476144403
},
email: "Leoporinos-@gmail.com",
- url: "https://i.ibb.co/bgJtCyv/babette.jpg"
+ url: "https://i.ibb.co/bgJtCyv/babette.jpg",
+ show_information:false,
},
{
id: 8,
@@ -95,6 +102,7 @@
length: -73.64887476144403
},
email: "Restaurantegpuls@gmail.com",
- url: "https://media-cdn.tripadvisor.com/media/photo-s/11/e1/06/24/cornelia.jpg"
+ url: "https://media-cdn.tripadvisor.com/media/photo-s/11/e1/06/24/cornelia.jpg",
+ show_information:false,
},
]
diff --git a/src/app/modules/public/discover/components/list-sites/list-sites.component.html b/src/app/modules/public/discover/components/list-sites/list-sites.component.html
index 2e70b45..9cf56d6 100644
--- a/src/app/modules/public/discover/components/list-sites/list-sites.component.html
+++ b/src/app/modules/public/discover/components/list-sites/list-sites.component.html
@@ -1,11 +1,24 @@
-
+
-
-
{{site!.name}}
+
{{ site!.name }}
@@ -16,7 +29,7 @@
-
+
Abierto
Cierra a las 21:00
@@ -32,11 +45,40 @@
salazones). combinandolos con nuevos sabores y texturas.
-
- {{site!.phone_number}}
-
- {{site!.email}}
+
+ {{ site!.phone_number }}
+
+ {{ site!.email }}
+
+
+
+
+
+
+ {{ page }}
+
+
...
+
+
+
diff --git a/src/app/modules/public/discover/components/list-sites/list-sites.component.scss b/src/app/modules/public/discover/components/list-sites/list-sites.component.scss
index c0014c9..ca15824 100644
--- a/src/app/modules/public/discover/components/list-sites/list-sites.component.scss
+++ b/src/app/modules/public/discover/components/list-sites/list-sites.component.scss
@@ -1,12 +1,10 @@
-
-
ul {
list-style-type: none;
padding-left: 0;
}
li {
- /* @media only screen and (min-width: 1500px) {
+ /* @media only screen and (min-width: 1500px) {
min-height: 250px;
width: 100%;
} */
@@ -17,7 +15,6 @@
}
.img-container {
-
}
.img-container div {
@@ -27,33 +24,69 @@
background-size: cover;
}
-.info-container{
+.info-container {
width: 60%;
}
-.list__gap{
+.list__gap {
gap: 1rem;
}
-.time-icon{
+.time-icon {
font-size: 25px;
color: var(--base-color-green);
}
-.open{
+.open {
color: var(--base-color-green);
}
-.call-icon,.mail-icon{
+.call-icon,
+.mail-icon {
font-size: 20px;
-
}
-.blue-color{
+.blue-color {
color: var(--base-color-blue-secondary);
}
-.user-icon,.score-icon{
- color:var(--base-color-gray-dark);
+.user-icon,
+.score-icon {
+ color: var(--base-color-gray-dark);
font-size: 25px;
}
+
+.arrow-icon{
+ width:1.438rem;
+ height:1.313rem;
+ color: white;
+}
+
+/* carousel */
+
+.slide {
+ margin: 20px 5px;
+ color: black;
+ height: 1.875rem;
+ width: 1.875rem;
+ border-radius:var(--base-rounded-medium);
+ cursor: pointer;
+ /* background: url('../../../../../../assets/images/svg/restaurant.svg'); */
+}
+
+button {
+ background-color: var(--base-color-primary);
+ color: inherit;
+ border: none;
+ padding: 0;
+ font: inherit;
+ cursor: pointer;
+ outline: inherit;
+ width: 2.938rem;
+ height: 2.188rem;
+ border-radius:var(--base-rounded-medium);
+}
+
+.page-select{
+ background-color: var(--base-color-gray-dark);
+}
diff --git a/src/app/modules/public/discover/components/list-sites/list-sites.component.ts b/src/app/modules/public/discover/components/list-sites/list-sites.component.ts
index bca2daa..8b744ea 100644
--- a/src/app/modules/public/discover/components/list-sites/list-sites.component.ts
+++ b/src/app/modules/public/discover/components/list-sites/list-sites.component.ts
@@ -4,20 +4,54 @@
@Component({
selector: 'app-list-sites',
templateUrl: './list-sites.component.html',
- styleUrls: ['./list-sites.component.scss']
+ styleUrls: ['./list-sites.component.scss'],
})
export class ListSitesComponent implements OnInit {
-
@Input() sites!: Site[];
@Output() emitAllyId = new EventEmitter();
- constructor() { }
+ numberPages = [1, 2, 3, 4, 5, 6];
+ numberPages2 = [2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16];
+ pageSelect = 0;
+ pageFin = 20;
- ngOnInit() {
- }
+ constructor() {}
+
+ ngOnInit() {}
handlePatternAllyId($event: number) {
this.emitAllyId.emit($event);
}
+ avanzar() {
+ if (this.pageSelect == 5 && this.numberPages[5] == 20) {
+ return;
+ } else {
+ if (this.pageSelect == 5) {
+ this.numberPages = this.numberPages.map(function (val) {
+ return ++val;
+ });
+ } else {
+ this.pageSelect += 1;
+ }
+ }
+ }
+
+ retroceder() {
+ if (this.pageSelect == 0 && this.numberPages[0] == 1) {
+ return;
+ } else {
+ if (this.pageSelect == 0) {
+ this.numberPages = this.numberPages.map(function (val) {
+ return --val;
+ });
+ } else {
+ this.pageSelect -= 1;
+ }
+ }
+ }
+
+ newPage(index: number) {
+ this.pageSelect = index;
+ }
}
diff --git a/src/app/modules/public/discover/components/slide-sites/slide-sites.component.html b/src/app/modules/public/discover/components/slide-sites/slide-sites.component.html
index 973dd4f..057d0b0 100644
--- a/src/app/modules/public/discover/components/slide-sites/slide-sites.component.html
+++ b/src/app/modules/public/discover/components/slide-sites/slide-sites.component.html
@@ -1,18 +1,49 @@
-
+
-
-
-
- 5
-
-
-
- {{site!.name}}
-
-
+
+
+
+
+
+
+
+ {{ site!.name }}
+
+
+
+
+ 5
+
+
+
+ {{ site!.name }}
+
+
-