3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-23 20:39:25 +01:00
dbot/views
Douglas Gardner 1a2595aaf2 increment size with image count
This commit adds functionality to the loading callout in the imgur
module.

The size of the font used in the loading callout now increases in a
linear fashion in proportion to the number of images viewed in a row.

The size starts at 12px, and will increase to 72px at image 2000, with
round figures at most "standard" font sizes.

This is largely an experiment to see what it looks like: it might not be
as nice looking now that the callout contains extra information (such as
the view count). It may be worth experimenting with just increasing the
count number and leaving the "a w with x views (y*z)" message at a
static size, or perhaps by editing the colour variant, or even the
position on the screen.

I really just wanted some feedback to make it a bit more interesting for
a heavy user that has reached high numbers of images.

Some figures:
 * 12px is reached after 0 images
 * 14px is reached after 66 images
 * 16px is reached after 133 images
 * 18px is reached after 200 images
 * 21px is reached after 300 images
 * 24px is reached after 400 images
 * 36px is reached after 800 images
 * 48px is reached after 1,200 images
 * 60px is reached after 1,600 images
 * 72px is reached after 2,000 images
 * 144px is reached after 4,400 images.
2013-04-16 17:22:09 +00:00
..
flashy [rejected] 2013-04-09 16:45:11 +01:00
imgur increment size with image count 2013-04-16 17:22:09 +00:00
poll Modularised web routes and views 2012-12-24 05:51:19 +00:00
profile Prevent profile breaking if no stats are returned [Fix #81] 2013-01-25 20:14:44 +00:00
quotes Given quotes its own error view to solve [#288] 2013-03-26 09:05:39 +00:00
users Testing rolling week [#216] 2013-01-27 23:37:35 +00:00
error.jade quote list and error page 2011-09-15 12:30:52 +01:00
index.jade Removed sass compiler usage from web.js, updated jade templates to use blocks 2012-12-24 04:06:04 +00:00
layout.jade Basic Profiles [#184] 2013-01-23 19:13:10 +00:00