|
7 | 7 | from pcweb.pages.framework.views.footer_index import footer_index |
8 | 8 | from pcweb.pages.hosting.views.features import grid |
9 | 9 |
|
10 | | -numbers = { |
11 | | - "1": """ |
12 | | - <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" color="#000000" fill="none"> |
13 | | - <path d="M10.5 8.5L12.5 7V17" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" /> |
14 | | - <path d="M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" /> |
15 | | - </svg> |
16 | | - """, |
17 | | - "2": """ |
18 | | - <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" color="#000000" fill="none" class="text-purple-10"> |
19 | | - <path d="M9 10C9 8.34315 10.3431 7 12 7C13.6569 7 15 8.34315 15 10C15 12.0786 12.1196 13.9172 10.3503 14.8505C9.54685 15.2743 9 16.0917 9 17H15" stroke="#000000" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path> |
20 | | - <path d="M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z" stroke="#000000" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path> |
21 | | -</svg> |
22 | | - |
23 | | - """, |
24 | | - "3": """ |
25 | | - |
26 | | - <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" color="#000000" fill="none"> |
27 | | - <path d="M12.5 12H11.5M12.5 12C13.8807 12 15 10.8807 15 9.5C15 8.11929 13.8807 7 12.5 7H11.5C10.1193 7 9 8.11929 9 9.5M12.5 12C13.8807 12 15 13.1193 15 14.5C15 15.8807 13.8807 17 12.5 17H11.5C10.1193 17 9 15.8807 9 14.5" stroke="#000000" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path> |
28 | | - <path d="M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z" stroke="#000000" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path> |
29 | | -</svg> |
30 | | - """, |
31 | | - "4": """ |
32 | | - <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" color="#000000" fill="none"> |
33 | | - <path d="M15 7V12.5M15 12.5V17M15 12.5H9.43601C9.19521 12.5 9 12.3048 9 12.064C9 12.0216 9.00619 11.9794 9.01839 11.9387L10.5 7" stroke="#000000" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path> |
34 | | - <path d="M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z" stroke="#000000" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path> |
35 | | -</svg> |
36 | | - |
37 | | - """, |
38 | | -} |
| 10 | + |
| 11 | +meta_tags = [ |
| 12 | + {"property": "og:url", "content": "https://reflex.dev/affiliates/"}, |
| 13 | + {"property": "og:type", "content": "website"}, |
| 14 | + {"property": "og:title", "content": "Reflex Affiliates · Earn by sharing Reflex"}, |
| 15 | + { |
| 16 | + "property": "og:description", |
| 17 | + "content": "Join the Reflex affiliate program and earn rewards today.", |
| 18 | + }, |
| 19 | + {"property": "og:image", "content": "/previews/affiliates_preview.png"}, |
| 20 | + {"name": "twitter:card", "content": "summary_large_image"}, |
| 21 | + {"property": "twitter:domain", "content": "reflex.dev"}, |
| 22 | + {"property": "twitter:url", "content": "https://reflex.dev/affiliates/"}, |
| 23 | + {"name": "twitter:title", "content": "Reflex Affiliate Program"}, |
| 24 | + { |
| 25 | + "name": "twitter:description", |
| 26 | + "content": "Join the Reflex affiliate program and earn rewards today.", |
| 27 | + }, |
| 28 | + {"name": "twitter:image", "content": "/previews/affiliates_preview.png"}, |
| 29 | +] |
39 | 30 |
|
40 | 31 |
|
41 | 32 | def affiliates_title(): |
@@ -73,14 +64,6 @@ def step_box(step_number: str) -> rx.Component: |
73 | 64 | """Helper function to create a step number box with consistent styling.""" |
74 | 65 | return rx.box( |
75 | 66 | rx.box( |
76 | | - # rx.text( |
77 | | - # f"Step {step_number}", |
78 | | - # class_name="text-md text-center text-slate-10", |
79 | | - # ), |
80 | | - # rx.html( |
81 | | - # numbers[step_number], |
82 | | - # filter=rx.color_mode_cond("", "invert(0.85)"), |
83 | | - # ), |
84 | 67 | color=rx.color("accent", 5), |
85 | 68 | class_name="w-full h-[5rem] flex items-center justify-center p-3 col-start-2 row-span-full row-start-1 bg-[size:10px_10px] bg-fixed bg-[image:repeating-linear-gradient(315deg,currentColor_0,currentColor_1px,_transparent_0,_transparent_50%)]", |
86 | 69 | ), |
@@ -190,7 +173,11 @@ def features_small_screen(): |
190 | 173 | ) |
191 | 174 |
|
192 | 175 |
|
193 | | -@rx.page(route="/affiliates", title="Affiliates · Reflex") |
| 176 | +@rx.page( |
| 177 | + route="/affiliates", |
| 178 | + title="Affiliates · Reflex", |
| 179 | + meta=meta_tags, |
| 180 | +) |
194 | 181 | def affiliates() -> rx.Component: |
195 | 182 | return rx.box( |
196 | 183 | index_colors(), |
|
0 commit comments