Skip to content

Commit

Permalink
Configure tailwind properly
Browse files Browse the repository at this point in the history
  • Loading branch information
nickel committed Mar 25, 2024
1 parent feaa89a commit d1c4346
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 7 deletions.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ end
group :development do
gem "brakeman"
gem "bundler-audit"
gem "foreman"
gem "rubocop"
gem "spring"
gem "web-console"
Expand Down
2 changes: 2 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ GEM
reline (>= 0.3.8)
drb (2.2.1)
erubi (1.12.0)
foreman (0.87.2)
globalid (1.2.1)
activesupport (>= 6.1)
i18n (1.14.4)
Expand Down Expand Up @@ -298,6 +299,7 @@ DEPENDENCIES
bundler-audit
capybara
debug
foreman
importmap-rails
jbuilder
packwerk (~> 3.2)
Expand Down
4 changes: 2 additions & 2 deletions Procfile.dev
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
web: bin/rails server
css: bin/rails tailwindcss:watch
web: bin/rails server -b 0.0.0.0
css: bin/rails tailwindcss:watch[always]
6 changes: 3 additions & 3 deletions app/packages/landing/views/home/index.html.erb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<h1>PictoPlan</h1>

Hello, world!
<h1 class="text-3xl font-bold">
PictoPlan
</h1>
2 changes: 1 addition & 1 deletion app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</head>

<body>
<main class="container mx-auto mt-28 px-5 flex">
<main class="container mx-auto mt-5 px-5 flex">
<%= yield %>
</main>
</body>
Expand Down
3 changes: 2 additions & 1 deletion config/tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ module.exports = {
'./public/*.html',
'./app/helpers/**/*.rb',
'./app/javascript/**/*.js',
'./app/views/**/*.{erb,haml,html,slim}'
'./app/views/**/*.{erb,haml,html,slim}',
'./app/packages/**/views/**/*.{erb,haml,html,slim}'
],
theme: {
extend: {
Expand Down
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ services:
dockerfile: Dockerfile.dev
volumes:
- .:/rails
command: "bin/dev"
tty: true
ports:
- "3000:3000"
environment:
Expand Down

0 comments on commit d1c4346

Please sign in to comment.