From 4805dbcdf3d27e4832fe0f2d01feab29246f87f1 Mon Sep 17 00:00:00 2001 From: Victoria Wang Date: Mon, 4 May 2015 17:18:06 -0700 Subject: [PATCH] Better latest visitors table, added time filter for chart --- sass/_project-sass/_project-Main.scss | 14 ++- views/stats_mockup.erb | 126 +++++++++++++++++--------- 2 files changed, 97 insertions(+), 43 deletions(-) diff --git a/sass/_project-sass/_project-Main.scss b/sass/_project-sass/_project-Main.scss index d2a8c2f8..4c8929d6 100644 --- a/sass/_project-sass/_project-Main.scss +++ b/sass/_project-sass/_project-Main.scss @@ -1882,10 +1882,22 @@ a.tag:hover { } } table#latest-visitors { - td:nth-child(1), td:nth-child(2) { + width: 100%; + color: #777; + font-size: .8em; + + td { white-space: nowrap; text-overflow: ellipsis; } + span { + display: block; + } + .location { + color: #2f4149; + font-weight: bold; + font-size: 1.2em; + } } #earth_div { width: 100%; diff --git a/views/stats_mockup.erb b/views/stats_mockup.erb index d0a703b6..373b49e0 100644 --- a/views/stats_mockup.erb +++ b/views/stats_mockup.erb @@ -24,77 +24,119 @@
+

Latest Visitors

-
+
- - - - - - - - - - + + - - - + + - - - + + - - - + + - - - + + - - - + + - - - + + - - - + + - - - - - - - - + +
LocationReferrerTime
San Francisco, CAneocities.org4/27/15 7:11PM + San Francisco, CA + neocities.org + + 7:11PM + /index, /links, /art +
Portland, ORGoogle search4/27/15 7:15PM + Portland, OR + Google search + + 7:11PM + /index +
New York, NYviolasong.com4/28/15 8:22PM + London, UK + Twitter URL + + 7:11PM + /index, /about +
Seattle, WAFacebook URL4/28/15 9:22PM + Hong Kong, China + Google search + + 7:11PM + /index, /links, /art, /music +
Portland, ORGoogle search4/30/15 7:15PM + San Francisco, CA + Facebook URL + + 7:11PM - 4/27/15 + /index +
San Francisco, CAneocities.org4/27/15 7:11PM + San Francisco, CA + neocities.org + + 7:11PM - 4/27/15 + /index, /links, /art +
Portland, ORGoogle search4/27/15 7:15PM + Portland, OR + Google search + + 7:11PM - 4/27/15 + /index +
New York, NYviolasong.com4/28/15 8:22PM + London, UK + Twitter URL + + 7:11PM - 4/27/15 + /index, /about +
Seattle, WATwitter URL4/28/15 9:22PM
Portland, ORGoogle search4/30/15 7:15PM + Hong Kong, China + Google search + + 7:11PM - 4/27/15 + /index, /links, /art, /music +
-

Last 7 Days (Upgrade to see up to 90 days)

- +

Last 7 Days

+

(Upgrade to see up to see stats for all time)

+ + +