Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve look and feel for the HTML #46

Open
amoeba opened this issue May 25, 2018 · 3 comments
Open

Improve look and feel for the HTML #46

amoeba opened this issue May 25, 2018 · 3 comments
Labels
enhancement New feature or request help wanted Extra attention is needed
Milestone

Comments

@amoeba
Copy link
Collaborator

amoeba commented May 25, 2018

The HTML template I made during the unconf is real basic and not all that attractive. I consider making it look better a must-do.

  • @maelle had a great idea of using Blogdown or Hugo to generate a more complex site around the JSON-LD

  • I think it was @cboettig that thought we could automatically put some exploratory data viz type plots or [skimr](https://github.com/ropenscilabs/skimr) output on the page. This would be awesome! See also the cool work in codebook which does a really nice job of this already. Here's what skimr can do:

    ## Variable type: numeric 
    ##      variable missing complete   n mean   sd  p0 p25  p50 p75 p100     hist
    ##  Petal.Length       0      150 150 3.76 1.77 1   1.6 4.35 5.1  6.9 ▇▁▁▂▅▅▃▁
    ##   Petal.Width       0      150 150 1.2  0.76 0.1 0.3 1.3  1.8  2.5 ▇▁▁▅▃▃▂▂
    
  • At the very least, make the pages look as good as pkgdown's output. @cboettig mentioned showing a two-column display so the geo coverage and data access are at the top and less of the content is below the fold. I ❤️ ily agree.

@amoeba amoeba added enhancement New feature or request help wanted Extra attention is needed labels May 25, 2018
@cboettig
Copy link
Member

I started playing around with what a "card view" might look like on the plane, quick sketch here (in Hugo): https://cboettig.github.io/dataspice-web/ex/

Clearly needs a lot of tweaking but I think with the menu (click on the icons -- maybe that's too subtle) it may be possible to pack quite a bit of metadata into a small space. hope to find a bit more time to fiddle with that at some point. My thought here is mostly that a small card format could be embedded on other sites, e.g. a "Data" page on a lab group website or as a margin item on an analysis .Rmd.

I'm sure there's no good one-size-fits-all visualization anyway (I think the real utility is mostly in generating the metadata easily more than styling it), but some good default styling is no doubt helpful in motivating adoption!

One thought with the cards: in addition to adding a map, I do wonder if it would be nice to support the ability to add a "feature image" for the Dataset. Google seems to like doing this kind of thing, image is a valid attribute for a Dataset and just about everything else...

@khondula
Copy link
Contributor

looks great @cboettig!

maybe if there is no image, the default thing in that place on the card could represent the coverage (map or timeline).

For temporal coverage, would something like timevis be too much?

@amoeba
Copy link
Collaborator Author

amoeba commented May 25, 2018

Cool, looks pretty slick. I like the idea of an embeddable card as an option. I am also really interested in (1) a full similar to what we have now but just nicer and (2) @maelle 's idea to use Hugo to collect many datasets from many creators (effectively making an easily bootstrapped, static-site-generator-like, data repository. If we go that route, it might be interesting to look at Gatsby which is really cool (and something I've wanted a reason to try out).

@khondula re: timeviz: Maybe, maybe not. When we have a single temporal coverage, I think it has low utility but it becomes really useful when someone includes multiple ranges (which we don't support just yet). Or if we're showing many datasets, each with their own temporal coverage, it'd be really nice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants