refactor: remove IntegrationSection from homepage to streamline layout and improve code maintainability

This commit is contained in:
Usman Baig
2026-01-30 16:20:04 +01:00
parent 9eeb1b249c
commit 4e0a7a0142
3 changed files with 66 additions and 35 deletions

63
app/installation/page.tsx Normal file
View File

@@ -0,0 +1,63 @@
'use client'
import React from 'react'
export default function InstallationPage() {
return (
<div className="relative min-h-screen flex flex-col overflow-hidden selection:bg-brand-orange/20">
{/* * --- 1. ATMOSPHERE (Background) --- */}
<div className="absolute inset-0 -z-10 pointer-events-none">
{/* * Top-left Orange Glow */}
<div className="absolute top-0 left-1/4 w-[500px] h-[500px] bg-brand-orange/10 rounded-full blur-[128px] opacity-60" />
{/* * Bottom-right Neutral Glow */}
<div className="absolute bottom-0 right-1/4 w-[500px] h-[500px] bg-neutral-500/10 dark:bg-neutral-400/10 rounded-full blur-[128px] opacity-40" />
{/* * Grid Pattern with Radial Mask */}
<div
className="absolute inset-0 bg-grid-pattern opacity-[0.02] dark:opacity-[0.05]"
style={{ maskImage: 'radial-gradient(ellipse at center, black 0%, transparent 70%)' }}
/>
</div>
<div className="flex-grow w-full max-w-4xl mx-auto px-4 pt-20 pb-10 z-10">
<div className="text-center mb-12">
<h1 className="text-4xl md:text-5xl font-bold tracking-tight text-neutral-900 dark:text-white mb-6">
Installation
</h1>
<p className="text-xl text-neutral-600 dark:text-neutral-400 max-w-2xl mx-auto leading-relaxed">
Get up and running with Pulse in seconds.
</p>
</div>
<div className="w-full text-center">
<h2 className="text-2xl font-bold mb-8 text-neutral-900 dark:text-white">Add the snippet</h2>
<p className="text-neutral-500 mb-8">Just add this snippet to your &lt;head&gt; tag in your layout or index file.</p>
<div className="max-w-2xl mx-auto bg-[#1e1e1e] rounded-xl overflow-hidden shadow-2xl text-left border border-neutral-800">
<div className="flex items-center px-4 py-3 bg-[#252526] border-b border-neutral-800">
<div className="flex gap-2">
<div className="w-3 h-3 rounded-full bg-red-500/20" />
<div className="w-3 h-3 rounded-full bg-yellow-500/20" />
<div className="w-3 h-3 rounded-full bg-green-500/20" />
</div>
<span className="ml-4 text-xs text-neutral-500 font-mono">layout.tsx / index.html</span>
</div>
<div className="p-6 overflow-x-auto">
<code className="font-mono text-sm text-neutral-300">
<span className="text-blue-400">&lt;script</span>{' '}
<span className="text-sky-300">defer</span>{' '}
<span className="text-sky-300">data-domain</span>
<span className="text-white">=</span>
<span className="text-orange-300">"your-site.com"</span>{' '}
<span className="text-sky-300">src</span>
<span className="text-white">=</span>
<span className="text-orange-300">"https://pulse.ciphera.net/script.js"</span>
<span className="text-blue-400">&gt;&lt;/script&gt;</span>
</code>
</div>
</div>
</div>
</div>
</div>
)
}

View File

@@ -91,38 +91,6 @@ function ComparisonSection() {
)
}
function IntegrationSection() {
return (
<div className="w-full max-w-4xl mx-auto mb-32 text-center">
<h2 className="text-3xl font-bold mb-8 text-neutral-900 dark:text-white">Install in seconds</h2>
<p className="text-neutral-500 mb-8">Just add this snippet to your &lt;head&gt; tag.</p>
<div className="max-w-2xl mx-auto bg-[#1e1e1e] rounded-xl overflow-hidden shadow-2xl text-left border border-neutral-800">
<div className="flex items-center px-4 py-3 bg-[#252526] border-b border-neutral-800">
<div className="flex gap-2">
<div className="w-3 h-3 rounded-full bg-red-500/20" />
<div className="w-3 h-3 rounded-full bg-yellow-500/20" />
<div className="w-3 h-3 rounded-full bg-green-500/20" />
</div>
<span className="ml-4 text-xs text-neutral-500 font-mono">layout.tsx / index.html</span>
</div>
<div className="p-6 overflow-x-auto">
<code className="font-mono text-sm text-neutral-300">
<span className="text-blue-400">&lt;script</span>{' '}
<span className="text-sky-300">defer</span>{' '}
<span className="text-sky-300">data-domain</span>
<span className="text-white">=</span>
<span className="text-orange-300">"your-site.com"</span>{' '}
<span className="text-sky-300">src</span>
<span className="text-white">=</span>
<span className="text-orange-300">"https://pulse.ciphera.net/script.js"</span>
<span className="text-blue-400">&gt;&lt;/script&gt;</span>
</code>
</div>
</div>
</div>
)
}
export default function HomePage() {
const { user, loading: authLoading } = useAuth()
@@ -248,9 +216,6 @@ export default function HomePage() {
{/* * NEW: COMPARISON SECTION */}
<ComparisonSection />
{/* * NEW: INTEGRATION SECTION */}
<IntegrationSection />
{/* * NEW: CTA BOTTOM */}
<div className="text-center mb-20">
<h2 className="text-3xl font-bold text-neutral-900 dark:text-white mb-6">Ready to switch?</h2>

View File

@@ -26,6 +26,9 @@ export function Footer({ LinkComponent = Link, appName = 'Pulse' }: FooterProps)
<Component href="/faq" className="hover:text-brand-orange transition-colors">
FAQ
</Component>
<Component href="/installation" className="hover:text-brand-orange transition-colors">
Installation
</Component>
</div>
</div>
</div>