poanetwork / poa-dapps-voting

POA Network Governance Dapp
https://voting.poa.network
GNU General Public License v3.0
26 stars 54 forks source link

(Feature) Add new styles to DApp. #166

Closed gabitoesmiapodo closed 6 years ago

gabitoesmiapodo commented 6 years ago

Description:

Solves https://github.com/poanetwork/poa-dapps-voting/issues/164 by adding the new syles..

What is it: (Feature)

Additional Info:

I'm attaching a few screen captures to know what to expect from this update.

Core designs:

ballot-tablet-v new-desktop new-tablet-v mobile-menu new-mobile new-tablet-h ballot-desktop ballot-mobile ballot-tablet-h loading

Sokol designs:

new-desktop-sokol ballot-tablet-v-sokol new-tablet-v-sokol mobile-menu-sokol ballot-desktop-sokol new-tablet-h-sokol loading-sokol ballot-mobile-sokol ballot-tablet-h-sokol new-mobile-sokol
varasev commented 6 years ago

The description lines are bound to the upper border of the icon:

image

Maybe add padding-top: 5px; for .ballots .info to make it look like this?

image

gabitoesmiapodo commented 6 years ago

@varasev Fixed it.

gabitoesmiapodo commented 6 years ago

@vbaranov

Good catches, sorry about that.

vbaranov commented 6 years ago

@gabitoesmiapodo yes, looks good now, thanks. Could you also add small paddings between columns here:

2018-08-09 17 32 01

?

varasev commented 6 years ago

@gabitoesmiapodo I think the Load More Ballots button should be more visible - maybe with some border or background?

vbaranov commented 6 years ago

I think the Load More Ballots button should be more visible - maybe with some border or background?

@varasev there is no borders or another background from designer's layout https://user-images.githubusercontent.com/16716926/43633724-bfffce10-9712-11e8-9a53-527247032d3c.png. I guess, we should follow it.

varasev commented 6 years ago

@varasev there is no borders or another background from designer's layout https://user-images.githubusercontent.com/16716926/43633724-bfffce10-9712-11e8-9a53-527247032d3c.png. I guess, we should follow it.

Maybe make that button just with bold font then? Or make the top and the bottom whitespace around it wider?

vbaranov commented 6 years ago

Maybe make that button just with bold font then? Or make the top and the bottom whitespace around it wider?

maybe, but it should be agreed with an author of the layout https://github.com/poanetwork/poa-dapps-voting/issues/164#issuecomment-410188165.

gabitoesmiapodo commented 6 years ago

@vbaranov Added the paddings.

@varasev Maybe we should ask @pashagonchar ?

varasev commented 6 years ago

Sorry, didn't guess initially who is designer here :)

varasev commented 6 years ago

Ballot description is shown with some words broken near the right border:

image

Could we turn on a word wrapping?

varasev commented 6 years ago

Padding is also needed here:

image

varasev commented 6 years ago

Ballot time column is in the wrong place for min threshold and change proxy ballot types. You can find it if you click on Load More Ballots several times:

image

image

varasev commented 6 years ago

@pashagonchar @gabitoesmiapodo Some little defects with the search bar:

image

image

varasev commented 6 years ago

When I reduce the width of the browser window, scroll down a little and click on menu, the menu items are not clickable and they're poorly visible because they're under the faded layout.

Also, I propose not to scroll the header (not to attach it to the top of the browser client area when scrolling) because it occupies a part of the small screen of a smartphone - it brings some discomfort for a user.

image

gabitoesmiapodo commented 6 years ago
varasev commented 6 years ago

@gabitoesmiapodo Thanks for the fixes!

We should decide what to do with that. It takes some screen space, sure, but it also makes the menu available at all times...

Ok, let's leave it as is.

Could you also make another ballot card that was added in the layout here: https://github.com/poanetwork/poa-dapps-voting/issues/164#issuecomment-412256495

We didn't yet implement this type of ballots in DApp, but you could add makeup of it in the render function of src/components/BallotCard.jsx just for a demo to see if it looks correct. Then we will comment out its code until the logic is implemented.

varasev commented 6 years ago

@gabitoesmiapodo I mean this:

poa_governance_app_sokol_2

gabitoesmiapodo commented 6 years ago

@varasev

Now the "Load more" button looks as you asked in https://github.com/poanetwork/poa-dapps-voting/issues/164#issuecomment-412537680

Working on https://github.com/poanetwork/poa-dapps-voting/pull/166#issuecomment-412428620 now.

gabitoesmiapodo commented 6 years ago

@varasev

What was asked in https://github.com/poanetwork/poa-dapps-voting/pull/166#issuecomment-412428620 should be done by now.

Testing code is in the components/BallotCard.jsx file, lines 445 to 503.

Original (No / Yes) code is commented out from line 505 to 541.

When this is tested / approved we should uncomment 505 to 541, and comment out 445 to 503.

varasev commented 6 years ago

@gabitoesmiapodo ok, thank you. We also need to have the next columns for the new type of ballot:

as it's shown in https://github.com/poanetwork/poa-dapps-voting/pull/166#issuecomment-412428620

gabitoesmiapodo commented 6 years ago

@varasev OK, there it is now.

Original code is commented out in src/components/BallotKeysCard.jsx lines 39 to 65.

new columns
gabitoesmiapodo commented 6 years ago

@varasev OK, done.

varasev commented 6 years ago

@gabitoesmiapodo Ok, let's comment out the code for new ballot type and uncomment the original code. And then we'll merge all the changes.

gabitoesmiapodo commented 6 years ago

@varasev Done.

pashagonchar commented 6 years ago

@gabitoesmiapodo change logo please

logo_1 logo_2

https://zpl.io/VxlmwQ3

gabitoesmiapodo commented 6 years ago

@pashagonchar Changed.