Skip to content

Commit 3adb03b

Browse files
committed
improvement(landing): blog dropdown and content updates
1 parent 2005e03 commit 3adb03b

File tree

13 files changed

+10
-19
lines changed

13 files changed

+10
-19
lines changed

apps/sim/app/(landing)/components/navbar/components/blog-dropdown.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ function BlogCard({
4646
</div>
4747
<div className='flex-shrink-0 px-2.5 py-1.5'>
4848
<span
49-
className='font-[430] font-season text-[var(--landing-text-body)] leading-[140%]'
49+
className='block truncate font-[430] font-season text-[var(--landing-text-body)] leading-[140%]'
5050
style={{ fontSize: titleSize }}
5151
>
5252
{title}

apps/sim/app/(landing)/components/navbar/navbar.tsx

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -169,21 +169,12 @@ export default function Navbar({ logoOnly = false, blogPosts = [] }: NavbarProps
169169
</Link>
170170
)}
171171

172-
<div
173-
className={cn(
174-
'-mt-0.5 absolute top-full left-0 z-50',
175-
isActive
176-
? 'pointer-events-auto opacity-100'
177-
: 'pointer-events-none opacity-0'
178-
)}
179-
style={{
180-
transform: isActive ? 'translateY(0)' : 'translateY(-6px)',
181-
transition: 'opacity 200ms ease, transform 200ms ease',
182-
}}
183-
>
184-
{dropdown === 'docs' && <DocsDropdown />}
185-
{dropdown === 'blog' && <BlogDropdown posts={blogPosts} />}
186-
</div>
172+
{isActive && (
173+
<div className='-mt-0.5 pointer-events-auto absolute top-full left-0 z-50'>
174+
{dropdown === 'docs' && <DocsDropdown />}
175+
{dropdown === 'blog' && <BlogDropdown posts={blogPosts} />}
176+
</div>
177+
)}
187178
</li>
188179
)
189180
}

apps/sim/content/blog/enterprise/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
slug: enterprise
3-
title: 'Build with Sim for Enterprise'
3+
title: 'Sim for Enterprise'
44
description: 'Access control, BYOK, self-hosted deployments, on-prem Copilot, SSO & SAML, whitelabeling, Admin API, and flexible data retention—enterprise features for teams with strict security and compliance requirements.'
55
date: 2026-02-11
66
updated: 2026-02-11

apps/sim/content/blog/multiplayer/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
slug: multiplayer
3-
title: 'Realtime Collaboration on Sim'
3+
title: 'Realtime Collaboration'
44
description: A high-level explanation into Sim realtime collaborative workflow builder - from operation queues to conflict resolution.
55
date: 2025-11-11
66
updated: 2025-11-11

apps/sim/lib/blog/registry.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ export const getNavBlogPosts = cache(
9696
const allPosts = await getAllPostMeta()
9797
const featuredPost = allPosts.find((p) => p.featured) ?? allPosts[0]
9898
if (!featuredPost) return []
99-
const recentPosts = allPosts.filter((p) => p.slug !== featuredPost.slug).slice(0, 4)
99+
const recentPosts = allPosts.filter((p) => p.slug !== featuredPost.slug).slice(0, 5)
100100
return [featuredPost, ...recentPosts].map((p) => ({
101101
slug: p.slug,
102102
title: p.title,
149 KB
Loading
49.7 KB
Loading
-67.9 KB
Loading
-2.65 MB
Loading
-737 KB
Loading

0 commit comments

Comments
 (0)