Skip to content

Commit 0e71da9

Browse files
committed
Update video
1 parent 290e80a commit 0e71da9

File tree

7 files changed

+46
-35
lines changed

7 files changed

+46
-35
lines changed
9.9 KB
Loading
292 KB
Loading

pcweb/components/docpage/navbar/navbar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ def new_component_section() -> rx.Component:
553553
"Book a Demo",
554554
size="sm",
555555
variant="primary",
556-
class_name="font-semibold whitespace-nowrap",
556+
class_name="font-semibold whitespace-nowrap max-xl:hidden",
557557
),
558558
),
559559
unstyled=True,

pcweb/constants.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
ENTERPRISE_DOCS_URL = "https://enterprise.reflex.dev"
4545
DATABRICKS_NOTION_URL = "https://reflex-dev.notion.site/reflex-x-databricks"
4646
DEMO_VIDEO_URL = "https://www.youtube.com/watch?v=lO-N_IRaWhQ"
47+
LAUNCH_VIDEO_URL = "https://www.youtube.com/watch?v=Hy3uhBVRdtk"
4748

4849
# Install urls.
4950
BUN_URL = "https://bun.sh"

pcweb/pages/landing/views/social_marquee.py

Lines changed: 38 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -21,60 +21,65 @@ class Social:
2121
name: str
2222
role: str
2323
text: str | rx.Component
24+
url: str | None = None
25+
avatar: str | None = None
2426

2527

2628
SOCIALS_1 = [
2729
Social(
2830
name="vishnudeva",
29-
role="Reddit User",
31+
role="Hacker News",
3032
text=get_normal_text(
3133
"Been a lurker on Hacker News for years but I created an account just so I could say how excited I am! Love the effort you're putting into ",
3234
get_highlight("Reflex"),
3335
". Streamlit felt really painful to use whenever you want to do anything slightly out of the main path.",
3436
),
37+
url="https://news.ycombinator.com/item?id=35140025",
3538
),
3639
Social(
37-
name="vikinghckr",
38-
role="Reddit User",
40+
name="Alex",
41+
role="OpenSea Co-founder",
3942
text=get_normal_text(
40-
"I'm not exaggerating but this might just be the highest impact library I've seen. As a backend developer who has lots of great project ideas but bail at the thought of having to use JavaScript and HTML, ",
43+
"Have been playing with ",
4144
get_highlight("Reflex"),
42-
" is a godsend!",
45+
" since Jan and realized I should just say, from a fellow YC member: love the architecture decisions you guys are making! ❤️",
4346
),
47+
avatar="/landing/social/alex_opensea.webp",
4448
),
4549
Social(
46-
name="Alex",
47-
role="OpenSea Co-founder",
50+
name="Andrew",
51+
role="Discord",
4852
text=get_normal_text(
49-
"Have been playing with ",
53+
"I've recently started using ",
5054
get_highlight("Reflex"),
51-
" since Jan and realized I should just say, from a fellow YC member: love the architecture decisions you guys are making! ❤️",
55+
" and love it. My developer productivity is through the roof. Built a full-stack web app with stripe integration, firebase user authentication all built and looking quite nice and all done in about 2 nights of work.",
5256
),
5357
),
5458
]
5559

