|
| 1 | +import PageLayout, { generatePageMetadata } from '@/components/PageLayout' |
| 2 | +import { getVersions } from '@/lib/data' |
| 3 | +import type { Metadata } from 'next' |
| 4 | + |
| 5 | +export const metadata: Metadata = generatePageMetadata( |
| 6 | + 'Demo installations', |
| 7 | + 'phpMyFAQ 4.0 demo versions' |
| 8 | +) |
| 9 | + |
| 10 | +export default function DemoPage() { |
| 11 | + const versions = getVersions() |
| 12 | + |
| 13 | + const fallback = { |
| 14 | + stable: '4.0.13', |
| 15 | + development: '4.1.0-alpha.3', |
| 16 | + } |
| 17 | + |
| 18 | + const stableVersion = versions?.stable || fallback.stable |
| 19 | + const devVersion = versions?.development || fallback.development |
| 20 | + |
| 21 | + return ( |
| 22 | + <PageLayout title="Demo" description="phpMyFAQ 4.0 demo versions"> |
| 23 | + <p className="lead">You can test all these phpMyFAQ installations with the following credentials:</p> |
| 24 | + |
| 25 | + <div className="row mb-4"> |
| 26 | + <div className="col-md-6 col-12"> |
| 27 | + <h4>Admin user</h4> |
| 28 | + <dl className="row"> |
| 29 | + <dt className="col-sm-3">Username</dt> |
| 30 | + <dd className="col-sm-9"><code>demoadmin</code></dd> |
| 31 | + <dt className="col-sm-3">Password</dt> |
| 32 | + <dd className="col-sm-9"><code>demoadmin</code></dd> |
| 33 | + </dl> |
| 34 | + </div> |
| 35 | + <div className="col-md-6 col-12"> |
| 36 | + <h4>Normal user</h4> |
| 37 | + <dl className="row"> |
| 38 | + <dt className="col-sm-3">Username</dt> |
| 39 | + <dd className="col-sm-9"><code>demouser</code></dd> |
| 40 | + <dt className="col-sm-3">Password</dt> |
| 41 | + <dd className="col-sm-9"><code>demouser</code></dd> |
| 42 | + </dl> |
| 43 | + </div> |
| 44 | + </div> |
| 45 | + |
| 46 | + <div className="row gy-4"> |
| 47 | + <div className="col-md-6 col-12"> |
| 48 | + <h2 className="h4">phpMyFAQ {stableVersion}</h2> |
| 49 | + <ul className="list-unstyled text-center m-0"> |
| 50 | + <li> |
| 51 | + <a className="btn btn-primary" rel="nofollow" target="_blank" href="https://roy.demo.phpmyfaq.de/"> |
| 52 | + phpMyFAQ {stableVersion} |
| 53 | + </a> |
| 54 | + </li> |
| 55 | + </ul> |
| 56 | + </div> |
| 57 | + <div className="col-md-6 col-12"> |
| 58 | + <h2 className="h4">phpMyFAQ {devVersion}</h2> |
| 59 | + <ul className="list-unstyled text-center m-0"> |
| 60 | + <li>n/a{/* |
| 61 | + <a className=\"btn btn-primary\" rel=\"nofollow\" target=\"_blank\" href=\"https://moss.demo.phpmyfaq.de/\"> |
| 62 | + phpMyFAQ {devVersion} |
| 63 | + </a> |
| 64 | + */} |
| 65 | + </li> |
| 66 | + </ul> |
| 67 | + </div> |
| 68 | + </div> |
| 69 | + |
| 70 | + <div className="row mt-4"> |
| 71 | + <div className="col-12"> |
| 72 | + <p>You can do whatever you want with these installations, the installations will be reset every day.</p> |
| 73 | + </div> |
| 74 | + </div> |
| 75 | + </PageLayout> |
| 76 | + ) |
| 77 | +} |
0 commit comments