From 16b5f51e26cf6a1ababd643466a552d2da8c0993 Mon Sep 17 00:00:00 2001 From: Romain <51331158+zylfu@users.noreply.github.com> Date: Fri, 21 Jan 2022 15:07:18 +0100 Subject: [PATCH] Mise en plave range TypeScript --- .../filters-page/filters-page.component.html | 186 +++++++++--------- .../filters-page/filters-page.component.scss | 3 +- .../filters-page/filters-page.component.ts | 36 +++- 3 files changed, 126 insertions(+), 99 deletions(-) diff --git a/src/app/pages/filters-page/filters-page.component.html b/src/app/pages/filters-page/filters-page.component.html index 8193459..bfd1eda 100644 --- a/src/app/pages/filters-page/filters-page.component.html +++ b/src/app/pages/filters-page/filters-page.component.html @@ -2,118 +2,116 @@
-
-
-

- -

-
-
-
- Veuillez sélectionner la distance souhaitée +
+

+ +

+
+
+
+ Veuillez sélectionner la distance souhaitée +
+ +
+ 0 KM + 2 KM + 4 KM +
+
- -
- 0 KM - 2 KM - 4 KM +
+ + + +
+

+ +

+
+
+ +
+ Veuillez sélectionner le prix souhaité +
+ +
+ 0€ + 10€ + 20€ +
+
+
+
+ + + +
+

+ +

+
+
+ +
+ Sur Place + A Emporter +
+
+ + +
-
- + -
-

- -

-
-
+
+

+ +

+
+
-
- Veuillez sélectionner le prix souhaité +
+ Accès PMR +
+
+ +
- -
- 0€ - 25€ - 50€ -
-
- + -
-

- -

-
-
- -
- Sur Place - A Emporter -
-
- - +
+

+ +

+
+
+
+ Choisissez parmi les avis déjà donnés +
+ +
-
-
- - - -
-

- -

-
-
- -
- Accès PMR -
-
- - -
-
-
-
- - - -
-

- -

-
-
-
- Choisissez parmi les avis déjà donnés -
- -
-
-
diff --git a/src/app/pages/filters-page/filters-page.component.scss b/src/app/pages/filters-page/filters-page.component.scss index 1e7ff47..2527ff7 100644 --- a/src/app/pages/filters-page/filters-page.component.scss +++ b/src/app/pages/filters-page/filters-page.component.scss @@ -28,12 +28,11 @@ margin-bottom: 100px; .accordion-body{ background-color: #F5F3F3; text-align: center; - } .accordion-item{ - margin-bottom: 70px; + margin-bottom: 60px; } .accordion-button{ diff --git a/src/app/pages/filters-page/filters-page.component.ts b/src/app/pages/filters-page/filters-page.component.ts index dbeba33..b2afa2a 100644 --- a/src/app/pages/filters-page/filters-page.component.ts +++ b/src/app/pages/filters-page/filters-page.component.ts @@ -7,9 +7,39 @@ import { Component, OnInit } from '@angular/core'; }) export class FiltersPageComponent implements OnInit { - constructor() { } + minDistance : any; + maxDistance : any; + selectDistance : any; - ngOnInit(): void { - } + + + minPrice : any; + maxPrice: any; + selectPrice : any; + + constructor() { + + this.minDistance = 0; + this.maxDistance = 4; + this.selectDistance = 0; + + this.minPrice = 0; + this.maxPrice = 20; + this.selectPrice = 0; + + } + + ngOnInit(): void {} + + changeValueDistance(valueDistance: any){ + this.selectDistance = valueDistance.target.value; + console.log(this.selectDistance); +} + + +changeValuePrice(valuePrice: any){ + this.selectPrice = valuePrice.target.value; + console.log(this.selectPrice); +} }