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
60 changes: 54 additions & 6 deletions public/assets/css/components.css
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,10 @@
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 1.5rem;
transition: border-color 0.2s, background 0.2s;
transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}
.card:hover { border-color: var(--border-hover); }
.card:hover { border-color: var(--border-hover); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24); }
.card-accent-hover:hover {
border-color: rgba(232,81,10,0.25);
background: rgba(232,81,10,0.03);
Expand Down Expand Up @@ -633,11 +634,12 @@
.use-case-card {
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: 10px;
border-radius: var(--radius);
padding: 1.5rem;
transition: border-color 0.2s;
transition: border-color 0.2s, box-shadow 0.2s;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}
.use-case-card:hover { border-color: var(--accent); }
.use-case-card:hover { border-color: var(--accent); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24); }
.use-case-num {
font-family: var(--font-mono);
font-size: 0.7rem;
Expand Down Expand Up @@ -669,9 +671,10 @@
.stat-card {
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: 10px;
border-radius: var(--radius);
padding: 1.5rem;
text-align: center;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}
.stat-value {
font-family: var(--font-display);
Expand All @@ -686,3 +689,48 @@
color: var(--fg-muted);
line-height: 1.4;
}

/* ─── Use-case link card (homepage + section landing pages) ─────────────── */
.usecase-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: var(--gap-md);
}
@media (max-width: 700px) {
.usecase-grid { grid-template-columns: 1fr; }
}
.usecase-card {
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
padding: 2rem;
transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}
.usecase-card:hover {
border-color: var(--border-hover);
transform: translateY(-2px);
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}
.usecase-card h3 {
font-family: var(--font-display);
font-size: 1rem;
font-weight: 600;
color: var(--fg);
margin-bottom: 0.5rem;
letter-spacing: -0.015em;
}
.usecase-card p {
font-size: 0.85rem;
color: var(--fg-muted);
line-height: 1.65;
margin-bottom: 1.25rem;
}
.usecase-card a {
font-size: 0.82rem;
color: var(--accent);
display: inline-flex;
align-items: center;
gap: 0.25rem;
}
.usecase-card a:hover { text-decoration: underline; }
39 changes: 0 additions & 39 deletions public/assets/css/home.css
Original file line number Diff line number Diff line change
Expand Up @@ -284,45 +284,6 @@ body { padding-top: 0; }
margin-top: 1rem;
}

/* ── Use cases ── */
.usecase-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: var(--gap-md);
}
@media (max-width: 700px) {
.usecase-grid { grid-template-columns: 1fr; }
}
.usecase-card {
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
padding: 2rem;
transition: border-color 0.2s;
}
.usecase-card:hover { border-color: var(--border-hover); }
.usecase-card h3 {
font-family: var(--font-display);
font-size: 1rem;
font-weight: 600;
color: var(--fg);
margin-bottom: 0.5rem;
letter-spacing: -0.015em;
}
.usecase-card p {
font-size: 0.85rem;
color: var(--fg-muted);
line-height: 1.65;
margin-bottom: 1.25rem;
}
.usecase-card a {
font-size: 0.82rem;
color: var(--accent);
display: inline-flex;
align-items: center;
gap: 0.25rem;
}
.usecase-card a:hover { text-decoration: underline; }

/* ── CTA gradient section ── */
.cta-gradient {
Expand Down
1 change: 1 addition & 0 deletions src/components/Footer.astro
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
<ul class="footer-links">
<li><a href="/use-cases.html">Use Cases</a></li>
<li><a href="/solutions.html">Solutions</a></li>
<li><a href="/compare.html">Compare</a></li>
<li><a href="/changelog.html">Changelog</a></li>
<li><a href="/roadmap.html">Roadmap</a></li>
</ul>
Expand Down
12 changes: 12 additions & 0 deletions src/components/Nav.astro
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,13 @@ const { currentPath = '' } = Astro.props;
<span class="dropdown-item-desc">Real-world patterns</span>
</span>
</a>
<a href="/compare.html" class="dropdown-item" role="menuitem">
<span class="dropdown-icon">⬡</span>
<span>
<span class="dropdown-item-title">Compare</span>
<span class="dropdown-item-desc">vs function calling, microservices, serverless</span>
</span>
</a>
</div>
</div>
</li>
Expand Down Expand Up @@ -185,8 +192,13 @@ const { currentPath = '' } = Astro.props;
<div class="nav-mobile-menu" id="nav-mobile-menu">
<a href="/questions/what-is-traverse.html">What is Traverse</a>
<a href="/solutions.html">Solutions</a>
<a href="/docs/quickstart.html">Quickstart</a>
<a href="/docs.html">Docs</a>
<a href="/questions.html">All Questions</a>
<a href="/examples.html">Examples</a>
<a href="/compare.html">Compare</a>
<a href="/blog.html">Blog</a>
<a href="/roadmap.html">Roadmap</a>
<a href="/changelog.html">Changelog</a>
<a href="https://github.com/traverse-framework/traverse" target="_blank" rel="noopener">GitHub →</a>
<a href="/docs/quickstart.html" class="btn btn-primary btn-sm" style="margin-top:0.5rem">Get started</a>
Expand Down
Loading