diff --git a/.gitignore b/.gitignore index c05c064..444d6db 100644 --- a/.gitignore +++ b/.gitignore @@ -33,3 +33,6 @@ vendor/gems # Ignore master key for decrypting credentials and more. /config/master.key + +/app/assets/builds/* +!/app/assets/builds/.keep diff --git a/Gemfile b/Gemfile index 6722826..769a6f4 100644 --- a/Gemfile +++ b/Gemfile @@ -8,6 +8,7 @@ gem "importmap-rails" gem "turbo-rails" gem "stimulus-rails" gem "jbuilder" +gem 'tailwindcss-rails' # gem "bcrypt", "~> 3.1.7" diff --git a/Gemfile.lock b/Gemfile.lock index 307cadf..1133cc4 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -312,6 +312,15 @@ GEM stimulus-rails (1.3.4) railties (>= 6.0.0) stringio (3.1.8) + tailwindcss-rails (4.4.0) + railties (>= 7.0.0) + tailwindcss-ruby (~> 4.0) + tailwindcss-ruby (4.1.16) + tailwindcss-ruby (4.1.16-aarch64-linux-gnu) + tailwindcss-ruby (4.1.16-aarch64-linux-musl) + tailwindcss-ruby (4.1.16-arm64-darwin) + tailwindcss-ruby (4.1.16-x86_64-linux-gnu) + tailwindcss-ruby (4.1.16-x86_64-linux-musl) thor (1.4.0) thruster (0.1.16) thruster (0.1.16-aarch64-linux) @@ -370,6 +379,7 @@ DEPENDENCIES selenium-webdriver sqlite3 (>= 2.1) stimulus-rails + tailwindcss-rails thruster turbo-rails tzinfo-data diff --git a/Procfile.dev b/Procfile.dev new file mode 100644 index 0000000..da151fe --- /dev/null +++ b/Procfile.dev @@ -0,0 +1,2 @@ +web: bin/rails server +css: bin/rails tailwindcss:watch diff --git a/app/assets/builds/.keep b/app/assets/builds/.keep new file mode 100644 index 0000000..e69de29 diff --git a/app/assets/tailwind/application.css b/app/assets/tailwind/application.css new file mode 100644 index 0000000..3116798 --- /dev/null +++ b/app/assets/tailwind/application.css @@ -0,0 +1,6 @@ +@import "tailwindcss"; + +h1 { @apply font-bold text-2xl; } +h2 { @apply font-bold text-xl; } +ul { @apply list-inside; } +li { @apply list-disc; } \ No newline at end of file diff --git a/app/controllers/welcome_controller.rb b/app/controllers/welcome_controller.rb new file mode 100644 index 0000000..ce8fdb0 --- /dev/null +++ b/app/controllers/welcome_controller.rb @@ -0,0 +1,8 @@ +class WelcomeController < ApplicationController + def index + end + + def pages + render params[:page] + end +end diff --git a/app/helpers/welcome_helper.rb b/app/helpers/welcome_helper.rb new file mode 100644 index 0000000..eeead45 --- /dev/null +++ b/app/helpers/welcome_helper.rb @@ -0,0 +1,2 @@ +module WelcomeHelper +end diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 2e958f2..af73dcc 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -23,6 +23,19 @@
- <%= yield %> + + +