Skip to content

Commit da1ad9d

Browse files
committed
landing page improvement
1 parent dd31a2a commit da1ad9d

File tree

10 files changed

+189
-26
lines changed

10 files changed

+189
-26
lines changed

Changelog.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [v1.5.11] - next
89

9-
## [v1.5.9] - next
10+
11+
## [v1.5.10]
1012

1113
### Changed
1214

@@ -16,13 +18,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1618
- show hook is now called as it was when user edits the page
1719
- fixed showRow in ShowTable.vue
1820
- if not ab le to connect postgres, don't crash the app
21+
- fix LastPass and other passowrd managers who try make autocomplete on user creation form
1922

2023
### Improved
2124
- reduce stdout output from AdminForth itself
2225

2326
### Added
2427
- AFCL Chart components
2528
- add requestUrl param to hooks extra
29+
- `npx adminforth create-app --app-name myadmin --db sqlite://.db.sqlite`
2630

2731
## [v1.5.8]
2832

adminforth/commands/createApp/utils.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -165,14 +165,14 @@ async function installDependencies(ctx, cwd) {
165165
}
166166

167167
function generateFinalInstructions(skipPrismaSetup) {
168-
let instruction = '⏭️ Run the following commands to get started:';
168+
let instruction = '⏭️ Run the following commands to get started:\n';
169169
if (!skipPrismaSetup)
170170
instruction += `
171-
${chalk.cyan('$ npm run makemigration -- --name init')}
172-
${chalk.dim('// runs "npx prisma migrate dev --name init" to generate and apply initial migration')}`;
171+
${chalk.dim('// runs "npx prisma migrate dev --name init" to generate and apply initial migration')};
172+
${chalk.cyan('$ npm run makemigration -- --name init')}`;
173173
instruction += `
174+
${chalk.dim('\n// starts dev server with tsx watch for hot-reloading')}\n
174175
${chalk.cyan('$ npm start')}
175-
${chalk.dim('// starts dev server with tsx watch for hot-reloading')}\n
176176
`;
177177

178178
instruction += '😉 Happy coding!';

adminforth/documentation/package-lock.json

Lines changed: 12 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

adminforth/documentation/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
"prism-react-renderer-monorepo": "github:formidablelabs/prism-react-renderer",
2626
"react": "^18.0.0",
2727
"react-dom": "^18.0.0",
28-
"react-image-gallery": "^1.3.0"
28+
"react-image-gallery": "^1.3.0",
29+
"react-terminal-ui": "^1.3.0"
2930
},
3031
"devDependencies": {
3132
"@docusaurus/module-type-aliases": "3.4.0",

adminforth/documentation/src/css/custom.css

Lines changed: 128 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,4 +242,132 @@ pre code:has(.code-block-diff-remove-line) {
242242

243243
.laptop .theme_switcher:hover {
244244
opacity: 0.3;
245+
}
246+
247+
248+
.fakeButtons {
249+
height: 10px;
250+
width: 10px;
251+
border-radius: 50%;
252+
background-color: #ff3b47;
253+
display: inline-block;
254+
}
255+
.fakeButtons:hover{
256+
filter:brightness(1.1)
257+
}
258+
259+
.fakeMinimize {
260+
background-color: #ffc100;
261+
border-color: #9d802c;
262+
}
263+
264+
.fakeZoom {
265+
background-color: #00d742;
266+
border-color: #049931;
267+
}
268+
269+
.fakeMenu {
270+
gap: 5px;
271+
padding-left: 10px;
272+
width: 100%;
273+
box-sizing: border-box;
274+
height: 25px;
275+
background-color: #bbb;
276+
margin: 0 auto;
277+
border-top-right-radius: 5px;
278+
border-top-left-radius: 5px;
279+
display: flex;
280+
align-items: center;
281+
}
282+
283+
284+
html[data-theme="dark"] .fakeScreen {
285+
background-color: #474747d1;
286+
}
287+
288+
.fakeScreen {
289+
background-color: #151515d1;
290+
box-sizing: border-box;
291+
width: 100%;
292+
margin: 0 auto;
293+
padding: 20px;
294+
border-bottom-left-radius: 5px;
295+
border-bottom-right-radius: 5px;
296+
box-shadow: 5px 5px 30px rgba(0, 0, 0, 0.5)
297+
}
298+
299+
.line1 {
300+
color: white;
301+
font-family: 'Consolas', monospace;
302+
text-align: left;
303+
margin: 0;
304+
305+
}
306+
307+
.terminalWrapper {
308+
width: 400px;
309+
max-width: 100vw
310+
}
311+
312+
.button--secondary[class] {
313+
background-color: #4db5ed;
314+
color: white !important;
315+
border: 0;
316+
}
317+
318+
319+
.button--primary[class] {
320+
color: white !important;
321+
322+
}
323+
324+
.hero__title {
325+
font-size: 2.5rem;
326+
}
327+
328+
.hero__subtitle {
329+
font-size: 1.3rem;
330+
}
331+
332+
.heroRow {
333+
display: flex;
334+
flex-direction: row;
335+
justify-content: center;
336+
gap: 80px;
337+
max-width: 80vw;
338+
width: 70vw;
339+
margin-left: auto;
340+
margin-right: auto;
341+
margin-top: 28px;
342+
margin-bottom: 10px;
343+
344+
}
345+
346+
@media screen and (max-width: 600px) {
347+
.heroRow {
348+
flex-direction: column;
349+
gap: 30px;
350+
width: 80vw;
351+
}
352+
353+
.heroRow .button {
354+
width: 100%;
355+
}
356+
.terminalWrapper {
357+
max-width: 100%;
358+
margin-bottom: 20px;
359+
}
360+
361+
.laptop {
362+
width: 80vw;
363+
}
364+
365+
.theme_switcher {
366+
display: none !important;
367+
}
368+
}
369+
370+
.buttons_src-pages-index-module {
371+
display: flex;
372+
gap: 10px;
245373
}

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,4 @@
3131
flex-wrap: wrap;
3232
}
3333

34+

adminforth/documentation/src/pages/index.tsx

Lines changed: 33 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -92,19 +92,36 @@ function HomepageHeader() {
9292
Create Admin Panels faster on Node and Vue with AdminForth Framework
9393
</Heading>
9494
<p className="hero__subtitle">{siteConfig.tagline}</p>
95-
<div className={styles.buttons}>
96-
<Link
97-
className="button button--secondary button--outline button--lg"
98-
to="/docs/tutorial/gettingStarted">
99-
Get started - 5min ⏱️
100-
</Link>
101-
102-
<Link
103-
className="button button--primary button--lg"
104-
to="https://demo.adminforth.dev/">
105-
Live Demo
106-
</Link>
95+
96+
<div class="heroRow">
97+
<div className={styles.buttons}>
98+
<Link
99+
className="button button--secondary button--outline button--lg"
100+
to="/docs/tutorial/gettingStarted">
101+
Get started
102+
</Link>
103+
104+
<Link
105+
className="button button--primary button--lg"
106+
to="https://demo.adminforth.dev/">
107+
Live Demo
108+
</Link>
109+
</div>
110+
111+
<div className='terminalWrapper'>
112+
<div className="fakeMenu">
113+
<div className="fakeButtons fakeClose"></div>
114+
<div className="fakeButtons fakeMinimize"></div>
115+
<div className="fakeButtons fakeZoom"></div>
116+
</div>
117+
<div className="fakeScreen">
118+
<p className="line1"><span
119+
style={{userSelect: 'none'}}
120+
>$&nbsp;</span><span style={{ opacity:0.6 }}>npx adminforth create-app</span></p>
121+
</div>
122+
</div>
107123
</div>
124+
108125
</div>
109126
</header>
110127

@@ -135,13 +152,15 @@ function HomepageHeader() {
135152

136153
export default function Home(): JSX.Element {
137154
const {siteConfig} = useDocusaurusContext();
155+
138156
return (
139157
<Layout
140158
title={`${siteConfig.title}`}
141159
description="OpenSource Tailwind Admin Panel extendable with Vue3 and typescript!">
142160
<HomepageHeader />
143161
<main>
144162

163+
145164
<Heading as="h2" className="hero__title text--center">
146165
What it can do for you
147166
</Heading>
@@ -154,7 +173,7 @@ export default function Home(): JSX.Element {
154173
padding: '1rem',
155174
}}>
156175
{images.map((item, index) => (
157-
<div className="card-demo">
176+
<div className="card-demo" key={`feature${index}`}>
158177
<div className="card shadow--md" style={{
159178
maxWidth: '500px',
160179
}}>
@@ -184,10 +203,8 @@ export default function Home(): JSX.Element {
184203
</div>
185204
</div>
186205
))}
187-
188-
189206
</div>
190-
207+
191208
<HomepageFeatures />
192209

193210
</main>

adminforth/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

adminforth/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "adminforth",
3-
"version": "1.5.9-next.12",
3+
"version": "1.5.10",
44
"description": "OpenSource Vue3 powered forth-generation admin panel",
55
"main": "dist/index.js",
66
"module": "dist/index.js",

adminforth/spa/src/afcl/Select.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
@click="inputClick"
1010
@input="inputInput"
1111
class="block w-full pl-3 pr-10 py-2.5 border border-gray-300 rounded-md leading-5 bg-gray-50 placeholder-gray-500 sm:text-sm transition duration-150 ease-in-out dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white focus:ring-lightPrimary focus:border-lightPrimary dark:focus:ring-darkPrimary dark:focus:border-darkPrimary"
12+
autocomplete="off" data-custom="no-autofill"
1213
:placeholder="
1314
selectedItems.length && !multiple ? '' : (showDropdown ? $t('Search') : placeholder || $t('Select...'))
1415
"

0 commit comments

Comments
 (0)