Skip to content

Commit 90abf21

Browse files
committed
more ui
1 parent 9fb8856 commit 90abf21

File tree

1 file changed

+44
-32
lines changed

1 file changed

+44
-32
lines changed

pcweb/pages/affiliates/affiliates.py

Lines changed: 44 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
import reflex as rx
22

33
from pcweb.components.button import button
4-
from pcweb.templates.webpage import webpage
4+
from pcweb.components.docpage.navbar import navbar
5+
from pcweb.components.webpage.badge import badge
6+
from pcweb.pages.hosting.views.features import grid
7+
from pcweb.pages.index.index_colors import index_colors
8+
from pcweb.pages.index.views.footer_index import footer_index
59

610
numbers = {
711
"1": """
@@ -52,7 +56,7 @@ def feature_card(icon: str, title: str, description: str) -> rx.Component:
5256
return rx.box(
5357
rx.box(
5458
rx.box(
55-
# get_icon(icon, class_name="!text-slate-12 !size-5"),
59+
rx.icon(tag=icon, class_name="!text-slate-12 !size-5"),
5660
rx.text(title, class_name="text-slate-12 text-base font-medium"),
5761
class_name="flex flex-row gap-2 items-center",
5862
),
@@ -93,40 +97,41 @@ def spacer() -> rx.Component:
9397

9498
def features() -> rx.Component:
9599
return rx.el.section(
100+
grid(),
96101
rx.box(
97102
rx.box(
98103
# Left column with steps 2 and 4
99104
feature_card(
100-
"backend_db",
101-
"1. Submit Your Application",
105+
"frame",
106+
"Submit Your Application",
102107
"Provide your basic info to get a unique affiliate link.",
103108
),
104-
step_box("2"),
109+
# step_box("2"),
105110
feature_card(
106-
"infinity",
107-
"3. Track Your Referrals",
111+
"audio-lines",
112+
"Track Your Referrals",
108113
"Log in to your Affiliate Dashboard to see clicks, sign‑ups, and revenue data.",
109114
),
110-
step_box("4"),
115+
# step_box("4"),
111116
spacer(),
112117
class_name="flex flex-col pt-8 lg:border-r border-slate-3",
113118
),
114119
rx.box(
115120
# Right column with steps 1 and 3
116121
spacer(),
117-
step_box("1"),
122+
# step_box("1"),
118123
feature_card(
119-
"backend_auth",
120-
"2. Share Reflex",
124+
"share-2",
125+
"Share Reflex",
121126
"Post your link anywhere—blog posts, social media, email newsletters, even your YouTube channel.",
122127
),
123-
step_box("3"),
128+
# step_box("3"),
124129
feature_card(
125-
"analytics",
126-
"4. Get Paid",
130+
"dollar-sign",
131+
"Get Paid",
127132
"We'll send you 50% of each referred user's subscription revenue for their first six months.",
128133
),
129-
class_name="flex flex-col -mt-[32px]",
134+
class_name="flex flex-col",
130135
),
131136
class_name="flex lg:flex-row flex-col justify-center items-center",
132137
),
@@ -144,7 +149,7 @@ def features_small_screen():
144149
return rx.box(
145150
rx.box(
146151
rx.box(
147-
step_box("1"),
152+
# step_box("1"),
148153
feature_card(
149154
"backend_db",
150155
"Submit Your Application",
@@ -153,7 +158,7 @@ def features_small_screen():
153158
class_name="flex flex-col",
154159
),
155160
rx.box(
156-
step_box("2"),
161+
# step_box("2"),
157162
feature_card(
158163
"backend_auth",
159164
"Share Reflex",
@@ -162,7 +167,7 @@ def features_small_screen():
162167
class_name="flex flex-col",
163168
),
164169
rx.box(
165-
step_box("3"),
170+
# step_box("3"),
166171
feature_card(
167172
"infinity",
168173
"Track Your Referrals",
@@ -171,7 +176,7 @@ def features_small_screen():
171176
class_name="flex flex-col",
172177
),
173178
rx.box(
174-
step_box("4"),
179+
# step_box("4"),
175180
feature_card(
176181
"analytics",
177182
"Get Paid",
@@ -186,26 +191,33 @@ def features_small_screen():
186191
button("Become a Partner", variant="primary", size="xl"),
187192
href="https://cal.com/forms/09dc3703-39fc-42ec-b03b-8ee32de7590f",
188193
is_external=True,
189-
class_name="p-2 border border-slate-3 rounded-[1.375rem] border-solid lg:mt-0 mt-4",
194+
class_name="p-4 border border-slate-3 rounded-[1.375rem] border-solid lg:mt-0 mt-4",
190195
),
191196
class_name="flex items-center justify-center",
192197
),
193198
class_name="flex flex-col justify-center",
194199
)
195200

196201

197-
@webpage(path="/affiliates", title="Affiliates · Reflex")
202+
@rx.page(route="/affiliates", title="Affiliates · Reflex")
198203
def affiliates() -> rx.Component:
199-
return rx.el.section(
200-
affiliates_title(),
201-
rx.box(
202-
features(),
203-
class_name="hidden lg:block", # Hide by default, show on lg screens and up
204-
),
205-
rx.box(
206-
features_small_screen(),
207-
class_name="block lg:hidden", # Show by default, hide on lg screens and up
204+
return rx.box(
205+
index_colors(),
206+
navbar(),
207+
rx.el.section(
208+
affiliates_title(),
209+
rx.box(
210+
features(),
211+
class_name="hidden lg:block", # Hide by default, show on lg screens and up
212+
),
213+
rx.box(
214+
features_small_screen(),
215+
class_name="block lg:hidden", # Show by default, hide on lg screens and up
216+
),
217+
id="affiliates",
218+
class_name="section-content",
208219
),
209-
id="affiliates",
210-
class_name="section-content",
220+
footer_index(),
221+
badge(),
222+
class_name="flex flex-col w-full max-w-[94.5rem] justify-center items-center mx-auto px-4 lg:px-5 relative overflow-hidden",
211223
)

0 commit comments

Comments
 (0)