Skip to content

Commit

Permalink
Fixed Title and Subtitle for homepage
Browse files Browse the repository at this point in the history
  • Loading branch information
yatish27 committed Apr 19, 2024
1 parent abbdc80 commit 1b19f09
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/frontend/controllers/hello_controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ import { Controller } from "@hotwired/stimulus"

export default class extends Controller {
connect() {
this.element.textContent = "Hello from Stimulus! 🙏"
this.element.textContent = "Hello 👋"
}
}
8 changes: 4 additions & 4 deletions app/views/home/index.html.erb
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<% provide(:title, "Home") %>
<div class="py-8">
<div class="max-w-3xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="py-24">
<div class="max-w-4xl mx-auto px-4 sm:px-6 lg:px-8">
<h1 class="scroll-m-20 text-4xl font-bold tracking-tight">Shore</h1>
<p class="text-lg text-gray-600">An opinionated template with pragmatic defaults to start your Ruby on Rails project 🚀</p>
<p class=" max-w-2xl text-lg text-gray-600">An opinionated template with pragmatic defaults to start your Ruby on Rails project 🚀</p>
<p class="text-lg text-gray-600 mt-6">
Stimulus says,
<i class="italic text-indigo-600" data-controller="hello">Stimulus has not loaded yet 😥</i>
<i class="text-indigo-600" data-controller="hello">Stimulus not loaded 😥</i>
</p>
</div>
</div>

0 comments on commit 1b19f09

Please sign in to comment.