Skip to content

Commit 0b7a010

Browse files
committed
Add demo card to Solutions dropdown menu with improved formatting and navigation to pricing page
1 parent 6f74a8d commit 0b7a010

File tree

1 file changed

+30
-5
lines changed

1 file changed

+30
-5
lines changed

pcweb/components/docpage/navbar/navbar.py

Lines changed: 30 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -362,12 +362,13 @@ def solutions_section():
362362
"icon": "Settings01Icon",
363363
},
364364
{
365-
"label": "Data & AI Apps",
365+
"label": "Data & AI",
366366
"url": use_cases_page.path,
367367
"icon": "Database02Icon",
368368
},
369+
369370
{
370-
"label": "Customer Facing Apps",
371+
"label": "External Apps",
371372
"url": use_cases_page.path,
372373
"icon": "UserGroupIcon",
373374
},
@@ -384,8 +385,9 @@ def solutions_section():
384385
"url": use_cases_page.path,
385386
"icon": "HealthIcon",
386387
},
388+
387389
{
388-
"label": "Energy",
390+
"label": "Consulting",
389391
"url": use_cases_page.path,
390392
"icon": "ZapIcon",
391393
},
@@ -424,16 +426,39 @@ def _solutions_section_column(
424426
],
425427
class_name="flex flex-col w-full p-2",
426428
),
427-
class_name="flex flex-col w-full",
429+
class_name="flex flex-col w-full max-w-[9.1875rem]",
428430
)
429431

430432
return ui.navigation_menu.content(
431433
_solutions_section_column("App Types", _app_types_items),
432434
_solutions_section_column("Industries", _industries_items),
435+
# Grid card
436+
rx.box(
437+
rx.el.a(
438+
rx.box(
439+
rx.text(
440+
"Get a personalized demo for your company",
441+
class_name="text-slate-12 text-base font-semibold break-words leading-tight flex-1 min-w-0",
442+
),
443+
rx.el.button(
444+
rx.icon("chevron-right", class_name="text-secondary-11 size-4"),
445+
class_name="size-6 group-hover:bg-secondary-3 transition-colors rounded-md flex items-center justify-center flex-shrink-0 mt-0.5",
446+
),
447+
class_name="flex flex-row items-start gap-2 justify-between mb-1 w-full",
448+
),
449+
rx.text(
450+
"See how Reflex can help your team build apps.",
451+
class_name="text-secondary-11 text-sm font-medium break-words leading-relaxed w-full",
452+
),
453+
to="/pricing",
454+
class_name="w-[16.5rem] h-full rounded-md shadow-small bg-white-1 border border-slate-4 flex flex-col gap-2.5 pt-6 pb-4 pl-5 pr-6 relative border-solid group overflow-hidden",
455+
),
456+
class_name="flex flex-col pt-4 pb-2 pl-3 pr-6 bg-slate-1 flex-shrink-0 overflow-hidden h-full",
457+
),
433458
unstyled=True,
434459
class_name=ui.cn(
435460
ui.navigation_menu.class_names.CONTENT,
436-
"flex flex-row gap-4 rounded-xl w-[28rem] font-sans overflow-hidden p-1.5",
461+
"flex flex-row gap-4 rounded-xl w-[37rem] font-sans overflow-hidden pt-1.5 pb-1.5 pl-1.5 pr-3",
437462
),
438463
)
439464

0 commit comments

Comments
 (0)