feat(demo): add the jury guide and demonstration markers to the demo stand build
This commit is contained in:
1 parent
d365a05c96
commit
41206abbcf
32 files changed
+1096
-141
No files matched your search
@@ -0,0 +1,128 @@
|
||||
import { Page, Section, TextLink } from "../../../shared/ui";
|
||||
import {
|
||||
demonstrationItems,
|
||||
guideAccounts,
|
||||
guideLimits,
|
||||
guideRoles,
|
||||
workingItems,
|
||||
} from "../model/guide";
|
||||
import styles from "./jury-guide-page.module.css";
|
||||
|
||||
/** Step numbers run on across the role blocks, so the whole route reads as eight to thirteen steps. */
|
||||
function firstStepNumbers(): number[] {
|
||||
const starts: number[] = [];
|
||||
let next = 1;
|
||||
for (const role of guideRoles) {
|
||||
starts.push(next);
|
||||
next += role.steps.length;
|
||||
}
|
||||
return starts;
|
||||
}
|
||||
|
||||
/**
|
||||
* Memo for a jury member who opens the isolated demonstration stand without a
|
||||
* briefing. It lists the route with the screens to open, the accounts, and the
|
||||
* parts of the stand that are simulations. The route is shown only in a demo
|
||||
* build (see routes), so nothing here reaches a production build.
|
||||
*/
|
||||
export function JuryGuidePage() {
|
||||
const starts = firstStepNumbers();
|
||||
|
||||
return (
|
||||
<Page
|
||||
title="Гид для жюри"
|
||||
eyebrow="Демонстрационный стенд"
|
||||
lead="Короткий маршрут на синтетических данных: около восьми минут и две роли. Сначала прочитайте раздел «Что здесь демонстрационное»: он отделяет имитации от работающего функционала."
|
||||
width="wide"
|
||||
>
|
||||
<Section title="Что такое Lincodex">
|
||||
<p>
|
||||
Lincodex помогает работодателям находить IT-специалистов по подтвержденным навыкам.
|
||||
Заявленный уровень в анкете остается самооценкой, а категорию присваивает только результат
|
||||
проверки.
|
||||
</p>
|
||||
</Section>
|
||||
|
||||
<Section
|
||||
title="Маршрут за восемь минут"
|
||||
description="Блоки идут по ролям. Перед каждым блоком войдите под указанным логином. Кнопки выхода в интерфейсе пока нет, поэтому роли удобнее вести в двух окнах: обычном и приватном."
|
||||
>
|
||||
<ol className={styles.roles}>
|
||||
{guideRoles.map((role, index) => (
|
||||
<li key={role.title} className={styles.role}>
|
||||
<h3 className={styles["role-title"]}>{role.title}</h3>
|
||||
<p className={styles.account}>
|
||||
Логин: <code>{role.account}</code>
|
||||
</p>
|
||||
<ol className={styles.steps} start={starts[index]}>
|
||||
{role.steps.map((step) => (
|
||||
<li key={step.text}>
|
||||
<p>{step.text}</p>
|
||||
{step.link ? <TextLink to={step.link.to}>{step.link.label}</TextLink> : null}
|
||||
</li>
|
||||
))}
|
||||
</ol>
|
||||
</li>
|
||||
))}
|
||||
</ol>
|
||||
</Section>
|
||||
|
||||
<Section
|
||||
title="Что здесь демонстрационное"
|
||||
description="Имитации и подготовленные данные. Они показывают механику, но не измеряют навык человека."
|
||||
>
|
||||
<ul className={styles.list}>
|
||||
{demonstrationItems.map((item) => (
|
||||
<li key={item}>{item}</li>
|
||||
))}
|
||||
</ul>
|
||||
</Section>
|
||||
|
||||
<Section title="Что работает без имитации">
|
||||
<ul className={styles.list}>
|
||||
{workingItems.map((item) => (
|
||||
<li key={item}>{item}</li>
|
||||
))}
|
||||
</ul>
|
||||
</Section>
|
||||
|
||||
<Section title="Логины и пароль">
|
||||
<p>
|
||||
Пароль один для всех логинов ниже. Опубликованное значение по умолчанию - переменная
|
||||
DEMO_ACCOUNT_PASSWORD из файла deploy/demo/demo.env.example. Если организатор задал свой
|
||||
пароль, используйте его: он передается отдельно.
|
||||
</p>
|
||||
<div className={styles["table-wrap"]}>
|
||||
<table className={styles.table}>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">Логин</th>
|
||||
<th scope="col">Роль</th>
|
||||
<th scope="col">Для чего</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{guideAccounts.map((account) => (
|
||||
<tr key={account.login}>
|
||||
<td>
|
||||
<code>{account.login}</code>
|
||||
</td>
|
||||
<td>{account.role}</td>
|
||||
<td>{account.purpose}</td>
|
||||
</tr>
|
||||
))}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</Section>
|
||||
|
||||
<Section title="Ограничения стенда">
|
||||
<ul className={styles.list}>
|
||||
{guideLimits.map((item) => (
|
||||
<li key={item}>{item}</li>
|
||||
))}
|
||||
</ul>
|
||||
</Section>
|
||||
</Page>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user