Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
14 changes: 14 additions & 0 deletions web/src/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,8 @@ body {
-moz-osx-font-smoothing: grayscale;
transition: background-color var(--transition-base), color var(--transition-base);
position: relative;
overflow-x: hidden;
max-width: 100vw;
}

body::before {
Expand Down Expand Up @@ -181,6 +183,7 @@ code, pre {
max-width: var(--max-width);
margin: 0 auto;
padding: 0 24px;
box-sizing: border-box;
}

@media (max-width: 640px) {
Expand All @@ -189,6 +192,17 @@ code, pre {
}
}

/* Prevent horizontal overflow */
html, body {
overflow-x: hidden;
max-width: 100vw;
}

main {
overflow-x: hidden;
max-width: 100%;
}

/* ---- Typography Scale ---- */
h1, h2, h3, h4, h5, h6 {
line-height: 1.1;
Expand Down
12 changes: 12 additions & 0 deletions web/src/lib/components/Hero.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@
align-items: center;
gap: 40px;
padding: 0 24px;
width: 100%;
max-width: 100%;
box-sizing: border-box;
}

.badge {
Expand Down Expand Up @@ -257,6 +260,10 @@
padding-bottom: 56px;
}

.hero-inner {
padding: 0 16px;
}

.hero-br {
display: none;
}
Expand All @@ -274,5 +281,10 @@
.terminal-body {
padding: 12px;
}

.hero-terminal {
max-width: 100%;
margin: 0 8px;
}
}
</style>
42 changes: 40 additions & 2 deletions web/src/lib/components/HowItWorks.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@
max-width: 440px;
margin: 16px auto 0;
font-size: 1.05rem;
padding: 0 16px;
box-sizing: border-box;
}

.steps-grid {
Expand All @@ -80,6 +82,10 @@
border: 1px solid var(--border-secondary);
border-radius: var(--radius-md);
transition: border-color var(--transition-fast);
width: 100%;
max-width: 100%;
box-sizing: border-box;
overflow: hidden;
}

.step-card:hover {
Expand Down Expand Up @@ -111,18 +117,28 @@
border: 1px solid var(--code-border);
border-radius: var(--radius-sm);
overflow-x: auto;
overflow-y: hidden;
width: 100%;
max-width: 100%;
box-sizing: border-box;
-webkit-overflow-scrolling: touch;
}

.step-command code {
font-size: 0.78rem;
color: var(--code-text);
white-space: nowrap;
white-space: pre;
display: block;
word-break: break-word;
overflow-wrap: break-word;
}

.step-description {
font-size: 0.875rem;
line-height: 1.65;
color: var(--text-secondary);
word-wrap: break-word;
overflow-wrap: break-word;
}

@media (max-width: 1024px) {
Expand All @@ -131,20 +147,42 @@
gap: 16px;
max-width: 520px;
margin: 0 auto;
width: 100%;
}
}

@media (max-width: 640px) {
.how-it-works {
padding: 64px 0;
overflow-x: hidden;
}

.section-header {
margin-bottom: 40px;
padding: 0 16px;
}

.step-card {
padding: 22px;
padding: 20px 16px;
min-width: 0;
}

.step-command {
padding: 8px 10px;
}

.step-command code {
font-size: 0.7rem;
white-space: pre-wrap;
word-break: break-all;
}

.step-title {
font-size: 1.1rem;
}

.step-description {
font-size: 0.8rem;
}
}
</style>
2 changes: 2 additions & 0 deletions web/src/lib/components/Logo.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
align-items: center;
gap: 8px;
text-decoration: none;
flex-shrink: 0;
min-width: 0;
}

