@@ -7,33 +7,11 @@ import ThemedImage from '@theme/ThemedImage';
77
88import { docsRoutes } from '../constants/docsRoutes' ;
99import { featuredDemos } from '../constants/demos' ;
10+ import { agentNote , homePrompts } from '../constants/prompts' ;
1011import DemoCard from '../components/DemoCard' ;
12+ import PromptCard from '../components/PromptCard' ;
1113import styles from './index.module.css' ;
1214
13- const quickStartCards = [
14- {
15- title : 'Create App' ,
16- command : 'npx create-react-on-rails-app@latest my-app' ,
17- description : 'Scaffold a working Rails + React app with TypeScript defaults.' ,
18- href : docsRoutes . createApp ,
19- cta : 'Open guide' ,
20- } ,
21- {
22- title : 'Install Into Rails' ,
23- command : 'bundle exec rails generate react_on_rails:install --typescript' ,
24- description : 'Add React on Rails to an existing app while keeping Rails routes and conventions.' ,
25- href : docsRoutes . installExistingApp ,
26- cta : 'Open guide' ,
27- } ,
28- {
29- title : 'Upgrade To Pro' ,
30- command : 'bundle add react_on_rails_pro' ,
31- description : 'Evaluate Pro SSR, streaming, and RSC paths before buying a production license.' ,
32- href : docsRoutes . proUpgrade ,
33- cta : 'Open guide' ,
34- } ,
35- ] ;
36-
3715const valueCards = [
3816 {
3917 title : 'Rails-first React' ,
@@ -183,19 +161,18 @@ function QuickStartSection() {
183161 return (
184162 < section className = { styles . section } >
185163 < div className = "container" >
186- < div className = { styles . sectionHeader } >
187- < h2 > Quick Start</ h2 >
164+ < div className = { styles . sectionHeaderRow } >
165+ < div className = { styles . sectionHeader } >
166+ < h2 > Quick Start</ h2 >
167+ < p className = { styles . quickStartNote } > { agentNote } </ p >
168+ </ div >
169+ < Link className = { styles . browseAll } to = "/prompts" >
170+ Browse all prompts →
171+ </ Link >
188172 </ div >
189173 < div className = { styles . quickStartGrid } >
190- { quickStartCards . map ( ( card ) => (
191- < article className = { styles . quickStartCard } key = { card . title } >
192- < h3 > { card . title } </ h3 >
193- < code className = { styles . inlineCode } > { card . command } </ code >
194- < p > { card . description } </ p >
195- < Link className = { styles . cardLink } to = { card . href } >
196- { card . cta }
197- </ Link >
198- </ article >
174+ { homePrompts . map ( ( prompt ) => (
175+ < PromptCard prompt = { prompt } key = { prompt . id } />
199176 ) ) }
200177 </ div >
201178 </ div >
0 commit comments