From 462ba9835e36ca3b42ceb59f33c03a98a22c19af Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Sat, 23 Nov 2024 16:53:39 +0000 Subject: Adds a new home page and more_info page --- app/controllers/pages_controller.rb | 19 ++++++++++++ app/views/layouts/_navbar.html.erb | 3 +- app/views/layouts/application.html.erb | 2 +- app/views/pages/home.html.erb | 54 ++++++++++++++++++++++++++++++++++ app/views/pages/more_info.html.erb | 41 ++++++++++++++++++++++++++ config/routes.rb | 10 +++++-- 6 files changed, 124 insertions(+), 5 deletions(-) create mode 100644 app/controllers/pages_controller.rb create mode 100644 app/views/pages/home.html.erb create mode 100644 app/views/pages/more_info.html.erb diff --git a/app/controllers/pages_controller.rb b/app/controllers/pages_controller.rb new file mode 100644 index 0000000..58c0ee7 --- /dev/null +++ b/app/controllers/pages_controller.rb @@ -0,0 +1,19 @@ +class PagesController < ApplicationController + def home + end + + def about + end + + def more_info + end + + def faq + end + + def contact + end + + def terms + end +end diff --git a/app/views/layouts/_navbar.html.erb b/app/views/layouts/_navbar.html.erb index 0609d63..af7a0e4 100644 --- a/app/views/layouts/_navbar.html.erb +++ b/app/views/layouts/_navbar.html.erb @@ -6,7 +6,7 @@ - diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 64bcdd8..33d963e 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -1,7 +1,7 @@ - <%= content_for(:title) || "Alphabetlearning" %> + <%= content_for(:title) || "Alphabet Learning" %> diff --git a/app/views/pages/home.html.erb b/app/views/pages/home.html.erb new file mode 100644 index 0000000..48d6433 --- /dev/null +++ b/app/views/pages/home.html.erb @@ -0,0 +1,54 @@ +
+
+
+
+

+ Your PDF Resources Hub +

+

+ Discover and download high-quality PDF resources for your needs +

+ + Register Now + + + More Info + +
+
+
+
+
+

Benefits

+
+
+
+
+

High Quality Resources

+

Hand-made to ensure the highest quality resources. Clear and logical design.

+
+
+ +
+
+
+

Curriculum-focused

+

Resources designed for your specific curriculum.

+
+
+ +
+
+
+

Foundational knowledge for children

+

Designed for foundational knowledge for children.

+
+
+
+
+
+
diff --git a/app/views/pages/more_info.html.erb b/app/views/pages/more_info.html.erb new file mode 100644 index 0000000..cba5373 --- /dev/null +++ b/app/views/pages/more_info.html.erb @@ -0,0 +1,41 @@ +
+ +

+ More Information + + +

+ + +
+ +
+
+
+

Why Register Now?

+

By registering for an account today, you'll unlock exclusive benefits including:

+
    +
  • An automatic 50% discount on all purchases when we launch in January 2025
  • +
  • 20 complimentary credits added to your account
  • +
  • Early access to new features and content
  • +
+

What Happens Next?

+

After you register:

+
    +
  1. You'll receive an immediate email confirmation
  2. +
  3. Your account will be created with 20 credits ready to use
  4. +
  5. Your 50% launch discount will be automatically applied to your account
  6. +
  7. You'll be notified when we go live in January 2025
  8. +
+ +
+
+
+
diff --git a/config/routes.rb b/config/routes.rb index 3455716..55ca8e8 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,11 +1,17 @@ Rails.application.routes.draw do + get "home", to: "pages#home" + get "about", to: "pages#about" + get "faq", to: "pages#faq" + get "contact", to: "pages#contact" + get "terms", to: "pages#terms" + get "more-info", to: "pages#more_info" resources :categories resources :resource_types resources :pdfresources resources :users resource :session resources :passwords, param: :token - resource :registration, only: [:new, :create] + resource :registration, only: [ :new, :create ] # 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. @@ -17,5 +23,5 @@ Rails.application.routes.draw do # get "service-worker" => "rails/pwa#service_worker", as: :pwa_service_worker # Defines the root path route ("/") - root "pdfresources#index" + root "pages#home" end -- cgit v1.2.3