pemiluAPI / peta-caleg

design & development of a candidate map for Indonesia's 2014 legislative elections
1 stars 4 forks source link

Design candidate displays #11

Closed shawnbot closed 10 years ago

shawnbot commented 10 years ago

Like this?

image

The questions we had when @tmaybe and I discussed this in SF were:

  1. Which fields should we show?
    • Photo (foto_url)
    • Gender (jenis_kelamin, L = male, P = female)
    • Birthdate (tanggal_lahir)
    • Religion (agama)
    • Party
    • Birthplace (tempat_lahir)
    • Home city (kab_kota_tinggal)
  2. Does any of these make sense to show in the list view (before you click on them), or just their name?
shawnbot commented 10 years ago

@tmaybe, there are two more things that we'll need eventually below. I wasn't sure where to file the issues, but:

  1. The images that the foto_url points to are weirdly sized, and too large (in file size) for our purposes. It would be great if the API could normalize their size (say, to 100px high) and optimize them to, say, 70% JPEG quality. We could even link the image to the full-sized one in a new window.
  2. We need party images at some point, too, and for those to be part of the API.

Again, these are not super critical, but we'll probably need them when I'm done with this task.

tmaybe commented 10 years ago

I don't think we need to show anything but their name (and possibly thumbnail photo) in list view before you click them.

tmaybe commented 10 years ago

Yes, I am going to work on the candidate images (hopefully) today. We will also need a generic 'no image' thumbnail for those candidates without images (which will be most of the DPRDI candidates).

Is 100px high a good size for the party images as well? Any other sizes that'd be useful?

shawnbot commented 10 years ago

I would say so, yeah. Maybe 300px for a bigger version?

shawnbot commented 10 years ago

(The Google Germany ones are only 80px, FWIW)

shawnbot commented 10 years ago

I think we're a lot better off as of 571864d than we were a couple of hours ago. Closing this so we can focus on other stuff.

image