Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure tailwind properly #13

Merged
merged 1 commit into from
Mar 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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