Skip to content

Commit aaa3e2b

Browse files
committed
...
1 parent 32403f0 commit aaa3e2b

File tree

3 files changed

+23
-15
lines changed

3 files changed

+23
-15
lines changed

pcweb/pages/integrations/integration_gallery.py

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,17 @@ def integration_filter_button(data: dict):
3333

3434
def integration_filters():
3535
return rx.el.div(
36-
*[integration_filter_button(data) for data in FilterOptions],
37-
class_name="flex flex-row gap-3 items-center justify-center flex-wrap"
36+
rx.el.div(
37+
*[integration_filter_button(data) for data in FilterOptions],
38+
class_name="flex flex-row gap-3 items-center justify-center flex-wrap"
39+
),
40+
class_name="w-full max-w-[64.19rem] lg:border-x border-slate-3 pb-12"
3841
)
3942

4043

4144

4245
def integration_gallery_cards(data):
43-
return rx.link(
46+
return rx.el.a(
4447
rx.el.div(
4548
rx.el.div(
4649
rx.image(
@@ -58,32 +61,34 @@ def integration_gallery_cards(data):
5861
class_name="w-full flex flex-row items-center justify-between"
5962
),
6063
rx.el.div(
61-
rx.el.p(data['title'], class_name="text-lg font-bold"),
62-
rx.el.p(data['description'], class_name="text-sm"),
64+
rx.el.p(data['title'], class_name="text-lg font-bold text-secondary-12"),
65+
rx.el.p(data['description'], class_name="font-medium text-secondary-11"),
6366
class_name="flex flex-col gap-y-1"
6467
),
65-
class_name="flex flex-col gap-y-6 rounded-ui-xl border border-secondary-a4 bg-secondary-1 shadow-small p-6 h-[12rem] justify-between hover:bg-secondary-2"
68+
class_name="flex flex-col gap-y-6 rounded-ui-xl border border-secondary-a4 bg-secondary-1 shadow-small p-6 h-[13rem] justify-between hover:bg-secondary-2"
6669
),
6770
href=data['path'],
68-
class_name="group text-inherit hover:!text-inherit decoration-none "
71+
class_name="group text-inherit hover:!text-inherit decoration-none no-underline "
6972
+ rx.cond(
7073
(selected_filter.value == data['tags']) | (selected_filter.value == "All"), "flex", "hidden"
7174
),
7275
)
7376

7477
def integration_gallery():
7578
return rx.el.div(
76-
*[
77-
integration_gallery_cards(list(item.values())[0])
78-
for item in get_integration_path()
79-
],
80-
class_name="w-full lg:w-[86%] grid lg:grid-cols-3 md:grid-cols-2 grid-cols-1 gap-6 px-10 py-12"
79+
rx.el.div(
80+
*[
81+
integration_gallery_cards(list(item.values())[0])
82+
for item in get_integration_path()
83+
],
84+
class_name="w-full lg:max-w-[80rem] grid lg:grid-cols-3 md:grid-cols-2 grid-cols-1 gap-6 px-4 md:px-10"
85+
),
86+
class_name=""
8187
)
8288

83-
8489
def integration_request_form():
8590
return rx.el.div(
8691
rx.el.p("Missing an integration?"),
8792
rx.el.p(rx.fragment("Click ", request_integration_dialog(), " to tell us what you need.")),
88-
class_name="flex flex-col gap-y-1 text-sm text-slate-12 py-6 items-center justify-center"
93+
class_name="w-full max-w-[64.19rem] flex flex-col gap-y-1 text-md font-bold py-10 items-center justify-center lg:border-x border-slate-3"
8994
)

pcweb/pages/integrations/integration_header.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ def integration_header() -> rx.Component:
99
rx.el.h2(
1010
"""Easily connect with the tools and platforms
1111
your team already uses to streamline your workflow.""",
12-
class_name="max-w-full w-full font-large text-center text-slate-11 -mt-2 font-normal text-[1.25rem] mx-auto text-balance word-wrap break-words md:whitespace-pre",
12+
class_name="max-w-full w-full text-md text-center text-slate-11 -mt-2 md:text-2xl mx-auto text-balance word-wrap break-words md:whitespace-pre",
1313
),
1414
class_name="flex flex-col justify-center items-center gap-4 mx-auto w-full max-w-[64.19rem] pb-[2.5rem] pt-24 lg:pt-48 lg:border-x border-slate-3",
1515
)

pcweb/pages/integrations/integration_list.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ def get_integration_path() -> list:
3434
description = post.get('description', '').strip()
3535
title = key.replace('_', ' ').title()
3636

37+
if title == "Open Ai":
38+
title = "Open AI"
39+
3740
result.append({
3841
key: {
3942
'path': f"{web_path_prefix}/{slug}",

0 commit comments

Comments
 (0)