Skip to content

Commit af1bac7

Browse files
authored
ENG-6807: Add os and cloud links on mobile (#1553)
1 parent 247e01c commit af1bac7

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

pcweb/components/docpage/navbar/buttons/sidebar.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
import reflex as rx
22
from pcweb.components.icons.icons import get_icon
33
from pcweb.constants import GITHUB_URL, TWITTER_URL, DISCORD_URL
4-
from pcweb.pages.docs import getting_started, hosting
4+
from pcweb.pages.docs import getting_started
5+
from pcweb.pages.hosting.hosting import hosting_landing
56
from pcweb.pages.docs.library import library
67
from pcweb.pages.blog import blogs
78
from pcweb.pages.gallery import gallery
9+
from pcweb.pages.framework.framework import framework
810
from reflex.style import toggle_color_mode
911

1012

@@ -72,8 +74,9 @@ def navbar_sidebar_drawer(trigger) -> rx.Component:
7274
drawer_item("Blog", blogs.path, "blog"),
7375
drawer_item("Case Studies", "/customers", "customers"),
7476
drawer_item("Components", library.path, "library"),
75-
drawer_item("Hosting", hosting.deploy_quick_start.path, "hosting"),
76-
drawer_item("Pricing", "/pricing", "hosting"),
77+
drawer_item("Open Source", framework.path, "open-source"),
78+
drawer_item("Cloud", hosting_landing.path, "hosting"),
79+
drawer_item("Pricing", "/pricing", "pricing"),
7780
drawer_socials(),
7881
rx.el.button(
7982
rx.color_mode.icon(

pcweb/pages/pricing/header.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -564,5 +564,9 @@ def header() -> rx.Component:
564564
return rx.box(
565565
custom_quote_form(),
566566
class_name="flex flex-col gap-2 justify-center items-center max-w-[64.19rem] 2xl:border-x border-slate-4 w-full -mb-10 "
567-
+ rx.cond(HostingBannerState.show_banner, "pt-[11rem]", "pt-[12rem]"),
567+
+ rx.cond(
568+
HostingBannerState.show_banner,
569+
"pt-[8rem] lg:pt-[11rem]",
570+
"pt-[8rem] lg:pt-[12rem]",
571+
),
568572
)

0 commit comments

Comments
 (0)