Skip to content

Commit 0836825

Browse files
add flexgen post end point to landing page prompt (#1372)
* add flexgen post end point to landing page prompt * this guy needed to be async * i was missing an fstring * add env flags * add ui * reset --------- Co-authored-by: carlosabadia <[email protected]>
1 parent 47536ed commit 0836825

File tree

6 files changed

+339
-35
lines changed

6 files changed

+339
-35
lines changed

assets/tailwind-theme.css

Lines changed: 26 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@
303303
}
304304

305305
.mobile-only {
306-
@apply flex lg:hidden;
306+
@apply lg:hidden flex;
307307
}
308308

309309
.desktop-only {
@@ -339,23 +339,23 @@
339339
}
340340

341341
.section-content {
342-
@apply flex flex-col justify-center items-center gap-10 mx-auto mb-20 px-4 lg:px-6 w-full max-w-6xl mt-4 pt-24 lg:pt-52;
342+
@apply flex flex-col justify-center items-center gap-10 mx-auto mt-4 mb-20 px-4 lg:px-6 pt-24 lg:pt-52 w-full max-w-6xl;
343343
}
344344

345345
.section-header {
346-
@apply flex flex-col justify-center items-start lg:items-center gap-6 w-full text-start lg:text-center;
346+
@apply flex flex-col justify-center items-start lg:items-center gap-6 w-full lg:text-center text-start;
347347
}
348348

349349
.gradient-heading {
350-
@apply inline-block bg-clip-text bg-gradient-to-r from-slate-12 to-slate-11 w-full text-balance text-center text-transparent;
350+
@apply inline-block bg-clip-text bg-gradient-to-r from-slate-12 to-slate-11 w-full text-transparent text-center text-balance;
351351
}
352352

353353
.table-header {
354-
@apply font-small text-slate-12 w-auto justify-start pl-4 font-bold;
354+
@apply justify-start pl-4 w-auto font-small font-bold text-slate-12;
355355
}
356356

357357
/* .tab-style {
358-
@apply text-slate-9 cursor-pointer hover:text-slate-11 px-2 py-1 text-sm font-medium data-[state='active']:text-violet-9 not-[data-state='active']:text-slate-11;
358+
@apply px-2 py-1 font-medium text-slate-9 data-[state='active']:text-violet-9 not-[data-state='active']:text-slate-11 hover:text-slate-11 text-sm cursor-pointer;
359359
} */
360360

361361
@keyframes enterFromRight {
@@ -491,17 +491,27 @@
491491
}
492492
}
493493

494+
@property --border-angle {
495+
inherits: false;
496+
initial-value: 0deg;
497+
syntax: '<angle>';
498+
}
499+
494500
@layer utilities {
495-
/* Hide scrollbar for Chrome, Safari and Opera */
496-
.no-scrollbar::-webkit-scrollbar {
497-
display: none;
498-
}
499-
/* Hide scrollbar for IE, Edge and Firefox */
500-
.no-scrollbar {
501-
-ms-overflow-style: none; /* IE and Edge */
502-
scrollbar-width: none; /* Firefox */
503-
}
504-
}
501+
502+
/* Hide scrollbar for Chrome, Safari and Opera */
503+
.no-scrollbar::-webkit-scrollbar {
504+
display: none;
505+
}
506+
507+
/* Hide scrollbar for IE, Edge and Firefox */
508+
.no-scrollbar {
509+
-ms-overflow-style: none;
510+
/* IE and Edge */
511+
scrollbar-width: none;
512+
/* Firefox */
513+
}
514+
}
505515

