|
2 | 2 |
|
3 | 3 | import reflex as rx |
4 | 4 |
|
5 | | -from pcweb.constants import REFLEX_DOMAIN, REFLEX_DOMAIN_URL, TWITTER_CREATOR |
| 5 | +from pcweb.constants import ( |
| 6 | + DISCORD_URL, |
| 7 | + FORUM_URL, |
| 8 | + GITHUB_URL, |
| 9 | + LINKEDIN_URL, |
| 10 | + REFLEX_DOMAIN, |
| 11 | + REFLEX_DOMAIN_URL, |
| 12 | + TWITTER_CREATOR, |
| 13 | + TWITTER_URL, |
| 14 | +) |
6 | 15 |
|
7 | 16 | TITLE = "The unified platform to build and scale enterprise apps." |
8 | 17 | ONE_LINE_DESCRIPTION = "Build with AI, iterate in Python, deploy to any cloud. Reflex is the platform for full-stack web apps and internal tools." |
@@ -197,6 +206,14 @@ def website_organization_jsonld(url: str = REFLEX_DOMAIN_URL) -> rx.Component: |
197 | 206 | "name": "Reflex", |
198 | 207 | "url": REFLEX_DOMAIN_URL, |
199 | 208 | "logo": f"{org_url}/meta/apple-touch-icon.png", |
| 209 | + "description": "Open-source Python framework for building full-stack web applications. Deploy to any cloud with AI-powered code generation.", |
| 210 | + "sameAs": [ |
| 211 | + GITHUB_URL, |
| 212 | + TWITTER_URL, |
| 213 | + DISCORD_URL, |
| 214 | + LINKEDIN_URL, |
| 215 | + FORUM_URL, |
| 216 | + ], |
200 | 217 | }, |
201 | 218 | { |
202 | 219 | "@type": "WebSite", |
@@ -262,13 +279,39 @@ def faq_jsonld(faq_schema: dict) -> rx.Component: |
262 | 279 |
|
263 | 280 |
|
264 | 281 | def pricing_jsonld(url: str) -> rx.Component: |
265 | | - """Create SoftwareApplication JSON-LD for the pricing page.""" |
| 282 | + """Create SoftwareApplication + Product JSON-LD for the pricing page.""" |
266 | 283 | data = { |
267 | 284 | "@context": "https://schema.org", |
268 | | - "@type": "SoftwareApplication", |
269 | | - "name": "Reflex", |
270 | | - "applicationCategory": "DeveloperApplication", |
271 | | - "description": "The platform to build and scale enterprise apps. Python full-stack framework for web apps and internal tools.", |
272 | | - "url": url, |
| 285 | + "@graph": [ |
| 286 | + { |
| 287 | + "@type": "SoftwareApplication", |
| 288 | + "name": "Reflex", |
| 289 | + "applicationCategory": "DeveloperApplication", |
| 290 | + "description": "The platform to build and scale enterprise apps. Python full-stack framework for web apps and internal tools.", |
| 291 | + "url": url, |
| 292 | + }, |
| 293 | + { |
| 294 | + "@type": "Product", |
| 295 | + "name": "Reflex Enterprise Platform", |
| 296 | + "brand": {"@type": "Brand", "name": "Reflex"}, |
| 297 | + "description": "Enterprise-grade fullstack app building platform with AI-powered code generation in pure Python. Includes dedicated support, SSO, on-prem deployment, and custom SLAs.", |
| 298 | + "offers": [ |
| 299 | + { |
| 300 | + "@type": "Offer", |
| 301 | + "price": "0", |
| 302 | + "priceCurrency": "USD", |
| 303 | + "name": "Free", |
| 304 | + "availability": "https://schema.org/InStock", |
| 305 | + }, |
| 306 | + { |
| 307 | + "@type": "Offer", |
| 308 | + "price": "Custom", |
| 309 | + "priceCurrency": "USD", |
| 310 | + "name": "Enterprise", |
| 311 | + "availability": "https://schema.org/PreOrder", |
| 312 | + }, |
| 313 | + ], |
| 314 | + }, |
| 315 | + ], |
273 | 316 | } |
274 | 317 | return rx.el.script(json.dumps(data), type="application/ld+json") |
0 commit comments