From db0c6df1dc00afa50a3754c3257308ad3bd4c40a Mon Sep 17 00:00:00 2001 From: Jacob Cody Wimer Date: Tue, 20 Oct 2015 08:05:33 -0400 Subject: [PATCH] New home page --- app/views/static_pages/home.html.erb | 9 +++++++++ .../{index.html.erb => tournaments.html.erb} | 0 config/routes.rb | 3 ++- 3 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 app/views/static_pages/home.html.erb rename app/views/static_pages/{index.html.erb => tournaments.html.erb} (100%) diff --git a/app/views/static_pages/home.html.erb b/app/views/static_pages/home.html.erb new file mode 100644 index 0000000..8e2d6cf --- /dev/null +++ b/app/views/static_pages/home.html.erb @@ -0,0 +1,9 @@ +
+

Welcome to WrestlingDev

+
+

This website was created to help wrestling coaches run their tournaments. It is 2015, why are we still running bout sheets to tables and why are we still using resources to push cards on a bout board? This website was created as a free way for coaches to run a tournament smoothly with as few workers as possible.

+
+
+<%= link_to "Browse Tournaments", '/static_pages/tournaments', class: "btn btn-large btn-primary" %> +

+
diff --git a/app/views/static_pages/index.html.erb b/app/views/static_pages/tournaments.html.erb similarity index 100% rename from app/views/static_pages/index.html.erb rename to app/views/static_pages/tournaments.html.erb diff --git a/config/routes.rb b/config/routes.rb index 596498a..92c5bb2 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -21,7 +21,8 @@ Wrestling::Application.routes.draw do # See how all your routes lay out with "rake routes". # You can have the root of your site routed with "root" - root 'static_pages#index' + root 'static_pages#home' + get 'static_pages/tournaments' get 'static_pages/brackets' get 'static_pages/all_brackets' get 'static_pages/weights'