antwarjs / default-theme

Default theme for Antwar
6 stars 4 forks source link

Set up mosaic for blog index? #9

Open bebraw opened 9 years ago

bebraw commented 9 years ago

See bottom of http://www.blurb.com/ . They botched the contrast but the layout looks nice. We can probably implement it without JavaScript even. The newest post can get double space while the rest should layout normally.

The cool thing about this approach would be that it would allow us to benefit from the imagery (header image) attached to each blog post. As we probably don't want to use the images as is at index we probably need to improve our asset pipeline to generate thumbnails automatically.

eldh commented 9 years ago

Yep, really like that. We also find a nice solution for bosts that don't have a header image (probably a color based on a hash of the content).

bebraw commented 9 years ago

probably a color based on a hash of the content

The potential problem with that is contrast. Though even that should be solvable if we know the text color beforehand.

Alternatively we can allow the user to set some fallback image, component or such.

eldh commented 9 years ago

I think we can assume/enforce a light/white text color.