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! +

  • +
+ + + +
+ +
+ +
+ +
+ +
+ + + +
+ + + +
+ +
+ + + +
+ + + + \ No newline at end of file