Skip to content

Commit 3f65914

Browse files
committed
update coilot rag
1 parent 7d8f81e commit 3f65914

2 files changed

Lines changed: 142 additions & 2 deletions

File tree

index.html

Lines changed: 75 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,8 @@ <h2>Get Started in Minutes</h2>
117117
<pre><code><span class="comment"># Install CLI</span>
118118
npm install -g @stratix/cli
119119

120-
<span class="comment"># Create project</span>
121-
stratix new my-app
120+
<span class="comment"># Create project with modular structure</span>
121+
stratix new my-app --template modular
122122

123123
<span class="comment"># Generate bounded context</span>
124124
cd my-app
@@ -130,6 +130,79 @@ <h2>Get Started in Minutes</h2>
130130
</div>
131131
</section>
132132

133+
<!-- Stratix Copilot Section -->
134+
<section class="copilot-section">
135+
<div class="copilot-content">
136+
<div class="section-header">
137+
<h2>Accelerate Development with AI</h2>
138+
<p>Stratix Copilot: AI-powered coding assistant for faster, smarter development</p>
139+
</div>
140+
<div class="copilot-features">
141+
<div class="copilot-feature">
142+
<div class="feature-icon">
143+
<svg width="32" height="32" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
144+
<path d="M12 2L2 7L12 12L22 7L12 2Z" stroke="currentColor" stroke-width="2" stroke-linejoin="round"/>
145+
<path d="M2 17L12 22L22 17" stroke="currentColor" stroke-width="2" stroke-linejoin="round"/>
146+
<path d="M2 12L12 17L22 12" stroke="currentColor" stroke-width="2" stroke-linejoin="round"/>
147+
</svg>
148+
</div>
149+
<h3>Context-Aware AI</h3>
150+
<p>Understands your project structure and Stratix patterns</p>
151+
</div>
152+
<div class="copilot-feature">
153+
<div class="feature-icon">
154+
<svg width="32" height="32" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
155+
<rect x="3" y="3" width="18" height="18" rx="2" stroke="currentColor" stroke-width="2"/>
156+
<path d="M9 9L15 15M15 9L9 15" stroke="currentColor" stroke-width="2" stroke-linecap="round"/>
157+
</svg>
158+
</div>
159+
<h3>Smart Code Generation</h3>
160+
<p>Generate entities, commands, queries, and value objects instantly</p>
161+
</div>
162+
<div class="copilot-feature">
163+
<div class="feature-icon">
164+
<svg width="32" height="32" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
165+
<circle cx="12" cy="12" r="10" stroke="currentColor" stroke-width="2"/>
166+
<path d="M12 6V12L16 14" stroke="currentColor" stroke-width="2" stroke-linecap="round"/>
167+
</svg>
168+
</div>
169+
<h3>RAG-Enhanced</h3>
170+
<p>Retrieves relevant documentation for accurate responses</p>
171+
</div>
172+
</div>
173+
<div class="code-block">
174+
<div class="code-header">
175+
<span class="code-title">VS Code Copilot Chat</span>
176+
<button class="code-copy" aria-label="Copy code">
177+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
178+
<rect x="5" y="5" width="9" height="9" rx="1" stroke="currentColor" stroke-width="1.5" />
179+
<path d="M3 11V3C3 2.44772 3.44772 2 4 2H11" stroke="currentColor" stroke-width="1.5" />
180+
</svg>
181+
</button>
182+
</div>
183+
<pre><code><span class="comment"># Generate a complete entity</span>
184+
@stratix /entity Product with name, price, and category
185+
186+
<span class="comment"># Generate CQRS command with handler</span>
187+
@stratix /command CreateProduct with productId, name, price
188+
189+
<span class="comment"># Generate query with handler</span>
190+
@stratix /query GetProductById with productId
191+
192+
<span class="comment"># Ask about Stratix patterns</span>
193+
@stratix how do I implement a repository with PostgreSQL?</code></pre>
194+
</div>
195+
<div class="copilot-cta">
196+
<a href="https://stratix-dev.github.io/stratix/docs/stratix-copilot/overview" class="btn btn-primary" target="_blank" rel="noopener noreferrer">
197+
<span>Learn About Stratix Copilot</span>
198+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
199+
<path d="M7.5 15L12.5 10L7.5 5" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
200+
</svg>
201+
</a>
202+
</div>
203+
</div>
204+
</section>
205+
133206
<!-- Footer -->
134207
<footer class="footer">
135208
<div class="footer-content">

src/style.css

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -481,6 +481,73 @@ body {
481481
opacity: 0.8;
482482
}
483483

484+
/* Stratix Copilot Section */
485+
.copilot-section {
486+
padding: var(--spacing-xl) var(--spacing-md);
487+
background: var(--bg-primary);
488+
border-top: 1px solid var(--border-color);
489+
}
490+
491+
.copilot-content {
492+
max-width: 1100px;
493+
margin: 0 auto;
494+
}
495+
496+
.copilot-features {
497+
display: grid;
498+
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
499+
gap: var(--spacing-md);
500+
margin-bottom: var(--spacing-lg);
501+
}
502+
503+
.copilot-feature {
504+
padding: var(--spacing-md);
505+
background: var(--bg-secondary);
506+
border: 1px solid var(--border-color);
507+
border-radius: 12px;
508+
transition: var(--transition-smooth);
509+
}
510+
511+
.copilot-feature:hover {
512+
transform: translateY(-4px);
513+
box-shadow: var(--shadow-lg);
514+
border-color: var(--accent-primary);
515+
}
516+
517+
.feature-icon {
518+
width: 48px;
519+
height: 48px;
520+
display: flex;
521+
align-items: center;
522+
justify-content: center;
523+
background: var(--gradient-primary);
524+
border-radius: 10px;
525+
margin-bottom: var(--spacing-sm);
526+
}
527+
528+
.feature-icon svg {
529+
color: white;
530+
}
531+
532+
.copilot-feature h3 {
533+
font-size: 1.25rem;
534+
font-weight: 700;
535+
color: var(--text-primary);
536+
margin-bottom: 0.5rem;
537+
}
538+
539+
.copilot-feature p {
540+
font-size: 0.95rem;
541+
color: var(--text-secondary);
542+
line-height: 1.6;
543+
}
544+
545+
.copilot-cta {
546+
display: flex;
547+
justify-content: center;
548+
margin-top: var(--spacing-lg);
549+
}
550+
484551
/* Footer */
485552
.footer {
486553
padding: var(--spacing-lg) var(--spacing-md);

0 commit comments

Comments
 (0)