Skip to content
Merged
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
ba89f13
feat(chat): ship-readiness polish — Tailwind, auto-scroll, markdown, …
blove Apr 6, 2026
2dccb0a
Rebrand to Angular Stream Resource (#28)
blove Apr 6, 2026
65f13df
feat(website): add narrative sections, pilot-to-prod page, and rebran…
blove Apr 6, 2026
1c9e7b6
fix(website): replace unsourced stats with verified Gartner and Stack…
blove Apr 6, 2026
16d37f7
merge: resolve conflicts with main
blove Apr 6, 2026
40a967b
docs: add website audit and lead generation specs
blove Apr 6, 2026
5e52aeb
docs: add implementation plans for lead gen and website audit
blove Apr 6, 2026
b8e8ba2
chore: install resend and react-email dependencies
blove Apr 6, 2026
e53d86d
feat: add shared resend module with audience helper
blove Apr 6, 2026
fd13886
feat: add lead notification email template
blove Apr 6, 2026
7f16a19
feat: add whitepaper download email template
blove Apr 6, 2026
e41dd9f
feat: add newsletter welcome email template
blove Apr 6, 2026
c948d1a
feat: wire /api/leads to Resend email + audience
blove Apr 6, 2026
c33e2e1
feat: wire /api/whitepaper-signup to Resend email delivery
blove Apr 6, 2026
4b5d310
feat: add /api/newsletter route with Resend welcome email
blove Apr 6, 2026
5c700cf
fix: convert email templates to plain HTML to avoid React dual-instan…
blove Apr 6, 2026
fba8c65
fix: lazy-init Resend client to gracefully handle missing API key
blove Apr 6, 2026
3092ca4
fix: make ChatFeaturesSection responsive on mobile
blove Apr 6, 2026
150ca98
fix: stack FairComparisonSection rows vertically on mobile
blove Apr 6, 2026
1aaaec2
fix: increase touch targets to meet WCAG 44px minimum
blove Apr 6, 2026
5975f8f
fix: enforce 12px minimum font size on progress bar labels
blove Apr 6, 2026
b65d9e2
feat: add social proof badge strip below stats
blove Apr 6, 2026
fcfe07b
feat: add newsletter signup form to footer
blove Apr 6, 2026
5f62f73
feat: restructure white paper section with soft gate
blove Apr 6, 2026
32b2221
feat: add OpenGraph and Twitter Card meta tags
blove Apr 6, 2026
888701c
merge: resolve ProblemSection conflict with main (keep our stat + fon…
blove Apr 6, 2026
8f6ec67
feat: rebrand from streamResource to agent() — @cacheplane/angular
blove Apr 7, 2026
5dbeb85
merge: resolve conflicts with main (keep renamed versions)
blove Apr 7, 2026
7353ae7
merge: pull latest main
blove Apr 7, 2026
e439b03
fix: complete rebrand audit — nav bug, hero copy, templates, footer
blove Apr 7, 2026
b96574c
fix: remove $20k from pilot program, include with app license, annual…
blove Apr 7, 2026
0b4e127
fix: resolve API docs slug mismatch after rename
blove Apr 7, 2026
615898d
Merge remote-tracking branch 'origin/main' into claude/zealous-jones
blove Apr 7, 2026
f7a90e3
refactor: rename stream-resource lib to agent in Nx project structure
blove Apr 7, 2026
aca9d65
Merge remote-tracking branch 'origin/main' into claude/zealous-jones
blove Apr 7, 2026
8aec369
Merge remote-tracking branch 'origin/main' into claude/zealous-jones
blove Apr 7, 2026
58a0e11
feat: add airplane emoji favicon and logo to header/footer
blove Apr 7, 2026
db10a06
fix: prevent FullStackSection connector animations from overlapping c…
blove Apr 7, 2026
24c4326
fix: add remark-gfm to enable markdown table rendering in docs
blove Apr 7, 2026
b0305da
fix: update developer seat feature text to "12-month license"
blove Apr 7, 2026
8ee2ec8
feat: add dismissible whitepaper announcement toast
blove Apr 7, 2026
f3923da
feat: add lead capture form to announcement toast
blove Apr 7, 2026
b225874
merge: resolve AnnouncementToast conflict (keep form version)
blove Apr 7, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
220 changes: 163 additions & 57 deletions apps/website/src/components/shared/AnnouncementToast.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,20 @@ const ANNOUNCEMENT_DATE = '2026-04-07';
const STORAGE_KEY = `dismissed-announcement-${ANNOUNCEMENT_DATE}`;
const DELAY_MS = 30_000;

type Step = 'cta' | 'form' | 'sent';

export function AnnouncementToast() {
const [visible, setVisible] = useState(false);
const [step, setStep] = useState<Step>('cta');
const [email, setEmail] = useState('');
const [submitting, setSubmitting] = useState(false);

useEffect(() => {
// Check if already dismissed for this announcement date
try {
if (localStorage.getItem(STORAGE_KEY) === 'true') return;
} catch {
// localStorage unavailable (SSR, private browsing)
return;
}

const timer = setTimeout(() => setVisible(true), DELAY_MS);
return () => clearTimeout(timer);
}, []);
Expand All @@ -31,9 +33,36 @@ export function AnnouncementToast() {
setVisible(false);
try {
localStorage.setItem(STORAGE_KEY, 'true');
} catch {
// ignore
}
} catch { /* ignore */ }
};

const handleSubmit = async (e: React.FormEvent) => {
e.preventDefault();
if (!email) return;
setSubmitting(true);
try {
await fetch('/api/whitepaper-signup', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ email }),
});
} catch { /* best-effort */ }
setStep('sent');
setSubmitting(false);
// Auto-dismiss after showing success
setTimeout(dismiss, 4000);
};

