Split up config.ru and added views

This commit is contained in:
James 2023-12-27 18:19:21 -06:00
parent e5ffa9e318
commit 2151565e9c
7 changed files with 89 additions and 14 deletions

3
views/greeting.erb Normal file
View file

@ -0,0 +1,3 @@
<p class="subtitle is-3">
Hello, <%= @name %>!
</p>

3
views/index.erb Normal file
View file

@ -0,0 +1,3 @@
<p class="subtitle is-3">
Welcome to my new page!
</p>

18
views/layout.erb Normal file
View file

@ -0,0 +1,18 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1">
<title><%= @page_title || "My Website" %></title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bulma@0.9.4/css/bulma.min.css">
</head>
<body>
<section class="section">
<div class="container">
<h1 class="title is-1"><%= @page_title || 'Page Title Placeholder' %></h1>
<% # maybe put a flash section here some day %>
<%== yield %>
</div>
</section>
</body>
</html>