Skip to content

Commit 2d1644b

Browse files
Landing hero polish: drop AI-tell pill, fix mobile, name 'Open source', point docs at developer.litprotocol.com (#29)
* style(landing): remove 'LIT PROTOCOL · TEE-secured compute' badge Drop the pill badge above the hero h1 — it reads as an AI tell. Also remove the unused HeroBadge component. * style(landing): fix hero mobile typography and pillar stacking - Add tight line-height (1.1) to mobile h1 so the smaller size doesn't inherit the browser default of ~1.55, which made the three lines feel loose and disjointed at 375px. - Add text-balance so wrapped headings break more evenly. - Hide the desktop <br /> tags below md: at 375px they orphaned 'API.' on its own line. The three-line Read / Compute / Write framing still enforces at md+ where it pairs with the pillars below. - Stack the READ / COMPUTE / WRITE pillars to one column on mobile. At 109px wide they were cramped and the center pillar's two-line copy broke the symmetry. * Hero subhead: name 'Open source' alongside 'no backend to trust' Lit is open source but nothing above the fold said so — the only GitHub reference lived in the footer. Folding it into the trust clause keeps the subhead a similar length and reads as one beat: the runtime is open, and there's no backend behind it to worry about. * Update DOCS_LINK to developer.litprotocol.com (drop naga subdomain) --------- Co-authored-by: Chris Cassano <chris@litprotocol.com>
1 parent db74c23 commit 2d1644b

2 files changed

Lines changed: 9 additions & 17 deletions

File tree

src/components/LandingHero/LandingHero.tsx

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,6 @@ import { Button } from '../ui/Button';
55
import { IconArrowNarrowRight } from '@tabler/icons-react';
66
import { CONTACT_FORM, DOCS_LINK } from '@/utils/constants';
77

8-
const HeroBadge = ({ children }: { children: React.ReactNode }) => (
9-
<span className="inline-flex items-center gap-2 font-mono text-[0.7rem] uppercase tracking-[0.18em] text-white/60 border border-white/15 rounded-full px-3 py-1">
10-
<span className="w-1.5 h-1.5 rounded-full bg-mint-500" />
11-
{children}
12-
</span>
13-
);
14-
158
const Pillar = ({ label, sub }: { label: string; sub: string }) => (
169
<div className="border border-white/10 rounded-xl p-5 bg-white/[0.02] text-left">
1710
<div className="font-mono text-xs uppercase tracking-[0.2em] text-white/40">
@@ -42,18 +35,17 @@ const LandingHero = () => {
4235
<img src="/textures/hero-right.png" alt="" className="w-full h-auto" />
4336
</div>
4437
<Container size="lg" className="relative z-10 !pt-28 !pb-32 text-center">
45-
<HeroBadge>Lit Protocol · TEE-secured compute</HeroBadge>
46-
<h1 className="mt-8 text-[2.5rem] md:text-[4.5rem]/[1.05] font-medium tracking-tight max-w-4xl mx-auto">
47-
Read anywhere.
48-
<br />
49-
<span className="text-mint-500">Compute</span> in a TEE.
50-
<br />
38+
<h1 className="text-[2.5rem]/[1.1] md:text-[4.5rem]/[1.05] font-medium tracking-tight max-w-4xl mx-auto text-balance">
39+
Read anywhere.{' '}
40+
<br className="hidden md:inline" />
41+
<span className="text-mint-500">Compute</span> in a TEE.{' '}
42+
<br className="hidden md:inline" />
5143
Write to any chain or API.
5244
</h1>
5345
<p className="mt-8 max-w-xl mx-auto text-white/70 text-lg leading-relaxed">
5446
One programmable runtime. Pulls data from any source, runs your logic
55-
inside a chain-secured TEE, signs on any chain or API — with no
56-
backend to trust.
47+
inside a chain-secured TEE, signs on any chain or API. Open source,
48+
no backend to trust.
5749
</p>
5850
<div className="mt-10 flex gap-3 justify-center flex-wrap">
5951
<Button
@@ -75,7 +67,7 @@ const LandingHero = () => {
7567
</div>
7668

7769
<div className="mt-20 max-w-4xl mx-auto">
78-
<div className="grid grid-cols-3 gap-2 md:gap-4">
70+
<div className="grid grid-cols-1 sm:grid-cols-3 gap-3 sm:gap-2 md:gap-4">
7971
<Pillar label="READ" sub="APIs · RPCs · feeds · prices" />
8072
<PillarCenter />
8173
<Pillar label="WRITE" sub="EVM · SVM · BTC · Cosmos · HTTPS" />

src/utils/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Resources
2-
export const DOCS_LINK = 'https://naga.developer.litprotocol.com';
2+
export const DOCS_LINK = 'https://developer.litprotocol.com';
33
export const BANNER_LINK = 'https://x.com/LitProtocol/status/1911850883845149065';
44
export const MANIFESTO_LINK =
55
'https://spark.litprotocol.com/mass-adoption-of-digital-ownership-and-progressive-self-custody/';

0 commit comments

Comments
 (0)