Skip to content

Commit f3fd235

Browse files
carlosabadiaAlek99
andauthored
decrease hero button gap (#1460)
Co-authored-by: Alek Petuskey <[email protected]>
1 parent 7166911 commit f3fd235

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

pcweb/components/new_button.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from typing import Any, Dict, Literal, Optional
2-
2+
from pcweb.components.utils.twmerge import cn
33
import reflex as rx
44

55
LiteralButtonVariant = Literal[
@@ -31,7 +31,7 @@ def get_variant_bg_cn(variant: str) -> str:
3131
"sm": "px-2 h-8 rounded-lg gap-2",
3232
"md": "px-2.5 h-9 rounded-[10px] gap-2.5",
3333
"lg": "px-3 h-10 rounded-xl gap-3",
34-
"xl": "px-3.5 h-12 rounded-[14px] gap-3.5 !text-base text-nowrap",
34+
"xl": "px-3.5 h-12 rounded-[14px] gap-3 !text-base text-nowrap",
3535
"icon-xs": "size-7 rounded-md",
3636
"icon-sm": "size-8 rounded-lg",
3737
"icon-md": "size-9 rounded-[10px]",
@@ -89,6 +89,6 @@ def button(
8989
return rx.el.button(
9090
*content,
9191
style=style,
92-
class_name=" ".join(filter(None, classes)),
92+
class_name=cn(*classes),
9393
**props,
9494
)

pcweb/pages/landing/views/hero.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,10 @@ def hero() -> rx.Component:
9999
button(
100100
"Get Access",
101101
size="xl",
102-
class_name="w-fit flex flex-row-reverse",
102+
class_name="w-fit flex flex-row-reverse gap-2",
103103
icon=rx.icon("chevron-right", size=16),
104104
),
105+
underline="none",
105106
href="/pricing",
106107
),
107108
watch_preview(),

pcweb/pages/landing/views/video_demo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def watch_preview() -> rx.Component:
7474
"Watch Preview",
7575
variant="secondary",
7676
size="xl",
77-
class_name="w-fit flex flex-row-reverse",
77+
class_name="w-fit flex flex-row-reverse gap-2",
7878
icon=rx.icon("chevron-right", size=16),
7979
),
8080
content=rx.box(

rxconfig.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,5 @@
1111
],
1212
show_build_with_reflex=False,
1313
telemetry_enabled=False,
14-
tailwind=tw_config,
15-
plugins=[rx.plugins.TailwindV3Plugin()],
14+
plugins=[rx.plugins.TailwindV3Plugin(tw_config)],
1615
)

0 commit comments

Comments
 (0)