Skip to content

Commit ccce00f

Browse files
committed
feat(website): hero section improvements — eyebrow banner + code snippet + CTAs
- Add eyebrow banner: v5.1.0 — 7 DOI-verified publications - Add code snippet (brew install, tri agent, tri cloud) - Update CTAs: Install CLI + Read Papers (replacing theorems/calculator) - Render in first viewport, no delay on code block Refs #473
1 parent 344b6d9 commit ccce00f

1 file changed

Lines changed: 51 additions & 6 deletions

File tree

apps/website/src/components/sections/HeroSection.tsx

Lines changed: 51 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -173,12 +173,33 @@ export default function HeroSection() {
173173
<section id="hero" aria-labelledby="hero-heading">
174174
<div className="radial-glow" aria-hidden="true" />
175175

176+
{/* Eyebrow banner */}
177+
<motion.div
178+
className="fade"
179+
initial={{ opacity: 0, y: -10 }}
180+
animate={{ opacity: 1, y: 0 }}
181+
transition={{ duration: 0.4 }}
182+
style={{
183+
display: 'inline-block',
184+
padding: '0.35em 1em',
185+
border: '1px solid var(--accent)',
186+
borderRadius: '999px',
187+
fontSize: '0.78rem',
188+
letterSpacing: '0.08em',
189+
color: 'var(--accent)',
190+
marginBottom: '1.2rem',
191+
opacity: 0.85,
192+
}}
193+
>
194+
v5.1.0 — 7 DOI-verified publications on Zenodo
195+
</motion.div>
196+
176197
<h2 style={{ color: 'var(--accent)', fontSize: '0.9rem', textTransform: 'uppercase', letterSpacing: 'clamp(0.1em, 2vw, 0.3em)', marginBottom: '0', margin: 0 }}>
177198
<motion.div
178199
className="fade"
179200
initial={{ opacity: 0, y: -20 }}
180201
animate={{ opacity: 1, y: 0 }}
181-
transition={{ duration: 0.6 }}
202+
transition={{ duration: 0.6, delay: 0.1 }}
182203
>
183204
{t.tag}
184205
</motion.div>
@@ -195,6 +216,30 @@ export default function HeroSection() {
195216
</motion.div>
196217

197218
<AnimatedEquation />
219+
220+
{/* Code snippet — visible immediately, no delay */}
221+
<motion.div
222+
initial={{ opacity: 0 }}
223+
animate={{ opacity: 0.8 }}
224+
transition={{ duration: 0.5, delay: 1.0 }}
225+
style={{
226+
background: 'rgba(0,0,0,0.4)',
227+
border: '1px solid rgba(255,255,255,0.1)',
228+
borderRadius: '8px',
229+
padding: '0.8em 1.4em',
230+
fontFamily: '"SF Mono", "Fira Code", monospace',
231+
fontSize: 'clamp(0.72rem, 1.6vw, 0.88rem)',
232+
color: '#c9d1d9',
233+
textAlign: 'left',
234+
maxWidth: '480px',
235+
margin: '0 auto 1.5rem',
236+
lineHeight: 1.6,
237+
}}
238+
>
239+
<div style={{ color: '#8b949e' }}>$ brew tap gHashTag/trinity && brew install tri</div>
240+
<div style={{ color: '#79c0ff' }}>$ tri agent run 420 <span style={{ color: '#8b949e' }}># autonomous 8-step cycle</span></div>
241+
<div style={{ color: '#7ee787' }}>$ tri cloud deploy <span style={{ color: '#8b949e' }}># push to Railway</span></div>
242+
</motion.div>
198243

199244
{/* Only show headline if it's not the φ equation (already shown above) */}
200245
{t.headline && !t.headline.includes('φ²') && (
@@ -234,19 +279,19 @@ export default function HeroSection() {
234279
style={{ minWidth: 'clamp(140px, 40vw, 200px)' }}
235280
whileHover={{ scale: 1.05, boxShadow: '0 0 20px rgba(218,165,32,0.3)' }}
236281
whileTap={{ scale: 0.95 }}
237-
aria-label="Learn more about the theorems"
282+
aria-label="Install Trinity CLI"
238283
>
239-
{t.cta}
284+
Install CLI
240285
</motion.a>
241286
<motion.a
242-
href="#calculator"
287+
href="#publications"
243288
className="btn secondary"
244289
style={{ minWidth: 'clamp(140px, 40vw, 200px)' }}
245290
whileHover={{ scale: 1.05 }}
246291
whileTap={{ scale: 0.95 }}
247-
aria-label="Open the sacred calculator"
292+
aria-label="Read our publications"
248293
>
249-
{t.ctaSecondary}
294+
Read Papers
250295
</motion.a>
251296
</motion.div>
252297

0 commit comments

Comments
 (0)