Skip to content

Commit

Permalink
About page
Browse files Browse the repository at this point in the history
  • Loading branch information
ivankocienski committed Aug 25, 2024
1 parent 6f184ed commit 6bf34d0
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 1 deletion.
4 changes: 4 additions & 0 deletions app/controllers/home_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
class HomeController < ApplicationController
def root
end

def about
end

Check failure on line 7 in app/controllers/home_controller.rb

View workflow job for this annotation

GitHub Actions / lint

Layout/EmptyLinesAroundClassBody: Extra empty line detected at class body end.
end
9 changes: 9 additions & 0 deletions app/views/home/about.html.haml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
%h1 About <em>EventSite</em>

%p A website about events happening near you!

%p Praesent eget turpis accumsan sapien porttitor semper. Cras sollicitudin felis nulla, quis congue nulla dictum vitae. Nam egestas velit at lacus feugiat, ac tincidunt mi scelerisque. Curabitur sapien nulla, fringilla non aliquam a, tincidunt eget justo. Integer ullamcorper blandit massa, quis fringilla ligula vestibulum id. Quisque lobortis libero non velit bibendum cursus. Sed euismod mi non auctor feugiat. Suspendisse mattis tortor libero, ut ultrices mauris mollis ut. Curabitur nunc orci, efficitur nec dignissim id, posuere sed libero. Suspendisse eu diam sapien. Mauris quis lacinia nunc. Nam rutrum justo eget nisi lacinia, id aliquam felis feugiat. Donec id eros ultrices massa auctor mollis in non ante. Nulla placerat rutrum ante faucibus lacinia.

%p Quisque risus odio, lobortis non rutrum ut, aliquam ac quam. Morbi rhoncus, libero ut laoreet iaculis, nunc sapien posuere felis, non laoreet mauris nisl non ligula. Nulla fermentum convallis nibh, sed venenatis ex tempor nec. Pellentesque scelerisque suscipit imperdiet. Praesent at mi sed eros consectetur facilisis eu et nisl. Fusce sodales neque quam, eu molestie mauris elementum eu. Etiam dignissim ligula a enim ullamcorper mollis. Phasellus vestibulum elit in molestie fringilla. Duis sodales sapien vel velit posuere ultrices. Sed sit amet gravida dolor, et consequat tellus. Morbi id risus dignissim ipsum posuere luctus ac ac odio. Ut metus diam, aliquet in lorem nec, semper tincidunt leo. Phasellus condimentum vehicula ullamcorper. Integer ultrices augue in vestibulum blandit.

%p Ut venenatis nisi quis lorem varius, in dapibus dolor maximus. Duis eget elementum massa. Proin quis aliquam lacus. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Praesent in porttitor diam. Sed et congue tellus. Pellentesque ac velit at leo semper molestie.
2 changes: 1 addition & 1 deletion app/views/layouts/application.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
&bull;
= link_to 'Events', events_path
= link_to 'Partners', partners_path
= link_to 'About', '#'
= link_to 'About', about_path
%hr
= yield
Expand Down
2 changes: 2 additions & 0 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
resources :partners, only: %i[ index show ]
resources :events, only: %i[ index show ]

get '/about' => 'home#about', as: :about

# Define your application routes per the DSL in https://guides.rubyonrails.org/routing.html

# Reveal health status on /up that returns 200 if the app boots with no exceptions, otherwise 500.
Expand Down

0 comments on commit 6bf34d0

Please sign in to comment.