theCrag / website

theCrag.com: Add your voice and help guide the development of the world's largest collaborative rock climbing & bouldering platform
https://www.thecrag.com/
111 stars 8 forks source link

card templating scheme #1979

Closed scd closed 6 years ago

scd commented 9 years ago

I have been thinking that it maybe worthwhile considering a ground up approach to our templating scheme, putting in place everything we have learned over the years. While this may not be a big revelation as we have been doing a lot of things in a piecemeal sense. I would like to put it all together using our own design standards, with the luxuary of defining our ideal system and working toward this. I am pretty sure that this is all stuff @brendanheywood has been working toward anyway, and it is just taking me a long time to get a handle of it.

The motivating factor for this is that maybe we can do this for our app work, javascript & css might be portable between the website and app.

At the moment I am just logging this issue as a discussion point, but could easily get very excited about it if it looks like.

Here is a quick brain dump

Interestingly most of the site is either a card or a list.

This is not meant to be a detailed specification, but rather just initiating discussion before we embark on code for the app.

brendanheywood commented 9 years ago

+10

leomao10 commented 9 years ago

Hey @scd @brendanheywood,

I am just throwing some ideas here.

Just curious, does theCrag use LESS or SCSS to precompile the css?

brendanheywood commented 9 years ago

Less, each component has it's own less file, sorta semi adopted something halfway between OOCSS and BEM . If we can re-use some css in any app then thats ok, but I'm pragmatic around whether this is really worth it. I'm not super keen on rendering the web GUI via js, this generally ends up being bloated and slow. Doing it server side has appeal generally but I think would be too epic to retrofit into our current architecture.

fyi I'm leaning toward using https://www.nativescript.org/ for the app and the intention is to get a prototype working with that as a proof of concept

leomao10 commented 9 years ago

:+1: for using Less and OOCSS :D If we carefully craft the css and make it portable with multiple viewport, then I think many of the css can be reused.

I just view the introduction, but the goal nativescript tried to achieve is quite interesting. If that really work, it will save lots of development time to maintain applications in two platforms.

Cheers

Leo Liang

brendanheywood commented 6 years ago

Closing this, we are well down this track already