From 1961522dd24a60aac2db37e38b07519cc0dcd2bb Mon Sep 17 00:00:00 2001 From: Kyle Drake Date: Wed, 23 Apr 2014 18:37:39 -0700 Subject: [PATCH] newindex mockup --- app.rb | 10 ++ views/newindex_mockup.erb | 331 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 341 insertions(+) create mode 100644 views/newindex_mockup.erb diff --git a/app.rb b/app.rb index 808bcbb5..0ebe6760 100644 --- a/app.rb +++ b/app.rb @@ -42,6 +42,16 @@ error do erb :'error' end +get '/newindex_mockup' do + if SimpleCache.expired?(:sites_count) + @sites_count = SimpleCache.store :sites_count, Site.count.roundup(100), 600 # 10 Minutes + else + @sites_count = SimpleCache.get :sites_count + end + + erb :newindex_mockup, layout: false +end + get '/home_mockup' do erb :'home_mockup' end diff --git a/views/newindex_mockup.erb b/views/newindex_mockup.erb new file mode 100644 index 00000000..a9fa5439 --- /dev/null +++ b/views/newindex_mockup.erb @@ -0,0 +1,331 @@ + + + + + + + + Neocities: Create your free website now! + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + <% if flash.keys.length > 0 %> +
+

+ <% flash.keys.each do |key| %> + <%= flash[key] %> + <% end %> +

+
+ <% end %> + + + + + +
+

+ + Neocities.org +

+
+ +
+ +
+ +
    +
  • + +

    Create your own free website

    +

    + You get <%= Site::FREE_MAXIMUM_IN_MEGABYTES %> MB of free web space to make whatever you’d like! +

    +
  • +
  • + +

    Making the web fun again

    +

    + We're community of over <%= @sites_count.to_s.reverse.gsub(/...(?=.)/,'\&,').reverse %> websites that are bringing back creative expression on the web. Anyone can make a site, only your imagination is required. Join us! +

  • +
+ + + +
+ +
+ +
+ +
+ +
+ + + +
+ + + +
+ +
+ +
+ + + <%== erb :'_footer', layout: false%> +
+ +
+ + + + \ No newline at end of file