feat(home): add Explore tools CTA that scrolls to tools
This commit is contained in:
1 parent
20f8ccf5b9
commit
34af18c48d
2 files changed
+25
-5
No files matched your search
+6
-2
@@ -197,8 +197,12 @@
|
||||
<!-- Hero / Search Skeleton -->
|
||||
<div style="text-align: center; margin: 1.5rem 0 0.5rem; display: flex; flex-direction: column; align-items: center; gap: 12px;">
|
||||
<div class="sk-box sk-pulse" style="width: 240px; height: 24px; border-radius: 9999px;"></div>
|
||||
<div class="sk-box sk-pulse" style="width: min(540px, 90vw); height: 48px; border-radius: 16px;"></div>
|
||||
<div class="sk-box sk-pulse" style="width: min(420px, 80vw); height: 20px; border-radius: 8px;"></div>
|
||||
<h1 style="font-size: clamp(1.75rem, 5vw, 2.75rem); font-weight: 800; letter-spacing: -0.02em; margin: 0; line-height: 1.2;">
|
||||
Convert files and data privately in your browser
|
||||
</h1>
|
||||
<p style="font-size: 1rem; opacity: 0.8; max-width: 600px; margin: 0 auto;">
|
||||
Images, documents, text, and developer utilities — processed entirely on your device with zero server uploads.
|
||||
</p>
|
||||
</div>
|
||||
<!-- Dual Panel Converter Workspace Skeleton -->
|
||||
<div class="sk-box" style="padding: 24px; border-radius: 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px;">
|
||||
|
||||
@@ -284,9 +284,9 @@ export const HomePage: React.FC<HomePageProps> = ({
|
||||
|
||||
{/* Hero Title */}
|
||||
<h1 className="text-3xl sm:text-5xl lg:text-6xl font-extrabold tracking-tight text-neutral-950 dark:text-white max-w-4xl leading-[1.15]">
|
||||
Convert files and data in{' '}
|
||||
Convert files and data{' '}
|
||||
<span className="bg-gradient-to-r from-amber-600 via-amber-700 to-amber-800 dark:from-amber-400 dark:via-amber-500 dark:to-amber-600 bg-clip-text text-transparent">
|
||||
one simple place.
|
||||
privately in your browser.
|
||||
</span>
|
||||
</h1>
|
||||
|
||||
@@ -296,8 +296,24 @@ export const HomePage: React.FC<HomePageProps> = ({
|
||||
Processed entirely on your device with <strong>zero server uploads</strong>.
|
||||
</p>
|
||||
|
||||
{/* Prominent Call-to-Action Button */}
|
||||
<div className="mt-6 flex flex-col sm:flex-row items-center justify-center gap-3">
|
||||
<a
|
||||
href="#explore-tools"
|
||||
onClick={(e) => {
|
||||
e.preventDefault();
|
||||
document.getElementById('explore-tools')?.scrollIntoView({ behavior: 'smooth' });
|
||||
}}
|
||||
className="inline-flex items-center justify-center gap-2 px-8 py-3.5 rounded-xl text-sm sm:text-base font-bold bg-gradient-to-r from-amber-500 to-amber-600 hover:from-amber-400 hover:to-amber-500 text-neutral-950 shadow-md shadow-amber-500/25 hover:shadow-lg hover:shadow-amber-500/35 hover:-translate-y-0.5 active:translate-y-0 active:scale-98 transition-all cursor-pointer focus-visible:ring-2 focus-visible:ring-amber-500 focus-visible:outline-none"
|
||||
aria-label="Explore tools — View all conversion tools"
|
||||
>
|
||||
<span>Explore tools</span>
|
||||
<ArrowRight className="w-4 h-4" />
|
||||
</a>
|
||||
</div>
|
||||
|
||||
{/* Universal Tool Search Box */}
|
||||
<div className="mt-8 sm:mt-10 w-full max-w-2xl relative">
|
||||
<div className="mt-7 sm:mt-8 w-full max-w-2xl relative">
|
||||
<div className="relative group shadow-lg shadow-black/5 dark:shadow-black/20 rounded-2xl">
|
||||
<Search className="w-5 h-5 text-neutral-500 dark:text-neutral-400 group-focus-within:text-amber-600 dark:group-focus-within:text-amber-400 absolute left-4.5 top-1/2 -translate-y-1/2 pointer-events-none transition-colors" />
|
||||
<input
|
||||
|
||||
Reference in new issue
Block a user