506516
.v-link {
507517
/* text-decoration: underline; */

pcweb/components/icons/icons.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -423,6 +423,12 @@
423423
<path d="M11.826 9H11C10.0572 9 9.58579 9 9.29289 9.29289C9 9.58579 9 10.0572 9 11V19.5C9 20.4428 9 20.9142 9.29289 21.2071C9.58579 21.5 10.0572 21.5 11 21.5H11.5C12.4428 21.5 12.9142 21.5 13.2071 21.2071C13.5 20.9142 13.5 20.4428 13.5 19.5L13.5001 16.0001C13.5001 14.3433 14.0281 13.0001 15.5879 13.0001C16.3677 13.0001 17 13.6717 17 14.5001V19.0001C17 19.9429 17 20.4143 17.2929 20.7072C17.5857 21.0001 18.0572 21.0001 19 21.0001H19.4987C20.4413 21.0001 20.9126 21.0001 21.2055 20.7073C21.4984 20.4145 21.4985 19.9432 21.4987 19.0006L21.5001 13.5002C21.5001 11.015 19.1364 9.00024 16.7968 9.00024C15.4649 9.00024 14.2767 9.65309 13.5001 10.674C13.5 10.0439 13.5 9.72893 13.3632 9.495C13.2765 9.34686 13.1531 9.22353 13.005 9.13687C12.7711 9 12.4561 9 11.826 9Z" fill="currentColor"></path>
424424
</svg>"""
425425

426+
image_03 = """<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 25" fill="none" class="injected-svg" xmlns:xlink="http://www.w3.org/1999/xlink" role="img" color="currentColor">
427+
<path d="M14 3.5H10C6.22876 3.5 4.34315 3.5 3.17157 4.67157C2 5.84315 2 7.72876 2 11.5V13.5C2 17.2712 2 19.1569 3.17157 20.3284C4.34315 21.5 6.22876 21.5 10 21.5H14C17.7712 21.5 19.6569 21.5 20.8284 20.3284C22 19.1569 22 17.2712 22 13.5V11.5C22 7.72876 22 5.84315 20.8284 4.67157C19.6569 3.5 17.7712 3.5 14 3.5Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path>
428+
<circle cx="8.5" cy="9" r="1.5" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></circle>
429+
<path d="M21.5 17.5L16.348 11.8797C16.1263 11.6377 15.8131 11.5 15.485 11.5C15.1744 11.5 14.8766 11.6234 14.6571 11.8429L10 16.5L7.83928 14.3393C7.62204 14.122 7.32741 14 7.02019 14C6.68931 14 6.37423 14.1415 6.15441 14.3888L2.5 18.5" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path>
430+
</svg>"""
431+
426432
ICONS = {
427433
# Socials
428434
"github": github,
@@ -481,6 +487,7 @@
481487
"arrow_top_right": arrow_top_right,
482488
"quote": quote,
483489
"linkedin": linkedin,
490+
"image-03": image_03,
484491
}
485492

486493
LiteralIcon = Literal[
@@ -539,6 +546,7 @@
539546
"arrow_top_right",
540547
"quote",
541548
"linkedin",
549+
"image-03",
542550
]
543551

544552

pcweb/components/tabs.py

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,25 @@
88
from reflex.components.component import ComponentNamespace
99
from reflex.event import EventHandler
1010
from reflex.vars import Var
11+
from reflex.utils.imports import ImportVar
1112

1213

1314
class BaseUIComponent(Component):
1415
"""Set of content sections to be displayed one at a time."""
1516

16-
library = "@base-ui-components/react@^1.0.0-alpha.5"
17+
lib_dependencies: list[str] = ["@base-ui-components/react@^1.0.0-alpha.8"]
1718

1819

1920
class TabsBaseUIComponent(BaseUIComponent):
20-
"""Tabs component."""
21-
22-
tag = "Tabs"
21+
library = "@base-ui-components/react/tabs"
22+
23+
@property
24+
def import_var(self):
25+
return ImportVar(
26+
tag="Tabs",
27+
package_path="",
28+
install=False,
29+
)
2330

2431

2532
class TabsRoot(TabsBaseUIComponent):

pcweb/constants.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
# pcweb urls.
1818
REFLEX_URL = "https://reflex.dev/"
1919
REFLEX_DOCS_URL = "https://reflex.dev/docs/getting-started/introduction/"
20-
REFLEX_CLOUD_URL = "https://cloud.reflex.dev/"
21-
REFLEX_BUILD_URL = "https://build.reflex.dev/"
20+
REFLEX_CLOUD_URL = os.getenv("REFLEX_CLOUD_URL", "https://cloud.reflex.dev/")
21+
REFLEX_BUILD_URL = os.getenv("REFLEX_BUILD_URL", "https://build.reflex.dev/")
2222
PYNECONE_URL = "https://pynecone.io"
2323
PIP_URL = "https://pypi.org/project/reflex"
2424
GITHUB_URL = "https://github.com/reflex-dev/reflex"
@@ -65,7 +65,7 @@
6565

6666
# Reflex Cloud Backend
6767
RX_CLOUD_BACKEND = os.getenv("RX_CLOUD_BACKEND", "https://cloud-backend.reflex.dev/")
68-
68+
RX_BUILD_BACKEND = os.getenv("RX_BUILD_BACKEND", "https://build-backend.reflex.dev/")
6969

7070
# Stats
7171
GITHUB_STARS = 23000

0 commit comments

Comments
 (0)