Skip to content

Commit 29e97ab

Browse files
authored
[ENG-6018] 4-col price cards (#1393)
* 4-col price cards * +changes
1 parent 87213b5 commit 29e97ab

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

pcweb/pages/pricing/plan_cards.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -153,12 +153,12 @@ def card(
153153
price,
154154
color_scheme="gray",
155155
size="3",
156-
class_name="font-medium text-lg",
156+
class_name="font-medium 2xl:text-lg text-base w-fit",
157157
)
158158
if price
159159
else rx.fragment()
160160
),
161-
class_name="flex items-center mb-2 gap-4",
161+
class_name="flex 2xl:items-center mb-2 2xl:gap-4 gap-2 2xl:flex-row flex-col",
162162
),
163163
rx.el.p(
164164
description, class_name="text-sm font-medium text-slate-9 mb-8 text-pretty"
@@ -194,7 +194,7 @@ def card(
194194
is_external=True,
195195
underline="none",
196196
),
197-
class_name="flex flex-col p-8 border border-slate-4 rounded-[1.125rem] shadow-small bg-slate-2 w-full min-w-[20.375rem] h-[33.5rem]",
197+
class_name="flex flex-col p-8 border border-slate-4 rounded-[1.125rem] shadow-small bg-slate-2 w-full min-w-0 h-[33.5rem] overflow-hidden",
198198
)
199199

200200

@@ -213,19 +213,19 @@ def popular_card(
213213
rx.box(
214214
glow(),
215215
grid(),
216-
rx.hstack(
216+
rx.el.div(
217217
rx.el.h3(title, class_name="font-semibold text-slate-12 text-2xl"),
218218
(
219219
rx.badge(
220220
price,
221221
color_scheme="violet",
222222
size="3",
223-
class_name="font-medium text-lg",
223+
class_name="font-medium 2xl:text-lg text-base w-fit",
224224
)
225225
if price
226226
else rx.fragment()
227227
),
228-
class_name="flex items-center mb-2 gap-4",
228+
class_name="flex 2xl:items-center mb-2 2xl:gap-4 gap-2 2xl:flex-row flex-col",
229229
),
230230
rx.el.p(description, class_name="text-sm font-medium text-slate-9 mb-8"),
231231
rx.el.ul(
@@ -259,7 +259,7 @@ def popular_card(
259259
is_external=True,
260260
underline="none",
261261
),
262-
class_name="flex flex-col p-8 border border-[--violet-9] rounded-[1.125rem] w-full min-w-[20.375rem] h-[33.5rem] relative z-[1] backdrop-blur-[6px] bg-[rgba(249,_249,_251,_0.48)] dark:bg-[rgba(26,_27,_29,_0.48)] shadow-[0px_2px_5px_0px_rgba(28_32_36_0.03)] overflow-hidden",
262+
class_name="flex flex-col p-8 border border-[--violet-9] rounded-[1.125rem] w-full min-w-0 h-[33.5rem] relative z-[1] backdrop-blur-[6px] bg-[rgba(249,_249,_251,_0.48)] dark:bg-[rgba(26,_27,_29,_0.48)] shadow-[0px_2px_5px_0px_rgba(28_32_36_0.03)] overflow-hidden",
263263
),
264264
class_name="relative",
265265
)
@@ -334,5 +334,5 @@ def plan_cards() -> rx.Component:
334334
"Contact sales",
335335
redirect_url=REFLEX_DEV_WEB_LANDING_FORM_URL_GET_DEMO,
336336
),
337-
class_name="grid 2xl:grid-cols-4 xl:grid-cols-2 sm:grid-cols-1 gap-4",
337+
class_name="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4 lg:gap-6"
338338
)

0 commit comments

Comments
 (0)