diff --git a/Procfile b/Procfile new file mode 100644 index 00000000..6788a9f2 --- /dev/null +++ b/Procfile @@ -0,0 +1 @@ +server: bin/rails server -p 3000 \ No newline at end of file diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb new file mode 100644 index 00000000..239cbfea --- /dev/null +++ b/app/controllers/users_controller.rb @@ -0,0 +1,6 @@ +class UsersController < ApplicationController + layout "mazer" + + def index + end +end diff --git a/app/views/layouts/_sidebar.html.erb b/app/views/layouts/_sidebar.html.erb new file mode 100644 index 00000000..846fe4c8 --- /dev/null +++ b/app/views/layouts/_sidebar.html.erb @@ -0,0 +1,52 @@ + diff --git a/app/views/layouts/mazer.html.erb b/app/views/layouts/mazer.html.erb new file mode 100644 index 00000000..9ec18255 --- /dev/null +++ b/app/views/layouts/mazer.html.erb @@ -0,0 +1,48 @@ + + + + + + <%= content_for(:title) || "Skillrx" %> + + + + + <%= csrf_meta_tags %> + <%= csp_meta_tag %> + + <%= yield :head %> + + <%# Enable PWA manifest for installable apps (make sure to enable in config/routes.rb too!) %> + <%#= tag.link rel: "manifest", href: pwa_manifest_path(format: :json) %> + + + + + + + + <%# Includes all stylesheet files in app/assets/stylesheets %> + <%= stylesheet_link_tag :app, "data-turbo-track": "reload" %> + <%= javascript_importmap_tags %> + + + + <%= render "layouts/sidebar" %> + + <%= yield %> + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/views/users/index.html.erb b/app/views/users/index.html.erb new file mode 100644 index 00000000..e69de29b diff --git a/config/routes.rb b/config/routes.rb index 890cbb9f..9acc2b24 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -15,6 +15,7 @@ # get "manifest" => "rails/pwa#manifest", as: :pwa_manifest # get "service-worker" => "rails/pwa#service_worker", as: :pwa_service_worker + resources :users + # Defines the root path route ("/") - # root "posts#index" end