From a3e243ed19bddc12e194a166ab38c3101835fcc2 Mon Sep 17 00:00:00 2001 From: Baptiste Lemoine Date: Thu, 16 Jan 2020 16:38:06 +0100 Subject: [PATCH] toggle simple answer --- src/app/config/mock-poll3.ts | 2 +- .../poll-display/poll-display.component.html | 33 ++- src/app/pages/voting/voting.component.html | 3 +- .../ui/vote-choice/vote-choice.component.html | 194 +++++++++++------- .../ui/vote-choice/vote-choice.component.scss | 15 +- src/assets/scss/atoms/_forms.scss | 11 +- 6 files changed, 159 insertions(+), 99 deletions(-) diff --git a/src/app/config/mock-poll3.ts b/src/app/config/mock-poll3.ts index f0ab2b26..9a917f6e 100644 --- a/src/app/config/mock-poll3.ts +++ b/src/app/config/mock-poll3.ts @@ -13,7 +13,7 @@ export const mockPoll3 = { "timezone": "Europe/Paris" }, "expiracyDate": { - "date": "2020-01-15 15:07:53.000000", + "date": "2020-03-17 15:07:53.000000", "timezone_type": 3, "timezone": "Europe/Paris" }, diff --git a/src/app/pages/poll-display/poll-display.component.html b/src/app/pages/poll-display/poll-display.component.html index 24860225..bf022a63 100644 --- a/src/app/pages/poll-display/poll-display.component.html +++ b/src/app/pages/poll-display/poll-display.component.html @@ -1,13 +1,30 @@
+
+
+

{{pollConfigFetched.data.title}}

+

{{pollConfigFetched.data.description}}

+ + Créé le {{pollConfigFetched.data.creationDate.date}} + + + Expire le {{pollConfigFetched.data.expiracyDate.date}} + +
+ + {{pollConfigFetched.stacks.length}} votants, + {{pollConfigFetched.choices.length}} choix, +
+
+
+ +
+
-

{{pollConfigFetched.data.title}}

-

{{pollConfigFetched.data.description}}

-

{{pollConfigFetched.data.creationDate.date}}

-

{{pollConfigFetched.data.creationDate.date}}

-

- {{pollConfigFetched.stacks_count}} votants, - {{pollConfigFetched.choices_count}} choix, -

diff --git a/src/app/pages/voting/voting.component.html b/src/app/pages/voting/voting.component.html index a6c204d9..5e2dd885 100644 --- a/src/app/pages/voting/voting.component.html +++ b/src/app/pages/voting/voting.component.html @@ -2,8 +2,7 @@ - +

Les commentaires

Pikachu diff --git a/src/app/ui/vote-choice/vote-choice.component.html b/src/app/ui/vote-choice/vote-choice.component.html index d0717239..edfe1884 100644 --- a/src/app/ui/vote-choice/vote-choice.component.html +++ b/src/app/ui/vote-choice/vote-choice.component.html @@ -1,9 +1,16 @@ -

-
+
+ +
{{choice.name}} -
-
+
+
-
-
+
+
{{choice.date | date:'EEE'}} {{choice.date | date:'dd'}} {{choice.date | date:'LLL'}} -
-
+ class="choicebox__day" >{{choice.date | date:'dd'}} {{choice.date | date:'LLL'}} +
+
08:00 -
-
+
+
-
+
-
+
- + - - - - - + + + + - + + + -
+
-
- -
+
+
    +
  • Lorem
  • +
  • Ipsum dolor
  • +
  • Sit amet
  • +
  • Consectetur
  • +
  • Lorem
  • +
  • Ipsum dolor
  • +
  • Sit amet
  • +
  • Consectetur
  • +
+
+
+ +
Choix ayant reçu le plus de votes -
-
- + + + diff --git a/src/app/ui/vote-choice/vote-choice.component.scss b/src/app/ui/vote-choice/vote-choice.component.scss index 65666516..160a9c17 100644 --- a/src/app/ui/vote-choice/vote-choice.component.scss +++ b/src/app/ui/vote-choice/vote-choice.component.scss @@ -50,6 +50,9 @@ $breakpoint-responsive: 640px; // à définir min-height: auto; } + .title { + max-width: 25%; + } } .choicebox__subject { @@ -132,11 +135,7 @@ $breakpoint-responsive: 640px; // à définir border: .3rem solid #ccc9c9; background-color: transparent; border-radius: 50%; - @media (min-width: $breakpoint-responsive) { - margin-top: 0; - margin-bottom: 0; - } - + cursor: pointer; //&:focus, //&:hover, //&:active { @@ -161,6 +160,12 @@ $breakpoint-responsive: 640px; // à définir &--active { border-color: #bf83c2; } + + @media (min-width: $breakpoint-responsive) { + margin-top: 0; + margin-bottom: 0; + } + } diff --git a/src/assets/scss/atoms/_forms.scss b/src/assets/scss/atoms/_forms.scss index 69b53363..b0edc951 100644 --- a/src/assets/scss/atoms/_forms.scss +++ b/src/assets/scss/atoms/_forms.scss @@ -103,16 +103,16 @@ label { font-size: 18px; } -.comment, .prefered { +.comment { border-left: 6px solid $ugly-purple; - padding-left: 5px; margin-top: 25px; margin-bottom: 25px; flex-wrap: wrap; + padding-left: 17px; } .cname { - padding-left: 17px; + font-weight: bold; } @@ -146,11 +146,6 @@ textarea { margin-bottom: 20px; } -.name { - margin-bottom: 50px; - margin-top: 50px; -} - .nobold { font-weight: normal; }