Skip to content

Commit 82e58a5

Browse files
waleedlatif1claude
andauthored
fix(academy): hide academy pages until content is ready (#3839)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 336c065 commit 82e58a5

File tree

3 files changed

+15
-5
lines changed

3 files changed

+15
-5
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const RESOURCES_LINKS: FooterItem[] = [
2626
{ label: 'Blog', href: '/blog' },
2727
// { label: 'Templates', href: '/templates' },
2828
{ label: 'Docs', href: 'https://docs.sim.ai', external: true },
29-
{ label: 'Academy', href: '/academy' },
29+
// { label: 'Academy', href: '/academy' },
3030
{ label: 'Partners', href: '/partners' },
3131
{ label: 'Careers', href: 'https://jobs.ashbyhq.com/sim', external: true },
3232
{ label: 'Changelog', href: '/changelog' },

apps/sim/app/(landing)/partners/page.tsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,12 +152,13 @@ export default async function PartnersPage() {
152152
recognition in the growing ecosystem of AI workflow builders.
153153
</p>
154154
<div className='flex items-center gap-4'>
155-
<Link
155+
{/* TODO: Uncomment when academy is public */}
156+
{/* <Link
156157
href='/academy'
157158
className='inline-flex h-[44px] items-center rounded-[5px] bg-white px-6 text-[#1C1C1C] text-[15px] transition-colors hover:bg-[#E8E8E8]'
158159
>
159160
Start Sim Academy →
160-
</Link>
161+
</Link> */}
161162
<a
162163
href='#how-it-works'
163164
className='inline-flex h-[44px] items-center rounded-[5px] border border-[#3A3A3A] px-6 text-[#ECECEC] text-[15px] transition-colors hover:border-[#4A4A4A]'
@@ -275,12 +276,13 @@ export default async function PartnersPage() {
275276
Complete Sim Academy to earn your first certification and unlock partner benefits.
276277
It's free to start — no credit card required.
277278
</p>
278-
<Link
279+
{/* TODO: Uncomment when academy is public */}
280+
{/* <Link
279281
href='/academy'
280282
className='inline-flex h-[48px] items-center rounded-[5px] bg-white px-8 font-[430] text-[#1C1C1C] text-[15px] transition-colors hover:bg-[#E8E8E8]'
281283
>
282284
Start Sim Academy →
283-
</Link>
285+
</Link> */}
284286
</div>
285287
</section>
286288
</main>

apps/sim/app/academy/layout.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
import type React from 'react'
22
import type { Metadata } from 'next'
3+
import { notFound } from 'next/navigation'
4+
5+
// TODO: Remove notFound() call to make academy pages public once content is ready
6+
const ACADEMY_ENABLED = false
37

48
export const metadata: Metadata = {
59
title: {
@@ -17,6 +21,10 @@ export const metadata: Metadata = {
1721
}
1822

1923
export default function AcademyLayout({ children }: { children: React.ReactNode }) {
24+
if (!ACADEMY_ENABLED) {
25+
notFound()
26+
}
27+
2028
return (
2129
<div className='min-h-screen bg-[#1C1C1C] font-[430] font-season text-[#ECECEC]'>
2230
{children}

0 commit comments

Comments
 (0)