+
+ 🎉
+
+
+ Congratulations! You have successfully subscribed to Flet
+ newsletter.
+
+
+ )
+ } else {
+ // signup form
+ return (
+
+ )
+ }
+ }}
+
+
+ )
}
diff --git a/src/pages/index.js b/src/pages/index.js
index 173890bd..43c28e4f 100644
--- a/src/pages/index.js
+++ b/src/pages/index.js
@@ -1,127 +1,268 @@
-import React from 'react';
-import clsx from 'clsx';
-import Layout from '@theme/Layout';
-import Link from '@docusaurus/Link';
-import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
-import useBaseUrl from '@docusaurus/useBaseUrl';
-import styles from './styles.module.css';
-import Tabs from '@theme/Tabs';
-import TabItem from '@theme/TabItem';
+import React from 'react'
+import clsx from 'clsx'
+import Layout from '@theme/Layout'
+import Link from '@docusaurus/Link'
+import useDocusaurusContext from '@docusaurus/useDocusaurusContext'
+import useBaseUrl from '@docusaurus/useBaseUrl'
+import styles from './styles.module.css'
+import Tabs from '@theme/Tabs'
+import TabItem from '@theme/TabItem'
import SignupForm from '@site/src/components/signup-form'
-import CodeBlock from '@theme/CodeBlock';
+import CodeBlock from '@theme/CodeBlock'
+import Translate, { translate } from '@docusaurus/Translate'
const features = [
{
- title: <>From idea to app in minutes>,
+ title: (
+ <>
+
+ From idea to app in minutes
+
+ >
+ ),
imageUrl: 'img/pages/home/feature-bolt.svg',
description: (
<>
- An internal tool or a dashboard for your team, weekend project, data entry form, kiosk app or high-fidelity prototype
- - Flet is an ideal framework to quickly hack a great-looking interactive apps to serve a group of users.
+
+ An internal tool or a dashboard for your team, weekend project, data
+ entry form, kiosk app or high-fidelity prototype - Flet is an ideal
+ framework to quickly hack a great-looking interactive apps to serve a
+ group of users.
+
>
),
},
{
- title: <>Simple architecture>,
+ title: (
+ <>
+
+ Simple architecture
+
+ >
+ ),
imageUrl: 'img/pages/home/feature-house.svg',
description: (
<>
- No more complex architecture with JavaScript frontend, REST API backend, database, cache, etc.
- With Flet you just write a monolith stateful app in Python only and get multi-user, realtime Single-Page Application (SPA).
+
+ No more complex architecture with JavaScript frontend, REST API
+ backend, database, cache, etc. With Flet you just write a monolith
+ stateful app in Python only and get multi-user, realtime Single-Page
+ Application (SPA).
+
>
),
},
{
- title: <>Batteries included>,
+ title: (
+ <>
+
+ Batteries included
+
+ >
+ ),
imageUrl: 'img/pages/home/feature-battery.svg',
description: (
<>
- To start developing with Flet, you just need your favorite IDE or text editor.
- No SDKs, no thousands of dependencies, no complex tooling - Flet has built-in web server with assets hosting and desktop clients.
+
+ To start developing with Flet, you just need your favorite IDE or text
+ editor. No SDKs, no thousands of dependencies, no complex tooling -
+ Flet has built-in web server with assets hosting and desktop clients.
+
>
),
},
{
- title: <>Powered by Flutter>,
+ title: (
+ <>
+
+ Powered by Flutter
+
+ >
+ ),
imageUrl: 'img/pages/home/feature-flutter.svg',
description: (
<>
- Flet UI is built with Flutter, so your app looks professional and can be delivered to any platform.
- Flet simplifies Flutter model by combining smaller "widgets" into ready-to-use "controls" with imperative programming model.
+
+ Flet UI is built with
+ {' '}
+ Flutter
+
+ , so your app looks professional and can be delivered to any platform.
+ Flet simplifies Flutter model by combining smaller "widgets" into
+ ready-to-use "controls" with imperative programming model.
+
>
),
},
{
- title: <>Speaks your language>,
+ title: (
+ <>
+
+ Speaks your language
+
+ >
+ ),
imageUrl: 'img/pages/home/feature-language.svg',
description: (
<>
- Flet is language-agnostic, so anyone on your team could develop Flet apps in their favorite language. Python is already supported, Go, C# and others are coming next.
+
+ Flet is language-agnostic, so anyone on your team could develop Flet
+ apps in their favorite language.
+ {' '}
+ Python{' '}
+
+ is already supported, Go, C# and others are
+
+
+ {' '}
+
+ coming next.
+
+
>
),
},
{
- title: <>Deliver to any device>,
+ title: (
+ <>
+
+ Deliver to any device
+
+ >
+ ),
imageUrl: 'img/pages/home/feature-mobile.svg',
description: (
<>
- Deploy Flet app as a web app and view it in a browser. Package it as a standalone desktop app for Windows, macOS and Linux.
- Install it on mobile as PWA or view via Flet app for iOS and Android.
+
+ Deploy Flet app as a web app and view it in a browser. Package it as a
+ standalone desktop app for Windows, macOS and Linux. Install it on
+ mobile as
+ {' '}
+ PWA{' '}
+
+ or view via Flet app for iOS and Android.
+
>
),
},
-];
+]
function Feature({ imageUrl, title, description }) {
- const imgUrl = useBaseUrl(imageUrl);
+ const imgUrl = useBaseUrl(imageUrl)
return (
{imgUrl && (
-
+
)}
{title}
{description}
- );
+ )
}
function Home() {
- const context = useDocusaurusContext();
- const { siteConfig = {} } = context;
+ const context = useDocusaurusContext()
+ const { siteConfig = {} } = context
return (
+ title={translate({
+ id: 'indexPage.title.heroTitle',
+ message: 'The fastest way to build Flutter apps in Python',
+ description: 'the title heroTitle description',
+ })}
+ description={translate({
+ id: 'indexPage.title.description',
+ message:
+ 'Build internal web apps quickly in the language you already know.',
+ description: 'the description heroSubTitle description',
+ })}>
-
+
-
-
+
+
{/*
It's amazing how little code you need to get amazing results!
*/}
-
+
-
-
{siteConfig.customFields.heroTitle}
-
{siteConfig.customFields.heroSubTitle}
+
+
+
+ The fastest way to build Flutter apps in Python
+
+
+
+
+ Flet enables developers to easily build realtime web, mobile
+ and desktop apps in Python. No frontend experience required.
+
+
- Get Started
+
+ Get Started
+
-
-
Main features
+
+
+
+ Main features
+
+
{features && features.length > 0 && (
-
-
+
+
{features.map((props, idx) => (
))}
@@ -133,7 +274,7 @@ function Home() {
- );
+ )
}
-export default Home;
\ No newline at end of file
+export default Home