rename index to home
This commit is contained in:
@@ -177,6 +177,11 @@ a {
|
|||||||
|
|
||||||
p {
|
p {
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
|
|
||||||
|
span {
|
||||||
|
// used to control eventual line breaks a bit
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
img {
|
img {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
class StaticsController < ApplicationController
|
class StaticsController < ApplicationController
|
||||||
|
|
||||||
def index
|
def home
|
||||||
end
|
end
|
||||||
|
|
||||||
def donate
|
def donate
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<%= link_to "", root_path, id: "logo" %>
|
<%= link_to "", root_path, id: "logo" %>
|
||||||
<ul>
|
<ul>
|
||||||
<% con = params[:controller] %>
|
<% con = params[:controller] %>
|
||||||
<li><%= link_to "Home", statics_path, class: ("active" if con == "statics" && params[:action] == "index") %></li>
|
<li><%= link_to "Home", home_statics_path, class: ("active" if con == "statics" && params[:action] == "home") %></li>
|
||||||
<li><%= link_to "News", blogposts_path, class: ("active" if con == "blogposts" || con == "comments") %></li>
|
<li><%= link_to "News", blogposts_path, class: ("active" if con == "blogposts" || con == "comments") %></li>
|
||||||
<li><%= link_to "Info", info_index_path, class: ("active" if con == "info") %></li>
|
<li><%= link_to "Info", info_index_path, class: ("active" if con == "info") %></li>
|
||||||
<li><%= link_to "Forums", forums_path, class: ("active" if con == "forums" || con == "forumgroups" || con == "forumthreads" || con == "threadreplies") %></li>
|
<li><%= link_to "Forums", forums_path, class: ("active" if con == "forums" || con == "forumgroups" || con == "forumthreads" || con == "threadreplies") %></li>
|
||||||
|
|||||||
33
app/views/statics/home.html.erb
Normal file
33
app/views/statics/home.html.erb
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
<% title "Home" %>
|
||||||
|
<% content_for :main_class, "front-page" %>
|
||||||
|
|
||||||
|
<h1>Community. Circuitry. Creativity.</h1>
|
||||||
|
|
||||||
|
<div id="join-now">Join us: redstoner.com</div>
|
||||||
|
|
||||||
|
<%= image_tag "logo.svg" %>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
<span>Redstoner is an amazing server</span>
|
||||||
|
<span>for all redstoners of any (or no) skill level,</span>
|
||||||
|
<span>beginner to advanced,</span>
|
||||||
|
<span>from combo locks to doors to CPUs!</span>
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
<span>We have a friendly community</span>
|
||||||
|
<span>and experienced staff</span>
|
||||||
|
<span>who are all kind and welcoming.</span>
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
<span>A proof for our great community is the ton of</span>
|
||||||
|
<span>welcome messages you get on your first join,</span>
|
||||||
|
<span>from normal members and staff alike.</span>
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
<span>The Creative plot world is full of amazing plots,</span>
|
||||||
|
<span>where you can build on your own or with friends!</span>
|
||||||
|
<span>There's also a Survival world</span>
|
||||||
|
<span>for those who just want to mine some ore</span>
|
||||||
|
<span>and we have a freebuild world for large projects.</span>
|
||||||
|
</p>
|
||||||
|
<p>Join us now!</p>
|
||||||
@@ -1,24 +0,0 @@
|
|||||||
<% title "Home" %>
|
|
||||||
<% content_for :main_class, "front-page" %>
|
|
||||||
|
|
||||||
<h1>Community. Circuitry. Creativity.</h1>
|
|
||||||
|
|
||||||
<div id="join-now">Join us: redstoner.com</div>
|
|
||||||
|
|
||||||
<%= image_tag "logo.svg" %>
|
|
||||||
|
|
||||||
<p>
|
|
||||||
Redstoner is an amazing server for all redstoners of any (or no) skill level, beginner to advanced,<br>
|
|
||||||
from combo locks to doors to CPUs!
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
We have a friendly community and an experienced staff who are all kind and welcoming.
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
A proof for our great community is the ton of welcome messages you get on your first join, from normal members and staff alike.
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
The dedicated plot world is full of amazing plots, where you can build on your own or with your friends and<br>
|
|
||||||
there is also a survival world for those who just want to mine some ore, and a free build world for large projects
|
|
||||||
</p>
|
|
||||||
<p>Join us now!</p>
|
|
||||||
@@ -4,10 +4,11 @@ Redstoner::Application.routes.draw do
|
|||||||
resources :comments
|
resources :comments
|
||||||
end
|
end
|
||||||
|
|
||||||
resources :statics, only: [:index, :donate], path: '/' do
|
resources :statics, only: [:home, :donate], path: '/' do
|
||||||
collection do
|
collection do
|
||||||
get 'donate'
|
get 'donate'
|
||||||
get 'index'
|
get 'home'
|
||||||
|
get 'index', to: redirect('/home')
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -50,5 +51,5 @@ Redstoner::Application.routes.draw do
|
|||||||
|
|
||||||
# post 'paypal' => 'paypal#create'
|
# post 'paypal' => 'paypal#create'
|
||||||
|
|
||||||
root to: 'statics#index'
|
root to: 'statics#home'
|
||||||
end
|
end
|
||||||
Reference in New Issue
Block a user