.logo-text {
Expand Down
103 changes: 77 additions & 26 deletions web/src/lib/components/Navbar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@

function closeMobile() {
mobileOpen = false;
document.body.style.overflow = '';
}

function toggleMobile() {
mobileOpen = !mobileOpen;
document.body.style.overflow = mobileOpen ? 'hidden' : '';
}
</script>

Expand All @@ -34,9 +40,10 @@

<button
class="mobile-toggle mobile-only"
onclick={() => mobileOpen = !mobileOpen}
onclick={toggleMobile}
aria-label="Toggle menu"
aria-expanded={mobileOpen}
type="button"
>
{#if mobileOpen}
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round">
Expand All @@ -50,21 +57,21 @@
</button>
</div>
</div>
</nav>

{#if mobileOpen}
<div class="mobile-menu mobile-only">
<div class="mobile-menu-inner">
{#each navLinks as link}
<a href={link.href} class="mobile-link" onclick={closeMobile}>{link.label}</a>
{/each}
<hr />
<a href="/docs#installation" class="btn btn-primary mobile-cta">
Get Started
</a>
</div>
{#if mobileOpen}
<div class="mobile-menu">
<div class="mobile-menu-inner">
{#each navLinks as link}
<a href={link.href} class="mobile-link" onclick={closeMobile}>{link.label}</a>
{/each}
<hr />
<a href="/docs#installation" class="btn btn-primary mobile-cta">
Get Started
</a>
</div>
{/if}
</nav>
</div>
{/if}

<style>
.navbar {
Expand All @@ -78,13 +85,19 @@
-webkit-backdrop-filter: blur(12px);
border-bottom: 1px solid var(--nav-border);
height: var(--nav-height);
width: 100%;
max-width: 100vw;
overflow: visible;
}

.navbar-inner {
display: flex;
align-items: center;
justify-content: space-between;
height: 100%;
width: 100%;
max-width: 100%;
overflow: hidden;
}

.nav-links {
Expand All @@ -111,6 +124,7 @@
display: flex;
align-items: center;
gap: 8px;
flex-shrink: 0;
}

.btn {
Expand Down Expand Up @@ -140,30 +154,53 @@
justify-content: center;
width: 36px;
height: 36px;
min-width: 36px;
color: var(--text-secondary);
border-radius: var(--radius-sm);
flex-shrink: 0;
cursor: pointer;
}

.mobile-toggle:hover {
background: var(--bg-tertiary);
}

.mobile-menu {
position: fixed;
top: var(--nav-height);
left: 0;
right: 0;
bottom: 0;
background: var(--bg-primary);
z-index: 99;
overflow-y: auto;
position: fixed !important;
top: var(--nav-height) !important;
left: 0 !important;
right: 0 !important;
bottom: 0 !important;
background: var(--bg-primary) !important;
z-index: 999 !important;
overflow-y: auto !important;
overflow-x: hidden !important;
width: 100vw !important;
max-width: 100vw !important;
-webkit-overflow-scrolling: touch;
display: block !important;
visibility: visible !important;
opacity: 1 !important;
margin: 0 !important;
padding: 0 !important;
}

/* Hide on desktop */
@media (min-width: 769px) {
.mobile-menu {
display: none !important;
}
}

.mobile-menu-inner {
display: flex;
flex-direction: column;
padding: 16px;
gap: 4px;
display: flex !important;
flex-direction: column !important;
padding: 16px !important;
gap: 4px !important;
width: 100% !important;
max-width: 100% !important;
box-sizing: border-box !important;
min-height: 200px !important;
}

.mobile-link {
Expand All @@ -173,6 +210,8 @@
color: var(--text-secondary);
border-radius: var(--radius-sm);
transition: background var(--transition-fast);
display: block;
text-decoration: none;
}

.mobile-link:hover {
Expand Down Expand Up @@ -201,12 +240,24 @@
}

@media (max-width: 768px) {
.navbar-inner {
padding: 0 12px;
}

.desktop-only {
display: none !important;
}

.mobile-only {
display: flex;
}

.mobile-menu {
display: block !important;
}

.nav-actions {
gap: 4px;
}
}
</style>
Loading