devosoft / Empirical

A library of tools for scientific software development, with emphasis on also being able to build web interfaces using Emscripten.
Other
86 stars 38 forks source link

Need layout manager for web widgets. #117

Open mercere99 opened 7 years ago

mercere99 commented 7 years ago

Options include:

emilydolson commented 7 years ago

I think I'm in favor of option 2. This is the most fiddly and obnoxious part of web development, and if we can just leverage work done by someone who already knows what they're doing rather than re-inventing the wheel that sounds like a good plan. It's also something that people would probably always want when they're laying out widgets on a webpage.

mercere99 commented 7 years ago

I think that's the one I'm now leaning toward. Option 1 would, of course, be my choice if we had unlimited time, which we don't. Option 3 has some advantages in terms of minimizing dependencies, but option 2 allows us to count on the framework being there and thus simplify a lot more of the code.

So, the next question is, which layout manage should we use?

amlalejini commented 7 years ago

I generally advocate for Bootstrap. I've heard good things about bourbon.io's layout manager, Neat. I am aware of Foundation being popular; though, I've never actually looked much into it.

mmore500 commented 4 years ago

We might use brace-initialized syntax to construct a layout object and throw this all inside of a "main" div:

title /* jumbotron, should accept raw html */,
subtitle /*jumbotron,  should accept raw html */,
{ /* rows */
  { /* columns */
    // for each col, need to know bootstrap width styling and whether column should [be sticky](https://alligator.io/css/position-sticky/)
    // we will want to include info on how bootstrap width styling works inside of our docs
     { /* cards  */
        // for each card, need to know title (optional), html ID
        // whether is: open, collapsable-open, or collapsable-closed
      }, ...
   }, ...
}

then, inside of cards we will want to easily make slickly styled...

mmore500 commented 4 years ago

we might also want to somehow wrap or provide a factory for buttons, etc. that are automatically bootstrap styled

we should provide a html template that has all the bootstrap includes taken care of (I think our cookiecutter template might already do this)

we should clearly document how to customize bootstrap color schemes (maybe add this to the cookiecutter)