diff options
-rw-r--r-- | app/assets/images/oddish.png | bin | 0 -> 85712 bytes | |||
-rw-r--r-- | app/assets/images/poke_ball_original_small.png | bin | 0 -> 30411 bytes | |||
-rw-r--r-- | app/assets/images/pokemon_classic_watercolor_small.png | bin | 0 -> 487602 bytes | |||
-rw-r--r-- | app/views/home/index.html.erb | 26 | ||||
-rw-r--r-- | app/views/layouts/application.html.erb | 17 |
5 files changed, 29 insertions, 14 deletions
diff --git a/app/assets/images/oddish.png b/app/assets/images/oddish.png Binary files differnew file mode 100644 index 0000000..ed34c0a --- /dev/null +++ b/app/assets/images/oddish.png diff --git a/app/assets/images/poke_ball_original_small.png b/app/assets/images/poke_ball_original_small.png Binary files differnew file mode 100644 index 0000000..3974bff --- /dev/null +++ b/app/assets/images/poke_ball_original_small.png diff --git a/app/assets/images/pokemon_classic_watercolor_small.png b/app/assets/images/pokemon_classic_watercolor_small.png Binary files differnew file mode 100644 index 0000000..4405a8c --- /dev/null +++ b/app/assets/images/pokemon_classic_watercolor_small.png diff --git a/app/views/home/index.html.erb b/app/views/home/index.html.erb index 10be138..0d693f1 100644 --- a/app/views/home/index.html.erb +++ b/app/views/home/index.html.erb @@ -1,15 +1,21 @@ <div class="space-y-8"> <h1 class="font-bold text-2xl">Welcome to the Cable Club!</h1> - <div class="space-y-4"> - <h2>Latest checkpoints</h2> - <ul class="list-disc"> - <% @latest_checkpoints.each do |checkpoint| %> - <li>At <%= checkpoint.created_at %> - <%= checkpoint.user.email %> checked in a save for - <%= link_to checkpoint.run.title, run_path(checkpoint.run) %> (<%= checkpoint.run.game.title %>) - <%= link_to "[save file]", rails_blob_path(checkpoint.save_file, disposition: "attachment") %></li> - <% end %> - </ul> + <div class="grid grid-cols-2"> + <div class="space-y-4"> + <h2>Latest checkpoints</h2> + <ul class="list-disc"> + <% @latest_checkpoints.each do |checkpoint| %> + <li>At <%= checkpoint.created_at %> + <%= checkpoint.user.email %> checked in a save for + <%= link_to checkpoint.run.title, run_path(checkpoint.run) %> (<%= checkpoint.run.game.title %>) + <%= link_to "[save file]", rails_blob_path(checkpoint.save_file, disposition: "attachment") %></li> + <% end %> + </ul> + </div> + <div class="flex justify-around"> + <%= image_tag "pokemon_classic_watercolor_small.png" %> + </div> </div> + </div> diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index d956145..db94682 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -11,11 +11,14 @@ <%= javascript_importmap_tags %> </head> - <body class="flex flex-col min-h-screen bg-slate-100"> + <body class="flex flex-col min-h-screen bg-orange-100 text-orange-900"> <nav class="flex flex-wrap items-center justify-between px-4 py-2 text-display"> <div class="flex flex-grow items-center space-x-8"> - <%= link_to "Cable Club", root_path, class: "text-xl" %> + <%= link_to root_path, class: "text-xl flex items-center space-x-4" do %> + <%= image_tag "poke_ball_original_small.png", size: 60 %> + <span>Cable Club</span> + <% end %> <%= link_to "Runs", runs_path %> </div> <div class="space-x-8"> @@ -35,8 +38,14 @@ <%= yield %> </main> - <footer class="flex-shrink"> - <div class="max-w-screen-lg mx-auto pb-4"> + <footer class="flex-shrink mt-28"> + <div class="max-w-screen-lg mx-auto pb-4 flex items-center"> + <div class="flex-1 italic"> + <div>"Despite that, we never stop trying.<br>Why? It's a dream that never ends."</div> + <div>- Scientist, Mossdeep Space Center</div> + </div> + <div><%= image_tag "oddish.png", size: 120 %></div> + <div class="flex-1 text-right"><%= link_to "Source code", "https://git.aikuro.net/poems/cable-club" %></div> </div> </footer> </body> |