5660
SOCIALS_2 = [
5761
Social(
5862
name="PoshoDev",
59-
role="Discord User",
63+
role="Discord",
6064
text=get_normal_text(
6165
"I'm experimenting with ",
6266
get_highlight("Reflex"),
6367
" for the first time and I have to say that I really love the experience so far. Not needing to create frontend and backend individually for small web projects is a huge advantage. 😊",
6468
),
6569
),
6670
Social(
67-
name="Andrew",
68-
role="Discord User",
71+
name="vikinghckr",
72+
role="Hacker News",
6973
text=get_normal_text(
70-
"I've recently started using ",
74+
"I'm not exaggerating but this might just be the highest impact library I've seen. As a backend developer who has lots of great project ideas but bail at the thought of having to use JavaScript and HTML, ",
7175
get_highlight("Reflex"),
72-
" and love it. My developer productivity is through the roof. Built a full-stack web app with stripe integration, firebase user authentication all built and looking quite nice and all done in about 2 nights of work.",
76+
" is a godsend!",
7377
),
78+
url="https://news.ycombinator.com/item?id=35140025",
7479
),
7580
Social(
7681
name="Chaumy",
77-
role="Discord User",
82+
role="Discord",
7883
text=get_normal_text(
7984
"Finally managed to work through the docs - ",
8085
get_highlight("Reflex"),
@@ -91,6 +96,11 @@ def social_card(social: Social) -> rx.Component:
9196
ui.gradient_profile(
9297
seed=social.name,
9398
class_name="size-9 rounded-full",
99+
)
100+
if not social.avatar
101+
else rx.image(
102+
src=social.avatar,
103+
class_name="size-9 rounded-full",
94104
),
95105
rx.el.div(
96106
rx.el.span(
@@ -103,15 +113,19 @@ def social_card(social: Social) -> rx.Component:
103113
),
104114
class_name="flex flex-row gap-4 mt-auto",
105115
),
106-
# rx.el.a(
107-
# to=social.url,
108-
# target="_blank",
109-
# class_name="absolute inset-0",
110-
# ),
111-
# ui.icon(
112-
# "ArrowUpRight01Icon",
113-
# class_name="group-hover:opacity-100 opacity-0 scale-50 group-hover:scale-100 transition-all duration-100 absolute bottom-4 right-4 size-5 text-primary-11 origin-bottom-left ease-in-out",
114-
# ),
116+
rx.fragment(
117+
rx.el.a(
118+
to=social.url,
119+
target="_blank",
120+
class_name="absolute inset-0",
121+
),
122+
ui.icon(
123+
"ArrowUpRight01Icon",
124+
class_name="group-hover:opacity-100 opacity-0 scale-50 group-hover:scale-100 transition-all duration-100 absolute bottom-4 right-4 size-5 text-primary-11 origin-bottom-left ease-in-out",
125+
),
126+
)
127+
if social.url
128+
else None,
115129
class_name="flex flex-col gap-4 bg-slate-1 hover:bg-slate-2 transition-colors relative w-[22.5rem] h-[15rem] flex-shrink-0 p-6 group border-slate-4 py-10",
116130
)
117131

pcweb/pages/landing/views/social_stats.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77

88
def stat(icon: str, text: str) -> rx.Component:
99
return rx.el.section(
10-
get_icon(icon, class_name="text-primary-9"),
11-
rx.el.span(text, class_name="font-medium text-sm text-slate-12"),
10+
get_icon(icon, class_name="text-primary-9 [&_svg]:!size-5"),
11+
rx.el.span(text, class_name="font-medium text-lg text-slate-12"),
1212
class_name="flex flex-row items-center gap-2",
1313
)
1414

pcweb/pages/landing/views/video.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import reflex_ui as ui
33

44
from pcweb.components.dialog import dialog
5-
from pcweb.constants import DEMO_VIDEO_URL, REFLEX_BUILD_URL
5+
from pcweb.constants import LAUNCH_VIDEO_URL, REFLEX_BUILD_URL
66

77

88
def video_demo() -> rx.Component:
@@ -14,12 +14,8 @@ def video_demo() -> rx.Component:
1414
class_name="absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 scale-100 z-[2] group-hover:scale-110 transition-transform duration-300 backdrop rounded-full bg-slate-10 size-10 flex items-center justify-center",
1515
),
1616
rx.image(
17-
"/landing/video/dark/video_demo_dark.webp",
18-
class_name="object-cover size-full dark:block hidden scale-110",
19-
),
20-
rx.image(
21-
"/landing/video/light/video_demo_light.webp",
22-
class_name="object-cover size-full dark:hidden block scale-110",
17+
"/landing/video/preview_video.webp",
18+
class_name="object-cover size-full scale-110",
2319
),
2420
rx.el.span(
2521
class_name="inset-0 size-full absolute z-[1] bg-[#00000008] backdrop-blur-[0.1px] rounded-lg",
@@ -32,7 +28,7 @@ def video_demo() -> rx.Component:
3228
class_name="absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-10 h-10 z-[-1] rounded-md",
3329
),
3430
rx.video(
35-
src=DEMO_VIDEO_URL,
31+
src=LAUNCH_VIDEO_URL,
3632
playing=True,
3733
controls=False,
3834
class_name="size-full z-[1]",

0 commit comments

Comments
 (0)