Skip to content

Soul-driven AI agent with permission-hardened tools, token budgets, and multi-channel access. Runs 24/7 from CLI, Telegram or More.

feat: add responsive navigation bar to landing page and exclude website directory from npm package

Salman Qureshic86a4567813e
diff --git a/.npmignore b/.npmignore
index 9c14264c..c5561b41 100644
--- a/.npmignore
+++ b/.npmignore
@@ -1,5 +1,6 @@
src/
docs/
+website/
scripts/
*.ts
!dist/*.ts
diff --git a/website/src/css/landing.css b/website/src/css/landing.css
index 918ec2d4..2032e7e5 100644
--- a/website/src/css/landing.css
+++ b/website/src/css/landing.css
@@ -26,15 +26,54 @@
.lp-page .navbar,
.lp-page .footer { display: none !important; }
.lp-page .main-wrapper { padding: 0; margin: 0; }
+
+.lp-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(10, 10, 10, 0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
+.lp-nav-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; height: 56px; }
+.lp-nav-logo { font-family: var(--font); font-weight: 700; color: var(--cyan); font-size: 1.1em; text-decoration: none; }
+.lp-nav-logo:hover { text-decoration: none; }
+.lp-nav-links { display: flex; gap: 24px; align-items: center; }
+.lp-nav-links a { color: var(--gray); font-size: 0.9em; transition: color 0.2s; text-decoration: none; }
+.lp-nav-links a:hover { color: var(--white); text-decoration: none; }
+.lp-nav-right { display: flex; gap: 24px; align-items: center; }
+.lp-nav-toggle { display: none; background: none; border: none; color: var(--white); font-size: 1.5em; cursor: pointer; padding: 0; line-height: 1; }
+.lp-github-btn { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,0.06); border: 1px solid var(--border); color: var(--gray) !important; padding: 4px 12px 4px 10px; border-radius: 6px; font-size: 0.85em; font-weight: 500; text-decoration: none !important; transition: all 0.2s; }
+.lp-github-btn:hover { border-color: #444; color: var(--white) !important; background: rgba(255,255,255,0.1); text-decoration: none !important; }
+.lp-github-btn svg { flex-shrink: 0; }
+.lp-github-btn-text { font-size: 0.95em; font-weight: 600; }
+.lp-github-btn-count { display: inline-flex; align-items: center; background: rgba(255,255,255,0.06); border-left: 1px solid var(--border); margin-left: 2px; margin-right: -6px; padding: 3px 8px; border-radius: 0 5px 5px 0; font-weight: 600; min-width: 20px; text-align: center; }
+
+@media (max-width: 768px) {
+ .lp-nav-links {
+ display: none;
+ position: absolute;
+ top: 56px;
+ left: 0;
+ right: 0;
+ background: var(--bg);
+ flex-direction: column;
+ padding: 16px 24px;
+ gap: 16px;
+ border-bottom: 1px solid var(--border);
+ z-index: 99;
+ }
+ .lp-nav-links.lp-nav-links-open { display: flex; }
+ .lp-nav-toggle { display: block; }
+ .lp-hero-ascii { font-size: 0.45rem; }
+ .lp-hero-terminal, .lp-terminal-window { margin-left: -12px; margin-right: -12px; border-radius: 0; }
+ .lp-terminal-body { padding: 16px; font-size: 0.75em; }
+ .lp-steps { flex-direction: column; align-items: center; }
+ .lp-compare-table { font-size: 0.8em; }
+ .lp-footer-inner { flex-direction: column; text-align: center; }
+}
.lp-page a { color: var(--cyan); text-decoration: none; }
.lp-page a:hover { text-decoration: underline; }
.lp-page code { font-family: var(--font); background: rgba(0, 212, 255, 0.08); color: var(--cyan); padding: 2px 8px; border-radius: 4px; font-size: 0.9em; }
.lp-container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
-.lp-hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 120px 0 80px; overflow: hidden; }
+.lp-hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 120px 0 80px; overflow: hidden; margin-top: -56px; }
.lp-hero-bg { position: absolute; inset: 0; background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0,212,255,0.08) 0%, transparent 60%), radial-gradient(ellipse 60% 40% at 80% 80%, rgba(0,212,255,0.04) 0%, transparent 50%); }
.lp-hero-content { position: relative; text-align: center; }
-.lp-hero-ascii { font-family: var(--font); font-size: clamp(0.55rem, 2vw, 1.1rem); color: var(--cyan); line-height: 1.3; margin-bottom: 24px; text-shadow: 0 0 30px rgba(0,212,255,0.3); }
+.lp-hero-ascii { font-family: var(--font); font-size: clamp(0.55rem, 2vw, 1.1rem); color: var(--cyan); line-height: 1.3; margin-bottom: 24px; text-shadow: 0 0 30px rgba(0,212,255,0.3); background: none !important; background-color: transparent !important; border: none !important; padding: 0 !important; margin-left: 0 !important; margin-right: 0 !important; border-radius: 0 !important; white-space: pre; overflow-x: auto; }
.lp-hero-tagline { font-size: clamp(1.3em, 3vw, 1.8em); font-weight: 300; color: var(--white); margin-bottom: 16px; letter-spacing: 0.02em; }
.lp-hero-sub { color: var(--gray); max-width: 600px; margin: 0 auto 32px; font-size: 1.05em; }
.lp-hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 24px; }
@@ -43,7 +82,7 @@
.lp-btn { font-family: var(--font-body); font-size: 1em; padding: 12px 28px; border-radius: 8px; border: none; cursor: pointer; text-decoration: none; transition: all 0.2s; display: inline-block; }
.lp-btn-primary { background: var(--cyan); color: var(--bg); font-weight: 600; }
-.lp-btn-primary:hover { background: #33ddff; text-decoration: none; }
+.lp-btn-primary:hover { background: #33ddff; text-decoration: none; color: var(--bg); }
.lp-btn-secondary { background: transparent; color: var(--cyan); border: 1px solid var(--cyan-dim); }
.lp-btn-secondary:hover { background: var(--cyan-glow); text-decoration: none; }
diff --git a/website/src/pages/index.tsx b/website/src/pages/index.tsx
index 650bca22..d2fd49e2 100644
--- a/website/src/pages/index.tsx
+++ b/website/src/pages/index.tsx
@@ -146,6 +146,7 @@ export default function LandingPage(): React.ReactElement {
const heroTermRef = useRef<HTMLDivElement>(null);
const demoTermRef = useRef<HTMLDivElement>(null);
const [ghStars, setGhStars] = React.useState('');
+ const [mobileMenuOpen, setMobileMenuOpen] = React.useState(false);
useEffect(() => {
fetch('https://api.github.com/repos/cosmicstack-labs/mercury-agent')
@@ -156,7 +157,7 @@ export default function LandingPage(): React.ReactElement {
setGhStars(n >= 1000 ? `${(n / 1000).toFixed(1).replace(/\.0$/, '')}k` : String(n));
}
})
- .catch(() => {});
+ .catch(() => { });
}, []);
useEffect(() => {
@@ -165,30 +166,30 @@ export default function LandingPage(): React.ReactElement {
const heroObs = heroEl
? new IntersectionObserver(
- entries => {
- entries.forEach(entry => {
- if (entry.isIntersecting) {
- heroObs.unobserve(entry.target);
- typeTerminal(heroEl, heroLines, 25);
- }
- });
- },
- { threshold: 0.3 }
- )
+ entries => {
+ entries.forEach(entry => {
+ if (entry.isIntersecting) {
+ heroObs.unobserve(entry.target);
+ typeTerminal(heroEl, heroLines, 25);
+ }
+ });
+ },
+ { threshold: 0.3 }
+ )
: null;
const demoObs = demoEl
? new IntersectionObserver(
- entries => {
- entries.forEach(entry => {
- if (entry.isIntersecting) {
- demoObs.unobserve(entry.target);
- typeTerminal(demoEl, demoLines, 18);
- }
- });
- },
- { threshold: 0.3 }
- )
+ entries => {
+ entries.forEach(entry => {
+ if (entry.isIntersecting) {
+ demoObs.unobserve(entry.target);
+ typeTerminal(demoEl, demoLines, 18);
+ }
+ });
+ },
+ { threshold: 0.3 }
+ )
: null;
if (heroEl && heroObs) heroObs.observe(heroEl);
@@ -233,6 +234,28 @@ export default function LandingPage(): React.ReactElement {
</Head>
<div className="lp-page">
+ <nav className="lp-nav">
+ <div className="lp-nav-inner">
+ <Link to="/" className="lp-nav-logo">☿ Mercury</Link>
+ <div className={`lp-nav-links ${mobileMenuOpen ? 'lp-nav-links-open' : ''}`}>
+ <Link to="/#features" onClick={() => setMobileMenuOpen(false)}>Features</Link>
+ <Link to="/#how-it-works" onClick={() => setMobileMenuOpen(false)}>Install</Link>
+ <Link to="/#demo" onClick={() => setMobileMenuOpen(false)}>Demo</Link>
+ <Link to="/#capabilities" onClick={() => setMobileMenuOpen(false)}>Capabilities</Link>
+ <Link to="/#github" onClick={() => setMobileMenuOpen(false)}>GitHub</Link>
+ <Link to="/#compare" onClick={() => setMobileMenuOpen(false)}>Compare</Link>
+ <Link to="/docs" onClick={() => setMobileMenuOpen(false)}>Docs</Link>
+ </div>
+ <div className="lp-nav-right">
+ <a href="https://github.com/cosmicstack-labs/mercury-agent" className="lp-github-btn" target="_blank" rel="noopener">
+ <svg viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style={{ verticalAlign: '-2px' }}><path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z" /></svg>
+ <span className="lp-github-btn-count">{ghStars} ⭐</span>
+ </a>
+ <button className="lp-nav-toggle" onClick={() => setMobileMenuOpen(!mobileMenuOpen)} aria-label="Menu">☰</button>
+ </div>
+ </div>
+ </nav>
+
<section className="lp-hero">
<div className="lp-hero-bg" />
<div className="lp-container lp-hero-content">