@@ -76,10 +76,12 @@ def link_item(name: str, url: str, active_str: str = ""):
7676
7777 elif active_str == "framework" :
7878 # Check if path contains "docs" but excludes ai-builder, cloud, and hosting
79+ # OR if path contains "open-source" (for the main open source landing page)
7980 is_docs = router_path .contains ("docs" )
81+ is_open_source_page = router_path .contains ("open-source" )
8082 not_cloud = ~ (router_path .contains ("cloud" ) | router_path .contains ("hosting" ))
8183 not_ai_builder = ~ router_path .contains ("ai-builder" )
82- active = is_docs & not_cloud & not_ai_builder
84+ active = ( is_docs & not_cloud & not_ai_builder ) | is_open_source_page
8385
8486 elif active_str == "docs" :
8587 active = rx .cond (
@@ -330,13 +332,6 @@ def _resource_section_column(
330332 _resource_section_column ("Company" , _company_items ),
331333 # Grid cards
332334 rx .box (
333- # grid_card(
334- # "Blog",
335- # "See what's new in the Reflex ecosystem.",
336- # f"/blog",
337- # "/blog/top_python_web_frameworks.png",
338- # "absolute bottom-0 rounded-tl-md",
339- # ),
340335 grid_card (
341336 "Customers" ,
342337 "Meet the teams who chose Reflex." ,
@@ -405,7 +400,7 @@ def doc_section():
405400 0 ,
406401 ),
407402 resource_item (
408- "Framework Docs" , getting_started .introduction .path , "frame" , 0
403+ "Open Source Docs" , getting_started .introduction .path , "frame" , 0
409404 ),
410405 resource_item (
411406 "Cloud Docs" , hosting_page .deploy_quick_start .path , "server" , 0
@@ -451,7 +446,7 @@ def new_component_section() -> rx.Component:
451446 ),
452447 nav_menu .item (
453448 link_item (
454- "Framework " , getting_started .introduction .path , "framework"
449+ "Open Source " , getting_started .introduction .path , "framework"
455450 ),
456451 ),
457452 nav_menu .item (
@@ -466,7 +461,7 @@ def new_component_section() -> rx.Component:
466461 # link_item("AI Builder", REFLEX_AI_BUILDER, "builder"),
467462 # ),
468463 nav_menu .item (
469- link_item ("Framework " , framework .path , "framework" ),
464+ link_item ("Open Source " , framework .path , "framework" ),
470465 ),
471466 nav_menu .item (
472467 link_item ("Cloud" , hosting_landing .path , "hosting" ),
0 commit comments