From 5eba5d684b7c8b6194ac1676b4559d189792ec44 Mon Sep 17 00:00:00 2001 From: Baptiste Lemoine Date: Thu, 16 Jan 2020 11:13:34 +0100 Subject: [PATCH] :art: visual help on clickable elements --- src/app/app.component.html | 7 +- .../create-or-retrieve.component.html | 88 +++++++++---------- .../create-or-retrieve.component.ts | 5 +- src/assets/scss/atoms/_buttons.scss | 3 + src/assets/scss/atoms/_forms.scss | 22 ++++- 5 files changed, 70 insertions(+), 55 deletions(-) diff --git a/src/app/app.component.html b/src/app/app.component.html index 09f418e1..f0e044df 100644 --- a/src/app/app.component.html +++ b/src/app/app.component.html @@ -43,14 +43,11 @@ Menu -

{{"Title"|translate}}

-
- {{"Intro"|translate:user}} -
+ - +
diff --git a/src/app/pages/create-or-retrieve/create-or-retrieve.component.html b/src/app/pages/create-or-retrieve/create-or-retrieve.component.html index 561c9383..4e47f575 100644 --- a/src/app/pages/create-or-retrieve/create-or-retrieve.component.html +++ b/src/app/pages/create-or-retrieve/create-or-retrieve.component.html @@ -1,51 +1,51 @@
-
-

- {{"creation.title"|translate}} -

-

- {{"config.description"|translate}} -

-
+
+

+ {{"creation.title"|translate}} +

+

+ {{"config.description"|translate}} +

+
- + -
-
+
+
-
-

- {{"config.find_my_polls"|translate}} -

- - -
- - - -
-
+ + + + +
  • poll
  • @@ -60,6 +60,4 @@
- - diff --git a/src/app/pages/create-or-retrieve/create-or-retrieve.component.ts b/src/app/pages/create-or-retrieve/create-or-retrieve.component.ts index fdaefbc9..5b6271a6 100644 --- a/src/app/pages/create-or-retrieve/create-or-retrieve.component.ts +++ b/src/app/pages/create-or-retrieve/create-or-retrieve.component.ts @@ -16,7 +16,10 @@ export class CreateOrRetrieveComponent extends BaseComponent implements OnInit { } ngOnInit() { - this.findMyPollsByEmail('tktest@tktest.com') + // if (!environment.production) { + // this.findMyPollsByEmail('tktest@tktest.com') + // } + } findMyPollsByEmail(email: string) { diff --git a/src/assets/scss/atoms/_buttons.scss b/src/assets/scss/atoms/_buttons.scss index 769acde6..8a520838 100644 --- a/src/assets/scss/atoms/_buttons.scss +++ b/src/assets/scss/atoms/_buttons.scss @@ -18,6 +18,9 @@ } } } +.clickable { + cursor: pointer; +} .btn { margin: .5rem 0; diff --git a/src/assets/scss/atoms/_forms.scss b/src/assets/scss/atoms/_forms.scss index 5180aa05..741bff52 100644 --- a/src/assets/scss/atoms/_forms.scss +++ b/src/assets/scss/atoms/_forms.scss @@ -86,6 +86,14 @@ input { color: $violet; display: block; padding: 1em; + background: yellow; + position: relative; + top: -1em; + z-index: 2; + margin-right: 0.5em; + right: 0; + border: solid red 2px; + box-shadow: 0 0 10px orange; } } } @@ -143,10 +151,16 @@ textarea { margin-top: 50px; } -label { - align-items: flex-start; -} - .nobold { font-weight: normal; } + +select, input, textarea { + @extend .clickable; + + &:active, + &:focus, + &:hover { + color: $primary_color; + } +}