const inputStyle: React.CSSProperties = {
width: '100%',
background: 'rgba(255,255,255,0.7)',
border: `1px solid ${tokens.glass.border}`,
borderRadius: 8,
padding: '8px 12px',
fontSize: '0.82rem',
color: tokens.colors.textPrimary,
fontFamily: 'Inter, sans-serif',
outline: 'none',
};

return (
Expand Down Expand Up @@ -82,7 +111,7 @@ export function AnnouncementToast() {
×
</button>

{/* Content */}
{/* Eyebrow */}
<p style={{
fontFamily: 'var(--font-mono,"JetBrains Mono",monospace)',
fontSize: '0.62rem',
Expand All @@ -94,6 +123,8 @@ export function AnnouncementToast() {
}}>
Free Guide
</p>

{/* Title */}
<p style={{
fontFamily: 'var(--font-garamond,"EB Garamond",Georgia,serif)',
fontSize: '1.05rem',
Expand All @@ -104,56 +135,131 @@ export function AnnouncementToast() {
}}>
From Prototype to Production
</p>
<p style={{
fontSize: '0.82rem',
color: tokens.colors.textSecondary,
lineHeight: 1.5,
marginBottom: 16,
}}>
Six production-readiness dimensions for Angular agents. Get the guide.
</p>
<div style={{ display: 'flex', gap: 10, alignItems: 'center' }}>
<a
href="/whitepaper.pdf"
download="angular-agent-readiness-guide.pdf"
onClick={dismiss}
style={{
display: 'inline-flex',
alignItems: 'center',
gap: 6,
background: tokens.colors.accent,
color: '#fff',
padding: '8px 18px',
borderRadius: 8,
fontFamily: 'var(--font-mono,"JetBrains Mono",monospace)',
fontSize: '0.7rem',
fontWeight: 700,
textTransform: 'uppercase',
letterSpacing: '0.06em',
textDecoration: 'none',
transition: 'box-shadow .2s',
}}
onMouseEnter={e => (e.currentTarget.style.boxShadow = '0 4px 16px rgba(0,64,144,.3)')}
onMouseLeave={e => (e.currentTarget.style.boxShadow = 'none')}
>
↓ Download
</a>
<button
onClick={dismiss}
style={{
background: 'none',
border: 'none',
cursor: 'pointer',
fontFamily: 'var(--font-mono,"JetBrains Mono",monospace)',
fontSize: '0.68rem',
color: tokens.colors.textMuted,
textDecoration: 'underline',
padding: '8px 4px',
}}
>
Not now
</button>
</div>

{step === 'cta' && (
<>
<p style={{
fontSize: '0.82rem',
color: tokens.colors.textSecondary,
lineHeight: 1.5,
marginBottom: 16,
}}>
Six production-readiness dimensions for Angular agents. Get the guide.
</p>
<div style={{ display: 'flex', gap: 10, alignItems: 'center' }}>
<button
onClick={() => setStep('form')}
style={{
display: 'inline-flex',
alignItems: 'center',
gap: 6,
background: tokens.colors.accent,
color: '#fff',
padding: '8px 18px',
borderRadius: 8,
fontFamily: 'var(--font-mono,"JetBrains Mono",monospace)',
fontSize: '0.7rem',
fontWeight: 700,
textTransform: 'uppercase',
letterSpacing: '0.06em',
border: 'none',
cursor: 'pointer',
transition: 'box-shadow .2s',
}}
onMouseEnter={e => (e.currentTarget.style.boxShadow = '0 4px 16px rgba(0,64,144,.3)')}
onMouseLeave={e => (e.currentTarget.style.boxShadow = 'none')}
>
↓ Get the Guide
</button>
<button
onClick={dismiss}
style={{
background: 'none',
border: 'none',
cursor: 'pointer',
fontFamily: 'var(--font-mono,"JetBrains Mono",monospace)',
fontSize: '0.68rem',
color: tokens.colors.textMuted,
textDecoration: 'underline',
padding: '8px 4px',
}}
>
Not now
</button>
</div>
</>
)}

{step === 'form' && (
<form onSubmit={handleSubmit} style={{ marginTop: 8 }}>
<label htmlFor="toast-email" className="sr-only">Email address</label>
<input
id="toast-email"
type="email"
placeholder="Email address"
value={email}
onChange={e => setEmail(e.target.value)}
required
disabled={submitting}
autoFocus
style={{ ...inputStyle, marginBottom: 10 }}
onFocus={e => (e.currentTarget.style.borderColor = tokens.colors.accent)}
onBlur={e => (e.currentTarget.style.borderColor = tokens.glass.border)}
/>
<div style={{ display: 'flex', gap: 10, alignItems: 'center' }}>
<button
type="submit"
disabled={submitting || !email}
style={{
display: 'inline-flex',
alignItems: 'center',
gap: 6,
background: email ? tokens.colors.accent : 'rgba(0,0,0,.08)',
color: email ? '#fff' : tokens.colors.textMuted,
padding: '8px 18px',
borderRadius: 8,
fontFamily: 'var(--font-mono,"JetBrains Mono",monospace)',
fontSize: '0.7rem',
fontWeight: 700,
textTransform: 'uppercase',
letterSpacing: '0.06em',
border: 'none',
cursor: email ? 'pointer' : 'not-allowed',
transition: 'box-shadow .2s, background .2s',
}}
>
{submitting ? 'Sending...' : '↓ Send me the guide'}
</button>
</div>
<a
href="/whitepaper.pdf"
download="angular-agent-readiness-guide.pdf"
onClick={dismiss}
style={{
display: 'inline-block',
marginTop: 10,
fontSize: '0.7rem',
color: tokens.colors.textMuted,
textDecoration: 'underline',
fontFamily: 'Inter, sans-serif',
}}
>
or download directly
</a>
</form>
)}

{step === 'sent' && (
<div style={{ marginTop: 8 }}>
<p style={{
fontSize: '0.85rem',
color: '#1a7a40',
lineHeight: 1.5,
}}>
✓ Check your inbox — the guide is on its way!
</p>
</div>
)}
</motion.div>
)}
</AnimatePresence>
Expand Down