Skip to content

Commit 1f07dc2

Browse files
committed
docs: update adminforthLandingPage
1 parent 5184336 commit 1f07dc2

File tree

9 files changed

+30
-11
lines changed

9 files changed

+30
-11
lines changed

adminforth/documentation/src/css/custom.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,8 +207,8 @@ pre code:has(.code-block-diff-remove-line) {
207207
.laptop .theme_switcher {
208208
position: absolute;
209209
cursor: pointer;
210-
top: 2.56vw;
211-
right: 5.28vw;
210+
top: 2.84vw;
211+
right: 5.98vw;
212212
width: 2vw;
213213
height: 2vw;
214214
font-size: 1.5vw;

adminforth/documentation/src/pages/index.module.css

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,22 @@
3232
}
3333

3434

35+
.card-demo {
36+
max-width: 500px;
37+
}
38+
39+
.cardsWrapper {
40+
display: grid;
41+
grid-template-columns: repeat(3, minmax(300px, 500px));
42+
gap: 4rem;
43+
justify-content: center;
44+
padding: 1rem;
45+
46+
@media (max-width: 1200px) {
47+
grid-template-columns: repeat(2, minmax(300px, 500px));
48+
}
49+
@media (max-width: 768px) {
50+
grid-template-columns: repeat(1, minmax(300px, 500px));
51+
}
52+
53+
}

adminforth/documentation/src/pages/index.tsx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ const images = [
4444
original: require('@site/static/img/previews/2fa_plugin.png').default,
4545
title: '2FA Plugin - secure your admin panel',
4646
link: '/docs/tutorial/Plugins/TwoFactorsAuth/',
47-
description: 'RFC 6238-Compliant TOTP-Based 2FA will add additional security layer to your admin panel'
47+
description: 'RFC 6238-Compliant TOTP-Based 2FA will add additional security layer to your admin panel. Also supports passkeys'
4848
},
4949
{
5050
original: require('@site/static/img/previews/dark.png').default,
@@ -105,7 +105,13 @@ const images = [
105105
title: 'AI Translation Plugin - translate your admin and External apps',
106106
link: '/docs/tutorial/Plugins/i18n/',
107107
description: 'Use LLMs to translate any external apps (Mobile, Nuxt, etc.) OR/AND admin panel with minimal effort. Any language supported'
108-
}
108+
},
109+
{
110+
original: require('@site/static/img/previews/bulk-ai-flow.png').default,
111+
title: 'Bulk AI Plugin - generate data for your resources',
112+
link: '/docs/tutorial/Plugins/bulk-ai-flow/',
113+
description: 'Use LLMs to fill records with generated data or images. For example, generate product descriptions based on product name and image or generate products images'
114+
},
109115
];
110116

111117

@@ -201,13 +207,7 @@ export default function Home(): JSX.Element {
201207
What it can do for you
202208
</Heading>
203209

204-
<div style={{
205-
display: 'flex',
206-
flexWrap: 'wrap',
207-
gap: '4rem',
208-
justifyContent: 'center',
209-
padding: '1rem',
210-
}}>
210+
<div className={styles.cardsWrapper}>
211211
{images.map((item, index) => (
212212
<div className="card-demo" key={`feature${index}`}>
213213
<div className="card shadow--md" style={{
-71.5 KB
Loading
-101 KB
Loading
-91.7 KB
Loading
588 KB
Loading
-15.1 KB
Loading
-19.4 KB
Loading

0 commit comments

Comments
 (0)