Skip to content

Commit 9bbf783

Browse files
chore: update designs
1 parent b14eccb commit 9bbf783

File tree

5 files changed

+26
-25
lines changed

5 files changed

+26
-25
lines changed

apps/sim/app/(landing)/blog/[slug]/article-sidebar.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@ export function ArticleSidebar({ headings }: ArticleSidebarProps) {
88
if (headings.length === 0) return null
99

1010
return (
11-
<aside className='mr-2 hidden w-full shrink-0 self-start xl:sticky xl:top-[76px] xl:block xl:w-72 xl:pt-16'>
12-
<TableOfContents headings={headings} />
11+
<aside className='hidden w-full shrink-0 self-start xl:sticky xl:top-[76px] xl:col-start-3 xl:block xl:w-72 xl:pt-16'>
12+
<div className='xl:max-h-[calc(100vh-140px)] xl:overflow-auto xl:pr-2'>
13+
<TableOfContents headings={headings} />
14+
</div>
1315
</aside>
1416
)
1517
}

apps/sim/app/(landing)/blog/[slug]/page.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,9 @@ export default async function Page({ params }: { params: Promise<{ slug: string
5454
dangerouslySetInnerHTML={{ __html: JSON.stringify(breadcrumbLd) }}
5555
/>
5656

57-
<div className='mx-auto flex w-full max-w-[1500px] flex-col items-start gap-8 px-4 pt-10 pb-24 sm:px-6 sm:pt-12 lg:px-8 lg:pt-16 xl:flex-row xl:gap-12'>
58-
<div data-blog-main-content className='w-full min-w-0 max-w-5xl flex-1 lg:px-4'>
57+
<div className='mx-auto flex w-full max-w-[1700px] xl:max-w-[1950px] flex-col items-start gap-8 px-4 pt-10 pb-24 sm:px-6 sm:pt-12 lg:px-16 lg:pt-16 xl:grid xl:grid-cols-[9rem_minmax(0,1fr)_14rem] xl:items-start xl:gap-8'>
58+
<div className='hidden xl:block' />
59+
<div data-blog-main-content className='w-full min-w-0 max-w-5xl xl:col-start-2 xl:mx-auto'>
5960
<Link
6061
href='/blog'
6162
className='group mb-8 inline-flex items-center gap-2 border border-[#2A2A2A] bg-[#232323] px-4 py-2 font-season text-[#999] text-[11px] uppercase tracking-widest transition-colors hover:text-[#ECECEC]'
@@ -131,7 +132,7 @@ export default async function Page({ params }: { params: Promise<{ slug: string
131132
<meta itemProp='dateModified' content={post.updated ?? post.date} />
132133
</header>
133134
<div itemProp='articleBody'>
134-
<div className='prose-studio prose prose-lg prose-invert max-w-none'>
135+
<div className='prose-studio prose prose-invert max-w-none'>
135136
<Article />
136137
{post.faq && post.faq.length > 0 ? <FAQ items={post.faq} /> : null}
137138
</div>

apps/sim/app/(landing)/blog/[slug]/prose-studio.css

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,29 @@
22
border-bottom: 1px solid #2a2a2a;
33
padding-bottom: 1.5rem;
44
font-weight: 500;
5-
font-size: 30px;
5+
font-size: 32px;
6+
line-height: 1.15;
67
color: #ececec;
78
margin-top: 1.5rem !important;
89
margin-bottom: 1.5rem;
9-
letter-spacing: -0.025em;
10+
letter-spacing: -0.02em;
1011
}
1112

1213
.prose-studio h3 {
1314
font-weight: 500;
14-
font-size: 24px;
15+
font-size: 22px;
16+
line-height: 1.2;
1517
color: #ececec;
1618
margin-top: 1.5rem;
1719
margin-bottom: 0.75rem;
18-
letter-spacing: -0.015em;
20+
letter-spacing: -0.01em;
1921
}
2022

2123
.prose-studio p {
2224
margin-bottom: 1.5rem;
23-
line-height: 1.8;
24-
font-size: 1.05rem;
25+
line-height: 1.7;
26+
font-size: 15px;
27+
letter-spacing: 0.02em;
2528
color: #cccccc;
2629
}
2730

@@ -96,6 +99,9 @@
9699
.prose-studio li {
97100
color: #cccccc;
98101
margin-bottom: 0.5rem;
102+
font-size: 15px;
103+
line-height: 1.7;
104+
letter-spacing: 0.02em;
99105
}
100106

101107
.prose-studio li::marker {

apps/sim/app/(landing)/blog/[slug]/table-of-contents.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ export function TableOfContents({ headings }: TableOfContentsProps) {
506506
<TocContext.Provider value={tocCtx}>
507507
<nav
508508
ref={navRef}
509-
className='flex w-[250px] flex-col'
509+
className='group/toc flex w-[250px] flex-col'
510510
aria-label='On this page'
511511
onPointerMove={onPointerMove}
512512
onPointerLeave={onPointerLeave}
@@ -548,7 +548,7 @@ function TocOverline() {
548548
className='h-px w-8 rounded-full bg-[#484848] transition-colors duration-150 ease-out group-hover:bg-[#5D5D5D]'
549549
/>
550550
</div>
551-
<span className='font-medium font-season text-[#FFFFFF] text-[10px] uppercase leading-none tracking-[0.28em] transition-colors duration-150 ease-out group-hover:text-[#A1A1A1]'>
551+
<span className='font-medium font-season text-[#FFFFFF] text-[10px] uppercase leading-none tracking-[0.28em] opacity-0 transition-[color,opacity] duration-150 ease-out group-hover:text-[#A1A1A1] group-hover/toc:opacity-100'>
552552
On this page
553553
</span>
554554
</button>
@@ -732,7 +732,7 @@ function NavLabel({
732732
return (
733733
<p
734734
className={clsx(
735-
'max-w-[184px] truncate font-medium font-season text-[13px] transition-[color,filter,opacity] duration-150 ease-out',
735+
'max-w-[184px] truncate font-medium font-season text-[13px] opacity-0 transition-[color,filter,opacity] duration-150 ease-out group-hover/toc:opacity-100',
736736
active ? 'text-[#ECECEC]' : 'text-[#777] group-hover/item:text-[#ECECEC]',
737737
!active && !hovered && 'nav-label-softenable'
738738
)}

apps/sim/app/(landing)/blog/studio-content.tsx

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import { useCallback, useEffect, useMemo, useState } from 'react'
44
import { StudioHero } from '@/app/(landing)/blog/hero'
55
import { FeaturedGrid, PostGrid } from '@/app/(landing)/blog/post-grid'
6-
import { BlogStudioSidebar } from '@/app/(landing)/blog/studio-sidebar-client'
76
import { CATEGORIES, getCategoryById, getPrimaryCategory } from '@/app/(landing)/blog/tag-colors'
87

98
interface SerializedPost {
@@ -129,23 +128,16 @@ export function StudioContent({ posts, initialTag, initialQuery }: StudioContent
129128
}, [syncUrl])
130129

131130
return (
132-
<div className='flex min-h-0 flex-1 flex-col overflow-x-clip px-4 sm:px-6 lg:flex-row lg:px-12'>
133-
<BlogStudioSidebar
134-
posts={posts}
135-
activeTag={activeTag}
136-
query={query}
137-
onChangeQuery={handleSearch}
138-
onSelectTag={handleCategorySelect}
139-
/>
131+
<div className='flex min-h-0 flex-1 flex-col overflow-x-clip px-4 sm:px-6 lg:px-12'>
140132

141133
<main className='relative min-w-0 flex-1'>
142134
<div className='flex flex-col'>
143135
{showHero && (
144-
<div className='-mr-4 sm:-mr-6 lg:-mr-12'>
136+
<div className='-mx-4 sm:-mx-6 lg:-mx-12'>
145137
<StudioHero />
146138
</div>
147139
)}
148-
<div className='mx-auto w-full max-w-5xl py-12 lg:mr-8'>
140+
<div className='mx-auto w-full max-w-5xl py-12'>
149141
{lowerQ && (
150142
<div className='mb-8 flex items-center gap-3'>
151143
<span className='font-season text-[#666] text-[10px] uppercase tracking-widest'>

0 commit comments

Comments
 (0)