Skip to content

Commit efb87af

Browse files
chore: fix imports and review changes
1 parent debbdff commit efb87af

File tree

14 files changed

+42
-38
lines changed

14 files changed

+42
-38
lines changed

apps/sim/app/(home)/components/collaboration/collaboration.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ export default function Collaboration() {
303303
</div>
304304

305305
<Link
306-
href='/studio/multiplayer'
306+
href='/blog/multiplayer'
307307
target='_blank'
308308
rel='noopener noreferrer'
309309
className='relative mx-4 mb-6 flex cursor-none items-center gap-[14px] rounded-[5px] border border-[#2A2A2A] bg-[#1C1C1C] px-[12px] py-[10px] transition-colors hover:border-[#3d3d3d] hover:bg-[#232323] sm:mx-8 md:absolute md:bottom-10 md:left-[80px] md:z-20 md:mx-0 md:mb-0'

apps/sim/app/(landing)/blog/[slug]/animated-blocks.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,10 @@ export function AnimatedColorBlocks() {
3232
useEffect(() => {
3333
mounted.current = true
3434
timers.current = []
35-
if (prefersReducedMotion) return
35+
if (prefersReducedMotion) {
36+
setBlocks(COLORS.map(() => ({ opacity: 1, transitioning: false })))
37+
return
38+
}
3639

3740
COLORS.forEach((_, i) => {
3841
schedule(() => {
@@ -119,7 +122,10 @@ export function AnimatedColorBlocksVertical() {
119122
useEffect(() => {
120123
mounted.current = true
121124
timers.current = []
122-
if (prefersReducedMotion) return
125+
if (prefersReducedMotion) {
126+
setBlocks(COLORS.slice(0, 3).map(() => ({ opacity: 1, transitioning: false })))
127+
return
128+
}
123129

124130
const baseDelay = COLORS.length * ENTER_STAGGER_MS + 100
125131

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import Image from 'next/image'
22
import Link from 'next/link'
33
import type { Author, BlogMeta } from '@/lib/blog/schema'
4-
import { TableOfContents } from '@/app/(landing)/studio/[slug]/table-of-contents'
5-
import { getTagColor } from '@/app/(landing)/studio/tag-colors'
4+
import { TableOfContents } from '@/app/(landing)/blog/[slug]/table-of-contents'
5+
import { getTagColor } from '@/app/(landing)/blog/tag-colors'
66

77
interface ArticleSidebarProps {
88
author: Author
@@ -81,7 +81,7 @@ export function ArticleSidebar({ author, authors, headings, related }: ArticleSi
8181
{related.map((p) => {
8282
const color = getTagColor(p.tags[0]) || '#999'
8383
return (
84-
<Link key={p.slug} href={`/studio/${p.slug}`} className='group block'>
84+
<Link key={p.slug} href={`/blog/${p.slug}`} className='group block'>
8585
<div
8686
className='mb-1 font-season text-[9px] uppercase tracking-widest'
8787
style={{ color }}

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

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,15 @@ import { ArrowLeft } from 'lucide-react'
22
import type { Metadata } from 'next'
33
import Link from 'next/link'
44
import { FAQ } from '@/lib/blog/faq'
5-
import '@/app/(landing)/studio/[slug]/prose-studio.css'
5+
import '@/app/(landing)/blog/[slug]/prose-studio.css'
66
import { getAllPostMeta, getPostBySlug, getRelatedPosts } from '@/lib/blog/registry'
77
import { buildArticleJsonLd, buildBreadcrumbJsonLd, buildPostMetadata } from '@/lib/blog/seo'
88
import { getBaseUrl } from '@/lib/core/utils/urls'
99
import {
1010
AnimatedColorBlocks,
1111
AnimatedColorBlocksVertical,
1212
} from '@/app/(landing)/blog/[slug]/animated-blocks'
13-
import {
14-
ArticleHeaderItem,
15-
ArticleHeaderMotion,
16-
} from '@/app/(landing)/blog/[slug]/article-header'
13+
import { ArticleHeaderItem, ArticleHeaderMotion } from '@/app/(landing)/blog/[slug]/article-header'
1714
import { ArticleSidebar } from '@/app/(landing)/blog/[slug]/article-sidebar'
1815
import { ShareButtons } from '@/app/(landing)/blog/[slug]/share-button'
1916
import { getPrimaryCategory, getTagCategory } from '@/app/(landing)/blog/tag-colors'
@@ -59,7 +56,7 @@ export default async function Page({ params }: { params: Promise<{ slug: string
5956
<div className='mx-auto flex w-full max-w-[1400px] flex-col items-start gap-8 px-6 pb-24 pt-16 xl:flex-row'>
6057
<div className='max-w-4xl flex-grow xl:mx-auto'>
6158
<Link
62-
href='/studio'
59+
href='/blog'
6360
className='group mb-8 inline-flex items-center gap-2 border border-[#2A2A2A] bg-[#232323] px-4 py-2 font-season text-[11px] uppercase tracking-widest text-[#999] transition-colors hover:text-[#ECECEC]'
6461
style={{ borderRadius: '5px' }}
6562
>
@@ -115,7 +112,7 @@ export default async function Page({ params }: { params: Promise<{ slug: string
115112
{post.tags.map((tag, i) => (
116113
<span key={tag}>
117114
<Link
118-
href={`/studio?tag=${encodeURIComponent(getTagCategory(tag))}`}
115+
href={`/blog?tag=${encodeURIComponent(getTagCategory(tag))}`}
119116
className='transition-colors hover:text-[#999]'
120117
>
121118
{tag}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export default async function AuthorPage({ params }: { params: Promise<{ id: str
3636
<div className='mx-auto max-w-5xl px-8 py-16 lg:px-12'>
3737
<h1 className='font-[500] text-[32px] text-[#ECECEC]'>Author not found</h1>
3838
<Link
39-
href='/studio'
39+
href='/blog'
4040
className='mt-4 inline-block font-season text-[12px] uppercase tracking-wider text-[#999] transition-colors hover:text-[#ECECEC]'
4141
>
4242
Back to all posts

apps/sim/app/(landing)/blog/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { martianMono } from '@/app/_styles/fonts/martian-mono/martian-mono'
33
import { season } from '@/app/_styles/fonts/season/season'
44
import Footer from '@/app/(home)/components/footer/footer'
55
import Navbar from '@/app/(home)/components/navbar/navbar'
6-
import '@/app/(landing)/studio/studio-scrollbar.css'
6+
import '@/app/(landing)/blog/studio-scrollbar.css'
77

88
export const metadata: Metadata = {
99
title: {

apps/sim/app/(landing)/blog/og/route.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import path from 'path'
33
import { ImageResponse } from 'next/og'
44
import type { NextRequest } from 'next/server'
55
import { getPostBySlug } from '@/lib/blog/registry'
6-
import { getPrimaryCategory } from '@/app/(landing)/studio/tag-colors'
6+
import { getPrimaryCategory } from '@/app/(landing)/blog/tag-colors'
77

88
function getTitleFontSize(title: string): number {
99
if (title.length > 80) return 36
@@ -220,7 +220,7 @@ export async function GET(request: NextRequest) {
220220
letterSpacing: '0.05em',
221221
}}
222222
>
223-
sim.ai/studio
223+
sim.ai/blog
224224
</span>
225225
</div>
226226
</div>,

apps/sim/app/(landing)/blog/post-grid.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ function PostCard({ post, priority = false }: { post: Post; priority?: boolean }
7272

7373
return (
7474
<motion.div variants={cardVariants} className='h-full'>
75-
<Link href={`/studio/${post.slug}`} className='group flex h-full flex-col'>
75+
<Link href={`/blog/${post.slug}`} className='group flex h-full flex-col'>
7676
<article className='flex h-full flex-col overflow-hidden border border-[#2A2A2A] bg-[#232323] transition-[border-color,background-color,transform] duration-200 ease-out active:scale-[0.99] [@media(hover:hover)]:group-hover:border-[#3d3d3d] [@media(hover:hover)]:group-hover:bg-[#282828] [@media(hover:hover)]:group-hover:-translate-y-0.5'>
7777
<div className='relative aspect-video w-full overflow-hidden bg-[#1C1C1C]'>
7878
<Image
@@ -143,7 +143,7 @@ function FeaturedLeadCard({ post }: { post: Post }) {
143143
return (
144144
<motion.div variants={leadVariants} className='col-span-full'>
145145
<Link
146-
href={`/studio/${post.slug}`}
146+
href={`/blog/${post.slug}`}
147147
className='group relative flex min-h-[400px] flex-col justify-end overflow-hidden border border-[#2A2A2A] bg-[#232323] transition-[border-color,transform] duration-200 ease-out [@media(hover:hover)]:hover:border-[#00F701] [@media(hover:hover)]:hover:-translate-y-0.5'
148148
>
149149
<div className='absolute inset-0'>

apps/sim/app/(landing)/blog/search-input.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ export function SearchInput() {
1515
e.preventDefault()
1616
const value = inputRef.current?.value.trim() ?? ''
1717
if (value) {
18-
router.push(`/studio?q=${encodeURIComponent(value)}`)
18+
router.push(`/blog?q=${encodeURIComponent(value)}`)
1919
} else {
20-
router.push('/studio')
20+
router.push('/blog')
2121
}
2222
},
2323
[router]

apps/sim/app/(landing)/blog/sidebar.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@ export async function StudioSidebar({ activeTag }: StudioSidebarProps) {
2727
id: null,
2828
label: 'All Posts',
2929
count: totalCount,
30-
href: '/studio',
30+
href: '/blog',
3131
color: '#00F701',
3232
},
3333
...CATEGORIES.map((cat) => ({
3434
id: cat.id,
3535
label: cat.label,
3636
count: categoryCounts[cat.id] ?? 0,
37-
href: `/studio?tag=${encodeURIComponent(cat.id)}`,
37+
href: `/blog?tag=${encodeURIComponent(cat.id)}`,
3838
color: cat.color,
3939
})),
4040
]

0 commit comments

Comments
 (0)