Skip to content

Commit 687cdfe

Browse files
committed
feat(docs): home page concept - agents build it, agents run it, with full plugin catalogue
1 parent 2dcb91d commit 687cdfe

5 files changed

Lines changed: 372 additions & 5 deletions

File tree

‎adminforth/documentation/docusaurus.config.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import type * as Preset from '@docusaurus/preset-classic';
55

66
const config: Config = {
77
title: 'Agent-first open-source admin panel framework',
8-
tagline: 'Build robust and powerful agentic back-office panels for your projects while maintaining full control over the code.',
8+
tagline: 'A back-office framework for developers who build with agents, and admins who work with agents inside the panel.',
99
favicon: 'img/favicon.png',
1010

1111
// Set the production url of your site here

‎adminforth/documentation/src/css/custom.css‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@
1717
/* --ifm-color-secondary: rgb(144 144 144); */
1818

1919
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.05);
20+
21+
/* home page concept sections */
22+
--af-accent-underline: rgba(26, 86, 219, 0.14);
23+
--af-card-bg: #ffffff;
24+
--af-card-soft: #f4f7fb;
2025
}
2126

2227
[data-theme='dark'] {
@@ -30,6 +35,11 @@
3035
--ifm-color-primary-lighter: rgba(66, 143, 255, 1); /* Even Lighter */
3136
--ifm-color-primary-lightest: rgba(89, 167, 255, 1); /* Lightest Blue */
3237
--docusaurus-highlighted-code-line-bg: rgba(255, 255, 255, 0.1);
38+
39+
/* home page concept sections */
40+
--af-accent-underline: rgba(36, 104, 255, 0.28);
41+
--af-card-bg: #1b1d22;
42+
--af-card-soft: #232630;
3343
}
3444

