Skip to content
Draft
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
4 changes: 4 additions & 0 deletions app/assets/stylesheets/application.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,7 @@ body {
margin: 0;
padding: 0;
}

.home-page {
background-color: #da291c;
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changing .home-page to #da291c makes the hero heading and intro copy effectively unreadable, because app/views/home/index.html.erb still renders them with text-red-600, text-gray-500, and text-gray-400 directly on the page background. Those foreground colors end up at roughly 1.0-1.9:1 contrast against the new red, so this regresses the main content on /.

}
2 changes: 1 addition & 1 deletion app/views/home/index.html.erb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<%= turbo_stream_from "counter" %>

<main class="flex flex-col items-center justify-center min-h-screen bg-red-500 p-8">
<main class="home-page flex flex-col items-center justify-center min-h-screen p-8">
<div class="text-center mb-8">
<h1 class="text-5xl font-bold text-red-600 mb-2">Hello, World!</h1>
<p class="text-gray-500">Rails 8 Full Stack Demo</p>
Expand Down