summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/controllers/home_controller.rb8
-rw-r--r--app/views/home/index.html.erb15
-rw-r--r--config/routes.rb2
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