+
+
<%= counter.value %>
-
diff --git a/app/views/home/index.html.erb b/app/views/home/index.html.erb
index 43d0b52..738c847 100644
--- a/app/views/home/index.html.erb
+++ b/app/views/home/index.html.erb
@@ -1,13 +1,13 @@
<%= turbo_stream_from "counter" %>
-
+
-
Hello, World!
-
Rails 8 Full Stack Demo
+
Hello, World!
+
Rails 8 Full Stack Demo
<% if notice %>
-
+
<%= notice %>
<% end %>
@@ -18,54 +18,54 @@
<%= render "counter", counter: @counter %>
<%= button_to "Click Me", increment_path, method: :post,
- class: "w-full bg-red-600 hover:bg-red-700 text-white font-semibold py-4 px-8 rounded-lg text-lg transition-colors cursor-pointer" %>
+ class: "w-full bg-red-600 hover:bg-red-700 dark:bg-red-500 dark:hover:bg-red-600 text-white font-semibold py-4 px-8 rounded-lg text-lg transition-colors cursor-pointer" %>
-
+
🐘
-
PostgreSQL
-
Stores the counter value
+
PostgreSQL
+
Stores the counter value
-
+
⚡
-
Redis
-
Queues the increment job
+
Redis
+
Queues the increment job
-
+
👷
-
Sidekiq
-
Processes job after 2s delay
+
Sidekiq
+
Processes job after 2s delay
- →
+ →
-
+
📡
-
ActionCable
-
Pushes live updates via WebSocket
+
ActionCable
+
Pushes live updates via WebSocket
-
🏓
-
API Test
-
Click to test
+
API Test
+
Click to test
diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb
index 384746d..9a71385 100644
--- a/app/views/layouts/application.html.erb
+++ b/app/views/layouts/application.html.erb
@@ -1,5 +1,5 @@
-
+
Preview Rails
@@ -9,9 +9,48 @@
<%= stylesheet_link_tag "tailwind", "data-turbo-track": "reload" %>
<%= stylesheet_link_tag "application", "data-turbo-track": "reload" %>
<%= javascript_importmap_tags %>
+
-
+
+
+
+
+
+
+
+
+
+
<%= yield %>