diff --git a/.ruby-version b/.ruby-version index f13c6f4..fa7adc7 100644 --- a/.ruby-version +++ b/.ruby-version @@ -1 +1 @@ -ruby-3.3.5 +3.3.5 diff --git a/app/assets/images/kitten.jpg b/app/assets/images/kitten.jpg new file mode 100644 index 0000000..ac22948 Binary files /dev/null and b/app/assets/images/kitten.jpg differ diff --git a/app/assets/images/rails.svg b/app/assets/images/rails.svg new file mode 100644 index 0000000..e197185 --- /dev/null +++ b/app/assets/images/rails.svg @@ -0,0 +1,35 @@ + + + +rails-logo + + + + + + + + + + + + + + + + + + + + + diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 2b1b993..9aa18b9 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -1,7 +1,7 @@ - + <%= yield(:title) %> | Ruby on Rails Tutorial Sample App @@ -21,9 +21,28 @@ <%# Includes all stylesheet files in app/assets/stylesheets %> <%= stylesheet_link_tag :app, "data-turbo-track": "reload" %> <%= javascript_importmap_tags %> + - <%= yield %> + +
+ <%= yield %> +
diff --git a/app/views/static_pages/home.html.erb b/app/views/static_pages/home.html.erb index 5a4284e..2610cd1 100644 --- a/app/views/static_pages/home.html.erb +++ b/app/views/static_pages/home.html.erb @@ -1,8 +1,16 @@ <% provide(:title, "Home") %> -

Sample App

-

- This is the home page for the - Ruby on Rails Tutorial - sample application. -

+
+

Welcome to the Sample App

+

+ This is the home page for the + Ruby on Rails Tutorial + Sample application. +

+ + <%= link_to "Sing up now!", '#', class:"btn btn-lg btn-primary" %> +
+<%= link_to image_tag("rails.svg", alt:"Rails logo", width: "200"), + "https://rubyonrails.org/" %> +<%= link_to image_tag("kitten.jpg", alt:"Kitten", width:"200") %> +