@@ -4,23 +4,17 @@ import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
44import Layout from '@theme/Layout' ;
55import HomepageFeatures from '@site/src/components/HomepageFeatures' ;
66import Heading from '@theme/Heading' ;
7- import { useState } from 'react' ;
8- import ExecutionEnvironment from '@docusaurus/ExecutionEnvironment' ;
97import styles from './index.module.css' ;
108
9+ const LIVE_DEMO_IFRAME_URL = `https://demo.adminforth.dev/overview?autologin=${ encodeURIComponent ( 'demo@adminfoth.dev:demo' ) } ` ;
10+
1111
1212const images = [
1313 {
1414 original : require ( '@site/static/img/previews/login_form.png' ) . default ,
1515 title : 'Authentication and Authorization' ,
1616 link : '/docs/tutorial/gettingStarted' ,
17- description : 'OWASP-Compliant Sign-In already there'
18- } ,
19- {
20- original : require ( '@site/static/img/previews/users_management.png' ) . default ,
21- title : 'Users management' ,
22- link : '/docs/tutorial/gettingStarted' ,
23- description : 'Manage users and roles with ease, extend as you like'
17+ description : 'OWASP-Compliant Sign-In done for you'
2418 } ,
2519 {
2620 original : require ( '@site/static/img/previews/sso.png' ) . default ,
@@ -29,22 +23,46 @@ const images = [
2923 description : 'RFC 6749 SSO plugin with premade Google, Github, Facebook, Keycloak, Microsoft or any custom OAuth2 adapter'
3024 } ,
3125 {
32- original : require ( '@site/static/img/previews/ai_complete.png' ) . default ,
33- title : 'AI autocomplete Plugin - write with ChatGPT' ,
34- link : '/docs/tutorial/Plugins/text-complete/' ,
35- description : 'Provide your OpenAI API key to autocomplete plugin and AI will help you to write your content using record context'
26+ original : require ( '@site/static/img/previews/2fa_plugin.png' ) . default ,
27+ title : '2FA Plugin - secure your admin panel' ,
28+ link : '/docs/tutorial/Plugins/TwoFactorsAuth/' ,
29+ description : 'RFC 6238-Compliant TOTP-Based & WebAuthn PassKeys 2FA will add additional security layer (login and preferred actions)'
30+ } ,
31+ {
32+ original : require ( '@site/static/img/previews/branding.png' ) . default ,
33+ title : 'Branding and theming' ,
34+ link : '/docs/tutorial/Customization/branding/' ,
35+ description : 'Upload your logo, change colors, update titles, make the look to match your brand'
36+ } ,
37+ {
38+ original : require ( '@site/static/img/previews/dashboard.png' ) . default ,
39+ title : 'Custom Pages and Dashboards' ,
40+ link : '/docs/tutorial/Customization/customPages/' ,
41+ description : 'Create your own pages and dashboards with Vue3 components. Add any additional npm packages and extend your admin panel as you like'
42+ } ,
43+ {
44+ original : require ( '@site/static/img/previews/users_management.png' ) . default ,
45+ title : 'Users management' ,
46+ link : '/docs/tutorial/gettingStarted' ,
47+ description : 'Manage users and roles with ease, extend as you like'
48+ } ,
49+ {
50+ original : require ( '@site/static/img/previews/translate.png' ) . default ,
51+ title : 'LLM-based Translation Plugin - translate your admin and External apps' ,
52+ link : '/docs/tutorial/Plugins/i18n/' ,
53+ description : 'Use LLMs to translate any external apps (Mobile, Nuxt, etc.) OR/AND admin panel with minimal effort. Any language supported'
3654 } ,
3755 {
3856 original : require ( '@site/static/img/previews/auditlog.png' ) . default ,
3957 title : 'Audit log Plugin - know who did what' ,
4058 link : '/docs/tutorial/Plugins/AuditLog/' ,
41- description : 'Attach Audit log plugin with couple of lines, create table for logs and track your users actions '
59+ description : 'Attach Audit log plugin with couple of lines, create table for logs and track full history of any data changes '
4260 } ,
4361 {
44- original : require ( '@site/static/img/previews/2fa_plugin .png' ) . default ,
45- title : '2FA Plugin - secure your admin panel ' ,
46- link : '/docs/tutorial/Plugins/TwoFactorsAuth /' ,
47- description : 'RFC 6238-Compliant TOTP-Based 2FA will add additional security layer to your admin panel. Also supports passkeys '
62+ original : require ( '@site/static/img/previews/ai_complete .png' ) . default ,
63+ title : 'AI autocomplete Plugin - write with LLMs ' ,
64+ link : '/docs/tutorial/Plugins/text-complete /' ,
65+ description : 'Provide your LLM API key to autocomplete plugin and AI will help you to write your content using record context '
4866 } ,
4967 {
5068 original : require ( '@site/static/img/previews/dark.png' ) . default ,
@@ -58,18 +76,7 @@ const images = [
5876 link : '/docs/tutorial/Plugins/05-0-upload/' ,
5977 description : 'Upload files to Amazon S3 with instantiating plugin and providing your S3 credentials'
6078 } ,
61- {
62- original : require ( '@site/static/img/previews/dashboard.png' ) . default ,
63- title : 'Custom Pages and Dashboards' ,
64- link : '/docs/tutorial/Customization/customPages/' ,
65- description : 'Create your own pages and dashboards with Vue3 components. Add any additional npm packages and extend your admin panel as you like'
66- } ,
67- {
68- original : require ( '@site/static/img/previews/branding.png' ) . default ,
69- title : 'Branding and theming' ,
70- link : '/docs/tutorial/Customization/branding/' ,
71- description : 'Upload your logo, change colors, update titles, make the look to match your brand'
72- } ,
79+
7380 {
7481 original : require ( '@site/static/img/previews/filters.png' ) . default ,
7582 title : 'Filters to query your data' ,
@@ -100,12 +107,6 @@ const images = [
100107 link : '/docs/tutorial/Plugins/import-export/' ,
101108 description : 'Export tables to CSV and import from CSV with one click. Move data between environments easily'
102109 } ,
103- {
104- original : require ( '@site/static/img/previews/translate.png' ) . default ,
105- title : 'AI Translation Plugin - translate your admin and External apps' ,
106- link : '/docs/tutorial/Plugins/i18n/' ,
107- description : 'Use LLMs to translate any external apps (Mobile, Nuxt, etc.) OR/AND admin panel with minimal effort. Any language supported'
108- } ,
109110 {
110111 original : require ( '@site/static/img/previews/bulk-ai-flow.png' ) . default ,
111112 title : 'Bulk AI Plugin - generate data for your resources' ,
@@ -129,21 +130,13 @@ const images = [
129130
130131function HomepageHeader ( ) {
131132 const { siteConfig} = useDocusaurusContext ( ) ;
132- // read theme from docusarus
133-
134- const [ theme , setTheme ] = useState ( 'light' ) ;
135-
136- if ( ExecutionEnvironment . canUseDOM ) {
137-
138-
139- }
140133
141134 return (
142135 < >
143136 < header className = { clsx ( 'hero' , styles . heroBanner ) } >
144137 < div className = "container" >
145138 < Heading as = "h1" className = { clsx ( 'hero__title' , styles . heroBannerTitle ) } >
146- The Free, Open-Source Admin Framework for Node, Vue & Tailwind
139+ Open-Source Admin Framework with a native Agent
147140 </ Heading >
148141 < p className = "hero__subtitle" > { siteConfig . tagline } </ p >
149142
@@ -183,15 +176,11 @@ function HomepageHeader() {
183176 < div className = "laptop_container" >
184177 < div className = "laptop" >
185178 < div className = "laptop__screen" >
186- < img
187- src = { {
188- light : require ( '@site/static/img/preview_light.png' ) . default ,
189- dark : require ( '@site/static/img/preview_dark.png' ) . default ,
190- } [ theme ]
191- } alt = "Screen" />
192- < div className = "theme_switcher" onClick = { ( ) => setTheme ( theme === 'light' ? 'dark' : 'light' ) } >
193-
194- </ div >
179+ < iframe
180+ className = { styles . demoFrame }
181+ src = { LIVE_DEMO_IFRAME_URL }
182+ title = "AdminForth live demo"
183+ />
195184 </ div >
196185 < div className = "laptop__bottom" >
197186 < div className = "laptop__under" > </ div >
0 commit comments