Skip to content

Commit

Permalink
Merge pull request #206 from OdenTakashi/add-welcome-page-respoinsive…
Browse files Browse the repository at this point in the history
…-design

welcomeページにレスポンシブデザインを追加
  • Loading branch information
OdenTakashi authored Oct 26, 2023
2 parents 7ab59c6 + f1b1ff7 commit 438620e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ COPY --from=build /rails /rails

# Run and own only the runtime files as a non-root user for security
RUN useradd rails --create-home --shell /bin/bash && \
chown -R rails:rails db log storage tmp
chown -R rails:rails db log tmp

# Deployment options
ENV RAILS_LOG_TO_STDOUT="1" \
Expand Down
Binary file added app/assets/images/arrow_smartphone.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 5 additions & 4 deletions app/views/welcome/index.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@
= button_to '登録して抽選会を開催', '/users/sign_up', method: :get, class: 'p-4 bg-blue-800 font-bold h-10 m-auto text-white rounded flex items-center justify-center hover:bg-blue-900'
.text-center.m-auto.mt-2.text-gray.text-sm.mt-6
= button_to '登録済みの方はこちらからログイン', '/users/sign_in', method: :get, class: 'text-blue-900 underline hover:no-underline'
.flex.justify-center.mt-11
.mt-11.md:flex.md:justify-center
.mt-11
h2.text-center.font-bold.text-xl.text-blue-900
| こんな手間ありませんか?
.mt-2.flex
div
= image_tag 'tired.png', class: 'mx-auto', alt: 'tired_image'
.mt-6
.mt-6.text-sm.md:text-base
ul
li.mt-2
| 応募フォームを作成して、
Expand All @@ -28,14 +28,15 @@
li.mt-2
| 当選者にメールを送って、
.flex.items-center.mx-8
= image_tag 'arrow.png', class: 'mx-auto', alt: 'arrow_image'
= image_tag 'arrow.png', class: 'hidden md:block mx-auto', alt: 'arrow_image'
= image_tag 'arrow_smartphone.png', class: 'mt-3 block md:hidden mx-auto', alt: 'arrow_image'
.mt-11
h2.text-center.font-bold.text-xl.text-blue-900
| その手間を解決します!
.mt-2.flex
div
= image_tag 'happy.png', class: 'mx-auto', alt: 'happy_image'
.mt-6
.mt-6.text-sm.md:text-base
ul
li.mt-2
| 簡単に応募フォーム作成
Expand Down

0 comments on commit 438620e

Please sign in to comment.