Skip to content

Commit 8ba65d7

Browse files
author
Alek99
committed
update quotes
1 parent 3feade6 commit 8ba65d7

File tree

3 files changed

+31
-18
lines changed

3 files changed

+31
-18
lines changed

pcweb/components/icons/icons.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,9 @@
415415

416416
arrow_top_right = """<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" class="injected-svg" color="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M8 5a1 1 0 0 0 0 2h7.586L5.293 17.293a1 1 0 1 0 1.414 1.414L17 8.414V16a1 1 0 1 0 2 0V6a1 1 0 0 0-1-1z" fill="currentColor"/></svg>"""
417417

418+
quote="""<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-quote-icon lucide-quote"><path d="M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z"/><path d="M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z"/></svg>"""
419+
420+
418421
ICONS = {
419422
# Socials
420423
"github": github,
@@ -471,6 +474,7 @@
471474
"dollar": dollar,
472475
"webpage": webpage,
473476
"arrow_top_right": arrow_top_right,
477+
"quote": quote,
474478
}
475479

476480
LiteralIcon = Literal[

pcweb/pages/landing/views/companies.py

Lines changed: 26 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -10,34 +10,39 @@
1010
"rappi",
1111
"accenture",
1212
"ibm",
13-
"dell",
13+
"fastly",
1414
"autodesk",
1515
"STATS",
1616
"twilio",
1717
"ford",
1818
"paloalto",
1919
"bosch",
20-
"fastly",
20+
21+
"dell",
2122
"unicef",
2223
"nasa",
2324
"nike",
2425
]
2526

2627
companies_case_studies = {
27-
"fastly": {
28-
"company_name": "Fastly",
29-
"quote": "Fastly is a cloud computing company that provides content delivery network (CDN) services.",
30-
"person": "Juan",
28+
"dell": {
29+
"company_name": "Dell",
30+
"quote": """Reflex has been a game changer.
31+
In just a week, I had a demo up and running, and the performance was excellent.
32+
It made the project feasible for my team, who were mostly from a support background, not development.
33+
Reflex has helped us go from struggling with clunky tools to building a smooth, efficient interface.
34+
""",
35+
"person": "JL",
3136
"picture": "/favicon.ico",
32-
"role": "CEO",
37+
"role": "Principal Engineer",
3338
},
3439
"autodesk": {
3540
"company_name": "Autodesk",
36-
"quote": "Autodesk is a software company that provides design and engineering software.",
37-
"person": "Juan",
41+
"quote": "One person the can do the job of two with Reflex, so it cut our cost in half.",
42+
"person": "Paolo",
3843
"picture": "/favicon.ico",
39-
"role": "CEO",
40-
"url": "/customers/bayesline",
44+
"role": "Principal Consultant",
45+
"url": "/customers/autodesk",
4146
},
4247
}
4348

@@ -87,7 +92,7 @@ def company_card(path: str, name: str) -> rx.Component:
8792
badge_text = "Case Study"
8893
badge_icon = get_icon(
8994
"arrow_top_right",
90-
class_name="size-3.5 rotate-45 group-hover:rotate-0 transition-transform",
95+
class_name="size-3 rotate-45 group-hover:rotate-0 transition-transform",
9196
)
9297
badge_class_name = "absolute bottom-4 right-4 bg-violet-3 border border-violet-6 text-violet-9 group-hover:bg-violet-4 text-xs font-semibold px-2 py-1 rounded-full transition-colors flex flex-row items-center gap-1 scale-[0.85]"
9398
badge_component = rx.box(
@@ -96,11 +101,15 @@ def company_card(path: str, name: str) -> rx.Component:
96101
class_name=badge_class_name,
97102
)
98103
else:
99-
# Badge for customers WITHOUT a case study URL
100-
badge_text = "Customer"
101-
badge_class_name = "absolute bottom-4 right-4 bg-violet-3 border border-violet-6 text-violet-9 text-xs font-semibold px-2 py-1 rounded-full transition-colors flex flex-row items-center gap-1 scale-[0.85]"
104+
badge_text = "Quote"
105+
badge_icon = get_icon(
106+
"quote",
107+
class_name="size-3 group-hover:rotate-0 transition-transform",
108+
)
109+
badge_class_name = "absolute bottom-4 right-4 bg-violet-3 border border-violet-6 text-violet-9 group-hover:bg-violet-4 text-xs font-semibold px-2 py-1 rounded-full transition-colors flex flex-row items-center gap-1 scale-[0.85]"
102110
badge_component = rx.box(
103111
badge_text,
112+
badge_icon,
104113
class_name=badge_class_name,
105114
)
106115

@@ -153,14 +162,14 @@ def company_card(path: str, name: str) -> rx.Component:
153162
class_name="flex flex-col gap-2.5",
154163
),
155164
side="top",
156-
side_offset=-50,
165+
side_offset=-120,
157166
align="center",
158167
on_click=rx.cond(
159168
has_case_study,
160169
rx.redirect(case_study.get("url", "#")),
161170
rx.noop(),
162171
),
163-
class_name="flex justify-center items-center bg-slate-1 p-3 rounded-xl shadow-large border border-slate-5 w-[17rem]"
172+
class_name="flex justify-center items-center bg-slate-1 p-3 rounded-xl shadow-large border border-slate-5 w-[22rem]"
164173
+ (
165174
" cursor-pointer" if has_case_study else ""
166175
),

pcweb/whitelist.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
- Incorrect: WHITELISTED_PAGES = ["/docs/getting-started/introduction/"]
1111
"""
1212

13-
WHITELISTED_PAGES = []
13+
WHITELISTED_PAGES = ["/docs/getting-started/introduction"]
1414

1515

1616
def _check_whitelisted_path(path: str):

0 commit comments

Comments
 (0)