3545
.code-block-diff-add-line {

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

Lines changed: 196 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,4 +107,199 @@
107107
width: 100%;
108108
height: 70px;
109109
object-fit: contain;
110-
}
110+
}
111+
/* ---------------------------------------------------------------------------
112+
Concept sections: agents build it, agents run it.
113+
Colours come from Infima tokens, so light/dark follow the navbar toggle;
114+
only the few surfaces Infima has no token for are restated for dark.
115+
--------------------------------------------------------------------------- */
116+
117+
.heroAccent {
118+
color: var(--ifm-color-primary);
119+
background: linear-gradient(transparent 68%, var(--af-accent-underline) 68%);
120+
}
121+
122+
.heroSubtitle {
123+
max-width: 58ch;
124+
margin-inline: auto;
125+
font-size: 1.15rem;
126+
line-height: 1.6;
127+
color: var(--ifm-color-emphasis-700);
128+
}
129+
130+
.sectionTitle {
131+
font-size: 2rem;
132+
text-align: center;
133+
margin-bottom: 0.75rem;
134+
}
135+
136+
.sectionLede {
137+
max-width: 62ch;
138+
margin: 0 auto 2.5rem;
139+
text-align: center;
140+
color: var(--ifm-color-emphasis-700);
141+
}
142+
143+
/* --- two audiences --------------------------------------------------------- */
144+
145+
.agentSection {
146+
padding: 3.5rem 0 1rem;
147+
}
148+
149+
.agentGrid {
150+
display: grid;
151+
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
152+
gap: 1.5rem;
153+
max-width: 1100px;
154+
margin-inline: auto;
155+
}
156+
157+
.agentCard {
158+
border: 1px solid var(--ifm-color-emphasis-200);
159+
border-radius: 14px;
160+
background: var(--af-card-bg);
161+
padding: 1.75rem;
162+
display: flex;
163+
flex-direction: column;
164+
}
165+
166+
.agentWho {
167+
display: inline-block;
168+
align-self: flex-start;
169+
font-family: var(--ifm-font-family-monospace);
170+
font-size: 0.7rem;
171+
letter-spacing: 0.12em;
172+
text-transform: uppercase;
173+
color: var(--ifm-color-primary);
174+
background: var(--af-accent-underline);
175+
padding: 0.25rem 0.55rem;
176+
border-radius: 5px;
177+
margin-bottom: 0.9rem;
178+
}
179+
180+
.agentCardTitle {
181+
font-size: 1.25rem;
182+
margin-bottom: 0.6rem;
183+
}
184+
185+
.agentCardBody {
186+
color: var(--ifm-color-emphasis-700);
187+
margin-bottom: 1rem;
188+
}
189+
190+
.fileChips {
191+
display: flex;
192+
flex-wrap: wrap;
193+
gap: 0.5rem;
194+
list-style: none;
195+
margin: 0 0 1rem;
196+
padding: 0;
197+
}
198+
199+
.fileChips li {
200+
font-family: var(--ifm-font-family-monospace);
201+
font-size: 0.8rem;
202+
color: var(--ifm-color-emphasis-800);
203+
background: var(--af-card-soft);
204+
border: 1px solid var(--ifm-color-emphasis-200);
205+
border-radius: 7px;
206+
padding: 0.4rem 0.7rem;
207+
}
208+
209+
.arrowList {
210+
list-style: none;
211+
margin: 0 0 1rem;
212+
padding: 0;
213+
display: grid;
214+
gap: 0.55rem;
215+
color: var(--ifm-color-emphasis-700);
216+
}
217+
218+
.arrowList li {
219+
position: relative;
220+
padding-left: 1.2rem;
221+
}
222+
223+
.arrowList li::before {
224+
content: '\2192';
225+
position: absolute;
226+
left: 0;
227+
color: var(--ifm-color-primary);
228+
}
229+
230+
.agentLink {
231+
margin-top: auto;
232+
font-weight: 600;
233+
align-self: flex-start;
234+
}
235+
236+
/* --- plugin catalogue ------------------------------------------------------ */
237+
238+
.pluginSection {
239+
padding: 3rem 0 2rem;
240+
}
241+
242+
.pluginGroups {
243+
display: grid;
244+
grid-template-columns: repeat(auto-fit, minmax(232px, 1fr));
245+
gap: 2rem 2.25rem;
246+
max-width: 1160px;
247+
margin-inline: auto;
248+
}
249+
250+
.pluginGroupTitle {
251+
font-family: var(--ifm-font-family-monospace);
252+
font-size: 0.75rem;
253+
font-weight: 500;
254+
letter-spacing: 0.08em;
255+
text-transform: uppercase;
256+
color: var(--ifm-color-emphasis-600);
257+
padding-bottom: 0.6rem;
258+
border-bottom: 1px solid var(--ifm-color-emphasis-200);
259+
margin-bottom: 0.9rem;
260+
}
261+
262+
.pluginList {
263+
list-style: none;
264+
margin: 0;
265+
padding: 0;
266+
display: grid;
267+
gap: 0.7rem;
268+
}
269+
270+
.pluginList a {
271+
font-weight: 600;
272+
font-size: 0.92rem;
273+
}
274+
275+
.pluginDescription {
276+
display: block;
277+
font-size: 0.82rem;
278+
line-height: 1.5;
279+
color: var(--ifm-color-emphasis-600);
280+
}
281+
282+
.pluginStandard {
283+
display: block;
284+
font-family: var(--ifm-font-family-monospace);
285+
font-size: 0.72rem;
286+
color: var(--ifm-color-primary);
287+
margin-top: 0.15rem;
288+
}
289+
290+
@media screen and (max-width: 996px) {
291+
.sectionTitle {
292+
font-size: 1.6rem;
293+
}
294+
295+
.agentSection,
296+
.pluginSection {
297+
padding: 2rem 0 1rem;
298+
}
299+
}
300+
301+
.terminalComment {
302+
margin-top: 0.4rem;
303+
font-size: 0.85rem;
304+
opacity: 0.6;
305+
}

0 commit comments

Comments
 (0)