diff options
author | David Gay <david@davidgay.org> | 2021-04-21 22:15:24 -0400 |
---|---|---|
committer | David Gay <david@davidgay.org> | 2021-04-21 22:15:24 -0400 |
commit | 3deaa18cfc4103f0cf6dd6de479f07d0d2db1abf (patch) | |
tree | f1692c0a8193973a4d54085f1d8f05c1e12bfe44 | |
parent | 3e85487fcad7f43ba0abd7fbb0a3b0bad619091b (diff) |
Homepage
-rw-r--r-- | app/controllers/home_controller.rb | 8 | ||||
-rw-r--r-- | app/views/home/index.html.erb | 15 | ||||
-rw-r--r-- | config/routes.rb | 2 |
3 files changed, 24 insertions, 1 deletions
diff --git a/app/controllers/home_controller.rb b/app/controllers/home_controller.rb new file mode 100644 index 0000000..13e5d35 --- /dev/null +++ b/app/controllers/home_controller.rb @@ -0,0 +1,8 @@ +# frozen_string_literal: true + +class HomeController < ApplicationController + #skip_before_action :authenticate_user! + + def index + end +end diff --git a/app/views/home/index.html.erb b/app/views/home/index.html.erb new file mode 100644 index 0000000..37a7ea2 --- /dev/null +++ b/app/views/home/index.html.erb @@ -0,0 +1,15 @@ +<div class="pl-10 pt-10"> + <div class="mb-10"> + <h1 class="text-4xl">Welcome to the Planes.</h1> + <p class="my-2">Enter the realms of Esoterra, a multiplayer + browser-based role-playing game.</p> + </div> + + <div> + <p class="text-glow text-red-500 mb-1">Esoterra is in early development. This is a closed, + pre-alpha server for a handful of game designers and playtesters. + It is closed to the public.</p> + <p>If you're interested in helping test Esoterra, send an email to + <a href="mailto:hello@davidgay.org">hello@davidgay.org</a>.</p> + </div> +</div>
\ No newline at end of file diff --git a/config/routes.rb b/config/routes.rb index c06383a..d5adf35 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,3 +1,3 @@ Rails.application.routes.draw do - # For details on the DSL available within this file, see https://guides.rubyonrails.org/routing.html + root to: "home#index", as: :home_index end |