diff --git a/app/controller/home.rb b/app/controller/home.rb index 5b13355..7c7fcce 100644 --- a/app/controller/home.rb +++ b/app/controller/home.rb @@ -2,6 +2,6 @@ class Home def call(env) - [200, {"Content-Type" => "text/html"}, View::Home.render] + [200, {"Content-Type" => "text/html"}, [View::Home.render]] end end \ No newline at end of file diff --git a/app/controller/ping.rb b/app/controller/ping.rb index ccaa704..b799a0a 100644 --- a/app/controller/ping.rb +++ b/app/controller/ping.rb @@ -1,5 +1,5 @@ class Ping def call(env) - ['200', {'Content-Type' => 'application/json'}, '{ "alive" : true }'] + ['200', {'Content-Type' => 'application/json'}, ['{ "alive" : true }']] end end \ No newline at end of file diff --git a/app/view/home.mustache b/app/view/home.mustache index 88a3717..3758017 100644 --- a/app/view/home.mustache +++ b/app/view/home.mustache @@ -2,6 +2,8 @@ YoseTheGame + + diff --git a/app/yose.rb b/app/yose.rb index 844db79..2fd8e4b 100644 --- a/app/yose.rb +++ b/app/yose.rb @@ -4,6 +4,8 @@ class Yose def initialize @app = Rack::Builder.new do + use Rack::Static, :urls => ["/css"], :root => "public" + map '/' do run Home.new end diff --git a/public/css/main.css b/public/css/main.css new file mode 100644 index 0000000..dd3e496 --- /dev/null +++ b/public/css/main.css @@ -0,0 +1,8 @@ +html { + font-family: "Play"; + line-height: 1.5; +} + +body { + background-color: #fff; +}